]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Use canonicalize_file_name unconditionally
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-28 Yao Qi <yao@codesourcery.com>
2
3 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
4 and realpath.
5 * config.in: Re-generated.
6 * configure: Re-generated.
7 * utils.c (gdb_realpath): Remove code calling realpath,
8 canonicalize_file_name and pathconf.
9 [!_WIN32]: Call canonicalize_file_name.
10
11 2014-11-28 Yao Qi <yao@codesourcery.com>
12
13 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
14 canonicalize-lgpl.
15 * aclocal.m4: Re-generated.
16 * config.in: Re-generated.
17 * configure: Re-generated.
18 * import/Makefile.am: Re-generated.
19 * import/Makefile.in: Re-generated.
20 * import/m4/gnulib-cache.m4: Re-generated.
21 * import/m4/gnulib-comp.m4: Re-generated.
22 * import/canonicalize-lgpl.c: New file.
23 * import/extra/snippet/_Noreturn.h: New file.
24 * import/m4/canonicalize.m4: New file.
25 * import/m4/double-slash-root.m4: New file.
26 * import/m4/eealloc.m4: New file.
27 * import/m4/malloca.m4: New file.
28 * import/m4/nocrash.m4: New file.
29 * import/m4/stdlib_h.m4: New file.
30 * import/malloca.c: New file.
31 * import/malloca.h: New file.
32 * import/malloca.valgrind: New file.
33
34 2014-11-28 Yao Qi <yao@codesourcery.com>
35
36 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
37 * config.in, configure: Regenerate.
38 * symfile.c (find_separate_debug_file_by_debuglink): Remove
39 code checking HAVE_LSTAT is defined.
40
41 2014-11-28 Yao Qi <yao@codesourcery.com>
42
43 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
44 lstat.
45 * gnulib/aclocal.m4: Re-generated.
46 * gnulib/config.in: Re-generated.
47 * gnulib/configure: Re-generated.
48 * gnulib/import/Makefile.am: Re-generated.
49 * gnulib/import/Makefile.in: Re-generated.
50 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
51 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
52 * gnulib/import/lstat.c: New file.
53 * gnulib/import/m4/lstat.m4: New file.
54
55 2014-11-28 Yao Qi <yao@codesourcery.com>
56
57 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
58 * config.in, configure: Re-generate.
59 * inf-child.c (inf_child_fileio_readlink): Don't check
60 HAVE_READLINK is defined.
61
62 2014-11-28 Yao Qi <yao@codesourcery.com>
63
64 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
65 * gnulib/aclocal.m4: Re-generated.
66 * gnulib/config.in: Likewise.
67 * gnulib/configure: Likewise.
68 * gnulib/import/Makefile.am: Likewise.
69 * gnulib/import/Makefile.in: Likewise.
70 * gnulib/import/m4/gnulib-cache.m4: Likewise.
71 * gnulib/import/m4/gnulib-comp.m4: Likewise.
72 * gnulib/import/dosname.h: New file
73 * gnulib/import/m4/largefile.m4: New file.
74 * gnulib/import/m4/readlink.m4: New file.
75 * gnulib/import/m4/stat.m4: New file.
76 * gnulib/import/readlink.c: New file.
77 * gnulib/import/stat.c: New file.
78
79 2014-11-26 Mark Wielaard <mjw@redhat.com>
80
81 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
82 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
83
84 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
85
86 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
87 that there can be only one stack adjustment in the prologue
88 with tests to detect specific disallowed stack adjustments.
89
90 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
91
92 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
93 adjustments.
94
95 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
96
97 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
98 the instruction as well as reading it from memory.
99 (nios2_match_add): New.
100 (nios2_match_sub): New.
101 (nios2_match_addi): New.
102 (nios2_match_orhi): New.
103 (nios2_match_stw): New.
104 (nios2_match_ldw): New.
105 (nios2_match_rdctl): New.
106 (enum branch_condition): New.
107 (nios2_match_branch): New.
108 (nios2_match_jmpi): New.
109 (nios2_match_calli): New.
110 (nios2_match_jmpr): New.
111 (nios2_match_callr): New.
112 (nios2_match_break): New.
113 (nios2_match_trap): New.
114 (nios2_in_epilogue_p): Rewrite to use new functions.
115 (nios2_analyze_prologue): Likewise.
116 (nios2_skip_prologue): Delete unused local limit_pc.
117 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
118 (nios2_get_next_pc): Rewrite to use new functions.
119
120 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
121
122 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
123
124 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
125
126 Pushed by Joel Brobecker <brobecker@adacore.com>
127 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
128 elements pi_len by the size of the elements before calling
129 vm_deallocate.
130 (inf_validate_task_sc): Likewise, and properly deallocate the
131 noise array.
132
133 2014-11-23 Doug Evans <xdje42@gmail.com>
134
135 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
136 number and name if present. All callers updated.
137 (dump_fn_fieldlists): Fix indentation of args.
138
139 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
140
141 * MAINTAINERS (Write After Approval): Add myself.
142
143 2014-11-23 Joel Brobecker <brobecker@adacore.com>
144
145 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
146 to a bp_call_dummy breakpoint type.
147
148 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
149
150 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
151 registering the signal handler.
152
153 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
154
155 * event-top.h (call_stdin_event_handler_again_p): Declare.
156 * event-top.c (call_stdin_event_handler_again_p): Define.
157 (stdin_event_handler): Use it.
158 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
159 handler again if there is pending input following a
160 start sequence.
161
162 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
163
164 Pushed by Joel Brobecker <brobecker@adacore.com>
165 * linux-fork.c (checkpoint_command): Print index of new
166 checkpoint in response message.
167
168 2014-11-23 Yao Qi <yao@codesourcery.com>
169
170 * valprint.c (read_string): Move local variables 'found_nul',
171 'chunksize' and 'limit' to inner scope. Update comments.
172
173 2014-11-22 Doug Evans <xdje42@gmail.com>
174
175 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
176 function comment.
177 (search_symbols): Fix comments and whitespace.
178
179 2014-11-22 Doug Evans <xdje42@gmail.com>
180
181 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
182
183 2014-11-21 Doug Evans <dje@google.com>
184
185 * psymtab.c (psymtab_search_name): Fix whitespace.
186
187 2014-11-21 Yao Qi <yao@codesourcery.com>
188
189 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
190 errno.
191 * gnulib/import/Makefile.am: Re-generated.
192 * gnulib/import/Makefile.in: Likewise.
193 * gnulib/import/m4/gnulib-cache.m4: Likewise.
194
195 2014-11-21 Yao Qi <yao@codesourcery.com>
196
197 * gdb_wchar.h: Include wchar.h and wctype.h.
198 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
199 include wchar.h and wctype.h.
200 Don't check HAVE_WCHAR_H.
201
202 2014-11-21 Yao Qi <yao@codesourcery.com>
203
204 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
205 and wctype-h.
206 * gnulib/import/Makefile.am: Re-generated.
207 * gnulib/import/Makefile.in: Likewise.
208 * gnulib/import/m4/gnulib-cache.m4: Likewise.
209
210 2014-11-21 Yao Qi <yao@codesourcery.com>
211
212 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
213 memchr.
214 * gnulib/import/Makefile.am: Re-generated.
215 * gnulib/import/Makefile.in: Likewise.
216 * gnulib/import/m4/gnulib-cache.m4: Likewise.
217
218 2014-11-21 Yao Qi <yao@codesourcery.com>
219
220 * common/common-defs.h: Include alloca.h
221 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
222 * configure: Re-generated.
223 * defs.h: Remove code handling alloca.
224 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
225 or not.
226
227 2014-11-21 Yao Qi <yao@codesourcery.com>
228
229 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
230 alloca.
231 * gnulib/import/Makefile.am: Re-generated.
232 * gnulib/import/Makefile.in: Likewise..
233 * gnulib/import/m4/gnulib-cache.m4: Likewise.
234
235 2014-11-21 Yao Qi <yao@codesourcery.com>
236
237 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
238 alphabetical order.
239
240 2014-11-21 Joel Brobecker <brobecker@adacore.com>
241
242 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
243 flag_unsigned if HIGH_BOUND is constant and negative.
244
245 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
246
247 PR breakpoints/10737
248 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
249 modifier from "struct gdbarch" when compiling without Expat (XML)
250 support.
251 (get_syscall_by_number): Likewise.
252 (get_syscall_by_name): Likewise.
253 (get_syscall_names): Likewise.
254
255 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
256
257 PR breakpoints/10737
258 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
259 set_xml_syscall_file_name to provide gdbarch.
260 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
261 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
262 * breakpoint.c (print_it_catch_syscall): Adjust call to
263 get_syscall_by_number to provide gdbarch.
264 (print_one_catch_syscall): Likewise.
265 (print_mention_catch_syscall): Likewise.
266 (print_recreate_catch_syscall): Likewise.
267 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
268 and get_syscall_by_name to provide gdbarch.
269 (catch_syscall_completer): Adjust call to get_syscall_names to
270 provide gdbarch.
271 * gdbarch.c: Regenerate.
272 * gdbarch.h: Likewise.
273 * gdbarch.sh: Forward declare "struct syscalls_info".
274 (xml_syscall_file): New variable.
275 (syscalls_info): Likewise.
276 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
277 set_xml_syscall_file_name to provide gdbarch.
278 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
279 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
280 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
281 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
282 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
283 * xml-syscall.c: Include gdbarch.h.
284 (set_xml_syscall_file_name): Accept gdbarch parameter.
285 (get_syscall_by_number): Likewise.
286 (get_syscall_by_name): Likewise.
287 (get_syscall_names): Likewise.
288 (my_gdb_datadir): Delete global variable.
289 (struct syscalls_info) <my_gdb_datadir>: New variable.
290 (struct syscalls_info) <sysinfo>: Rename variable to
291 "syscalls_info".
292 (sysinfo): Delete global variable.
293 (have_initialized_sysinfo): Likewise.
294 (xml_syscall_file): Likewise.
295 (sysinfo_free_syscalls_desc): Rename to...
296 (syscalls_info_free_syscalls_desc): ... this.
297 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
298 code to the new layout of "struct syscalls_info".
299 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
300 "syscalls_info".
301 (syscall_create_syscall_desc): Likewise.
302 (syscall_start_syscall): Likewise.
303 (syscall_parse_xml): Likewise.
304 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
305 (init_sysinfo): Rename to...
306 (init_syscalls_info): ...this. Add gdbarch as a parameter.
307 Adjust function to deal with gdbarch.
308 (xml_get_syscall_number): Delete parameter sysinfo. Accept
309 gdbarch as a parameter. Adjust code.
310 (xml_get_syscall_name): Likewise.
311 (xml_list_of_syscalls): Likewise.
312 (set_xml_syscall_file_name): Accept gdbarch as parameter.
313 (get_syscall_by_number): Likewise.
314 (get_syscall_by_name): Likewise.
315 (get_syscall_names): Likewise.
316 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
317 (get_syscall_by_number): Likewise.
318 (get_syscall_by_name): Likewise.
319 (get_syscall_names): Likewise.
320
321 2014-11-20 Doug Evans <xdje42@gmail.com>
322
323 Split struct symtab into two: struct symtab and compunit_symtab.
324 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
325 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
326 to "struct compunit_symtab *". All callers updated.
327 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
328 "struct symtab *" argument to "struct compunit_symtab *".
329 All callers updated.
330 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
331 result to "struct compunit_symtab *". All callers updated.
332 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
333 Change result to "struct compunit_symtab *". All callers updated.
334 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
335 hange type to "struct compunit_symtab *". All uses updated.
336 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
337 Change type to "struct compunit_symtab *". All uses updated.
338 * buildsym.c (struct buildsym_compunit): New struct.
339 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
340 (buildsym_compunit): New static global.
341 (finish_block_internal): Update to fetch objfile from
342 buildsym_compunit.
343 (make_blockvector): Delete objfile argument.
344 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
345 debugformat, producer.
346 (start_buildsym_compunit): New function.
347 (free_buildsym_compunit): Renamed from free_subfiles_list.
348 All callers updated.
349 (patch_subfile_names): Rewrite to use buildsym_compunit.
350 (get_compunit_symtab): New function.
351 (get_macro_table): Delete argument comp_dir. All callers updated.
352 (start_symtab): Change result to "struct compunit_symtab *".
353 All callers updated. Create the subfile of the main source file.
354 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
355 (reset_symtab_globals): Update.
356 (end_symtab_get_static_block): Update to use buildsym_compunit.
357 (end_symtab_without_blockvector): Rewrite.
358 (end_symtab_with_blockvector): Change result to
359 "struct compunit_symtab *". All callers updated.
360 Update to use buildsym_compunit. Don't set symtab->dirname,
361 instead set it in the compunit.
362 Explicitly make sure main symtab is first in its list.
363 Set debugformat, producer, blockvector, block_line_section, and
364 macrotable in the compunit.
365 (end_symtab_from_static_block): Change result to
366 "struct compunit_symtab *". All callers updated.
367 (end_symtab, end_expandable_symtab): Ditto.
368 (set_missing_symtab): Change symtab argument to
369 "struct compunit_symtab *". All callers updated.
370 (augment_type_symtab): Ditto.
371 (record_debugformat): Update to use buildsym_compunit.
372 (record_producer): Update to use buildsym_compunit.
373 * buildsym.h (struct subfile) <dirname>: Delete.
374 <producer, debugformat>: Delete.
375 <buildsym_compunit>: New member.
376 (get_compunit_symtab): Declare.
377 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
378 from primary_symtab. Change type to "struct compunit_symtab *".
379 All uses updated.
380 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
381 All callers updated.
382 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
383 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
384 symtab. Change type to "struct compunit_symtab *". All uses updated.
385 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
386 All callers updated.
387 (dw2_find_last_source_symtab): Ditto.
388 (dw2_lookup_symbol): Ditto.
389 (recursively_find_pc_sect_compunit_symtab): Renamed from
390 recursively_find_pc_sect_symtab. Change result to
391 "struct compunit_symtab *". All callers updated.
392 (dw2_find_pc_sect_compunit_symtab): Renamed from
393 dw2_find_pc_sect_symtab. Change result to
394 "struct compunit_symtab *". All callers updated.
395 (get_compunit_symtab): Renamed from get_symtab. Change result to
396 "struct compunit_symtab *". All callers updated.
397 (recursively_compute_inclusions): Change type of immediate_parent
398 argument to "struct compunit_symtab *". All callers updated.
399 (compute_compunit_symtab_includes): Renamed from
400 compute_symtab_includes. All callers updated. Rewrite to compute
401 includes of compunit_symtabs and not symtabs.
402 (process_full_comp_unit): Update to work with struct compunit_symtab.
403 (process_full_type_unit): Ditto.
404 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
405 (dwarf_decode_lines): Remove special case handling of main subfile.
406 (macro_start_file): Delete argument comp_dir. All callers updated.
407 (dwarf_decode_macro_bytes): Ditto.
408 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
409 use struct compunit_symtab.
410 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
411 * jit.c (finalize_symtab): Build compunit_symtab.
412 * jv-lang.c (get_java_class_symtab): Change result to
413 "struct compunit_symtab *". All callers updated.
414 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
415 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
416 comp_dir. Change type to "struct compunit_symtab *".
417 All uses updated.
418 (new_macro_table): Change comp_dir argument to cust,
419 "struct compunit_symtab *". All callers updated.
420 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
421 nr_primary_symtabs. All uses updated.
422 (count_symtabs_and_blocks): Update to handle compunits.
423 (report_command_stats): Update output, "primary symtabs" renamed to
424 "compunits".
425 * mdebugread.c (new_symtab): Change result to
426 "struct compunit_symtab *". All callers updated.
427 (parse_procedure): Change type of search_symtab argument to
428 "struct compunit_symtab *". All callers updated.
429 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
430 separate loop.
431 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
432 symtabs. Change type to "struct compunit_symtab *". All uses updated.
433 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
434 All uses updated.
435 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
436 All uses updated.
437 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
438 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
439 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
440 symtab. Change type to "struct compunit_symtab *". All uses updated.
441 * psymtab.c (psymtab_to_symtab): Change result type to
442 "struct compunit_symtab *". All callers updated.
443 (find_pc_sect_compunit_symtab_from_partial): Renamed from
444 find_pc_sect_symtab_from_partial. Change result type to
445 "struct compunit_symtab *". All callers updated.
446 (lookup_symbol_aux_psymtabs): Change result type to
447 "struct compunit_symtab *". All callers updated.
448 (find_last_source_symtab_from_partial): Ditto.
449 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
450 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
451 and macro_table from compunit.
452 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
453 type to "struct compunit_symtab *". All callers updated.
454 (debug_qf_lookup_symbol): Ditto.
455 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
456 debug_qf_find_pc_sect_symtab, change result type to
457 "struct compunit_symtab *". All callers updated.
458 * symfile.c (allocate_symtab): Delete objfile argument.
459 New argument cust.
460 (allocate_compunit_symtab): New function.
461 (add_compunit_symtab_to_objfile): New function.
462 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
463 Change result type to "struct compunit_symtab *". All uses updated.
464 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
465 Change result type to "struct compunit_symtab *". All uses updated.
466 * symmisc.c (print_objfile_statistics): Compute blockvector count in
467 separate loop.
468 (dump_symtab_1): Update test for primary source symtab.
469 (maintenance_info_symtabs): Update to handle compunit symtabs.
470 (maintenance_check_symtabs): Ditto.
471 * symtab.c (set_primary_symtab): Delete.
472 (compunit_primary_filetab): New function.
473 (compunit_language): New function.
474 (iterate_over_some_symtabs): Change type of arguments "first",
475 "after_last" to "struct compunit_symtab *". All callers updated.
476 Update to loop over symtabs in each compunit.
477 (error_in_psymtab_expansion): Rename symtab argument to cust,
478 and change type to "struct compunit_symtab *". All callers updated.
479 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
480 Change result type to "struct compunit_symtab *". All callers updated.
481 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
482 Change result type to "struct compunit_symtab *". All callers updated.
483 (find_pc_sect_line): Only loop over symtabs within selected compunit
484 instead of all symtabs in the objfile.
485 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
486 <compunit_symtab> New member.
487 <block_line_section>: Moved to compunit_symtab.
488 <locations_valid>: Ditto.
489 <epilogue_unwind_valid>: Ditto.
490 <macro_table>: Ditto.
491 <dirname>: Ditto.
492 <debugformat>: Ditto.
493 <producer>: Ditto.
494 <objfile>: Ditto.
495 <call_site_htab>: Ditto.
496 <includes>: Ditto.
497 <user>: Ditto.
498 <primary>: Delete
499 (SYMTAB_COMPUNIT): New macro.
500 (SYMTAB_BLOCKVECTOR): Update definition.
501 (SYMTAB_OBJFILE): Update definition.
502 (SYMTAB_DIRNAME): Update definition.
503 (struct compunit_symtab): New type. Common members among all source
504 symtabs within a compilation unit moved here. All uses updated.
505 (COMPUNIT_OBJFILE): New macro.
506 (COMPUNIT_FILETABS): New macro.
507 (COMPUNIT_DEBUGFORMAT): New macro.
508 (COMPUNIT_PRODUCER): New macro.
509 (COMPUNIT_DIRNAME): New macro.
510 (COMPUNIT_BLOCKVECTOR): New macro.
511 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
512 (COMPUNIT_LOCATIONS_VALID): New macro.
513 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
514 (COMPUNIT_CALL_SITE_HTAB): New macro.
515 (COMPUNIT_MACRO_TABLE): New macro.
516 (ALL_COMPUNIT_FILETABS): New macro.
517 (compunit_symtab_ptr): New typedef.
518 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
519
520 2014-11-20 Joel Brobecker <brobecker@adacore.com>
521
522 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
523 if the TYPE_CODE of range_type's base type does not match
524 the TYPE_CODE of encoding_type's base type.
525
526 2014-11-19 Joel Brobecker <brobecker@adacore.com>
527
528 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
529 it starts with '<'.
530
531 2014-11-19 Joel Brobecker <brobecker@adacore.com>
532
533 * ada-lang.c (ada_is_redundant_range_encoding): New function.
534 (ada_is_redundant_index_type_desc): New function.
535 (to_fixed_array_type): Ignore parallel XA type if redundant.
536
537 2014-11-19 Joel Brobecker <brobecker@adacore.com>
538
539 * ada-lang.c (constrained_packed_array_type): Set the length
540 of the return array as if both bounds where zero if that
541 returned array's index type is dynamic.
542
543 2014-11-19 Yao Qi <yao@codesourcery.com>
544
545 * config/i386/go32.mh (CC): Remove.
546
547 2014-11-18 Doug Evans <xdje42@gmail.com>
548
549 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
550 updated.
551
552 2014-11-18 Doug Evans <xdje42@gmail.com>
553
554 * buildsym.c (buildsym_objfile): New static global.
555 (buildsym_comp_dir): New static global.
556 (finish_block_internal): Delete arg objfile. All callers updated.
557 (finish_block): Delete arg objfile. All callers updated.
558 (start_subfile): Delete arg dirname. All callers updated.
559 (patch_subfile_names): Update buildsym_comp_dir.
560 (get_macro_table): Delete arg objfile. All callers updated.
561 (start_symtab): New arg objfile. All callers updated.
562 Rename arg dirname to comp_dir.
563 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
564 (end_symtab_get_static_block): Delete arg objfile. All callers
565 updated.
566 (end_symtab_without_blockvector): Ditto.
567 (end_symtab_with_blockvector): Ditto.
568 (end_symtab_from_static_block): Ditto.
569 (end_symtab): Ditto.
570 (end_expandable_symtab): Ditto.
571 (augment_type_symtab): Ditto.
572 * coffread.c (coff_start_symtab): New arg objfile. All callers
573 updated.
574
575 2014-11-18 Doug Evans <xdje42@gmail.com>
576
577 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
578 updated.
579
580 2014-11-18 Doug Evans <xdje42@gmail.com>
581
582 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
583 symtab.dirname updated to use it.
584
585 2014-11-18 Doug Evans <xdje42@gmail.com>
586
587 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
588 symtab.objfile updated to use it.
589
590 2014-11-18 Doug Evans <xdje42@gmail.com>
591
592 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
593
594 2014-11-18 Doug Evans <xdje42@gmail.com>
595
596 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
597 SYMBOL_OBJFILE.
598 * findvar.c (default_read_var_value): Ditto.
599 * jv-lang.c (add_class_symtab_symbol): Ditto.
600 * parse.c (operator_check_standard): Ditto.
601 * printcmd.c (address_info): Ditto.
602 * symtab.c (fixup_symbol_section): Ditto.
603 (skip_prologue_sal): Ditto.
604 * tracepoint.c (scope_info): Ditto.
605 * valops.c (find_function_in_inferior): Ditto.
606 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
607 * python/py-symbol.c (set_symbol): Ditto.
608
609 2014-11-18 Doug Evans <xdje42@gmail.com>
610
611 * buildsym.c (main_subfile): New static global.
612 (free_subfiles_list): New function.
613 (start_symtab): Set main_subfile.
614 (restart_symtab): Replace init of subfiles, current_subfile with
615 call to free_subfiles_list.
616 (watch_main_source_file_lossage): Use main_subfile.
617 (reset_symtab_globals): Replace init of current_subfile with call
618 to free_subfiles_list.
619 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
620 functions, split out from ...
621 (end_symtab_from_static_block): ... here. Rewrite to call them.
622
623 2014-11-18 Doug Evans <xdje42@gmail.com>
624
625 The result of symtab expansion is always a primary symtab.
626 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
627 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
628 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
629 (psymtab_to_symtab): Add comment and assert.
630 (map_matching_symbols_psymtab): Remove unnecessary test for
631 non-primary symtab.
632
633 2014-11-15 Doug Evans <xdje42@gmail.com>
634
635 PR symtab/17559
636 * symtab.c (find_pc_line_symtab): New function.
637 * symtab.h (find_pc_line_symtab): Declare.
638 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
639 find_pc_symtab.
640 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
641 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
642 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
643 * tui/tui-win.c (make_visible_with_new_height): Ditto.
644 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
645 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
646
647 2014-11-15 Doug Evans <xdje42@gmail.com>
648
649 * symtab.c (expand_symtab_containing_pc): Renamed from
650 find_pc_sect_symtab_via_partial. All callers updated.
651
652 2014-11-15 Yao Qi <yao@codesourcery.com>
653
654 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
655
656 2014-11-14 Joel Brobecker <brobecker@adacore.com>
657
658 * common/common-defs.h: Move <stdarg.h> #include ahead of
659 <stdio.h> #include.
660
661 2014-11-14 Pedro Alves <palves@redhat.com>
662
663 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
664 [!PHONY_ICONV] (gdb_iconv): New function.
665 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
666
667 2014-11-13 Doug Evans <dje@google.com>
668
669 PR symtab/17591
670 * dwarf2read.c (find_slot_in_mapped_hash): Handle
671 "(anonymous namespace)".
672
673 2014-11-13 Doug Evans <dje@google.com>
674
675 * dwarf2read.c (update_enumeration_type_from_children): Avoid
676 infinite loop.
677
678 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
679
680 * NEWS (maint set target-async): Fix typo.
681
682 2014-11-12 Pedro Alves <palves@redhat.com>
683
684 * infrun.c (enum infwait_states, infwait_state): Delete.
685
686 2014-11-12 Pedro Alves <palves@redhat.com>
687
688 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
689 Rewrite stepping over a permanent breakpoint.
690 (thread_still_needs_step_over, proceed): Don't set
691 stepping_over_breakpoint for permanent breakpoints.
692 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
693 single-step breakpoints out of the target on hardware step
694 targets.
695 (process_event_stop_test): If stepping a permanent breakpoint
696 doesn't hit the step-resume breakpoint, delete the step-resume
697 breakpoint.
698 (switch_back_to_stepped_thread): Also check if the stepped thread
699 has advanced already on hardware step targets.
700 (currently_stepping): Return true if the thread stepped a
701 breakpoint.
702
703 2014-11-12 Pedro Alves <palves@redhat.com>
704
705 Mark locations as permanent, not the whole breakpoint.
706 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
707 (mark_breakpoints_out): Don't mark permanent breakpoints as
708 uninserted.
709 (breakpoint_init_inferior): Use mark_breakpoints_out.
710 (breakpoint_here_p): Adjust.
711 (bpstat_stop_status, describe_other_breakpoints): Remove handling
712 of permanent breakpoints.
713 (make_breakpoint_permanent): Mark each location as permanent,
714 instead of marking the breakpoint.
715 (add_location_to_breakpoint): If the location is permanent, mark
716 it as such, and as inserted.
717 (init_breakpoint_sal): Don't make the breakpoint permanent here.
718 (bp_location_compare, update_global_location_list): Adjust.
719 (update_breakpoint_locations): Don't make the breakpoint permanent
720 here.
721 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
722 breakpoints.
723 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
724 (struct bp_location) <permanent>: New field.
725 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
726 reference to bp_permanent.
727
728 2014-11-12 Pedro Alves <palves@redhat.com>
729
730 * arch-utils.c (default_skip_permanent_breakpoint): New function.
731 * arch-utils.h (default_skip_permanent_breakpoint): New
732 declaration.
733 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
734 Install default_skip_permanent_breakpoint as default method.
735 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
736 (i386_gdbarch_init): Don't install it.
737 * infrun.c (resume): Assume there's always a
738 gdbarch_skip_permanent_breakpoint implementation.
739 * gdbarch.h, gdbarch.c: Regenerate.
740
741 2014-11-11 Daniel Colascione <dancol@dancol.org>
742
743 Warn about cross-PID-namespace debugging.
744 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
745 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
746 * linux-thread-db.c (check_pid_namespace_match): New function.
747 (thread_db_inferior_created): Call it.
748
749 2014-11-10 Doug Evans <xdje42@gmail.com>
750
751 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
752 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
753
754 2014-11-10 Doug Evans <xdje42@gmail.com>
755
756 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
757
758 2014-11-10 Doug Evans <xdje42@gmail.com>
759
760 PR symtab/17564
761 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
762 (lookup_static_symbol): Move definition to new location and rewrite.
763 (lookup_symbol_in_objfile): New function.
764 (lookup_symbol_global_iterator_cb): Call it.
765
766 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
767
768 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
769
770 2014-11-07 Pedro Alves <palves@redhat.com>
771
772 * infrun.c (process_event_stop_test) <subroutine check>: Don't
773 check if we did a "nexti" inside a prologue.
774 * symtab.c (in_prologue): Delete function.
775 * symtab.h (in_prologue): Delete declaration.
776
777 2014-11-06 Doug Evans <xdje42@gmail.com>
778
779 * symtab.h (lookup_global_symbol): Improve function comment.
780
781 2014-11-06 Doug Evans <xdje42@gmail.com>
782
783 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
784 All callers updated.
785 * symtab.h (lookup_global_symbol): Update decl.
786 (lookup_static_symbol): Move decl to better location.
787
788 2014-11-06 Doug Evans <xdje42@gmail.com>
789
790 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
791
792 2014-11-06 Doug Evans <xdje42@gmail.com>
793
794 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
795 All callers updated.
796 (lookup_symbol_in_all_objfiles): Renamed from
797 lookup_symbol_aux_symtabs. All callers updated.
798 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
799 All callers updated.
800 (lookup_symbol_in_objfile_symtabs): Renamed from
801 lookup_symbol_aux_objfile. All callers updated.
802
803 2014-11-06 Doug Evans <xdje42@gmail.com>
804
805 * symtab.c (lookup_symbol_in_block): Renamed from
806 lookup_symbol_aux_block. All callers updated.
807
808 2014-11-06 Doug Evans <xdje42@gmail.com>
809
810 * symtab.c (lookup_static_symbol): Renamed from
811 lookup_static_symbol_aux. All callers updated.
812 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
813 All callers updated.
814
815 2014-11-06 Doug Evans <xdje42@gmail.com>
816
817 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
818 * block.c (block_lookup_symbol): Use it.
819 * cp-support.c (make_symbol_overload_list_block): Use it.
820 * symtab.c (iterate_over_symbols): Use it.
821
822 2014-11-06 Doug Evans <xdje42@gmail.com>
823
824 * symtab.c (lookup_block_symbol): Moved to ...
825 * block.c (block_lookup_symbol): ... here and renamed.
826 All callers updated.
827 * block.h (block_lookup_symbol): Declare.
828 * symtab.h (lookup_block_symbol): Delete.
829
830 2014-11-06 Doug Evans <xdje42@gmail.com>
831
832 * ada-lang.c (ada_make_symbol_completion_list): Use
833 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
834 * symtab.c (lookup_objfile_from_block): Ditto.
835
836 2014-11-06 Doug Evans <xdje42@gmail.com>
837
838 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
839 TYPE_CODE_STRUCT.
840
841 2014-11-06 Doug Evans <xdje42@gmail.com>
842
843 * objfiles.c (get_objfile_arch): Constify.
844 * objfiles.h (get_objfile_arch): Update prototype.
845 * solib.c (solib_global_lookup): Fetch arch from objfile,
846 not target_gdbarch.
847
848 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
849
850 * nios2-tdep.c (wild_insn): Delete.
851 (profiler_insn, irqentry_insn): Delete.
852 (nios2_match_sequence): Delete.
853 (nios2_analyze_prologue): Update comments. Remove matching
854 of obsolete profiler_insn and irqentry_insn sequences.
855
856 2014-11-05 Alan Modra <amodra@gmail.com>
857
858 * charset.c (convert_between_encodings): Shrink obstack using
859 obstack_blank_fast.
860 * minsyms.c (install_minimal_symbols): Likewise.
861 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
862 to char* before doing pointer arithmetic.
863
864 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
865
866 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
867
868 2014-11-04 Pedro Alves <palves@redhat.com>
869
870 * breakpoint.c (breakpoint_thread_match): Delete function.
871 * breakpoint.h (breakpoint_thread_match): Delete declaration.
872
873 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
874
875 PR c++/17494
876 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
877 the method args also under EVAL_SKIP when evaluating method
878 calls under EVAL_SKIP.
879
880 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
881
882 * dwarf2loc.c (read_pieced_value): Do big endian
883 processing only if gdb_regnum is not -1.
884 (write_pieced_value): Ditto.
885
886 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
887
888 * arm-linux-tdep.c (arm_linux_init_abi): Use
889 info.byte_order_for_code to choose endianity of breakpoint
890 instructions snippets.
891
892 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
893
894 * arm-tdep.c (extract_arm_insn): Use
895 gdbarch_byte_order_for_code to read arm instruction.
896
897 2014-11-02 Doug Evans <xdje42@gmail.com>
898
899 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
900
901 2014-11-02 Doug Evans <xdje42@gmail.com>
902
903 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
904 main_subfile before returning.
905
906 2014-10-31 Doug Evans <xdje42@gmail.com>
907
908 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
909 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
910
911 2014-10-31 Doug Evans <xdje42@gmail.com>
912
913 * valops.c (value_cast_pointers): Fix whitespace.
914 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
915 Ditto.
916
917 2014-10-30 Doug Evans <dje@google.com>
918
919 * NEWS: Mention ability add attributes to gdb.Objfile and
920 gdb.Progspace objects.
921 * python/py-objfile.c (objfile_object): New member dict.
922 (objfpy_dealloc): Py_XDECREF dict.
923 (objfpy_initialize): Initialize dict.
924 (objfile_getset): Add __dict__.
925 (objfile_object_type): Set tp_dictoffset member.
926 * python/py-progspace.c (progspace_object): New member dict.
927 (pspy_dealloc): Py_XDECREF dict.
928 (pspy_initialize): Initialize dict.
929 (pspace_getset): Add __dict__.
930 (pspace_object_type): Set tp_dictoffset member.
931
932 2014-10-30 Yao Qi <yao@codesourcery.com>
933
934 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
935 replace '\\' with '\\\\'.
936
937 2014-10-29 Joel Brobecker <brobecker@adacore.com>
938
939 GDB 7.8.1 released.
940
941 2014-10-29 Pedro Alves <palves@redhat.com>
942
943 PR gdb/17408
944 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
945 instead of assuming a thread with a stepping range is always
946 stepping.
947
948 2014-10-29 Pedro Alves <palves@redhat.com>
949
950 PR python/17372
951 * event-top.c (change_line_handler): Call
952 gdb_rl_callback_handler_remove instead of
953 rl_callback_handler_remove.
954 (callback_handler_installed): New global.
955 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
956 (gdb_rl_callback_handler_reinstall): New functions.
957 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
958 gdb_rl_callback_handler_install instead of
959 rl_callback_handler_remove and rl_callback_handler_install.
960 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
961 instead of rl_callback_handler_remove.
962 * event-top.h (gdb_rl_callback_handler_remove)
963 (gdb_rl_callback_handler_install)
964 (gdb_rl_callback_handler_reinstall): New declarations.
965 * infrun.c (reinstall_readline_callback_handler_cleanup): New
966 cleanup function.
967 (fetch_inferior_event): Install it.
968 * top.c (gdb_readline_wrapper_line) Call
969 gdb_rl_callback_handler_remove instead of
970 rl_callback_handler_remove.
971 (gdb_readline_wrapper_cleanup): Don't call
972 rl_callback_handler_install.
973
974 2014-10-29 Pedro Alves <palves@redhat.com>
975
976 * event-top.c (command_line_handler): Clear the first byte of
977 linebuffer, when it is first allocated.
978
979 2014-10-29 Pedro Alves <palves@redhat.com>
980
981 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
982 TRY_CATCH.
983
984 2014-10-29 Pedro Alves <palves@redhat.com>
985
986 PR tui/16138
987 PR tui/17519
988 * tui/tui-interp.c (tui_is_toplevel): Delete global.
989 (tui_allowed_p): Delete function.
990 * tui/tui.c: Include "interps.h".
991 (tui_enable): Don't use tui_allowed_p. Error out here with
992 detailed error messages if the TUI is the top level interpreter,
993 or if output is not a terminal. Use newterm instead of initscr,
994 and error out if initializing the terminal fails. Also error out if
995 the terminal doesn't support cursor addressing.
996 * tui/tui.h (tui_allowed_p): Delete declaration.
997
998 2014-10-29 Joel Brobecker <brobecker@adacore.com>
999
1000 * arm-tdep.c (arm_skip_stack_protector): Return early if
1001 address loaded by first "ldr" instruction does not have
1002 a corresponding minimal symbol. Update comment.
1003
1004 2014-10-29 Yao Qi <yao@codesourcery.com>
1005
1006 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1007 loaded address correctly of ldr instruction.
1008
1009 2014-10-28 Pedro Alves <palves@redhat.com>
1010
1011 PR gdb/12623
1012 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1013 field.
1014 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1015 thread's stepped_breakpoint field. Skip if reverse debugging.
1016 Add comment.
1017 (init_thread_stepping_state, handle_signal_stop): Clear the
1018 thread's stepped_breakpoint field.
1019
1020 2014-10-27 Pedro Alves <palves@redhat.com>
1021
1022 * remote.c (remote_thread_alive): New, factored out from ...
1023 (remote_thread_alive): ... this.
1024 (remote_update_thread_list): Bail out before deleting threads if
1025 the target returned an empty list, and, the current thread has a
1026 magic/fake ptid.
1027
1028 2014-10-27 Pedro Alves <palves@redhat.com>
1029
1030 * infrun.c (handle_signal_stop): Also skip handlers when a random
1031 signal arrives while handling a "stepi" or a "nexti". Set the
1032 thread's 'step_after_step_resume_breakpoint' flag.
1033
1034 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1035
1036 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1037 (arm_record_ld_st_imm_offset): Reimplement to cover all
1038 load/store cases for ARM opcode 010.
1039 (arm_record_ld_st_multiple): Reimplement to cover all
1040 load/store cases for ARM opcode 100.
1041
1042 2014-10-26 Doug Evans <xdje42@gmail.com>
1043
1044 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1045
1046 2014-10-26 Doug Evans <xdje42@gmail.com>
1047
1048 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1049 parameter "kind" to "block_index".
1050 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1051 "block_index".
1052 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1053
1054 2014-10-26 Doug Evans <xdje42@gmail.com>
1055
1056 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1057
1058 2014-10-26 Doug Evans <xdje42@gmail.com>
1059
1060 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1061 obstack_alloc.
1062
1063 2014-10-26 Doug Evans <xdje42@gmail.com>
1064
1065 * parser-defs.h (block_found): Move decl from here ...
1066 * symtab.h (block_found): ... to here.
1067
1068 2014-10-26 Doug Evans <xdje42@gmail.com>
1069
1070 * symtab.h (struct field_of_this_result): Fix typo in comment.
1071 (lookup_symbol_in_language): Move function comment here.
1072 (lookup_symbol): Improve function comment.
1073 (basic_lookup_symbol_nonlocal): Ditto.
1074 (lookup_symbol_static, lookup_symbol_global): Ditto.
1075 (lookup_symbol_aux_block): Ditto.
1076 (lookup_language_this): Add function comment.
1077 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1078 function comment.
1079 (lookup_block_symbol): Improve function comment.
1080 (lookup_struct): Fix capitalization in function comment.
1081 (lookup_transparent_type): Add function comment.
1082 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1083 Improve function comment.
1084 (lookup_objfile_from_block): Add function comment.
1085 * symtab.c (lookup_symbol_in_language): Update function comment.
1086 (lookup_symbol, lookup_language_this): Ditto.
1087 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1088 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1089 (basic_lookup_symbol_nonlocal): Ditto.
1090 (lookup_symbol_static, lookup_symbol_global): Ditto.
1091 (lookup_transparent_type, lookup_block_symbol): Ditto.
1092
1093 2014-10-25 Doug Evans <xdje42@gmail.com>
1094
1095 * symtab.c (types_info): Delete forward decl.
1096 (functions_info, variables_info, sources_info): Ditto.
1097 (_initialize_symtab): Rewrite forward decl to use
1098 initialize_file_ftype.
1099
1100 2014-10-25 Doug Evans <xdje42@gmail.com>
1101
1102 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1103
1104 2014-10-25 Doug Evans <xdje42@gmail.com>
1105
1106 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1107 of local var child_die.
1108
1109 2014-10-24 Don Breazeal <donb@codesourcery.com>
1110
1111 * infrun.c (follow_fork_inferior): Update fork message printing
1112 to use target_terminal_ours_for_output instead of
1113 target_terminal_ours, to use _() for all format strings, to print
1114 "vfork" instead of "fork" for vforks, and to add a detach message.
1115 (handle_vfork_child_exec_or_exit): Update message printing to use
1116 target_terminal_ours_for_output instead of target_terminal_ours, to
1117 use _() for all format strings, and to fix some formatting.
1118
1119 2014-10-24 Pedro Alves <palves@redhat.com>
1120
1121 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1122 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1123 * config/vax/vax.mh: Delete.
1124 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1125 obsolete configurations section.
1126 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1127 * vax-nat.c: Delete file.
1128
1129 2014-10-24 Pedro Alves <palves@redhat.com>
1130
1131 * NEWS (Removed targets): Add OS/arch column.
1132
1133 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1134
1135 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1136 on the arg type of a constructor only if it is of reference type.
1137
1138 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1139
1140 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1141 accessors and constants from nios2 opcodes update.
1142 (nios2_get_next_pc): Likewise.
1143
1144 2014-10-19 Doug Evans <xdje42@gmail.com>
1145
1146 * gdbthread.h (set_running): Fix comment.
1147 (set_executing, finish_thread_state): Fix comment.
1148
1149 2014-10-18 Doug Evans <xdje42@gmail.com>
1150
1151 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1152
1153 2014-10-17 Doug Evans <dje@google.com>
1154
1155 * NEWS: Mention new event gdb.clear_objfiles.
1156 * python/py-event.h (emit_clear_objfiles_event): Clear
1157 * python/py-events.h (events_object): New member clear_objfiles.
1158 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1159 event.
1160 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1161 emit clear_objfiles event.
1162 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1163 function.
1164 (emit_clear_objfiles_event): New function.
1165 (clear_objfiles): New event.
1166 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1167 Declare.
1168 * python/python.c (_initialize_python): Call
1169 gdbpy_initialize_clear_objfiles_event.
1170
1171 2014-10-17 Doug Evans <dje@google.com>
1172
1173 * NEWS: Mention new gdb.Objfile.progspace attribute.
1174 * python/py-objfile.c (objfpy_get_progspace): New function.
1175 (objfile_getset): New entry for "progspace".
1176
1177 2014-10-17 Pedro Alves <palves@redhat.com>
1178
1179 PR gdb/17471
1180 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1181 returns a copy of the input.
1182 (run_command_1, continue_command, step_1, jump_command)
1183 (signal_command, until_command, advance_command, finish_command)
1184 (attach_command): Adjust and install a cleanup to free the
1185 stripped args.
1186
1187 2014-10-17 Pedro Alves <palves@redhat.com>
1188
1189 PR gdb/17300
1190 * infcmd.c (continue_1): If continuing all threads in the
1191 foreground, make sure the inferior's terminal settings are put in
1192 effect.
1193
1194 2014-10-17 Pedro Alves <palves@redhat.com>
1195
1196 PR gdb/17472
1197 * annotate.c (annotate_breakpoints_invalid): Use
1198 target_terminal_our_for_output instead of target_terminal_ours.
1199 Give back the terminal to the target.
1200 (annotate_frames_invalid): Likewise.
1201
1202 2014-10-17 Pedro Alves <palves@redhat.com>
1203
1204 * target.c (enum terminal_state): New enum.
1205 (terminal_state): New global.
1206 (target_terminal_init): New function.
1207 (target_terminal_inferior): Skip if inferior already owns the
1208 terminal.
1209 (target_terminal_ours, target_terminal_ours_for_output): New
1210 functions.
1211 * target.h (target_terminal_init): Convert to function prototype.
1212 (target_terminal_ours_for_output): Convert to function prototype
1213 and tweak comment.
1214 (target_terminal_ours): Convert to function prototype and tweak
1215 comment.
1216 * windows-nat.c (do_initial_windows_stuff): Call
1217 target_terminal_init instead of child_terminal_init_with_pgrp.
1218
1219 2014-10-17 Pedro Alves <palves@redhat.com>
1220
1221 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1222 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1223 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1224 solib-osf.c.
1225 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1226 * ada-lang.h [__alpha__ && __osf__]
1227 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1228 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1229 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1230 GDB_OSABI_OSF1.
1231 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1232 files.
1233 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1234 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1235 * configure: Regenerate.
1236 * configure.ac: Remove references to osf.
1237 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1238 section. Remove all other references to osf.
1239 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1240 Remove all other references to osf.
1241 * dec-thread.c: Delete file.
1242 * defs.h (GDB_OSABI_OSF1): Delete.
1243 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1244 defined.
1245 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1246 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1247 Delete code.
1248 (unconditionally_kill_inferior)
1249 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1250 * solib-osf.c: Delete file.
1251
1252 2014-10-17 Pedro Alves <palves@redhat.com>
1253
1254 * remote.c (clear_threads_listing_context): Move higher up, out of
1255 the HAVE_LIBEXPAT guard.
1256
1257 2014-10-16 Tristan Gingold <gingold@adacore.com>
1258
1259 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1260 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1261 on amd64.
1262
1263 2014-10-15 Pedro Alves <palves@redhat.com>
1264
1265 * dec-thread.c (dec_thread_count_gdb_threads)
1266 (dec_thread_add_gdb_thread): Delete.
1267 (dec_thread_update_thread_list): Delete.
1268 (dec_thread_find_new_threads): Rename to ...
1269 (dec_thread_update_thread_list): ... this. Delete GDB-size
1270 threads that are no longer found in dec_thread_list.
1271 (resync_thread_list): Delete.
1272 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1273 resync_thread_list.
1274
1275 2014-10-15 Pedro Alves <palves@redhat.com>
1276
1277 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1278 * remote.c (remote_update_thread_list): Skip calling prune_threads
1279 if any thread listing method is supported, and instead walk over
1280 the set of remote threads listed, deleting those that are not
1281 found in GDB's thread list.
1282
1283 2014-10-15 Pedro Alves <palves@redhat.com>
1284
1285 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1286 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1287 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1288 (bsd_uthread_target): Adjust.
1289 * corelow.c (core_open): Adjust.
1290 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1291 (dec_thread_update_thread_list): New function.
1292 (init_dec_thread_ops): Adjust.
1293 * gdbthread.h (prune_threads): New declaration.
1294 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1295 (thread_db_update_thread_list): ... this. Call prune_threads.
1296 (init_thread_db_ops): Adjust.
1297 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1298 (procfs_update_thread_list): ... this. Call prune_threads.
1299 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1300 Adjust.
1301 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1302 (obsd_update_thread_list): ... this. Call prune_threads.
1303 (obsd_add_target): Adjust.
1304 * procfs.c (procfs_target): Adjust.
1305 (procfs_notice_thread): Update comment.
1306 (procfs_find_new_threads): Rename to ...
1307 (procfs_update_thread_list): ... this. Call prune_threads.
1308 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1309 comment.
1310 (ravenscar_wait): Adjust.
1311 (ravenscar_find_new_threads): Rename to ...
1312 (ravenscar_update_thread_list): ... this. Call prune_threads.
1313 (init_ravenscar_thread_ops): Adjust.
1314 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1315 (record_btrace_update_thread_list): ... this. Adjust comment.
1316 (init_record_btrace_ops): Adjust.
1317 * remote.c (remote_threads_info): Rename to ...
1318 (remote_update_thread_list): ... this. Call prune_threads.
1319 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1320 Adjust.
1321 * sol-thread.c (check_for_thread_db): Adjust.
1322 (sol_find_new_threads_callback): Rename to ...
1323 (sol_update_thread_list_callback): ... this.
1324 (sol_find_new_threads): Rename to ...
1325 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1326 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1327 * target-delegates.c: Regenerate.
1328 * target.c (target_find_new_threads): Rename to ...
1329 (target_update_thread_list): ... this.
1330 * target.h (struct target_ops): Rename to_find_new_threads field
1331 to to_update_thread_list.
1332 (target_find_new_threads): Rename to ...
1333 (target_update_thread_list): ... this.
1334 * thread.c (prune_threads): Make extern.
1335 (update_thread_list): Adjust.
1336
1337 2014-10-15 Pedro Alves <palves@redhat.com>
1338
1339 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1340 Add describing comment. Return -1 if the qL packet is not
1341 supported.
1342 (struct thread_item, thread_item_t): Move higher up in
1343 the file. Add comments.
1344 (struct threads_parsing_context): Move higher up in
1345 the file, add comments, and remote to ...
1346 (struct threads_listing_context): ... this.
1347 (remote_newthread_step): Don't add the thread to GDB's thread
1348 database here. Instead push it to the thread_listing_context
1349 list.
1350 (remote_find_new_threads): Rename to ...
1351 (remote_get_threads_with_ql): ... this. Add target_ops and
1352 targets_listing_context parameters. Pass down context.
1353 (start_thread): Adjust.
1354 (clear_threads_parsing_context): Rename to ...
1355 (clear_threads_listing_context): ... this.
1356 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1357 remote_threads_info.
1358 (remote_get_threads_with_qthreadinfo): Ditto.
1359 (remote_threads_info): Reimplement.
1360
1361 2014-10-15 Pedro Alves <palves@redhat.com>
1362
1363 * infrun.c (resume): Don't force displaced-stepping for all
1364 single-steps on software single-stepping archs.
1365
1366 2014-10-15 Pedro Alves <palves@redhat.com>
1367
1368 * breakpoint.c (single_step_breakpoints): Delete global.
1369 (insert_single_step_breakpoint): Adjust to store the breakpoint
1370 pointer in the current thread.
1371 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1372 (cancel_single_step_breakpoints): Delete functions.
1373 (breakpoint_has_location_inserted_here): Make extern.
1374 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1375 breakpoint list.
1376 * breakpoint.h (breakpoint_has_location_inserted_here): New
1377 declaration.
1378 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1379 (cancel_single_step_breakpoints): Remove declarations.
1380 * gdbthread.h (struct thread_control_state)
1381 <single_step_breakpoints>: New field.
1382 (delete_single_step_breakpoints)
1383 (thread_has_single_step_breakpoints_set)
1384 (thread_has_single_step_breakpoint_here): New declarations.
1385 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1386 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1387 (singlestep_pc): Delete globals.
1388 (infrun_thread_ptid_changed): Remove references to removed
1389 globals.
1390 (resume_cleanups): Delete the current thread's single-step
1391 breakpoints.
1392 (maybe_software_singlestep): Remove references to removed globals.
1393 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1394 delete_single_step_breakpoints.
1395 (init_wait_for_inferior): Remove references to removed globals.
1396 (delete_thread_infrun_breakpoints): Delete the thread's
1397 single-step breakpoints too.
1398 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1399 single-step breakpoints here.
1400 (delete_stopped_threads_single_step_breakpoints): New function.
1401 (adjust_pc_after_break): Adjust to use
1402 thread_has_single_step_breakpoints_set.
1403 (handle_inferior_event): Remove references to removed globals.
1404 Use delete_stopped_threads_single_step_breakpoints.
1405 (handle_signal_stop): Adjust to per-thread single-step
1406 breakpoints. Swap test order to do cheaper tests first.
1407 (switch_back_to_stepped_thread): Extend debug output. Remove
1408 references to removed globals.
1409 * record-full.c (record_full_wait_1): Adjust to per-thread
1410 single-step breakpoints.
1411 * thread.c (delete_single_step_breakpoints)
1412 (thread_has_single_step_breakpoints_set)
1413 (thread_has_single_step_breakpoint_here): New functions.
1414 (clear_thread_inferior_resources): Also delete the thread's
1415 single-step breakpoints.
1416
1417 2014-10-15 Pedro Alves <palves@redhat.com>
1418
1419 * thread.c (delete_thread_breakpoint): New function.
1420 (delete_step_resume_breakpoint)
1421 (delete_exception_resume_breakpoint): Use it.
1422 (delete_at_next_stop): New function.
1423 (clear_thread_inferior_resources): Use delete_at_next_stop.
1424
1425 2014-10-15 Pedro Alves <palves@redhat.com>
1426
1427 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1428 (breakpoint_inserted_here_p): ... here. Remove special case for
1429 software single-step breakpoints.
1430 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1431 (software_breakpoint_inserted_here_p): ... here. Remove special
1432 case for software single-step breakpoints.
1433 (bp_target_info_copy_insertion_state)
1434 (deprecated_insert_raw_breakpoint)
1435 (deprecated_remove_raw_breakpoint): Delete functions.
1436 * breakpoint.h (deprecated_insert_raw_breakpoint)
1437 (deprecated_remove_raw_breakpoint): Remove declarations.
1438
1439 2014-10-15 Pedro Alves <palves@redhat.com>
1440
1441 PR breakpoints/9649
1442 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1443 Delete array globals.
1444 (single_step_breakpoints): New global.
1445 (breakpoint_xfer_memory): Remove special handling for single-step
1446 breakpoints.
1447 (update_breakpoints_after_exec): Delete bp_single_step
1448 breakpoints.
1449 (detach_breakpoints): Remove special handling for single-step
1450 breakpoints.
1451 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1452 (bpstat_stop_status): Add comment.
1453 (bpstat_what, bptype_string, print_one_breakpoint_location)
1454 (adjust_breakpoint_address, init_bp_location): Handle
1455 bp_single_step.
1456 (new_single_step_breakpoint): New function.
1457 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1458 handling for single-step breakpoints.
1459 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1460 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1461 Rewrite.
1462 (detach_single_step_breakpoints, find_single_step_breakpoint):
1463 Delete functions.
1464 (breakpoint_has_location_inserted_here): New function.
1465 (single_step_breakpoint_inserted_here_p): Rewrite.
1466 * breakpoint.h: Remove FIXME.
1467 (enum bptype) <bp_single_step>: New enum value.
1468 (insert_single_step_breakpoint): Update comment.
1469 * infrun.c (resume_cleanups)
1470 (delete_step_thread_step_resume_breakpoint): Remove single-step
1471 breakpoints.
1472 (fetch_inferior_event): Install a cleanup that removes infrun
1473 breakpoints.
1474 (switch_back_to_stepped_thread) <expect thread advanced also>:
1475 Clear step-over info.
1476
1477 2014-10-15 Pedro Alves <palves@redhat.com>
1478
1479 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1480 (delete_thread_infrun_breakpoints): New function, with parts
1481 salvaged from delete_step_resume_breakpoint_callback.
1482 (delete_step_thread_step_resume_breakpoint): Delete.
1483 (for_each_just_stopped_thread_callback_func): New typedef.
1484 (for_each_just_stopped_thread): New function.
1485 (delete_just_stopped_threads_infrun_breakpoints): New function.
1486 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1487 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1488 ... this. Adjust.
1489 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1490
1491 2014-10-15 Pedro Alves <palves@redhat.com>
1492
1493 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1494 trying to step past a non-steppable watchpoint.
1495 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1496 field.
1497 * infrun.c (struct step_over_info): Add new field
1498 'nonsteppable_watchpoint_p' and adjust comments.
1499 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1500 Adjust.
1501 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1502 (stepping_past_nonsteppable_watchpoint): New function.
1503 (step_over_info_valid_p): Also return true if stepping past a
1504 nonsteppable watchpoint.
1505 (proceed): Adjust call to set_step_over_info. Remove reference to
1506 init_infwait_state.
1507 (init_wait_for_inferior): Remove reference to init_infwait_state.
1508 (waiton_ptid): Delete global.
1509 (struct execution_control_state)
1510 <stepped_after_stopped_by_watchpoint>: Delete field.
1511 (wait_for_inferior, fetch_inferior_event): Always pass
1512 minus_one_ptid to target_wait.
1513 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1514 field.
1515 (init_infwait_state): Delete function.
1516 (handle_inferior_event): Remove infwait_state handling.
1517 (handle_signal_stop) <watchpoints handling>: Adjust after
1518 stepped_after_stopped_by_watchpoint removal. Don't remove
1519 breakpoints here nor set infwait_state. Set the thread's
1520 stepping_over_watchpoint flag, and call keep_going instead.
1521 (keep_going): Handle stepping_over_watchpoint. Adjust
1522 set_step_over_info calls.
1523 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1524 function.
1525
1526 2014-10-15 Pedro Alves <palves@redhat.com>
1527
1528 * infrun.c (step_over_info_valid_p): New function.
1529 (resume): Use step_over_info_valid_p instead of checking the
1530 threads's trap_expected flag.
1531
1532 2014-10-15 Doug Evans <dje@google.com>
1533 Walfred Tedeschi <walfred.tedeschi@intel.com>
1534
1535 PR python/17364
1536 * python/lib/gdb/__init__.py (packages): Add "printer".
1537 * python/lib/gdb/command/bound_registers.py: Moved to ...
1538 * python/lib/gdb/printer/bound_registers.py: ... here.
1539 Add printer to global set of builtin printers. Rename printer from
1540 "bound" to "mpx_bound128".
1541 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1542 registered as global "builtin" printer.
1543 (add_builtin_pretty_printer): New function.
1544 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1545 gdb/printer/__init__.py.
1546
1547 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1548
1549 * Makefile.in (SFILES): Remove d-support.c.
1550 (COMMON_OBS): Remove d-support.o.
1551 * d-lang.h (d_parse_symbol): Remove declaration.
1552 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1553 * d-support.c: Remove file.
1554
1555 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1556
1557 * gdb/infrun.c (process_event_stop_test): Apply
1558 gdbarch_addr_bits_remove to longjmp resume address.
1559
1560 2014-10-15 Pedro Alves <palves@redhat.com>
1561
1562 * regformats/microblaze.dat: Delete file.
1563
1564 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1565
1566 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1567 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1568
1569 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1570
1571 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1572 as non-trivial.
1573
1574 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1575
1576 PR c++/13403
1577 PR c++/15154
1578 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1579 with qualified args.
1580
1581 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1582
1583 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1584 of the case where the second operand is a pointer.
1585 <BINOP_SUB>: Likewise.
1586
1587 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1588
1589 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1590 only if it is not NULL.
1591 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1592 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1593 (struct probe_ops) <clear_semaphore>: Likewise.
1594 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1595 not NULL.
1596 (stop_tracing): Likewise, for clear_semaphore.
1597
1598 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1599
1600 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1601 using language_c, instead of current_language.
1602
1603 2014-10-13 Doug Evans <dje@google.com>
1604
1605 * python/py-objfile.c (objfpy_initialize): New function.
1606 (objfpy_new, objfile_to_objfile_object): Call it.
1607 * python/py-progspace.c (pspy_initialize): New function.
1608 (pspy_new, pspace_to_pspace_object): Call it.
1609
1610 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1611 Jan Kratochvil <jan.kratochvil@redhat.com>
1612
1613 Fix "save breakpoints" for "catch" command.
1614 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1615 newline.
1616
1617 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1618
1619 Fix "save breakpoints" for "disable $bpnum" command.
1620 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1621
1622 2014-10-10 Pedro Alves <palves@redhat.com>
1623
1624 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1625 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1626 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1627 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1628 and been removed.
1629 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1630 * configure.ac: Remove references to IRIX.
1631 * configure.host: Add *-*-irix* to the obsolete hosts section.
1632 Remove all other references to irix.
1633 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1634 Delete files.
1635
1636 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1637
1638 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1639 isn't valid, release the tdesc arch data and return NULL.
1640
1641 2014-10-10 Pedro Alves <palves@redhat.com>
1642
1643 * linux-tdep.c: Include observer.h.
1644 (linux_inferior_data): New global.
1645 (struct linux_info): New structure.
1646 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1647 (get_linux_inferior_data): New functions.
1648 (linux_vsyscall_range): Rename to ...
1649 (linux_vsyscall_range_raw): ... this.
1650 (linux_vsyscall_range): New function; handles caching.
1651 (_initialize_linux_tdep): Register linux_inferior_data. Install
1652 inferior_exit and inferior_appeared observers.
1653
1654 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1655 Pedro Alves <palves@redhat.com>
1656
1657 PR symtab/14466
1658 * solib-svr4.c (svr4_read_so_list): Rename to ...
1659 (svr4_current_sos_1): ... this and change the function comment.
1660 (svr4_current_sos): New function.
1661
1662 2014-10-10 Pedro Alves <palves@redhat.com>
1663
1664 * arch-utils.c (default_vsyscall_range): New function.
1665 * arch-utils.h (default_vsyscall_range): New declaration.
1666 * gdbarch.sh (vsyscall_range): New hook.
1667 * gdbarch.h, gdbarch.c: Regenerate.
1668 * linux-tdep.c (linux_vsyscall_range): New function.
1669 (linux_init_abi): Install linux_vsyscall_range as
1670 vsyscall_range gdbarch hook.
1671 * memrange.c (address_in_mem_range): New function.
1672 * memrange.h (address_in_mem_range): New declaration.
1673 * symfile-mem.c (find_vdso_size): Delete function.
1674 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1675
1676 2014-10-10 Pedro Alves <palves@redhat.com>
1677
1678 * infrun.c (normal_stop): Fix typo in comment.
1679
1680 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1681
1682 PR tdep/9390
1683 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1684 typo when using logical AND to determine instruction type.
1685
1686 2014-10-09 Yao Qi <yao@codesourcery.com>
1687
1688 * infrun.c (handle_signal_stop): Remove local variable
1689 'printed'.
1690
1691 2014-10-08 Stan Shebs <stan@codesourcery.com>
1692
1693 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1694
1695 2014-10-08 Gary Benson <gbenson@redhat.com>
1696
1697 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1698
1699 2014-10-08 Gary Benson <gbenson@redhat.com>
1700
1701 * common/common-defs.h: Include common-exceptions.h.
1702 * exceptions.h: Do not include common-exceptions.h.
1703
1704 2014-10-08 Gary Benson <gbenson@redhat.com>
1705
1706 * common/common-defs.h: Include cleanups.h.
1707 * common/common-exceptions.c: Do not include cleanups.h.
1708 * utils.h: Likewise.
1709
1710 2014-10-08 Gary Benson <gbenson@redhat.com>
1711
1712 * ada-lang.c: Do not include exceptions.h.
1713 * ada-valprint.c: Likewise.
1714 * amd64-tdep.c: Likewise.
1715 * auto-load.c: Likewise.
1716 * block.c: Likewise.
1717 * break-catch-throw.c: Likewise.
1718 * breakpoint.c: Likewise.
1719 * btrace.c: Likewise.
1720 * c-lang.c: Likewise.
1721 * cli/cli-cmds.c: Likewise.
1722 * cli/cli-interp.c: Likewise.
1723 * cli/cli-script.c: Likewise.
1724 * completer.c: Likewise.
1725 * corefile.c: Likewise.
1726 * corelow.c: Likewise.
1727 * cp-abi.c: Likewise.
1728 * cp-support.c: Likewise.
1729 * cp-valprint.c: Likewise.
1730 * darwin-nat.c: Likewise.
1731 * dwarf2-frame-tailcall.c: Likewise.
1732 * dwarf2-frame.c: Likewise.
1733 * dwarf2loc.c: Likewise.
1734 * dwarf2read.c: Likewise.
1735 * eval.c: Likewise.
1736 * event-loop.c: Likewise.
1737 * event-top.c: Likewise.
1738 * f-valprint.c: Likewise.
1739 * frame-unwind.c: Likewise.
1740 * frame.c: Likewise.
1741 * gdbtypes.c: Likewise.
1742 * gnu-v2-abi.c: Likewise.
1743 * gnu-v3-abi.c: Likewise.
1744 * guile/scm-auto-load.c: Likewise.
1745 * guile/scm-breakpoint.c: Likewise.
1746 * guile/scm-cmd.c: Likewise.
1747 * guile/scm-frame.c: Likewise.
1748 * guile/scm-lazy-string.c: Likewise.
1749 * guile/scm-param.c: Likewise.
1750 * guile/scm-symbol.c: Likewise.
1751 * guile/scm-type.c: Likewise.
1752 * hppa-hpux-tdep.c: Likewise.
1753 * i386-tdep.c: Likewise.
1754 * inf-loop.c: Likewise.
1755 * infcall.c: Likewise.
1756 * infcmd.c: Likewise.
1757 * infrun.c: Likewise.
1758 * interps.c: Likewise.
1759 * interps.h: Likewise.
1760 * jit.c: Likewise.
1761 * linespec.c: Likewise.
1762 * linux-nat.c: Likewise.
1763 * linux-thread-db.c: Likewise.
1764 * m32r-rom.c: Likewise.
1765 * main.c: Likewise.
1766 * memory-map.c: Likewise.
1767 * mi/mi-cmd-break.c: Likewise.
1768 * mi/mi-cmd-stack.c: Likewise.
1769 * mi/mi-interp.c: Likewise.
1770 * mi/mi-main.c: Likewise.
1771 * monitor.c: Likewise.
1772 * nto-procfs.c: Likewise.
1773 * objc-lang.c: Likewise.
1774 * p-valprint.c: Likewise.
1775 * parse.c: Likewise.
1776 * ppc-linux-tdep.c: Likewise.
1777 * printcmd.c: Likewise.
1778 * probe.c: Likewise.
1779 * python/py-auto-load.c: Likewise.
1780 * python/py-breakpoint.c: Likewise.
1781 * python/py-cmd.c: Likewise.
1782 * python/py-finishbreakpoint.c: Likewise.
1783 * python/py-frame.c: Likewise.
1784 * python/py-framefilter.c: Likewise.
1785 * python/py-function.c: Likewise.
1786 * python/py-gdb-readline.c: Likewise.
1787 * python/py-inferior.c: Likewise.
1788 * python/py-infthread.c: Likewise.
1789 * python/py-lazy-string.c: Likewise.
1790 * python/py-linetable.c: Likewise.
1791 * python/py-param.c: Likewise.
1792 * python/py-prettyprint.c: Likewise.
1793 * python/py-symbol.c: Likewise.
1794 * python/py-type.c: Likewise.
1795 * python/py-value.c: Likewise.
1796 * python/python-internal.h: Likewise.
1797 * python/python.c: Likewise.
1798 * record-btrace.c: Likewise.
1799 * record-full.c: Likewise.
1800 * regcache.c: Likewise.
1801 * remote-fileio.c: Likewise.
1802 * remote-mips.c: Likewise.
1803 * remote.c: Likewise.
1804 * rs6000-aix-tdep.c: Likewise.
1805 * rs6000-nat.c: Likewise.
1806 * skip.c: Likewise.
1807 * solib-darwin.c: Likewise.
1808 * solib-dsbt.c: Likewise.
1809 * solib-frv.c: Likewise.
1810 * solib-ia64-hpux.c: Likewise.
1811 * solib-spu.c: Likewise.
1812 * solib-svr4.c: Likewise.
1813 * solib.c: Likewise.
1814 * spu-tdep.c: Likewise.
1815 * stack.c: Likewise.
1816 * stap-probe.c: Likewise.
1817 * symfile-mem.c: Likewise.
1818 * symmisc.c: Likewise.
1819 * target.c: Likewise.
1820 * thread.c: Likewise.
1821 * top.c: Likewise.
1822 * tracepoint.c: Likewise.
1823 * tui/tui-interp.c: Likewise.
1824 * typeprint.c: Likewise.
1825 * utils.c: Likewise.
1826 * valarith.c: Likewise.
1827 * valops.c: Likewise.
1828 * valprint.c: Likewise.
1829 * value.c: Likewise.
1830 * varobj.c: Likewise.
1831 * windows-nat.c: Likewise.
1832 * xml-support.c: Likewise.
1833
1834 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1835
1836 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1837 name implies.
1838 (extended_mips16_next_pc): Update accordingly.
1839
1840 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1841
1842 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1843 function.
1844 (micromips_instruction_is_compact_branch): Likewise.
1845 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1846 or a compact jump, reaching a jump delay slot, or seeing a
1847 second non-prologue instruction.
1848 (micromips_scan_prologue): Also terminate scanning upon seeing a
1849 compact branch or jump, or reaching a branch or jump delay slot.
1850 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1851 or jump delay slot, or seeing a second non-prologue instruction.
1852 (mips32_instruction_has_delay_slot): Retain instruction
1853 examination code only, update arguments accordingly and move
1854 instruction fetch pieces to...
1855 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1856 (micromips_instruction_has_delay_slot): Likewise and to...
1857 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1858 (mips16_instruction_has_delay_slot): Likewise and to...
1859 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1860 (mips_single_step_through_delay): Update accordingly.
1861 (mips_adjust_breakpoint_address): Likewise.
1862
1863 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1864
1865 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1866 !mustbe32 also return 1 for 32-bit instructions.
1867 (mips16_instruction_has_delay_slot): Likewise. Add an
1868 explanatory comment.
1869
1870 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1871
1872 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1873 symbols special.
1874
1875 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1876
1877 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1878 update comments.
1879 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1880 for the breakpoint's address. Don't preinitialize `placed_size'.
1881 (insert_bp_location): Set `reqstd_address' rather than
1882 `placed_address'.
1883 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1884 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1885 address.
1886 (bkpt_remove_location): Likewise.
1887 (deprecated_insert_raw_breakpoint): Likewise.
1888 (deprecated_remove_raw_breakpoint): Likewise.
1889 (find_single_step_breakpoint): Likewise.
1890 * mem-break.c (default_memory_insert_breakpoint): Use
1891 `reqstd_address' for the breakpoint's address. Don't set
1892 `placed_address' or `placed_size' if breakpoint contents couldn't
1893 have been determined.
1894 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1895 the breakpoint's address.
1896 (remote_insert_hw_breakpoint): Likewise. Don't set
1897 `placed_address' or `placed_size' if breakpoint couldn't have been
1898 set.
1899 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1900 `reqstd_address' for the breakpoint's address.
1901 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1902 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1903 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1904 * microblaze-linux-tdep.c
1905 (microblaze_linux_memory_remove_breakpoint): Likewise.
1906 * monitor.c (monitor_insert_breakpoint): Likewise.
1907 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1908 (procfs_insert_hw_breakpoint): Likewise.
1909 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1910 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1911 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1912 * remote-mips.c (mips_insert_breakpoint): Likewise.
1913 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1914
1915 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1916
1917 * valops.c (value_assign): Check for bit field assignments
1918 before calling architecture-specific register value
1919 conversion functions.
1920
1921 2014-10-03 Pierre Muller <muller@sourceware.org>
1922
1923 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1924
1925 2014-10-02 Pedro Alves <palves@redhat.com>
1926
1927 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1928 threads_are_executing.
1929 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1930 describing comment.
1931 * gdbthread.h (threads_are_executing): Declare.
1932 (handle_signal_stop) <random signals>: Don't print about the
1933 signal here if stopping.
1934 (end_stepping_range): Don't notify observers here.
1935 (normal_stop): Update the thread list. If stopped by a random
1936 signal or a stepping range ended, notify observers.
1937 * thread.c (threads_executing): New global.
1938 (init_thread_list): Clear 'threads_executing'.
1939 (set_executing): Set or clear 'threads_executing'.
1940 (threads_are_executing): New function.
1941 (update_threads_executing): New function.
1942 (update_thread_list): Use it.
1943
1944 2014-10-02 Pedro Alves <palves@redhat.com>
1945
1946 PR breakpoints/17431
1947 * breakpoint.c (update_breakpoints_after_exec): Don't create
1948 overlay, longjmp, std terminate nor exception breakpoints here.
1949
1950 2014-10-02 Pedro Alves <palves@redhat.com>
1951
1952 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1953 Adjust comments.
1954 * inferior.c (find_inferior_for_program_space): Give preference to
1955 the current inferior.
1956 * inferior.h (find_inferior_for_program_space): Update comment.
1957 * progspace.c (switch_to_program_space_and_thread): Prefer the
1958 current inferior if it's bound to the program space requested. If
1959 the inferior found doesn't have a PID yet, don't bother looking up
1960 a thread.
1961 * progspace.h (switch_to_program_space_and_thread): Adjust
1962 comment.
1963 * thread.c (any_thread_of_process, any_live_thread_of_process):
1964 Give preference to the current thread.
1965
1966 2014-10-01 Pedro Alves <palves@redhat.com>
1967
1968 * breakpoint.c (insert_bp_location): Error out if inserting a
1969 software breakpoint at a read-only address.
1970 * target.c (memory_xfer_check_region): New function, factored out
1971 from ...
1972 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1973 ULONGEST.
1974 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1975 against the memory region attributes.
1976
1977 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1978
1979 * NEWS: Announce new exit-code field in -list-thread-groups
1980 output.
1981 * inferior.c (exit_inferior_1): Don't clear exit code.
1982 (inferior_appeared): Clear exit code.
1983 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1984 code.
1985
1986 2014-10-01 Pedro Alves <palves@redhat.com>
1987
1988 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1989 GENERATED" along with emacs/vi read-only markers.
1990 * regformats/aarch64.dat: Regenerate.
1991 * regformats/arm-with-iwmmxt.dat: Regenerate.
1992 * regformats/arm-with-neon.dat: Regenerate.
1993 * regformats/arm-with-vfpv2.dat: Regenerate.
1994 * regformats/arm-with-vfpv3.dat: Regenerate.
1995 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1996 * regformats/i386/amd64-avx.dat: Regenerate.
1997 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1998 * regformats/i386/amd64-avx512.dat: Regenerate.
1999 * regformats/i386/amd64-linux.dat: Regenerate.
2000 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2001 * regformats/i386/amd64-mpx.dat: Regenerate.
2002 * regformats/i386/amd64.dat: Regenerate.
2003 * regformats/i386/i386-avx-linux.dat: Regenerate.
2004 * regformats/i386/i386-avx.dat: Regenerate.
2005 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2006 * regformats/i386/i386-avx512.dat: Regenerate.
2007 * regformats/i386/i386-linux.dat: Regenerate.
2008 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2009 * regformats/i386/i386-mmx.dat: Regenerate.
2010 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2011 * regformats/i386/i386-mpx.dat: Regenerate.
2012 * regformats/i386/i386.dat: Regenerate.
2013 * regformats/i386/x32-avx-linux.dat: Regenerate.
2014 * regformats/i386/x32-avx.dat: Regenerate.
2015 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2016 * regformats/i386/x32-avx512.dat: Regenerate.
2017 * regformats/i386/x32-linux.dat: Regenerate.
2018 * regformats/i386/x32.dat: Regenerate.
2019 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2020 * regformats/mips-dsp-linux.dat: Regenerate.
2021 * regformats/mips-linux.dat: Regenerate.
2022 * regformats/mips64-dsp-linux.dat: Regenerate.
2023 * regformats/mips64-linux.dat: Regenerate.
2024 * regformats/nios2-linux.dat: Regenerate.
2025 * regformats/rs6000/powerpc-32.dat: Regenerate.
2026 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2027 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2028 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2029 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2030 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2031 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2032 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2033 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2034 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2035 * regformats/s390-linux32.dat: Regenerate.
2036 * regformats/s390-linux32v1.dat: Regenerate.
2037 * regformats/s390-linux32v2.dat: Regenerate.
2038 * regformats/s390-linux64.dat: Regenerate.
2039 * regformats/s390-linux64v1.dat: Regenerate.
2040 * regformats/s390-linux64v2.dat: Regenerate.
2041 * regformats/s390-te-linux64.dat: Regenerate.
2042 * regformats/s390x-linux64.dat: Regenerate.
2043 * regformats/s390x-linux64v1.dat: Regenerate.
2044 * regformats/s390x-linux64v2.dat: Regenerate.
2045 * regformats/s390x-te-linux64.dat: Regenerate.
2046 * regformats/tic6x-c62x-linux.dat: Regenerate.
2047 * regformats/tic6x-c62x.dat: Regenerate.
2048 * regformats/tic6x-c64x-linux.dat: Regenerate.
2049 * regformats/tic6x-c64x.dat: Regenerate.
2050 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2051 * regformats/tic6x-c64xp.dat: Regenerate.
2052
2053 2014-10-01 Pedro Alves <palves@redhat.com>
2054
2055 * features/Makefile: Update comments.
2056 (XMLTOC): List all xml files we build C files from.
2057 (clean-cfiles): New rule.
2058
2059 2014-10-01 Pedro Alves <palves@redhat.com>
2060
2061 * features/i386/amd64-avx512-linux.c: Regenerate.
2062 * features/i386/amd64-avx512.c: Regenerate.
2063 * features/i386/x32-avx512-linux.c: Regenerate.
2064 * features/i386/x32-avx512.c: Regenerate.
2065
2066 2014-10-01 Pedro Alves <palves@redhat.com>
2067
2068 * features/Makefile (WHICH): Remove arm-with-m,
2069 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2070
2071 2014-10-01 Pedro Alves <palves@redhat.com>
2072
2073 * features/Makefile (clean): New rule.
2074
2075 2014-10-01 Pedro Alves <palves@redhat.com>
2076
2077 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2078 (zmm14h): Add missing end quotes.
2079
2080 2014-10-01 Pedro Alves <palves@redhat.com>
2081
2082 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2083 * features/aarch64.c: Regenerate.
2084
2085 2014-09-30 Don Breazeal <donb@codesourcery.com>
2086
2087 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2088 code so as to work with follow_fork_inferior.
2089 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2090 (inf_ttrace_create_inferior): Remove reference to
2091 inf_ttrace_vfork_ppid.
2092 (inf_ttrace_attach): Ditto.
2093 (inf_ttrace_detach): Ditto.
2094 (inf_ttrace_kill): Use current_inferior instead of
2095 inf_ttrace_vfork_ppid.
2096 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2097 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2098 inferior away from the parent.
2099 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2100 target_follow_fork.
2101 (follow_fork_inferior): New function.
2102 (follow_inferior_reset_breakpoints): Make function static.
2103 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2104 * linux-nat.c (linux_child_follow_fork): Move target-independent
2105 code to infrun.c:follow_fork_inferior.
2106
2107 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2108
2109 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2110 * gdbarch.c: Regenerate.
2111 * gdbarch.h: Likewise.
2112 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2113 gdbarch method 'regset_from_core_section'.
2114 (get_core_register_section): Remove handling for the case that
2115 regset == NULL and regset_from_core_section is defined.
2116 (get_core_registers): Drop check for deleted method.
2117 * procfs.c (procfs_do_thread_registers): Adjust comment.
2118
2119 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2120
2121 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2122 (linux_nat_make_corefile_notes): Remove.
2123 (linux_target_install_ops): Do not set target method
2124 'make_corefile_notes'.
2125 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2126 Remove field.
2127 (linux_corefile_thread_callback): Instead of args->collect, call
2128 linux_collect_thread_registers.
2129 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2130 NULL unless there is a regset iterator.
2131 (linux_make_corefile_notes_1): Remove.
2132 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2133 by linux_make_corefile_notes.
2134 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2135
2136 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2137
2138 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2139 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2140 Remove.
2141 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2142
2143 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2144
2145 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2146 (xtensa_iterate_over_regset_sections): New.
2147 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2148
2149 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2150
2151 * vax-tdep.c (vax_regset_from_core_section): Remove.
2152 (vax_iterate_over_regset_sections): New.
2153 (vax_gdbarch_init): Adjust gdbarch initialization.
2154
2155 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2156
2157 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2158 (tilegx_regset_from_core_section): Remove.
2159 (tilegx_iterate_over_regset_sections): New.
2160 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2161
2162 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163
2164 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2165 (sparc_iterate_over_regset_sections): New.
2166 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2167 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2168 targets.
2169 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2170 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2171 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2172 target method 'make_corefile_notes'.
2173
2174 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2175
2176 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2177 'sizeof_gregset' and 'sizeof_fpregset'.
2178 * sh-tdep.c (sh_regset_from_core_section): Remove.
2179 (sh_iterate_over_regset_sections): New.
2180 (sh_gdbarch_init): Adjust gdbarch initialization.
2181 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2182 sizeof_fpregset.
2183 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2184 'sizeof_gregset'.
2185
2186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2187
2188 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2189 (score7_linux_iterate_over_regset_sections): New.
2190 (score_gdbarch_init): Adjust gdbarch initialization.
2191
2192 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2193
2194 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2195 FreeBSD targets.
2196 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2197 method 'make_corefile_notes'.
2198 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2199 (ppcfbsd_regset_from_core_section): Remove.
2200 (ppcfbsd_iterate_over_regset_sections): New.
2201 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2202 initialization.
2203 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2204 (ppcnbsd_iterate_over_regset_sections): New.
2205 (ppcnbsd_init_abi): Adjust.
2206 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2207 (ppcobsd_iterate_over_regset_sections): New.
2208 (ppcobsd_init_abi): Adjust.
2209 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2210 (rs6000_aix_iterate_over_regset_sections): New.
2211 (rs6000_aix_init_osabi): Adjust.
2212
2213 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2214
2215 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2216 (nios2_regset_from_core_section): Remove.
2217 (nios2_iterate_over_regset_sections): New.
2218 (nios2_linux_init_abi): Adjust gdbarch initialization.
2219
2220 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2221
2222 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2223 (am33_iterate_over_regset_sections): New.
2224 (am33_linux_init_osabi): Adjust gdbarch initialization.
2225
2226 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2227
2228 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2229 (mips_linux_iterate_over_regset_sections): New.
2230 (mips_linux_init_abi): Adjust gdbarch initialization.
2231 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2232 (mips64obsd_iterate_over_regset_sections): New.
2233 (mips64obsd_init_abi): Adjust.
2234 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2235 (mipsnbsd_iterate_over_regset_sections): New.
2236 (mipsnbsd_init_abi): Adjust.
2237
2238 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2239
2240 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2241 (m88k_iterate_over_regset_sections): New.
2242 (m88k_gdbarch_init): Adjust gdbarch initialization.
2243
2244 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2245
2246 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2247 (ia64_linux_iterate_over_regset_sections): New.
2248 (ia64_linux_init_abi): Adjust gdbarch initialization.
2249
2250 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2251
2252 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2253 (m68kbsd_iterate_over_regset_sections): New.
2254 (m68kbsd_init_abi): Adjust gdbarch initialization.
2255 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2256 (m68k_linux_iterate_over_regset_sections): New.
2257 (m68k_linux_init_abi): Adjust gdbarch initialization.
2258
2259 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2260
2261 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2262 (m32r_linux_regset_from_core_section): Remove.
2263 (m32r_linux_iterate_over_regset_sections): New.
2264 (m32r_linux_init_abi): Adjust gdbarch initialization.
2265
2266 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2267
2268 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2269 (amd64obsd_iterate_over_regset_sections): New.
2270 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2271 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2272 Remove.
2273 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2274 regset_from_core_section initialization.
2275 * i386-tdep.c (i386_regset_from_core_section): Remove.
2276 (i386_iterate_over_regset_sections): New.
2277 (i386_gdbarch_init): Adjust gdbarch initialization.
2278 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2279 (i386_iterate_over_regset_sections): New prototype.
2280 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2281 Remove.
2282 (i386obsd_aout_iterate_over_regset_sections): New.
2283 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2284 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2285 targets.
2286 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2287 (amd64fbsd_init_abi): Call fbsd_init_abi.
2288 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2289 (i386fbsd4_init_abi): Call fbsd_init_abi.
2290 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2291 target method 'make_corefile_notes'.
2292 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2293
2294 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2295
2296 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2297 (hppa_hpux_iterate_over_regset_sections): New.
2298 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2299 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2300 (hppa_linux_iterate_over_regset_sections): New.
2301 (hppa_linux_init_abi): Adjust.
2302 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2303 (hppanbsd_iterate_over_regset_sections): New.
2304 (hppanbsd_init_abi): Adjust.
2305 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2306 (hppaobsd_iterate_over_regset_sections): New.
2307 (hppaobsd_init_abi): Adjust.
2308
2309 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2310
2311 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2312 (frv_linux_iterate_over_regset_sections): New.
2313 (frv_linux_init_abi): Adjust gdbarch initialization.
2314
2315 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2316
2317 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2318 (armbsd_iterate_over_regset_sections): New prototype.
2319 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2320 (armbsd_iterate_over_regset_sections): New.
2321 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2322 initialization.
2323
2324 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2325
2326 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2327 (alpha_linux_iterate_over_regset_sections): New.
2328 (alpha_linux_init_abi): Adjust gdbarch initialization.
2329 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2330 prototype.
2331 (alphanbsd_iterate_over_regset_sections): New prototype.
2332
2333 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2334
2335 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2336 Remove.
2337 (aarch64_linux_iterate_over_regset_sections): New.
2338 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2339
2340 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2341
2342 * fbsd-tdep.c: New file.
2343 * fbsd-tdep.h: New file.
2344 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2345 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2346 (ALLDEPFILES): Add fbsd-tdep.c.
2347
2348 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2349
2350 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2351 parameter.
2352 * gdbarch.h: Regenerate.
2353 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2354 iterator.
2355 (get_core_register_section): Add parameter 'regset' and use it, if
2356 set. Add parameter 'min_size' and verify the bfd section size
2357 against it.
2358 (get_core_registers_cb): Add parameter 'regset' and pass it to
2359 get_core_register section. For the "standard" register sections
2360 ".reg" and ".reg2", set an appropriate default for human_name.
2361 (get_core_registers): Don't abort when the gdbarch has an iterator
2362 but no regset_from_core_section. Add NULL/0 for parameters
2363 'regset'/'min_size' in calls to get_core_register_section.
2364 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2365 'regset' and use it instead of calling the
2366 regset_from_core_section gdbarch method.
2367 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2368 * i386-tdep.c (i386_supply_xstateregset)
2369 (i386_collect_xstateregset, i386_xstateregset): Moved to
2370 i386-linux-tdep.c.
2371 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2372 .reg-xstate.
2373 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2374 core file support only if the regset iterator hasn't been set.
2375 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2376 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2377 Moved from i386-tdep.c and renamed to *_linux*.
2378 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2379 each callback invocation. Allow any .reg-xstate size when reading
2380 from a core file.
2381 * amd64-tdep.c (amd64_supply_xstateregset)
2382 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2383 amd64-linux-tdep.c.
2384 (amd64_regset_from_core_section): Remove.
2385 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2386 install an amd64-specific regset_from_core_section gdbarch method.
2387 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2388 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2389 Moved from amd64-tdep.c and renamed to *_linux*.
2390 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2391 to each callback invocation. Allow any .reg-xstate size when
2392 reading from a core file.
2393 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2394 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2395 each callback invocation.
2396 (arm_linux_init_abi): No longer set the regset_from_core_section
2397 gdbarch method.
2398 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2399 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2400 each callback invocation.
2401 (ppc_linux_init_abi): No longer set the regset_from_core_section
2402 gdbarch method.
2403 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2404 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2405 (s390_regset_from_core_section): Remove.
2406 (s390_iterate_over_regset_sections): Add regset parameter to each
2407 callback invocation.
2408 (s390_gdbarch_init): No longer set the regset_from_core_section
2409 gdbarch method. Drop initialization of deleted tdep fields.
2410
2411 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2412
2413 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2414 (amd64_linux_iterate_over_regset_sections): New.
2415 (amd64_linux_init_abi_common): Don't install the regset section
2416 list, but the new iterator in gdbarch.
2417 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2418 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2419 (arm_linux_iterate_over_regset_sections): ...here. New function.
2420 (arm_linux_init_abi): Set iterator instead of section list.
2421 * corelow.c (get_core_registers_cb): New function, logic moved
2422 from...
2423 (get_core_registers): ...loop body here. Use new iterator method
2424 instead of walking through the regset section list.
2425 * gdbarch.sh: Remove 'core_regset_sections'. New method
2426 'iterate_over_regset_sections'. New typedef
2427 'iterate_over_regset_sections_cb'.
2428 * gdbarch.c: Regenerate.
2429 * gdbarch.h: Likewise.
2430 * i386-linux-tdep.c (i386_linux_regset_sections)
2431 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2432 Remove.
2433 (i386_linux_iterate_over_regset_sections): New.
2434 (i386_linux_init_abi): Don't choose a regset section list, but
2435 install new iterator in gdbarch.
2436 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2437 (linux_collect_regset_section_cb): New function, logic moved
2438 from...
2439 (linux_collect_thread_registers): ...loop body here. Use iterator
2440 method instead of walking through list.
2441 (linux_make_corefile_notes_1): Check for presence of iterator
2442 method instead of regset section list.
2443 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2444 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2445 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2446 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2447 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2448 (ppc_linux_init_abi): Don't choose from above regset section
2449 lists, but install new iterator in gdbarch.
2450 * regset.h (struct core_regset_section): Remove.
2451 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2452 have_linux_v1, have_linux_v2, and have_tdb.
2453 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2454 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2455 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2456 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2457 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2458 (s390_iterate_over_regset_sections): ...here. New function. Use
2459 new tdep fields.
2460 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2461 regset section lists, but install new iterator.
2462
2463 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2464
2465 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2466
2467 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2468
2469 * progspace.c (print_program_space): Don't prune program spaces
2470 before printing them.
2471
2472 2014-09-25 Pedro Alves <palves@redhat.com>
2473
2474 * infrun.c (user_visible_resume_ptid): Don't check
2475 singlestep_breakpoints_inserted_p.
2476
2477 2014-09-25 Pedro Alves <palves@redhat.com>
2478
2479 * breakpoint.c (should_be_inserted): Add debug output.
2480
2481 2014-09-25 Pedro Alves <palves@redhat.com>
2482
2483 * infrun.c (stepping_past_instruction_at)
2484 (clear_exit_convenience_vars): Point at infrun.h instead of
2485 inferior.h.
2486 (handle_signal_stop): Fix typo.
2487
2488 2014-09-24 Yao Qi <yao@codesourcery.com>
2489
2490 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2491 bitmask.
2492
2493 2014-09-22 Gary Benson <gbenson@redhat.com>
2494
2495 * target.c (target_stop): Updated comment.
2496
2497 2014-09-22 Gary Benson <gbenson@redhat.com>
2498
2499 * target/target.h (target_stop_ptid): Renamed as...
2500 (target_stop_and_wait): New function. Updated comment.
2501 All uses updated.
2502 (target_continue_ptid): Renamed as...
2503 (target_continue_no_signal): New function. Updated comment.
2504 All uses updated.
2505
2506 2014-09-22 Pedro Alves <palves@redhat.com>
2507
2508 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2509 and "auto" merged.
2510 * breakpoint.c (enum ugll_insert_mode): New enum.
2511 (always_inserted_mode): Now a plain boolean.
2512 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2513 (breakpoints_always_inserted_mode): Delete.
2514 (breakpoints_should_be_inserted_now): New function.
2515 (insert_breakpoints): Pass UGLL_INSERT to
2516 update_global_location_list instead of calling
2517 insert_breakpoint_locations manually.
2518 (create_solib_event_breakpoint_1): New, factored out from ...
2519 (create_solib_event_breakpoint): ... this.
2520 (create_and_insert_solib_event_breakpoint): Use
2521 create_solib_event_breakpoint_1 instead of calling
2522 insert_breakpoint_locations manually.
2523 (update_global_location_list): Change parameter type from boolean
2524 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2525 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2526 (update_global_location_list_nothrow): Change parameter type from
2527 boolean to enum ugll_insert_mode.
2528 (_initialize_breakpoint): "breakpoint always-inserted" option is
2529 now a boolean command. Update help text.
2530 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2531 (breakpoints_should_be_inserted_now): New declaration.
2532 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2533 Remove breakpoints_always_inserted_mode check.
2534 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2535 * remote.c (remote_start_remote): Likewise.
2536
2537 2014-09-22 Pedro Alves <palves@redhat.com>
2538
2539 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2540 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2541 Instead, pass UGLL_INSERT to update_global_location_list.
2542 (update_global_location_list): Change parameter type from boolean
2543 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2544 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2545 (create_solib_event_breakpoint_1): New, factored out from ...
2546 (create_solib_event_breakpoint): ... this.
2547 (create_and_insert_solib_event_breakpoint): Use
2548 create_solib_event_breakpoint_1 instead of calling
2549 insert_breakpoint_locations manually.
2550 (update_global_location_list): Handle UGLL_INSERT.
2551
2552 2014-09-22 Pedro Alves <palves@redhat.com>
2553
2554 * breakpoint.c (enum ugll_insert_mode): New enum.
2555 (update_global_location_list)
2556 (update_global_location_list_nothrow): Change parameter type from
2557 boolean to enum ugll_insert_mode. All callers adjusted.
2558
2559 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2560
2561 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2562 SystemTap support in GDB.
2563
2564 2014-09-19 Don Breazeal <donb@codesourcery.com>
2565
2566 * linux-nat.c (linux_handle_extended_wait): Call
2567 linux_ptrace_get_extended_event.
2568 (wait_lwp): Call linux_is_extended_waitstatus.
2569 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2570 and linux_is_extended_waitstatus.
2571 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2572 linux_ptrace_get_extended_event.
2573 (linux_ptrace_get_extended_event): New function.
2574 (linux_is_extended_waitstatus): New function.
2575 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2576 (linux_is_extended_waitstatus): New declarations.
2577
2578 2014-09-19 Yao Qi <yao@codesourcery.com>
2579
2580 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2581 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2582 comments. Callers update.
2583 (dwarf_decode_lines): Likewise.
2584 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2585 comments. Skip the line table if 'lowpc' is greater than
2586 'address'. Don't check
2587 dwarf2_per_objfile->has_section_at_zero.
2588
2589 2014-09-18 Doug Evans <dje@google.com>
2590
2591 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2592 * python/py-symtab.c (stpy_get_producer): New function.
2593 (symtab_object_getset): Add "producer" attribute.
2594
2595 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2596
2597 PR gdb/17384
2598 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2599 (do_captured_read_memory_integer): Remove.
2600 (safe_read_memory_integer): Use target_read_memory directly instead
2601 of catching errors in do_captured_read_memory_integer.
2602
2603 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2604
2605 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2606 not gdb/doc.
2607
2608 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2609
2610 * objc-lang.c (find_implementation_from_class): Remove dead code.
2611
2612 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2613
2614 PR cli/7233
2615 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2616 "fprintf_unfiltered (gdb_stdlog...)".
2617
2618 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2619
2620 PR breakpoints/12526
2621 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2622 val_bitsize.
2623 * breakpoint.c (watch_command_1): Use these fields to retain
2624 bitfield information.
2625 (extract_bitfield_from_watchpoint_value): New function.
2626 (watchpoint_check): Use it.
2627 (update_watchpoint): Use it. Optimize the address and length of a
2628 HW watchpoint pointing to a bitfield.
2629 * value.h (unpack_value_bitfield): New prototype.
2630 * value.c (unpack_value_bitfield): Make extern.
2631
2632 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2633
2634 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2635 x86-dregs.o.
2636 * gnu-nat.c (inf_threads): New function.
2637 * gnu-nat.h (inf_threads_ftype): New typedef.
2638 (inf_threads): New declaration.
2639 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2640 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2641 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2642 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2643 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2644 (i386_gnu_dr_get_control): New functions.
2645 (reg_addr): New structure.
2646 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2647 i386 debugging register hooks.
2648 * NEWS: Mention this.
2649
2650 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2651
2652 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2653 vector data transfer instructions.
2654 (arm_record_coproc_data_proc): Updated.
2655
2656 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2657
2658 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2659 arm_record_exreg_ld_st_insn.
2660 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2661 load/store insns.
2662
2663 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2664
2665 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2666 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2667 processing instructions.
2668
2669 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2670
2671 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2672 for advance SIMD struct ld/st insn.
2673 (thumb2_record_decode_insn_handler): Replace stub handler with
2674 thumb2_record_asimd_struct_ld_st.
2675
2676 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2677
2678 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2679 for asimd, vfp and coprocessor insns.
2680 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2681 and coprocessor insns.
2682 (thumb2_record_coproc_insn): New function.
2683 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2684 handlers.
2685 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2686 opcode 110 insns.
2687
2688 2014-09-13 Doug Evans <xdje42@gmail.com>
2689
2690 * NEWS: Mention new "queue-signal" command.
2691 * infcmd.c (queue_signal_command): New function.
2692 (_initialize_infcmd): Add new queue-signal command.
2693
2694 2014-09-13 Doug Evans <xdje42@gmail.com>
2695
2696 * linux-nat.c (wait_lwp): Add debugging printf.
2697 (linux_nat_wait_1): Ditto.
2698
2699 2014-09-12 Pedro Alves <palves@redhat.com>
2700
2701 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2702 (create_and_insert_solib_event_breakpoint): New functions.
2703 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2704 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2705 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2706 (remove_dbx_link_breakpoint): Delete function.
2707 (insert_dbx_link_bpt_in_file): Use
2708 create_and_insert_solib_event_breakpoint instead of
2709 deprecated_insert_raw_breakpoint.
2710 (procfs_wait): Don't check whether we hit __dbx_link here.
2711 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2712 here.
2713 * solib-irix.c (base_breakpoint): Delete global.
2714 (disable_break): Delete function.
2715 (enable_break): Use create_solib_event_breakpoint
2716 instead of deprecated_insert_raw_breakpoint.
2717 (irix_solib_handle_event): New function.
2718 (irix_solib_create_inferior_hook): Don't run the target or disable
2719 the mapping-complete breakpoint here.
2720 (_initialize_irix_solib): Install irix_solib_handle_event as
2721 so_ops->handle_event hook.
2722
2723 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2724 Ulrich Weigand  <uweigand@de.ibm.com>
2725
2726 PR tdep/17379
2727 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2728 instead of read_memory_unsigned_integer.
2729
2730 2014-09-12 Gary Benson <gbenson@redhat.com>
2731
2732 * nat/linux-waitpid.c: Include common-defs.h.
2733 [GDBSERVER]: Add FIXME comment.
2734 [!GDBSERVER]: Don't include defs.h or signal.h.
2735 (linux_debug) [!GDBSERVER]: Remove empty block.
2736
2737 2014-09-12 Gary Benson <gbenson@redhat.com>
2738
2739 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2740 Don't include defs.h or server.h.
2741
2742 2014-09-12 Gary Benson <gbenson@redhat.com>
2743
2744 * nat/linux-btrace.c: Include common-defs.h.
2745 Don't include defs.h, server.h or gdbthread.h.
2746 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2747
2748 2014-09-12 Gary Benson <gbenson@redhat.com>
2749
2750 * common/agent.c: Include common-defs.h.
2751 Don't include defs.h or server.h.
2752 * common/buffer.c: Likewise.
2753 * common/common-debug.c: Likewise.
2754 * common/common-utils.c: Likewise.
2755 * common/errors.c: Likewise.
2756 * common/filestuff.c: Likewise.
2757 * common/format.c: Likewise.
2758 * common/gdb_vecs.c: Likewise.
2759 * common/print-utils.c: Likewise.
2760 * common/ptid.c: Likewise.
2761 * common/rsp-low.c: Likewise.
2762 * common/signals.c: Likewise.
2763 * common/vec.c: Likewise.
2764 * common/xml-utils.c: Likewise.
2765 * nat/linux-osdata.c: Likewise.
2766 * nat/linux-procfs.c: Likewise.
2767 * nat/linux-ptrace.c: Likewise.
2768 * nat/mips-linux-watch.c: Likewise.
2769 * target/waitstatus.c: Likewise.
2770
2771 2014-09-12 Tom Tromey <tromey@redhat.com>
2772 Gary Benson <gbenson@redhat.com>
2773
2774 * common/common-regcache.h: New file.
2775 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2776 * regcache.h: Include common-regcache.h.
2777 (regcache_read_pc): Don't declare.
2778 * regcache.c (get_thread_regcache_for_ptid): New function.
2779 * nat/linux-btrace.c: Don't include regcache.h.
2780 Include common-regcache.h.
2781 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2782
2783 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2784
2785 * regcache.h (struct regset): Declare.
2786
2787 2014-09-11 Pedro Alves <palves@redhat.com>
2788
2789 PR gdb/17347
2790 * main.c: Include "infrun.h".
2791 (catch_command_errors, catch_command_errors_const): Wait for the
2792 foreground command to complete.
2793 * top.c (maybe_wait_sync_command_done): New function, factored out
2794 from ...
2795 (maybe_wait_sync_command_done): ... here.
2796 * top.h (maybe_wait_sync_command_done): New declaration.
2797
2798 2014-09-11 Tom Tromey <tromey@redhat.com>
2799 Gary Benson <gbenson@redhat.com>
2800
2801 * common/symbol.h: New file.
2802 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2803 * minsyms.c (find_minimal_symbol_address): New function.
2804 * common/agent.c: Include common/symbol.h.
2805 [!GDBSERVER]: Don't include objfiles.h.
2806 (agent_look_up_symbols): Use find_minimal_symbol_address.
2807
2808 2014-09-11 Gary Benson <gbenson@redhat.com>
2809
2810 * target/target.h (target_stop_ptid, target_continue_ptid):
2811 Declare.
2812 * target.c (target_stop_ptid, target_continue_ptid): New
2813 functions.
2814 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2815 (agent_run_command): Always use target_stop_ptid and
2816 target_continue_ptid.
2817
2818 2014-09-11 Tom Tromey <tromey@redhat.com>
2819 Gary Benson <gbenson@redhat.com>
2820
2821 * target/target.h: New file.
2822 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2823 * target.h: Include target/target.h.
2824 (target_read_memory, target_write_memory): Don't declare.
2825 * target.c (target_read_uint32): New function.
2826 * common/agent.c: Include target/target.h.
2827 [!GDBSERVER]: Don't include target.h.
2828 (helper_thread_id): Type changed to uint32_t.
2829 (agent_get_helper_thread_id): Use target_read_uint32.
2830 (agent_run_command): Always use target_read_memory and
2831 target_write_memory.
2832 (agent_capability): Type changed to uint32_t.
2833 (agent_capability_check): Use target_read_uint32.
2834
2835 2014-09-11 Gary Benson <gbenson@redhat.com>
2836
2837 * common/common-debug.h (show_debug_regs): Declare.
2838 * common/common-debug.c (show_debug_regs): Define.
2839 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2840 all uses with show_debug_regs. Replace all uses that considered
2841 debug_hw_points as a multi-value integer with straight boolean
2842 uses.
2843 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2844 with show_debug_regs.
2845 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2846 all uses with show_debug_regs.
2847 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2848 uses with show_debug_regs.
2849
2850 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2851
2852 * findvar.c (address_from_register): Handle targets requiring
2853 a special conversion routine even for plain pointer types.
2854
2855 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2856
2857 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2858 (store_register): Do not call exec_one_dummy_insn.
2859
2860 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2861
2862 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2863 dereference it first. Use value_enclosing_type instead of
2864 value_type.
2865 (ada_array_length): Likewise.
2866
2867 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2868
2869 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2870 Adjust function implementation and documentation accordingly.
2871 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2872 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2873 Update call to ada_value_ptr_subscript.
2874
2875 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2876
2877 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2878 instead of VAL's type.
2879
2880 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2881
2882 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2883
2884 2014-09-09 Doug Evans <xdje42@gmail.com>
2885
2886 PR guile/17367
2887 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2888 last parameter to pkg-config, not first.
2889 * configure.ac: Pass --with-guile provided pkg-config path to
2890 GDB_GUILE_PROGRAM_NAMES.
2891 * configure: Regenerate.
2892
2893 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2894
2895 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2896 Bertazi".
2897
2898 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2899
2900 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2901 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2902 the list of sections determining GDB_OSABI_IRIX.
2903
2904 2014-09-09 James Hogan <james.hogan@imgtec.com>
2905
2906 * MAINTAINERS (Write After Approval): Add "James Hogan".
2907
2908 2014-09-09 James Hogan <james.hogan@imgtec.com>
2909
2910 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2911
2912 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2913
2914 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2915
2916 2014-09-08 Doug Evans <xdje42@gmail.com>
2917
2918 PR 17247
2919 * guile.c: #include <signal.h>.
2920 (_initialize_guile): Block SIGCHLD while initializing Guile.
2921
2922 Replaces the following, which is reverted.
2923
2924 2014-07-26 Doug Evans <xdje42@gmail.com>
2925
2926 PR 17185
2927 * configure.ac: Add check for header gc/gc.h.
2928 Add check for function setenv.
2929 * configure: Regenerate.
2930 * config.in: Regenerate.
2931 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2932
2933 2014-09-08 Doug Evans <xdje42@gmail.com>
2934
2935 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2936 with named constant. Fix style of pointer comparison.
2937 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2938
2939 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2940
2941 PR gdb/17035
2942 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2943 decide whether we display the command on "show user".
2944 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2945 printing command name.
2946 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2947 * cli/cli-decode.c (cli_user_command_p): Create helper function
2948 to verify whether cmd_list_element is a user-defined command.
2949
2950 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2951
2952 PR python/17355
2953 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2954 Fix goto out of TRY_CATCH.
2955
2956 2014-09-06 Doug Evans <xdje42@gmail.com>
2957 Tom Tromey <tromey@redhat.com>
2958
2959 PR 15276
2960 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2961 $_any_caller_matches.
2962 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2963 * python/lib/gdb/function/caller_is.py: New file.
2964
2965 2014-09-06 Doug Evans <xdje42@gmail.com>
2966
2967 * infcmd.c (program_info): Fix typo.
2968
2969 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2970
2971 PR gdb/17235
2972 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2973 'number'. New variable 'has_digit'. Rewrite code to deal with
2974 subexpressions on SDT probes.
2975
2976 2014-09-04 Pedro Alves <palves@redhat.com>
2977
2978 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2979 the input is only one character long.
2980
2981 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2982
2983 PR fortran/17237
2984 * f-valprint.c (f_val_print): Specify the correct print option to
2985 use when printing integer values.
2986
2987 2014-09-04 Gary Benson <gbenson@redhat.com>
2988
2989 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2990 Remove code to cope with LWPs wrapped as PIDs.
2991 Add assertions to ensure no wrapped LWPs are passed.
2992
2993 2014-09-04 Pedro Alves <palves@redhat.com>
2994
2995 * value.c (value_ranges_copy_adjusted): New function, factored out
2996 from ...
2997 (value_contents_copy_raw): ... here.
2998 (unpack_value_bits_as_long_1): Rename back to ...
2999 (unpack_bits_as_long): ... this. Remove 'original_value' and
3000 'result' parameters. Change return type to LONGEST.
3001 (unpack_value_bits_as_long): Delete.
3002 (unpack_value_field_as_long_1): Delete.
3003 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3004 (unpack_value_bitfield): New function.
3005 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3006 (value_fetch_lazy): Use unpack_value_bitfield.
3007 * value.h (unpack_value_bits_as_long): Delete declaration.
3008
3009 2014-09-03 Sasha Smundak <asmundak@google.com>
3010
3011 * python/py-frame.c (frapy_read_register): New function.
3012
3013 2014-09-03 James Hogan <james.hogan@imgtec.com>
3014
3015 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3016 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3017
3018 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3019
3020 PR python/16699
3021 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3022 function.
3023 (add_cmd): Set "completer_handle_brkchars" to NULL.
3024 * cli/cli-decode.h (struct cmd_list_element)
3025 <completer_handle_brkchars>: New field.
3026 * command.h (completer_ftype_void): New typedef.
3027 (set_cmd_completer_handle_brkchars): New prototype.
3028 * completer.c (set_gdb_completion_word_break_characters): New
3029 function.
3030 (complete_line_internal): Call "completer_handle_brkchars"
3031 callback from command.
3032 * completer.h: Include "command.h".
3033 (set_gdb_completion_word_break_characters): New prototype.
3034 * python/py-cmd.c (cmdpy_completer_helper): New function.
3035 (cmdpy_completer_handle_brkchars): New function.
3036 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3037 (cmdpy_init): Set completer_handle_brkchars to
3038 cmdpy_completer_handle_brkchars.
3039
3040 2014-09-03 Gary Benson <gbenson@redhat.com>
3041
3042 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3043 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3044 Loop conditions changed to equivalent form.
3045 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3046 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3047 ALL_DEBUG_ADDRESS_REGISTERS.
3048
3049 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3050
3051 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3052 description fix.
3053
3054 2014-09-02 Doug Evans <dje@google.com>
3055
3056 * typeprint.c (find_global_typedef): Fix comment.
3057
3058 2014-09-02 Gary Benson <gbenson@redhat.com>
3059
3060 * i386-nat.h: Renamed as...
3061 * x86-nat.h: New file. All type, function and variable name
3062 prefixes changed from "i386_" to "x86_". All references updated.
3063 * i386-nat.c: Renamed as...
3064 * x86-nat.c: New file. All type, function and variable name
3065 prefixes changed from "i386_" to "x86_". All references updated.
3066 * common/i386-xstate.h: Renamed as...
3067 * common/x86-xstate.h: New file. All type, function and variable
3068 name prefixes changed from "i386_" to "x86_". All references
3069 updated.
3070 * nat/i386-cpuid.h: Renamed as...
3071 * nat/x86-cpuid.h: New file. All type, function and variable name
3072 prefixes changed from "i386_" to "x86_". All references updated.
3073 * nat/i386-gcc-cpuid.h: Renamed as...
3074 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3075 name prefixes changed from "i386_" to "x86_". All references
3076 updated.
3077 * nat/i386-dregs.h: Renamed as...
3078 * nat/x86-dregs.h: New file. All type, function and variable name
3079 prefixes changed from "i386_" to "x86_". All references updated.
3080 * nat/i386-dregs.c: Renamed as...
3081 * nat/x86-dregs.c: New file. All type, function and variable name
3082 prefixes changed from "i386_" to "x86_". All references updated.
3083
3084 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3085
3086 * varobj.c (_initialize_varobj): Move to the end of file.
3087
3088 2014-08-29 Gary Benson <gbenson@redhat.com>
3089
3090 * common/common-exceptions.h: New file.
3091 * common/common-exceptions.c: Likewise.
3092 * Makefile.in (SFILES): Add common/common-exceptions.c.
3093 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3094 (COMMON_OBS): Add common-exceptions.o.
3095 (common-exceptions.o): New rule.
3096 * exceptions.h (common-exceptions.h): Include.
3097 (gdb_setjmp.h): Do not include.
3098 (return_reason): Moved to common-exceptions.h.
3099 (enum return_reason): Likewise.
3100 (RETURN_MASK): Likewise.
3101 (typedef return_mask): Likewise.
3102 (enum errors): Likewise.
3103 (struct gdb_exception): Likewise.
3104 (exceptions_state_mc_init): Likewise.
3105 (exceptions_state_mc_action_iter): Likewise.
3106 (exceptions_state_mc_action_iter_1): Likewise.
3107 (TRY_CATCH): Likewise.
3108 (throw_exception): Likewise.
3109 (throw_verror): Likewise.
3110 (throw_vquit): Likewise.
3111 (throw_error): Likewise.
3112 (throw_quit): Likewise.
3113 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3114 (enum catcher_action): Likewise.
3115 (struct catcher): Likewise.
3116 (current_catcher): Likewise.
3117 (catcher_list_size): Likewise.
3118 (exceptions_state_mc_init): Likewise.
3119 (catcher_pop): Likewise.
3120 (exceptions_state_mc): Likewise.
3121 (exceptions_state_mc_action_iter): Likewise.
3122 (exceptions_state_mc_action_iter_1): Likewise.
3123 (throw_exception): Likewise.
3124 (exception_messages): Likewise.
3125 (exception_messages_size): Likewise.
3126 (throw_it): Likewise.
3127 (throw_verror): Likewise.
3128 (throw_vquit): Likewise.
3129 (throw_error): Likewise.
3130 (throw_quit): Likewise.
3131 (prepare_to_throw_exception): New function.
3132
3133 2014-08-29 Gary Benson <gbenson@redhat.com>
3134
3135 * common/gdb_setjmp.h: New file.
3136 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3137 * configure.ac: Move sigsetjmp check...
3138 * common/common.m4: ...here.
3139 * configure: Regenerate.
3140 * cp-support.c (SIGJMP_BUF): Delete.
3141 (SIGSETJMP): Likewise.
3142 (SIGLONGJMP): Likewise.
3143 * exceptions.h (gdb_setjmp.h): Include.
3144 (setjmp.h): Do not include.
3145 (EXCEPTIONS_SIGJMP_BUF): Delete.
3146 (EXCEPTIONS_SIGSETJMP): Likewise.
3147 (EXCEPTIONS_SIGLONGJMP): Likewise.
3148 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3149 from gdb_setjmp.h.
3150 * exceptions.c: Likewise.
3151
3152 2014-08-29 Gary Benson <gbenson@redhat.com>
3153
3154 * cleanups.h: Moved to...
3155 * common/cleanups.h: New file.
3156 * cleanups.c: Moved to...
3157 * common/cleanups.c: New file. Include common-defs.h and
3158 cleanups.h. Do not include defs.h.
3159 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3160 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3161 (cleanups.o): New rule.
3162
3163 2014-08-29 Gary Benson <gbenson@redhat.com>
3164
3165 * common/errors.h (internal_warning): New declaration.
3166 (internal_vwarning): Likewise.
3167 * common/errors.c (internal_warning): New function.
3168 * utils.h (internal_warning): Don't declare.
3169 (internal_vwarning): Likewise.
3170 * utils.c (internal_warning): Removed.
3171
3172 2014-08-29 Gary Benson <gbenson@redhat.com>
3173
3174 * main.c (captured_main): Use warning during startup.
3175 Prefix startup warning messages with command name.
3176
3177 2014-08-29 Gary Benson <gbenson@redhat.com>
3178
3179 * main.c (captured_main): Handle usage errors with error.
3180
3181 2014-08-29 Gary Benson <gbenson@redhat.com>
3182
3183 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3184 exit pair with a call to error. Wrap the message with _().
3185
3186 2014-08-29 Gary Benson <gbenson@redhat.com>
3187
3188 * main.c (captured_main): Replace a fprintf/exit
3189 pair with a call to error. Wrap the message with _().
3190
3191 2014-08-29 Gary Benson <gbenson@redhat.com>
3192
3193 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3194 pairs with calls to error. Wrap the message with _().
3195
3196 2014-08-29 Gary Benson <gbenson@redhat.com>
3197
3198 * utils.c (vwarning): Protect calls to target_terminal_ours
3199 and wrap_here.
3200
3201 2014-08-29 Gary Benson <gbenson@redhat.com>
3202
3203 * exceptions.c (print_flush): Protect calls to
3204 target_terminal_ours and wrap_here.
3205
3206 2014-08-29 Gary Benson <gbenson@redhat.com>
3207
3208 * utils.h (filtered_printing_initialized): New declaration.
3209 * utils.c (abort_with_message): New function.
3210 (internal_vproblem): Use abort_with_message for first level
3211 recursive internal problems, and if gdb_stderr is not set up.
3212 Protect calls to target_terminal_ours, begin_line and query.
3213
3214 2014-08-28 Doug Evans <dje@google.com>
3215
3216 * symtab.c (in_prologue): Move definition to better spot.
3217 (skip_prologue_using_sal): Ditto.
3218
3219 2014-08-28 Doug Evans <dje@google.com>
3220
3221 * symtab.c (find_function_start_sal): Move definition to better spot.
3222
3223 2014-08-28 Yao Qi <yao@codesourcery.com>
3224
3225 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3226 found_stack_adjust in forward scan. Remove condition check
3227 on found_stack_adjust which is always true. Indent the code.
3228
3229 2014-08-28 Yao Qi <yao@codesourcery.com>
3230
3231 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3232 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3233 (dwarf_decode_lines): Remove argument
3234 want_line_info. Remove condition check on want_line_info.
3235 Callers update.
3236
3237 2014-08-27 Doug Evans <dje@google.com>
3238
3239 * dwarf2read.c (dwarf_record_line): Fix typo.
3240
3241 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3242
3243 * target.h (struct target_ops::to_terminal_save_ours): Remove
3244 declaration.
3245 (target_terminal_save_ours): Remove macro.
3246 * target-delegates.c: Regenerate.
3247 * inf-child.c (inf_child_target): Don't set the nonexistent
3248 field to_terminal_save_ours.
3249 * inferior.h (child_terminal_save_ours): Remove declaration.
3250 * terminal.h (gdb_save_tty_state): New declaration.
3251 * inflow.c (child_terminal_save_ours): Rename to ...
3252 (gdb_save_tty_state): ... this.
3253 * tui/tui.c: Include terminal.h.
3254 (tui_enable): Use gdb_save_tty_state instead of
3255 target_terminal_save_ours.
3256 (tui_disable): Likewise.
3257
3258 2014-08-25 Doug Evans <dje@google.com>
3259
3260 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3261 Pass NULL instead of 0 for context pointer.
3262
3263 2014-08-25 Yao Qi <yao@codesourcery.com>
3264
3265 * dwarf2read.c: Fix grammatical error.
3266
3267 2014-08-24 Yao Qi <yao@codesourcery.com>
3268
3269 * dwarf2read.c (scan_partial_symbols): Update comments.
3270 Rename argument 'need_pc' with 'set_addrmap'.
3271 (add_partial_namespace): Rename argument 'need_pc' with
3272 'set_addrmap'.
3273 (add_partial_module): Likewise.
3274 (add_partial_subprogram): Likewise. Update comments.
3275 (dwarf2_name): Fix typo.
3276
3277 2014-08-22 Doug Evans <dje@google.com>
3278
3279 PR 17276
3280 * dwarf2read.c (dwarf_record_line_p): New function.
3281 (dwarf_decode_lines_1): Ignore subsequent line number entries
3282 for the same line if any entry had a non-zero discriminator.
3283
3284 2014-08-22 Doug Evans <dje@google.com>
3285
3286 * buildsym.h (record_line_ftype): New typedef.
3287 (record_line): Use it.
3288 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3289 (dwarf_decode_lines_1): Call them.
3290
3291 2014-08-22 Yao Qi <yao@codesourcery.com>
3292
3293 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3294 (ctf_end): Remove code.
3295
3296 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3297
3298 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3299 (linux_make_corefile_notes): call update_thread_list, protected against
3300 exceptions.
3301
3302 2014-08-21 Pedro Alves <palves@redhat.com>
3303
3304 * infcmd.c (attach_command): Remove comment.
3305
3306 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3307
3308 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3309 unsigned LONGEST to ULONGEST.
3310
3311 2014-08-20 Pedro Alves <palves@redhat.com>
3312
3313 * Makefile.in (check-read1): New rule.
3314
3315 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3316
3317 * value.c (value_from_contents_and_address): Strip resolved_type's
3318 typedef layers before checking its TYPE_DATA_LOCATION.
3319
3320 2014-08-20 Pedro Alves <palves@redhat.com>
3321
3322 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3323
3324 2014-08-20 Yao Qi <yao@codesourcery.com>
3325
3326 * amd64-tdep.c (amd64_classify): Add a blank line after the
3327 example. Move "*/" to a new line.
3328 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3329 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3330 * dwarf2read.c (psymtab_include_file_name): Likewise.
3331
3332 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3333 Pedro Alves <palves@redhat.com>
3334
3335 PR symtab/14604
3336 PR symtab/14605
3337 * ada-lang.c (coerce_unspec_val_to_type): Use
3338 value_contents_copy_raw.
3339 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3340 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3341 * cp-valprint.c (cp_print_value_fields): Let the common printing
3342 code handle optimized out values.
3343 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3344 * d-valprint.c (dynamic_array_type): Use
3345 value_bits_any_optimized_out.
3346 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3347 check_any_valid fields.
3348 (check_pieced_value_bits): Delete and inline ...
3349 (check_pieced_synthetic_pointer): ... here.
3350 (check_pieced_value_validity): Delete.
3351 (check_pieced_value_invalid): Delete.
3352 (pieced_value_funcs): Remove check_validity and check_any_valid
3353 fields.
3354 (read_pieced_value): Use mark_value_bits_optimized_out.
3355 (write_pieced_value): Switch to use
3356 mark_value_bytes_optimized_out.
3357 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3358 of assuming the whole value is optimized out.
3359 * findvar.c (read_frame_register_value): Remove special handling
3360 of optimized out registers.
3361 (value_from_register): Use mark_value_bytes_optimized_out.
3362 * frame-unwind.c (frame_unwind_got_optimized): Use
3363 mark_value_bytes_optimized_out.
3364 * jv-valprint.c (java_value_print): Adjust.
3365 (java_print_value_fields): Let the common printing code handle
3366 optimized out values.
3367 * mips-tdep.c (mips_print_register): Remove special handling of
3368 optimized out registers.
3369 * opencl-lang.c (lval_func_check_validity): Delete.
3370 (lval_func_check_any_valid): Delete.
3371 (opencl_value_funcs): Remove check_validity and check_any_valid
3372 fields.
3373 * p-valprint.c (pascal_object_print_value_fields): Let the common
3374 printing code handle optimized out values.
3375 * stack.c (read_frame_arg): Remove special handling of optimized
3376 out values. Fetch both VAL and ENTRYVAL before comparing
3377 contents. Adjust to value_available_contents_eq rename.
3378 * valprint.c (valprint_check_validity)
3379 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3380 (val_print_array_elements): Adjust.
3381 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3382 (value_bits_any_optimized_out): New function.
3383 (value_entirely_covered_by_range_vector): New function, factored
3384 out from value_entirely_unavailable.
3385 (value_entirely_unavailable): Reimplement.
3386 (value_entirely_optimized_out): New function.
3387 (insert_into_bit_range_vector): New function, factored out from
3388 mark_value_bits_unavailable.
3389 (mark_value_bits_unavailable): Reimplement.
3390 (struct ranges_and_idx): New struct.
3391 (find_first_range_overlap_and_match): New function, factored out
3392 from value_available_contents_bits_eq.
3393 (value_available_contents_bits_eq): Rename to ...
3394 (value_contents_bits_eq): ... this. Check both unavailable
3395 contents and optimized out contents.
3396 (value_available_contents_eq): Rename to ...
3397 (value_contents_eq): ... this.
3398 (allocate_value_lazy): Remove reference to the old optimized_out
3399 boolean.
3400 (allocate_optimized_out_value): Use
3401 mark_value_bytes_optimized_out.
3402 (require_not_optimized_out): Adjust to check whether the
3403 optimized_out vec is empty.
3404 (ranges_copy_adjusted): New function, factored out from
3405 value_contents_copy_raw.
3406 (value_contents_copy_raw): Also copy the optimized out ranges.
3407 Assert the destination ranges aren't optimized out.
3408 (value_contents_copy): Update comment, remove call to
3409 require_not_optimized_out.
3410 (value_contents_equal): Adjust to check whether the optimized_out
3411 vec is empty.
3412 (set_value_optimized_out, value_optimized_out_const): Delete.
3413 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3414 New functions.
3415 (value_entirely_optimized_out, value_bits_valid): Delete.
3416 (value_copy): Take a VEC copy of the 'optimized_out' field.
3417 (value_primitive_field): Remove special handling of optimized out.
3418 (value_fetch_lazy): Assert that lazy values have no unavailable
3419 regions. Use value_bits_any_optimized_out. Remove some special
3420 handling for optimized out values.
3421 * value.h: Add intro comment about <optimized out> and
3422 <unavailable>.
3423 (struct lval_funcs): Remove check_validity and check_any_valid
3424 fields.
3425 (set_value_optimized_out, value_optimized_out_const): Remove.
3426 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3427 New declarations.
3428 (value_bits_any_optimized_out): New declaration.
3429 (value_bits_valid): Delete declaration.
3430 (value_available_contents_eq): Rename to ...
3431 (value_contents_eq): ... this, and extend comments.
3432
3433 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3434
3435 Fix -fsanitize=address on unreadable inferior strings.
3436 * valprint.c (val_print_string): Fix access before BUFFER.
3437
3438 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3439
3440 * target.c (target_struct_size): Remove.
3441 (target_struct_allocsize): Remove.
3442 (DEFAULT_ALLOCSIZE): Remove.
3443 (target_ops_p): New typedef.
3444 (DEF_VEC_P (target_ops_p)): New vector type.
3445 (target_structs): Change type to VEC (target_ops_p).
3446 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3447 (find_default_run_target): Rewrite for loop following changes to
3448 target_structs.
3449
3450 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3451
3452 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3453 Adjust code accordingly. Adjust function description comment.
3454
3455 2014-08-19 Yao Qi <yao@codesourcery.com>
3456
3457 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3458 types.
3459
3460 2014-08-19 Alan Modra <amodra@gmail.com>
3461
3462 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3463 * config.in: Regenerate.
3464 * configure: Regenerate.
3465
3466 2014-08-19 Tom Tromey <tromey@redhat.com>
3467 Gary Benson <gbenson@redhat.com>
3468
3469 * common/common-debug.h: New file.
3470 * common/common-debug.c: Likewise.
3471 * debug.c: Likewise.
3472 * Makefile.in (SFILES): Add common/common-debug.c.
3473 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3474 (COMMON_OBS): Add common-debug.o and debug.o.
3475 (common-debug.o): New rule.
3476 * common/common-defs.h: Include common-debug.h.
3477 * common/agent.c (debug_agent_printf): New function.
3478 (DEBUG_AGENT): Redefine.
3479 * nat/i386-dregs.c (debug_printf): Undefine.
3480
3481 2014-08-19 Gary Benson <gbenson@redhat.com>
3482
3483 * common/common-defs.h: Include print-utils.h.
3484 * utils.h: Do not include print-utils.h.
3485
3486 2014-08-19 Tom Tromey <tromey@redhat.com>
3487 Gary Benson <gbenson@redhat.com>
3488
3489 * common/common-types.h: New file.
3490 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3491 * common/common-defs.h: Include common-types.h.
3492 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3493 (ULONGEST): Remove.
3494
3495 2014-08-19 Tom Tromey <tromey@redhat.com>
3496 Gary Benson <gbenson@redhat.com>
3497
3498 * common/errors.h: New file.
3499 * common/errors.c: Likewise.
3500 * Makefile.in (SFILES): Add common/errors.c.
3501 (HFILES_NO_SRCDIR): Add common/errors.h.
3502 (COMMON_OBS): Add errors.o.
3503 (errors.o): New rule.
3504 * common/common-defs.h: Include errors.h.
3505 * utils.h (perror_with_name, error, verror, warning, vwarning):
3506 Don't declare.
3507 * common/common-utils.h: (malloc_failure, internal_error):
3508 Likewise.
3509
3510 2014-08-19 Gary Benson <gbenson@redhat.com>
3511
3512 * utils.c (internal_vproblem): Always print the message.
3513
3514 2014-08-18 Doug Evans <dje@google.com>
3515
3516 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3517
3518 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3519
3520 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3521 Return 0 if TYPE is dynamic.
3522 (print_range): Add handling of dynamic ranges.
3523
3524 2014-08-18 Keven Boell <keven.boell@intel.com>
3525 Joel Brobecker <brobecker@adacore.com>
3526
3527 * gdbtypes.h (struct main_type): Add field "data_location".
3528 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3529 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3530 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3531 a dynamic data location.
3532 (resolve_dynamic_type): Add DW_AT_data_location handling.
3533 (copy_recursive, copy_type): Copy the data_location information
3534 when present.
3535 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3536 * value.c (value_from_contents_and_address): Add
3537 DW_AT_data_location handling.
3538
3539 2014-08-18 Keven Boell <keven.boell@intel.com>
3540 Joel Brobecker <brobecker@adacore.com>
3541
3542 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3543 field "get_object_address".
3544 * dwarf2expr.c (execute_stack_op): Add handling for
3545 DW_OP_push_object_address.
3546 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3547 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3548 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3549 (dwarf_expr_get_obj_addr): New function.
3550 (dwarf_expr_ctx_funcs): Add get_object_address field.
3551 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3552 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3553 (dwarf2_evaluate_property): Add parameter "address". Use it.
3554 (needs_get_obj_addr): New function.
3555 (needs_frame_ctx_funcs): Add get_object_address field.
3556 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3557 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3558 (resolve_dynamic_array): Likewise.
3559
3560 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3561
3562 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3563 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3564 fixed value for records and unions for which some GNAT encodings
3565 are present.
3566
3567 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3568
3569 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3570 rewrite to avoid "else if" and "else" constructs. Should be
3571 a no-op in practice.
3572
3573 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3574
3575 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3576 of lexical block.
3577
3578 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3579
3580 PR c++/17132
3581 * eval.c: Update all calls to find_overload_match.
3582 * valarith.c: Likewise.
3583 (value_user_defined_cpp_op, value_user_defined_op): New
3584 argument NOSIDE. Update all callers.
3585 * valops.c (find_overload_match): New argument NOSIDE.
3586 * value.h (find_overload_match): Update signature.
3587
3588 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3589
3590 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3591 'items' methods instead of 'iteritems' method on dictionaries.
3592
3593 2014-08-15 Doug Evans <dje@google.com>
3594
3595 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3596 closer to use.
3597
3598 2014-08-15 Doug Evans <dje@google.com>
3599
3600 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3601
3602 2014-08-15 Doug Evans <dje@google.com>
3603
3604 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3605
3606 2014-08-15 Doug Evans <dje@google.com>
3607
3608 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3609 unused.
3610
3611 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3612
3613 * dcache.h: Include target.h, to avoid compile time warnings.
3614
3615 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3616
3617 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3618 frame_info" partial declaration.
3619 * gdbarch.h: Regenerate.
3620
3621 2014-08-15 Yao Qi <yao@codesourcery.com>
3622
3623 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3624 Add parameter 'decode_for_pst_p'. Callers update.
3625
3626 2014-08-13 Yao Qi <yao@codesourcery.com>
3627
3628 PR build/17104
3629 * configure.ac: Use local variable 'pos'.
3630 * configure: Regenerated.
3631
3632 2014-08-11 Doug Evans <dje@google.com>
3633
3634 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3635 message, it is redundant with "Reading symbols from ..." message.
3636
3637 2014-08-10 Doug Evans <xdje42@gmail.com>
3638
3639 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3640
3641 2014-08-09 Yao Qi <yao@codesourcery.com>
3642
3643 PR remote/9053
3644 * remote.c (remote_xfer_partial): Remove dead code.
3645
3646 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3647
3648 * ia64-linux-tdep.c: Include "regset.h".
3649 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3650 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3651 (ia64_linux_supply_fpregset): New function.
3652 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3653 (ia64_linux_regset_from_core_section): New function.
3654 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3655 method.
3656
3657 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3658
3659 * m68klinux-tdep.c: Include "regset.h".
3660 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3661 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3662 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3663 (m68k_linux_regset_from_core_section): New function.
3664 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3665 method.
3666
3667 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3668
3669 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3670 function. Move logic to...
3671 (tilegx_linux_regmap): ... this new register map.
3672 (tilegx_linux_regset): Refer to register map, replace supply
3673 method by regcache_supply_regset, and add collect method.
3674 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3675 TILEGX_FIRST_EASY_REGNUM.
3676
3677 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3678
3679 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3680 that calls regcache_supply_regset and handles the EPC register
3681 separately. Move main logic to...
3682 (score7_linux_gregmap): ... this new register map.
3683 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3684 (score7_linux_gregset): Refer to register map. Add collect method.
3685 (score7_linux_regset_from_core_section): Replace
3686 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3687 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3688 (struct regset): Delete unused forward declaraction.
3689 (struct pt_regs): Delete structure definition.
3690 (elf_gregset_t): Delete typedef.
3691
3692 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3693
3694 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3695 (nios2_core_regset): Add collect method.
3696
3697 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3698
3699 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3700 platform-independent and don't write to read-only input buffer.
3701 (m32r_linux_collect_gregset): New function.
3702 (m32r_linux_gregset): Add collect method.
3703
3704 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3705
3706 * hppa-linux-tdep.c (greg_map): Rename to...
3707 (hppa_linux_gregmap): ... this. Also convert to
3708 regcache_map_entry format.
3709 (hppa_linux_supply_regset): Delete function.
3710 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3711 (hppa_linux_fpregmap): ... this new register map.
3712 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3713 register map, replace supply method by regcache_supply_regset, and
3714 add collect method regcache_collect_regset.
3715
3716 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3717
3718 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3719 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3720 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3721 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3722 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3723 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3724 (frv_linux_supply_gregset): Replace main logic by call to
3725 regcache_supply_regset, but keep clearing gr32-gr63.
3726 (frv_linux_supply_fpregset): Delete function.
3727 (frv_linux_gregset): Refer to appropriate register map and add
3728 regcache_collect_regset as the collect method.
3729 (frv_linux_fpregset): Likewise. Also exchange the supply method
3730 by regcache_supply_regset.
3731
3732 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3733
3734 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3735 by call to alpha_supply_int_regs.
3736 (alpha_linux_collect_gregset): New function.
3737 (alpha_linux_supply_fpregset): Replace logic by call to
3738 alpha_supply_fp_regs.
3739 (alpha_linux_collect_fpregset): New function.
3740 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3741
3742 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3743
3744 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3745 by call to regcache_collect_regset.
3746 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3747 instead of aarch64_linux_supply_gregset/_fpregset.
3748 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3749 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3750 header file instead.
3751 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3752 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3753 functions. Move logic to ...
3754 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3755 register maps.
3756 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3757 refer to new register maps, replace *_regset_from_core by
3758 regcache_supply_regset, and also use regcache_collect_regset.
3759 * aarch64-linux-tdep.h: Include "regset.h".
3760 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3761 Delete prototypes.
3762 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3763 macros, moved from C source file.
3764 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3765 variable declarations.
3766
3767 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3768
3769 * s390-linux-nat.c: Include "regset.h".
3770 (regmap_gregset): Delete macro.
3771 (s390_64_regmap_gregset): New register map for
3772 regcache_supply/_collect_regset.
3773 (s390_64_gregset): New regset.
3774 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3775 (regmap_fpregset): Delete macro.
3776 (s390_native_supply, s390_native_collect): Delete functions.
3777 (supply_gregset, fill_gregset): Replace s390-specific regmap
3778 handling by a call to regcache_supply/_collect_regset.
3779 (supply_fpregset, fill_fpregset): Call regcache_supply/
3780 _collect_regset instead of s390_native_supply/_collect.
3781 (fetch_regset, store_regset): Likewise. Also change the last
3782 parameter to a regset instead of a regmap.
3783 (s390_linux_fetch_inferior_registers)
3784 (390_linux_store_inferior_registers): Adjust last parameter in
3785 calls to fetch_regset and store_regset.
3786 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3787 (s390_gregmap): ... this. Also make static const and convert to
3788 regcache_map_entry format.
3789 (s390x_regmap_gregset): Delete.
3790 (s390_regmap_fpregset): Rename to...
3791 (s390_fpregmap): ... this. Make static const and convert to
3792 regcache_map_entry format.
3793 (s390_regmap_upper, s390_regmap_last_break)
3794 (s390x_regmap_last_break, s390_regmap_system_call)
3795 (s390_regmap_tdb): Likewise.
3796 (s390_supply_regset, s390_collect_regset): Remove functions.
3797 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3798 s390_supply_regset.
3799 (s390_gregset, s390_fpregset, s390_upper_regset)
3800 (s390_last_break_regset, s390x_last_break_regset)
3801 (s390_system_call_regset, s390_tdb_regset): Make global and
3802 replace s390_supply/_collect_regset by regcache_supply/
3803 _collect_regset.
3804 (s390x_gregset): Delete.
3805 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3806 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3807 (s390_regmap_fpregset, s390_regmap_last_break)
3808 (s390x_regmap_last_break, s390_regmap_system_call)
3809 (s390_regmap_tdb): Delete global variable declarations.
3810 (s390_gregset, s390_fpregset, s390_last_break_regset)
3811 (s390x_last_break_regset, s390_system_call_regset)
3812 (s390_tdb_regset): New global variable declarations.
3813
3814 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3815
3816 * regcache.c: Include "regset.h".
3817 (regcache_transfer_regset): New local function.
3818 (regcache_supply_regset, regcache_collect_regset): New functions.
3819 * regcache.h (struct regcache_map_entry): New structure.
3820 (REGCACHE_MAP_SKIP): New enum value.
3821 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3822
3823 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3824
3825 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3826 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3827 (ppc_linux_collect_gregset ): Likewise.
3828 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3829 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3830 (ppc_collect_vrregset): Likewise.
3831 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3832 Likewise.
3833
3834 2014-08-07 Yao Qi <yao@codesourcery.com>
3835
3836 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3837 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3838 * remote.c (remote_read_bytes): Likewise.
3839
3840 2014-08-07 Yao Qi <yao@codesourcery.com>
3841
3842 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3843
3844 2014-08-07 Yao Qi <yao@codesourcery.com>
3845
3846 PR remote/17230
3847 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3848 TARGET_XFER_OK instead of 0.
3849
3850 2014-08-07 Gary Benson <gbenson@redhat.com>
3851
3852 * common/common-defs.h: Include errno.h.
3853 * defs.h: Do not include errno.h.
3854 * ada-typeprint.c: Likewise.
3855 * c-typeprint.c: Likewise.
3856 * core-regset.c: Likewise.
3857 * corefile.c: Likewise.
3858 * corelow.c: Likewise.
3859 * event-loop.c: Likewise.
3860 * f-typeprint.c: Likewise.
3861 * gnu-nat.c: Likewise.
3862 * go32-nat.c: Likewise.
3863 * i386gnu-nat.c: Likewise.
3864 * m2-typeprint.c: Likewise.
3865 * nat/linux-btrace.c: Likewise.
3866 * p-typeprint.c: Likewise.
3867 * procfs.c: Likewise.
3868 * remote-sim.c: Likewise.
3869 * rs6000-nat.c: Likewise.
3870 * target.c: Likewise.
3871 * typeprint.c: Likewise.
3872 * ui-file.c: Likewise.
3873 * valops.c: Likewise.
3874 * valprint.c: Likewise.
3875
3876 2014-08-07 Gary Benson <gbenson@redhat.com>
3877
3878 * common/common-defs.h: Include string.h.
3879 * aarch64-tdep.c: Do not include string.h.
3880 * ada-exp.y: Likewise.
3881 * ada-lang.c: Likewise.
3882 * ada-lex.l: Likewise.
3883 * ada-typeprint.c: Likewise.
3884 * ada-valprint.c: Likewise.
3885 * aix-thread.c: Likewise.
3886 * alpha-linux-tdep.c: Likewise.
3887 * alpha-mdebug-tdep.c: Likewise.
3888 * alpha-nat.c: Likewise.
3889 * alpha-osf1-tdep.c: Likewise.
3890 * alpha-tdep.c: Likewise.
3891 * alphanbsd-tdep.c: Likewise.
3892 * amd64-dicos-tdep.c: Likewise.
3893 * amd64-linux-tdep.c: Likewise.
3894 * amd64-nat.c: Likewise.
3895 * amd64-sol2-tdep.c: Likewise.
3896 * amd64fbsd-tdep.c: Likewise.
3897 * amd64obsd-tdep.c: Likewise.
3898 * arch-utils.c: Likewise.
3899 * arm-linux-nat.c: Likewise.
3900 * arm-linux-tdep.c: Likewise.
3901 * arm-tdep.c: Likewise.
3902 * arm-wince-tdep.c: Likewise.
3903 * armbsd-tdep.c: Likewise.
3904 * armnbsd-nat.c: Likewise.
3905 * armnbsd-tdep.c: Likewise.
3906 * armobsd-tdep.c: Likewise.
3907 * avr-tdep.c: Likewise.
3908 * ax-gdb.c: Likewise.
3909 * ax-general.c: Likewise.
3910 * bcache.c: Likewise.
3911 * bfin-tdep.c: Likewise.
3912 * breakpoint.c: Likewise.
3913 * build-id.c: Likewise.
3914 * buildsym.c: Likewise.
3915 * c-exp.y: Likewise.
3916 * c-lang.c: Likewise.
3917 * c-typeprint.c: Likewise.
3918 * c-valprint.c: Likewise.
3919 * charset.c: Likewise.
3920 * cli-out.c: Likewise.
3921 * cli/cli-cmds.c: Likewise.
3922 * cli/cli-decode.c: Likewise.
3923 * cli/cli-dump.c: Likewise.
3924 * cli/cli-interp.c: Likewise.
3925 * cli/cli-logging.c: Likewise.
3926 * cli/cli-script.c: Likewise.
3927 * cli/cli-setshow.c: Likewise.
3928 * cli/cli-utils.c: Likewise.
3929 * coffread.c: Likewise.
3930 * common/agent.c: Likewise.
3931 * common/buffer.c: Likewise.
3932 * common/buffer.h: Likewise.
3933 * common/common-utils.c: Likewise.
3934 * common/filestuff.c: Likewise.
3935 * common/filestuff.c: Likewise.
3936 * common/format.c: Likewise.
3937 * common/print-utils.c: Likewise.
3938 * common/rsp-low.c: Likewise.
3939 * common/signals.c: Likewise.
3940 * common/vec.h: Likewise.
3941 * common/xml-utils.c: Likewise.
3942 * core-regset.c: Likewise.
3943 * corefile.c: Likewise.
3944 * corelow.c: Likewise.
3945 * cp-abi.c: Likewise.
3946 * cp-name-parser.y: Likewise.
3947 * cp-support.c: Likewise.
3948 * cp-valprint.c: Likewise.
3949 * cris-tdep.c: Likewise.
3950 * d-exp.y: Likewise.
3951 * darwin-nat.c: Likewise.
3952 * dbxread.c: Likewise.
3953 * dcache.c: Likewise.
3954 * demangle.c: Likewise.
3955 * dicos-tdep.c: Likewise.
3956 * disasm.c: Likewise.
3957 * doublest.c: Likewise.
3958 * dsrec.c: Likewise.
3959 * dummy-frame.c: Likewise.
3960 * dwarf2-frame.c: Likewise.
3961 * dwarf2loc.c: Likewise.
3962 * dwarf2read.c: Likewise.
3963 * elfread.c: Likewise.
3964 * environ.c: Likewise.
3965 * eval.c: Likewise.
3966 * event-loop.c: Likewise.
3967 * exceptions.c: Likewise.
3968 * exec.c: Likewise.
3969 * expprint.c: Likewise.
3970 * f-exp.y: Likewise.
3971 * f-lang.c: Likewise.
3972 * f-typeprint.c: Likewise.
3973 * f-valprint.c: Likewise.
3974 * fbsd-nat.c: Likewise.
3975 * findcmd.c: Likewise.
3976 * findvar.c: Likewise.
3977 * fork-child.c: Likewise.
3978 * frame.c: Likewise.
3979 * frv-linux-tdep.c: Likewise.
3980 * frv-tdep.c: Likewise.
3981 * gdb.c: Likewise.
3982 * gdb_bfd.c: Likewise.
3983 * gdbarch.c: Likewise.
3984 * gdbarch.sh: Likewise.
3985 * gdbtypes.c: Likewise.
3986 * gnu-nat.c: Likewise.
3987 * gnu-v2-abi.c: Likewise.
3988 * gnu-v3-abi.c: Likewise.
3989 * go-exp.y: Likewise.
3990 * go-lang.c: Likewise.
3991 * go32-nat.c: Likewise.
3992 * guile/guile.c: Likewise.
3993 * guile/scm-auto-load.c: Likewise.
3994 * hppa-hpux-tdep.c: Likewise.
3995 * hppa-linux-nat.c: Likewise.
3996 * hppanbsd-tdep.c: Likewise.
3997 * hppaobsd-tdep.c: Likewise.
3998 * i386-cygwin-tdep.c: Likewise.
3999 * i386-dicos-tdep.c: Likewise.
4000 * i386-linux-tdep.c: Likewise.
4001 * i386-nto-tdep.c: Likewise.
4002 * i386-sol2-tdep.c: Likewise.
4003 * i386-tdep.c: Likewise.
4004 * i386bsd-tdep.c: Likewise.
4005 * i386gnu-nat.c: Likewise.
4006 * i386nbsd-tdep.c: Likewise.
4007 * i386obsd-tdep.c: Likewise.
4008 * i387-tdep.c: Likewise.
4009 * ia64-libunwind-tdep.c: Likewise.
4010 * ia64-linux-nat.c: Likewise.
4011 * inf-child.c: Likewise.
4012 * inf-ptrace.c: Likewise.
4013 * inf-ttrace.c: Likewise.
4014 * infcall.c: Likewise.
4015 * infcmd.c: Likewise.
4016 * inflow.c: Likewise.
4017 * infrun.c: Likewise.
4018 * interps.c: Likewise.
4019 * iq2000-tdep.c: Likewise.
4020 * irix5-nat.c: Likewise.
4021 * jv-exp.y: Likewise.
4022 * jv-lang.c: Likewise.
4023 * jv-typeprint.c: Likewise.
4024 * jv-valprint.c: Likewise.
4025 * language.c: Likewise.
4026 * linux-fork.c: Likewise.
4027 * linux-nat.c: Likewise.
4028 * lm32-tdep.c: Likewise.
4029 * m2-exp.y: Likewise.
4030 * m2-typeprint.c: Likewise.
4031 * m32c-tdep.c: Likewise.
4032 * m32r-linux-nat.c: Likewise.
4033 * m32r-linux-tdep.c: Likewise.
4034 * m32r-rom.c: Likewise.
4035 * m32r-tdep.c: Likewise.
4036 * m68hc11-tdep.c: Likewise.
4037 * m68k-tdep.c: Likewise.
4038 * m68kbsd-tdep.c: Likewise.
4039 * m68klinux-nat.c: Likewise.
4040 * m68klinux-tdep.c: Likewise.
4041 * m88k-tdep.c: Likewise.
4042 * machoread.c: Likewise.
4043 * macrocmd.c: Likewise.
4044 * main.c: Likewise.
4045 * mdebugread.c: Likewise.
4046 * mem-break.c: Likewise.
4047 * memattr.c: Likewise.
4048 * memory-map.c: Likewise.
4049 * mep-tdep.c: Likewise.
4050 * mi/mi-cmd-break.c: Likewise.
4051 * mi/mi-cmd-disas.c: Likewise.
4052 * mi/mi-cmd-env.c: Likewise.
4053 * mi/mi-cmd-stack.c: Likewise.
4054 * mi/mi-cmd-var.c: Likewise.
4055 * mi/mi-cmds.c: Likewise.
4056 * mi/mi-console.c: Likewise.
4057 * mi/mi-getopt.c: Likewise.
4058 * mi/mi-interp.c: Likewise.
4059 * mi/mi-main.c: Likewise.
4060 * mi/mi-parse.c: Likewise.
4061 * microblaze-rom.c: Likewise.
4062 * microblaze-tdep.c: Likewise.
4063 * mingw-hdep.c: Likewise.
4064 * minidebug.c: Likewise.
4065 * minsyms.c: Likewise.
4066 * mips-irix-tdep.c: Likewise.
4067 * mips-linux-tdep.c: Likewise.
4068 * mips-tdep.c: Likewise.
4069 * mips64obsd-tdep.c: Likewise.
4070 * mipsnbsd-tdep.c: Likewise.
4071 * mipsread.c: Likewise.
4072 * mn10300-linux-tdep.c: Likewise.
4073 * mn10300-tdep.c: Likewise.
4074 * monitor.c: Likewise.
4075 * moxie-tdep.c: Likewise.
4076 * mt-tdep.c: Likewise.
4077 * nat/linux-btrace.c: Likewise.
4078 * nat/linux-osdata.c: Likewise.
4079 * nat/linux-procfs.c: Likewise.
4080 * nat/linux-ptrace.c: Likewise.
4081 * nat/linux-waitpid.c: Likewise.
4082 * nbsd-tdep.c: Likewise.
4083 * nios2-linux-tdep.c: Likewise.
4084 * nto-procfs.c: Likewise.
4085 * nto-tdep.c: Likewise.
4086 * objc-lang.c: Likewise.
4087 * objfiles.c: Likewise.
4088 * opencl-lang.c: Likewise.
4089 * osabi.c: Likewise.
4090 * osdata.c: Likewise.
4091 * p-exp.y: Likewise.
4092 * p-lang.c: Likewise.
4093 * p-typeprint.c: Likewise.
4094 * parse.c: Likewise.
4095 * posix-hdep.c: Likewise.
4096 * ppc-linux-nat.c: Likewise.
4097 * ppc-sysv-tdep.c: Likewise.
4098 * ppcfbsd-tdep.c: Likewise.
4099 * ppcnbsd-tdep.c: Likewise.
4100 * ppcobsd-tdep.c: Likewise.
4101 * printcmd.c: Likewise.
4102 * procfs.c: Likewise.
4103 * prologue-value.c: Likewise.
4104 * python/py-auto-load.c: Likewise.
4105 * python/py-gdb-readline.c: Likewise.
4106 * ravenscar-thread.c: Likewise.
4107 * regcache.c: Likewise.
4108 * registry.c: Likewise.
4109 * remote-fileio.c: Likewise.
4110 * remote-m32r-sdi.c: Likewise.
4111 * remote-mips.c: Likewise.
4112 * remote-notif.c: Likewise.
4113 * remote-sim.c: Likewise.
4114 * remote.c: Likewise.
4115 * reverse.c: Likewise.
4116 * rs6000-aix-tdep.c: Likewise.
4117 * ser-base.c: Likewise.
4118 * ser-go32.c: Likewise.
4119 * ser-mingw.c: Likewise.
4120 * ser-pipe.c: Likewise.
4121 * ser-tcp.c: Likewise.
4122 * ser-unix.c: Likewise.
4123 * serial.c: Likewise.
4124 * sh-tdep.c: Likewise.
4125 * sh64-tdep.c: Likewise.
4126 * shnbsd-tdep.c: Likewise.
4127 * skip.c: Likewise.
4128 * sol-thread.c: Likewise.
4129 * solib-dsbt.c: Likewise.
4130 * solib-frv.c: Likewise.
4131 * solib-osf.c: Likewise.
4132 * solib-som.c: Likewise.
4133 * solib-spu.c: Likewise.
4134 * solib-target.c: Likewise.
4135 * solib.c: Likewise.
4136 * somread.c: Likewise.
4137 * source.c: Likewise.
4138 * sparc-nat.c: Likewise.
4139 * sparc-sol2-tdep.c: Likewise.
4140 * sparc-tdep.c: Likewise.
4141 * sparc64-tdep.c: Likewise.
4142 * sparc64fbsd-tdep.c: Likewise.
4143 * sparc64nbsd-tdep.c: Likewise.
4144 * sparcnbsd-tdep.c: Likewise.
4145 * spu-linux-nat.c: Likewise.
4146 * spu-multiarch.c: Likewise.
4147 * spu-tdep.c: Likewise.
4148 * stabsread.c: Likewise.
4149 * stack.c: Likewise.
4150 * std-regs.c: Likewise.
4151 * symfile.c: Likewise.
4152 * symmisc.c: Likewise.
4153 * symtab.c: Likewise.
4154 * target.c: Likewise.
4155 * thread.c: Likewise.
4156 * tilegx-linux-nat.c: Likewise.
4157 * tilegx-tdep.c: Likewise.
4158 * top.c: Likewise.
4159 * tracepoint.c: Likewise.
4160 * tui/tui-command.c: Likewise.
4161 * tui/tui-data.c: Likewise.
4162 * tui/tui-disasm.c: Likewise.
4163 * tui/tui-file.c: Likewise.
4164 * tui/tui-layout.c: Likewise.
4165 * tui/tui-out.c: Likewise.
4166 * tui/tui-regs.c: Likewise.
4167 * tui/tui-source.c: Likewise.
4168 * tui/tui-stack.c: Likewise.
4169 * tui/tui-win.c: Likewise.
4170 * tui/tui-windata.c: Likewise.
4171 * tui/tui-winsource.c: Likewise.
4172 * typeprint.c: Likewise.
4173 * ui-file.c: Likewise.
4174 * ui-out.c: Likewise.
4175 * user-regs.c: Likewise.
4176 * utils.c: Likewise.
4177 * v850-tdep.c: Likewise.
4178 * valarith.c: Likewise.
4179 * valops.c: Likewise.
4180 * valprint.c: Likewise.
4181 * value.c: Likewise.
4182 * varobj.c: Likewise.
4183 * vax-tdep.c: Likewise.
4184 * vaxnbsd-tdep.c: Likewise.
4185 * vaxobsd-tdep.c: Likewise.
4186 * windows-nat.c: Likewise.
4187 * xcoffread.c: Likewise.
4188 * xml-support.c: Likewise.
4189 * xstormy16-tdep.c: Likewise.
4190 * xtensa-linux-nat.c: Likewise.
4191
4192 2014-08-07 Gary Benson <gbenson@redhat.com>
4193
4194 * common/common-defs.h: Include gdb_assert.h.
4195 * aarch64-tdep.c: Do not include gdb_assert.h.
4196 * addrmap.c: Likewise.
4197 * aix-thread.c: Likewise.
4198 * alpha-linux-tdep.c: Likewise.
4199 * alpha-mdebug-tdep.c: Likewise.
4200 * alphanbsd-tdep.c: Likewise.
4201 * amd64-nat.c: Likewise.
4202 * amd64-tdep.c: Likewise.
4203 * amd64bsd-nat.c: Likewise.
4204 * amd64fbsd-nat.c: Likewise.
4205 * amd64fbsd-tdep.c: Likewise.
4206 * amd64nbsd-nat.c: Likewise.
4207 * amd64nbsd-tdep.c: Likewise.
4208 * amd64obsd-nat.c: Likewise.
4209 * amd64obsd-tdep.c: Likewise.
4210 * arch-utils.c: Likewise.
4211 * arm-tdep.c: Likewise.
4212 * armbsd-tdep.c: Likewise.
4213 * auxv.c: Likewise.
4214 * bcache.c: Likewise.
4215 * bfin-tdep.c: Likewise.
4216 * blockframe.c: Likewise.
4217 * breakpoint.c: Likewise.
4218 * bsd-kvm.c: Likewise.
4219 * bsd-uthread.c: Likewise.
4220 * buildsym.c: Likewise.
4221 * c-exp.y: Likewise.
4222 * c-lang.c: Likewise.
4223 * charset.c: Likewise.
4224 * cleanups.c: Likewise.
4225 * cli-out.c: Likewise.
4226 * cli/cli-decode.c: Likewise.
4227 * cli/cli-dump.c: Likewise.
4228 * cli/cli-logging.c: Likewise.
4229 * cli/cli-script.c: Likewise.
4230 * cli/cli-utils.c: Likewise.
4231 * coffread.c: Likewise.
4232 * common/common-utils.c: Likewise.
4233 * common/queue.h: Likewise.
4234 * common/signals.c: Likewise.
4235 * common/vec.h: Likewise.
4236 * complaints.c: Likewise.
4237 * completer.c: Likewise.
4238 * corelow.c: Likewise.
4239 * cp-abi.c: Likewise.
4240 * cp-name-parser.y: Likewise.
4241 * cp-namespace.c: Likewise.
4242 * cp-support.c: Likewise.
4243 * cris-tdep.c: Likewise.
4244 * dbxread.c: Likewise.
4245 * dictionary.c: Likewise.
4246 * doublest.c: Likewise.
4247 * dsrec.c: Likewise.
4248 * dummy-frame.c: Likewise.
4249 * dwarf2-frame-tailcall.c: Likewise.
4250 * dwarf2-frame.c: Likewise.
4251 * dwarf2expr.c: Likewise.
4252 * dwarf2loc.c: Likewise.
4253 * dwarf2read.c: Likewise.
4254 * eval.c: Likewise.
4255 * event-loop.c: Likewise.
4256 * exceptions.c: Likewise.
4257 * expprint.c: Likewise.
4258 * f-valprint.c: Likewise.
4259 * fbsd-nat.c: Likewise.
4260 * findvar.c: Likewise.
4261 * frame-unwind.c: Likewise.
4262 * frame.c: Likewise.
4263 * frv-tdep.c: Likewise.
4264 * gcore.c: Likewise.
4265 * gdb-dlfcn.c: Likewise.
4266 * gdb_bfd.c: Likewise.
4267 * gdbarch.c: Likewise.
4268 * gdbarch.sh: Likewise.
4269 * gdbtypes.c: Likewise.
4270 * gnu-nat.c: Likewise.
4271 * gnu-v3-abi.c: Likewise.
4272 * go-lang.c: Likewise.
4273 * guile/scm-exception.c: Likewise.
4274 * guile/scm-gsmob.c: Likewise.
4275 * guile/scm-lazy-string.c: Likewise.
4276 * guile/scm-math.c: Likewise.
4277 * guile/scm-pretty-print.c: Likewise.
4278 * guile/scm-safe-call.c: Likewise.
4279 * guile/scm-utils.c: Likewise.
4280 * guile/scm-value.c: Likewise.
4281 * h8300-tdep.c: Likewise.
4282 * hppa-hpux-nat.c: Likewise.
4283 * hppa-tdep.c: Likewise.
4284 * hppanbsd-tdep.c: Likewise.
4285 * hppaobsd-tdep.c: Likewise.
4286 * i386-darwin-nat.c: Likewise.
4287 * i386-darwin-tdep.c: Likewise.
4288 * i386-nto-tdep.c: Likewise.
4289 * i386-tdep.c: Likewise.
4290 * i386bsd-nat.c: Likewise.
4291 * i386fbsd-tdep.c: Likewise.
4292 * i386gnu-nat.c: Likewise.
4293 * i386nbsd-tdep.c: Likewise.
4294 * i386obsd-tdep.c: Likewise.
4295 * i387-tdep.c: Likewise.
4296 * ia64-libunwind-tdep.c: Likewise.
4297 * ia64-tdep.c: Likewise.
4298 * inf-ptrace.c: Likewise.
4299 * inf-ttrace.c: Likewise.
4300 * infcall.c: Likewise.
4301 * infcmd.c: Likewise.
4302 * infrun.c: Likewise.
4303 * inline-frame.c: Likewise.
4304 * interps.c: Likewise.
4305 * jv-lang.c: Likewise.
4306 * jv-typeprint.c: Likewise.
4307 * linux-fork.c: Likewise.
4308 * linux-nat.c: Likewise.
4309 * linux-thread-db.c: Likewise.
4310 * m32c-tdep.c: Likewise.
4311 * m32r-linux-nat.c: Likewise.
4312 * m32r-tdep.c: Likewise.
4313 * m68k-tdep.c: Likewise.
4314 * m68kbsd-nat.c: Likewise.
4315 * m68kbsd-tdep.c: Likewise.
4316 * m88k-tdep.c: Likewise.
4317 * machoread.c: Likewise.
4318 * macroexp.c: Likewise.
4319 * macrotab.c: Likewise.
4320 * maint.c: Likewise.
4321 * mdebugread.c: Likewise.
4322 * memory-map.c: Likewise.
4323 * mep-tdep.c: Likewise.
4324 * mi/mi-common.c: Likewise.
4325 * microblaze-tdep.c: Likewise.
4326 * mingw-hdep.c: Likewise.
4327 * mips-linux-nat.c: Likewise.
4328 * mips-linux-tdep.c: Likewise.
4329 * mips-tdep.c: Likewise.
4330 * mips64obsd-tdep.c: Likewise.
4331 * mipsnbsd-tdep.c: Likewise.
4332 * mn10300-linux-tdep.c: Likewise.
4333 * mn10300-tdep.c: Likewise.
4334 * moxie-tdep.c: Likewise.
4335 * mt-tdep.c: Likewise.
4336 * nat/linux-btrace.c: Likewise.
4337 * nat/linux-osdata.c: Likewise.
4338 * nat/linux-ptrace.c: Likewise.
4339 * nat/mips-linux-watch.c: Likewise.
4340 * nios2-linux-tdep.c: Likewise.
4341 * nios2-tdep.c: Likewise.
4342 * objc-lang.c: Likewise.
4343 * objfiles.c: Likewise.
4344 * obsd-nat.c: Likewise.
4345 * opencl-lang.c: Likewise.
4346 * osabi.c: Likewise.
4347 * parse.c: Likewise.
4348 * ppc-linux-nat.c: Likewise.
4349 * ppc-sysv-tdep.c: Likewise.
4350 * ppcfbsd-nat.c: Likewise.
4351 * ppcfbsd-tdep.c: Likewise.
4352 * ppcnbsd-nat.c: Likewise.
4353 * ppcnbsd-tdep.c: Likewise.
4354 * ppcobsd-nat.c: Likewise.
4355 * ppcobsd-tdep.c: Likewise.
4356 * printcmd.c: Likewise.
4357 * procfs.c: Likewise.
4358 * prologue-value.c: Likewise.
4359 * psymtab.c: Likewise.
4360 * python/py-lazy-string.c: Likewise.
4361 * python/py-value.c: Likewise.
4362 * regcache.c: Likewise.
4363 * reggroups.c: Likewise.
4364 * registry.c: Likewise.
4365 * remote-sim.c: Likewise.
4366 * remote.c: Likewise.
4367 * rs6000-aix-tdep.c: Likewise.
4368 * rs6000-tdep.c: Likewise.
4369 * s390-linux-tdep.c: Likewise.
4370 * score-tdep.c: Likewise.
4371 * ser-base.c: Likewise.
4372 * ser-mingw.c: Likewise.
4373 * sh-tdep.c: Likewise.
4374 * sh64-tdep.c: Likewise.
4375 * solib-darwin.c: Likewise.
4376 * solib-spu.c: Likewise.
4377 * solib-svr4.c: Likewise.
4378 * source.c: Likewise.
4379 * sparc-nat.c: Likewise.
4380 * sparc-sol2-tdep.c: Likewise.
4381 * sparc-tdep.c: Likewise.
4382 * sparc64-sol2-tdep.c: Likewise.
4383 * sparc64-tdep.c: Likewise.
4384 * sparc64fbsd-tdep.c: Likewise.
4385 * sparc64nbsd-tdep.c: Likewise.
4386 * sparc64obsd-tdep.c: Likewise.
4387 * sparcnbsd-tdep.c: Likewise.
4388 * sparcobsd-tdep.c: Likewise.
4389 * spu-multiarch.c: Likewise.
4390 * spu-tdep.c: Likewise.
4391 * stabsread.c: Likewise.
4392 * stack.c: Likewise.
4393 * symfile.c: Likewise.
4394 * symtab.c: Likewise.
4395 * target-descriptions.c: Likewise.
4396 * target-memory.c: Likewise.
4397 * target.c: Likewise.
4398 * tic6x-linux-tdep.c: Likewise.
4399 * tic6x-tdep.c: Likewise.
4400 * tilegx-linux-nat.c: Likewise.
4401 * tilegx-tdep.c: Likewise.
4402 * top.c: Likewise.
4403 * tramp-frame.c: Likewise.
4404 * tui/tui-out.c: Likewise.
4405 * tui/tui-winsource.c: Likewise.
4406 * ui-out.c: Likewise.
4407 * user-regs.c: Likewise.
4408 * utils.c: Likewise.
4409 * v850-tdep.c: Likewise.
4410 * valops.c: Likewise.
4411 * value.c: Likewise.
4412 * varobj.c: Likewise.
4413 * vax-nat.c: Likewise.
4414 * xml-syscall.c: Likewise.
4415 * xml-tdesc.c: Likewise.
4416 * xstormy16-tdep.c: Likewise.
4417 * xtensa-linux-nat.c: Likewise.
4418 * xtensa-tdep.c: Likewise.
4419
4420 2014-08-07 Gary Benson <gbenson@redhat.com>
4421
4422 * common/common-defs.h: Include common-utils.h.
4423 * defs.h: Do not include common-utils.h.
4424 * common/gdb_assert.h: Likewise.
4425 * darwin-nat.h: Likewise.
4426 * nat/linux-btrace.c: Likewise.
4427 * target/waitstatus.h: Likewise.
4428
4429 2014-08-07 Gary Benson <gbenson@redhat.com>
4430
4431 * common/common-defs.h: Include ptid.h.
4432 * defs.h: Do not include ptid.h.
4433 * inferior.h: Likewise.
4434 * infrun.h: Likewise.
4435 * nat/linux-btrace.h: Likewise.
4436 * nat/linux-osdata.h: Likewise.
4437 * target/waitstatus.h: Likewise.
4438
4439 2014-08-07 Gary Benson <gbenson@redhat.com>
4440
4441 * common/common-defs.h: Include gdb_locale.h.
4442 * defs.h: Do not include gdb_locale.h.
4443
4444 2014-08-07 Gary Benson <gbenson@redhat.com>
4445
4446 * common/common-defs.h: Include gdb/signals.h.
4447 * defs.h: Do not include gdb/signals.h.
4448
4449 2014-08-07 Gary Benson <gbenson@redhat.com>
4450
4451 * common/common-defs.h: Include pathmax.h.
4452 * defs.h: Do not include pathmax.h.
4453
4454 2014-08-07 Gary Benson <gbenson@redhat.com>
4455
4456 * common/common-defs.h: Include libiberty.h.
4457 * defs.h: Do not include libiberty.h.
4458 * common/queue.h: Likewise.
4459 * cp-name-parser.y: Likewise.
4460 * mi/mi-cmd-catch.c: Likewise.
4461 * python/python.c: Likewise.
4462
4463 2014-08-07 Gary Benson <gbenson@redhat.com>
4464
4465 * common/common-defs.h: Include ansidecl.h.
4466 * defs.h: Do not include ansidecl.h.
4467 * common/buffer.h: Likewise.
4468 * common/common-utils.h: Likewise.
4469
4470 2014-08-07 Gary Benson <gbenson@redhat.com>
4471
4472 * common/common-defs.h: Include stddef.h.
4473 * defs.h: Do not include stddef.h.
4474 * common/common-utils.h: Likewise.
4475 * amd64fbsd-nat.c: Likewise.
4476 * bcache.c: Likewise.
4477 * charset.c: Likewise.
4478 * common/buffer.h: Likewise.
4479 * common/vec.h: Likewise.
4480 * i386bsd-nat.c: Likewise.
4481 * nat/linux-btrace.h: Likewise.
4482 * ppcfbsd-nat.c: Likewise.
4483 * ppcnbsd-tdep.h: Likewise.
4484 * ppcobsd-nat.c: Likewise.
4485 * ppcobsd-tdep.h: Likewise.
4486 * python/py-gdb-readline.c: Likewise.
4487
4488 2014-08-07 Gary Benson <gbenson@redhat.com>
4489
4490 * common/common-defs.h: Include stdarg.h.
4491 * defs.h: Do not include stdarg.h.
4492 * ada-lang.c: Likewise.
4493 * common/common-utils.h: Likewise.
4494 * guile/scm-string.c: Likewise.
4495 * guile/scm-utils.c: Likewise.
4496 * m32c-tdep.c: Likewise.
4497
4498 2014-08-07 Gary Benson <gbenson@redhat.com>
4499
4500 * common/common-defs.h: Include stdlib.h.
4501 * defs.h: Do not include stdlib.h.
4502 * addrmap.c: Likewise.
4503 * bcache.c: Likewise.
4504 * common/buffer.c: Likewise.
4505 * common/common-utils.c: Likewise.
4506 * cp-name-parser.y: Likewise.
4507 * go32-nat.c: Likewise.
4508 * mn10300-linux-tdep.c: Likewise.
4509 * nat/linux-osdata.c: Likewise.
4510 * tui/tui.c: Likewise.
4511 * windows-nat.c: Likewise.
4512
4513 2014-08-07 Gary Benson <gbenson@redhat.com>
4514
4515 * common/common-defs.h: Include stdio.h.
4516 * defs.h: Do not include stdio.h.
4517 * ada-lang.c: Likewise.
4518 * common/buffer.c: Likewise.
4519 * common/common-utils.c: Likewise.
4520 * cp-name-parser.y: Likewise.
4521 * gnu-nat.c: Likewise.
4522 * go32-nat.c: Likewise.
4523 * i386gnu-nat.c: Likewise.
4524 * proc-api.c: Likewise.
4525 * proc-events.c: Likewise.
4526 * proc-flags.c: Likewise.
4527 * proc-why.c: Likewise.
4528 * python/python-internal.h: Likewise.
4529 * target-memory.c: Likewise.
4530 * tui/tui-io.c: Likewise.
4531 * tui/tui.c: Likewise.
4532
4533 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4534
4535 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4536 (scan_dyntag_auxv): Same.
4537
4538 2014-08-06 Yao Qi <yao@codesourcery.com>
4539
4540 * amd64-linux-nat.c: Remove duplicated include
4541 "x86-linux-nat.h".
4542 * i386-linux-nat.c: Likewise.
4543
4544 2014-08-06 Yao Qi <yao@codesourcery.com>
4545
4546 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4547 operand" with "Special opcode" in comments.
4548
4549 2014-08-05 Gary Benson <gbenson@redhat.com>
4550
4551 * interps.c (initialize_interps): Remove prototype.
4552 (interpreter_initialized): Remove static global.
4553 (interp_add): Do not call initialize_interps.
4554 (initialize_interps): Remove function.
4555
4556 2014-08-05 Gary Benson <gbenson@redhat.com>
4557
4558 * utils.c (vwarning): Remove spurious va_end.
4559
4560 2014-08-05 Alan Modra <amodra@gmail.com>
4561
4562 * charset.c (convert_between_encodings): Cast result of obstack_base.
4563 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4564 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4565 (read_unwind_info): Use size_t for some locals.
4566 * jit.c (finalize_symtab): Likewise.
4567 * utils.c (hashtab_obstack_allocate): Likewise.
4568 * symmisc.c (print_objfile_statistics): Update format strings.
4569
4570 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4571
4572 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4573 (Changes in GDB 7.8): ... here.
4574
4575 2014-08-04 Tom Tromey <tromey@redhat.com>
4576
4577 * target.c (set_targetdebug): New function.
4578 (initialize_targets): Pass set_targetdebug when creating "set
4579 debug target".
4580
4581 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4582
4583 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4584 if detecting a variable-sized field that is not the last field.
4585 Fix struct type length computation.
4586
4587 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4588
4589 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4590 Add debug trace.
4591
4592 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4593
4594 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4595 Remove "+ 8" offset in computation of CHAIN_VMA.
4596
4597 2014-07-31 Doug Evans <dje@google.com>
4598
4599 * inflow.c (child_terminal_inferior): Add comment.
4600 (child_terminal_ours_for_output): Add comment.
4601 (child_terminal_ours): Add comment.
4602 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4603 (linux_nat_terminal_ours): Add comment.
4604
4605 2014-07-31 Gary Benson <gbenson@redhat.com>
4606
4607 * common/btrace-common.h: Do not include defs.h or server.h.
4608 * nat/mips-linux-watch.h: Likewise.
4609 * gdb-dlfcn.h: Do not include defs.h.
4610 * tracefile.h: Likewise.
4611
4612 2014-07-30 Roland McGrath <mcgrathr@google.com>
4613
4614 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4615
4616 2014-07-30 Tom Tromey <tromey@redhat.com>
4617
4618 * bsd-kvm.c (bsd_kvm_open): Constify.
4619 * corelow.c (core_open): Constify.
4620 * ctf.c (ctf_open): Constify.
4621 * dbug-rom.c (dbug_open): Constify.
4622 * exec.c (exec_open): Constify.
4623 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4624 * microblaze-rom.c (picobug_open): Constify.
4625 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4626 Constify.
4627 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4628 * record-btrace.c (record_btrace_open): Constify.
4629 * record-full.c (record_full_core_open_1, record_full_open_1)
4630 (record_full_open): Constify.
4631 * remote-m32r-sdi.c (m32r_open): Constify.
4632 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4633 (rockhopper_open, lsi_open): Constify.
4634 * remote-sim.c (gdbsim_open): Constify.
4635 * remote.c (remote_open, extended_remote_open, remote_open_1):
4636 Constify.
4637 * target.h (struct target_ops) <to_open>: Make "arg" const.
4638 * tracefile-tfile.c (tfile_open): Constify.
4639
4640 2014-07-30 Tom Tromey <tromey@redhat.com>
4641
4642 * breakpoint.c (map_breakpoint_numbers): Update.
4643 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4644 (get_number_const): New function.
4645 (get_number): Rewrite using get_number_const.
4646 (init_number_or_range): Make "string" const.
4647 (number_is_in_list): Make "list" const.
4648 * cli/cli-utils.h (get_number_const): Declare.
4649 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4650 (init_number_or_range, number_is_in_list): Update.
4651 * printcmd.c (map_display_numbers): Update.
4652 * value.c (value_from_history_ref): Constify.
4653 * value.h (value_from_history_ref): Update.
4654
4655 2014-07-30 Tom Tromey <tromey@redhat.com>
4656
4657 * corefile.c (hook_type, call_extra_exec_file_hooks)
4658 (specify_exec_file_hook): Constify.
4659 * exec.c (exec_file_attach): Make "filename" const.
4660 * gdbcore.h (deprecated_exec_file_display_hook)
4661 (specify_exec_file_hook, exec_file_attach): Constify.
4662 * main.c (captured_main): Use catch_command_errors_const.
4663
4664 2014-07-30 Tom Tromey <tromey@redhat.com>
4665
4666 * target.c (open_target): New function.
4667 (add_target_with_completer, add_deprecated_target_alias): Use
4668 set_cmd_sfunc, set_cmd_context.
4669 (debug_to_open): Remove.
4670 (setup_target_debug): Update.
4671
4672 2014-07-30 Yao Qi <yao@codesourcery.com>
4673
4674 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4675 comments.
4676 * parse.c (exp_iterate): Update comments.
4677
4678 2014-07-30 Gary Benson <gbenson@redhat.com>
4679
4680 * common/common-defs.h: New file.
4681 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4682 * defs.h: Include common-defs.h.
4683 Do not include config.h or build-gnulib/config.h.
4684
4685 2014-07-30 Gary Benson <gbenson@redhat.com>
4686
4687 * common/common-utils.h: Do not include config.h.
4688 * nat/linux-btrace.h: Likewise.
4689
4690 2014-07-30 Gary Benson <gbenson@redhat.com>
4691
4692 * btrace.c: Include defs.h.
4693 * common/ptid.c: Include defs.h or server.h as appropriate.
4694 * nat/mips-linux-watch.c: Likewise.
4695
4696 2014-07-29 Tom Tromey <tromey@redhat.com>
4697
4698 * target.c (target_is_pushed): Simplify.
4699
4700 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4701
4702 GDB 7.8 released.
4703
4704 2014-07-29 Yao Qi <yao@codesourcery.com>
4705
4706 PR gdb/17206
4707 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4708
4709 2014-07-28 Doug Evans <xdje42@gmail.com>
4710
4711 PR guile/17203
4712 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4713 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4714 parameters.
4715
4716 2014-07-28 Will Newton <will.newton@linaro.org>
4717
4718 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4719 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4720 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4721 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4722 (THUMB2_EABI_SYSCALL): Likewise.
4723 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4724 struct tramp_frame.
4725 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4726 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4727
4728 2014-07-27 Doug Evans <xdje42@gmail.com>
4729
4730 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4731
4732 2014-07-27 Doug Evans <xdje42@gmail.com>
4733
4734 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4735
4736 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4737 Doug Evans <xdje42@gmail.com>
4738
4739 PR guile/17146
4740 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4741 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4742 * configure.ac: Try to use guild to compile an scm file, if it fails
4743 then disable guile support.
4744 * configure: Regenerate.
4745 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4746 GUILE_FILE_LIST.
4747 (GUILE_COMPILED_FILES): New variable.
4748 (GUILE_FILES) Update.
4749 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4750 (stamp-guile): Compile scm files.
4751 * guile/guile.c (boot_guile_support): New function.
4752 (standard_throw_args_p): New function.
4753 (print_standard_throw_error, print_throw_error): New functions.
4754 (handle_boot_error): New function.
4755 (initialize_scheme_side): Rewrite to call boot_guile_support.
4756 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4757 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4758
4759 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4760 Doug Evans <xdje42@gmail.com>
4761
4762 PR guile/17146
4763 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4764 * guile/lib/gdb/support.scm: New file.
4765 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4766 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4767 All uses updated.
4768 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4769 All uses updated.
4770 (%assert-type): Ditto, and renamed to assert-type.
4771 (%exception-print-style): Delete.
4772
4773 2014-07-26 Doug Evans <xdje42@gmail.com>
4774
4775 PR build/17105
4776 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4777 * configure: Regenerate.
4778 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4779 PYTHON_FILES.
4780 (PYTHON_FILES): New variable.
4781 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4782 (GUILE_FILES): New variable.
4783 (stamp-python, install-python, uninstall-python): Handle empty
4784 file list.
4785 (stamp-guile, install-guile, uninstall-guile): Ditto.
4786
4787 2014-07-26 Doug Evans <xdje42@gmail.com>
4788
4789 PR guile/17177
4790 * guile/lib/gdb.scm (pretty-printers): Export.
4791 (set-pretty-printers!): Export.
4792 * guile/lib/gdb/printing.scm (gdb module): Update.
4793 (prepend-pretty-printer!, append-pretty-printer!): Update.
4794 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4795 (pretty_printer_list_var): Delete.
4796 (pretty_printer_list): New static global.
4797 (gdbscm_pretty_printers): New function.
4798 (gdbscm_set_pretty_printers_x): New function.
4799 (ppscm_find_pretty_printer_from_gdb): Update.
4800 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4801 (gdbscm_initialize_pretty_printers): Update.
4802
4803 2014-07-26 Doug Evans <xdje42@gmail.com>
4804
4805 PR 17185
4806 * configure.ac: Add check for header gc/gc.h.
4807 Add check for function setenv.
4808 * configure: Regenerate.
4809 * config.in: Regenerate.
4810 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4811
4812 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4813
4814 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4815 variation in gdbarch matching.
4816
4817 2014-07-25 Tom Tromey <tromey@redhat.com>
4818
4819 * exec.c (using_exec_ops): Remove.
4820 (exec_close_1): Update. Remove extraneous block, reindent.
4821 (add_target_sections): Use target_is_pushed.
4822
4823 2014-07-25 Pedro Alves <palves@redhat.com>
4824
4825 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4826 * monitor.c (monitor_create_inferior): Likewise.
4827 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4828 * remote-sim.c (gdbsim_create_inferior): Likewise.
4829 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4830 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4831 * windows-nat.c (do_initial_windows_stuff): Likewise.
4832
4833 2014-07-25 Pedro Alves <palves@redhat.com>
4834
4835 * NEWS: Mention signal passing and "signal" command changes.
4836 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4837 comment.
4838 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4839 call.
4840 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4841 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4842 (jump_command): Adjust clear_proceed_status call.
4843 (signal_command): Warn if other thread that are resumed have
4844 signals that will be delivered. Adjust clear_proceed_status call.
4845 (until_next_command, finish_command)
4846 (proceed_after_attach_callback, attach_command_post_wait)
4847 (attach_command): Adjust clear_proceed_status call.
4848 * infrun.c (proceed_after_vfork_done): Likewise.
4849 (proceed_after_attach_callback): Adjust comment.
4850 (clear_proceed_status_thread): Clear stop_signal if not in pass
4851 state.
4852 (clear_proceed_status_callback): Delete.
4853 (clear_proceed_status): New 'step' parameter. Only clear the
4854 proceed status of threads the command being prepared is about to
4855 resume.
4856 (proceed): If passed in an explicit signal, override stop_signal
4857 with it. Don't pass the last stop signal to the thread we're
4858 resuming.
4859 (init_wait_for_inferior): Adjust clear_proceed_status call.
4860 (switch_back_to_stepped_thread): Clear the signal if it should not
4861 be passed.
4862 * infrun.h (clear_proceed_status): New 'step' parameter.
4863 (user_visible_resume_ptid): Add comment.
4864 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4865 signal is in pass state.
4866 * remote.c (append_pending_thread_resumptions): Likewise.
4867 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4868
4869 2014-07-25 Tom Tromey <tromey@redhat.com>
4870
4871 * target.h (target_stopped_data_address)
4872 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4873 parentheses.
4874
4875 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4876
4877 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4878 comments.
4879 (avr_pointer_to_address): Likewise.
4880
4881 2014-07-24 Tom Tromey <tromey@redhat.com>
4882
4883 * monitor.c (compile_pattern): Update.
4884 * target.h (struct target_ops) <to_shortname, to_longname,
4885 to_doc>: Now const.
4886
4887 2014-07-24 Tom Tromey <tromey@redhat.com>
4888
4889 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4890 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4891 (add_info_alias, add_com): Make "doc" const.
4892 (print_doc_line): Make "str" const.
4893 (delete_cmd): Update.
4894 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4895 (print_doc_line): Update.
4896 * cli/cli-script.c (document_command): Update.
4897 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4898 (add_com, add_info, add_info_alias): Update.
4899 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4900 * python/py-cmd.c (cmdpy_destroyer): Update.
4901
4902 2014-07-24 Tom Tromey <tromey@redhat.com>
4903
4904 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4905 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4906 (help_cmd_list): Constify.
4907 (lookup_cmd): Update.
4908 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4909 const.
4910 (help_cmd_list, apropos_cmd): Update.
4911 * cli/cli-script.c (show_user): Update.
4912 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4913 * cli/cli-setshow.h (cmd_show_list): Update.
4914 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4915 (cmd_show_list): Update.
4916 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4917 * python/py-cmd.c (cmdpy_destroyer): Update.
4918
4919 2014-07-24 Tom Tromey <tromey@redhat.com>
4920
4921 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4922 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4923 const.
4924 * command.h (deprecate_cmd): Update.
4925 * maint.c (maintenance_do_deprecate): Add casts.
4926
4927 2014-07-24 Tom Tromey <tromey@redhat.com>
4928
4929 * cli/cli-decode.c (help_cmd): Make parameter "const".
4930 * cli/cli-decode.h (help_cmd): Update.
4931
4932 2014-07-24 Tom Tromey <tromey@redhat.com>
4933
4934 * stack.c (up_silently_base, down_silently_base): Make argument
4935 const.
4936
4937 2014-07-24 Tom Tromey <tromey@redhat.com>
4938
4939 * solib.c (solib_add): Make "pattern" const.
4940 * solib.h (solib_add): Update.
4941
4942 2014-07-24 Tom Tromey <tromey@redhat.com>
4943
4944 * remote.c (remote_serial_open, print_packet, putpkt)
4945 (putpkt_binary): Constify.
4946 * remote.h (putpkt): Update.
4947
4948 2014-07-24 Tom Tromey <tromey@redhat.com>
4949
4950 * monitor.c (monitor_open): Make "args" const.
4951 * monitor.h (monitor_open): Update.
4952
4953 2014-07-24 Tom Tromey <tromey@redhat.com>
4954
4955 * maint.c (match_bfd_flags): Make "string" const.
4956 (print_bfd_section_info): Remove casts.
4957 (print_objfile_section_info): Make "string" const.
4958
4959 2014-07-24 Tom Tromey <tromey@redhat.com>
4960
4961 * inf-child.c (inf_child_open_target): Make "arg" const.
4962 * inf-child.h (inf_child_open_target): Update.
4963
4964 2014-07-24 Tom Tromey <tromey@redhat.com>
4965
4966 * environ.c (unset_in_environ): Make "var" const.
4967 * environ.h (unset_in_environ): Update.
4968
4969 2014-07-24 Tom Tromey <tromey@redhat.com>
4970
4971 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4972 Make "cmd" const.
4973 (scan_filename_with_cleanup): Likewise.
4974 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4975 Make arguments const.
4976 (restore_command): Update.
4977
4978 2014-07-24 Pedro Alves <palves@redhat.com>
4979
4980 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4981
4982 2014-07-24 Tom Tromey <tromey@redhat.com>
4983 Gary Benson <gbenson@redhat.com>
4984
4985 * nat/linux-ptrace.c (additional_flags): New global.
4986 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4987 additional_flags; don't check GDBSERVER.
4988 (linux_ptrace_set_additional_flags): New function.
4989 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4990 Declare.
4991 * linux-nat.c (_initialize_linux_nat): Call
4992 linux_ptrace_set_additional_flags.
4993
4994 2014-07-24 Tom Tromey <tromey@redhat.com>
4995
4996 * make-target-delegates (munge_type, write_debugmethod): New
4997 functions.
4998 (debug_names): New global.
4999 ($TARGET_DEBUG_PRINTER): New global.
5000 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5001 name.
5002 Write debug methods. Generate init_debug_target.
5003 * target-debug.h: New file.
5004 * target-delegates.c: Rebuild.
5005 * target.c: Include target-debug.h.
5006 (debug_target): Hoist definition.
5007 (target_kill, target_get_section_table, target_memory_map)
5008 (target_flash_erase, target_flash_done, target_detach)
5009 (target_disconnect, target_wait, target_resume)
5010 (target_pass_signals, target_program_signals, target_follow_fork)
5011 (target_mourn_inferior, target_search_memory)
5012 (target_thread_address_space, target_close)
5013 (target_find_new_threads, target_core_of_thread)
5014 (target_verify_memory, target_insert_mask_watchpoint)
5015 (target_remove_mask_watchpoint): Remove targetdebug code.
5016 (debug_to_post_attach, debug_to_prepare_to_store)
5017 (debug_to_files_info, debug_to_insert_breakpoint)
5018 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5019 (debug_to_region_ok_for_hw_watchpoint)
5020 (debug_to_can_accel_watchpoint_condition)
5021 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5022 (debug_to_watchpoint_addr_within_range)
5023 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5024 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5025 (debug_to_terminal_init, debug_to_terminal_inferior)
5026 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5027 (debug_to_terminal_save_ours, debug_to_terminal_info)
5028 (debug_to_load, debug_to_post_startup_inferior)
5029 (debug_to_insert_fork_catchpoint)
5030 (debug_to_remove_fork_catchpoint)
5031 (debug_to_insert_vfork_catchpoint)
5032 (debug_to_remove_vfork_catchpoint)
5033 (debug_to_insert_exec_catchpoint)
5034 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5035 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5036 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5037 (setup_target_debug): Call init_debug_target.
5038 * target.h (TARGET_DEBUG_PRINTER): New macro.
5039 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5040 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5041
5042 2014-07-24 Gary Benson <gbenson@redhat.com>
5043
5044 * exceptions.h (throw_vfatal): Renamed to...
5045 (throw_vquit): New declaration.
5046 (throw_quit): Likewise.
5047 * exceptions.c (throw_vfatal): Renamed to...
5048 (throw_vquit): New function.
5049 (throw_quit): Likewise.
5050 (throw_error): Call throw_verror rather than throw_it.
5051 * utils.h (vfatal): Removed.
5052 (fatal): Likewise.
5053 * utils.c (vfatal): Removed.
5054 (fatal): Likewise.
5055 (internal_verror): Replaced call to fatal with call to throw_quit.
5056 (quit): Replaced calls to fatal with calls to throw_quit.
5057
5058 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5059
5060 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5061 target_read_code.
5062
5063 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5064
5065 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5066 less than zero in conditional expression.
5067
5068 2014-07-23 Tom Tromey <tromey@redhat.com>
5069
5070 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5071 ($INTRO_PART): Don't match whitespace.
5072 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5073 argument matching.
5074 ($METHOD): Add $METHOD_TRAILER.
5075 (trim): Rewrite.
5076 (scan_target_h): New sub.
5077 Change main loop not to collect state.
5078 * target-delegates.c: Rebuild.
5079
5080 2014-07-23 Gary Benson <gbenson@redhat.com>
5081
5082 * cp-support.c (gdb_demangle): Fix build on systems without
5083 sigaltstack.
5084
5085 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5086
5087 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5088 for reference entry value target data value.
5089
5090 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5091
5092 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5093 value_available_contents_eq.
5094
5095 2014-07-22 Pedro Alves <palves@redhat.com>
5096
5097 * value.c (allocate_optimized_out_value): Don't mark value as
5098 non-lazy.
5099
5100 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5101
5102 * MAINTAINERS (Write After Approval): Update my email address.
5103
5104 2014-07-20 Doug Evans <dje@google.com>
5105
5106 PR server/17147
5107 * remote.c (putpkt_binary): Add text to error message.
5108
5109 2014-07-20 Yao Qi <yao@codesourcery.com>
5110
5111 * eval.c: Remove "Chill" from comments.
5112 * gdbtypes.h: Likewise.
5113 * symtab.h: Likewise.
5114
5115 2014-07-20 Yao Qi <yao@codesourcery.com>
5116
5117 * std-operator.def: Update comments to TERNOP_SLICE.
5118
5119 2014-07-20 Yao Qi <yao@codesourcery.com>
5120
5121 * std-operator.def: Remove BINOP_RANGE.
5122 * breakpoint.c (watchpoint_exp_is_const): Update.
5123 * expprint.c (dump_subexp_body_standard): Likewise.
5124 * eval.c (init_array_element): Remove dead code.
5125 (evaluate_subexp_standard): Likewise.
5126
5127 2014-07-20 Yao Qi <yao@codesourcery.com>
5128
5129 * std-operator.def: Remove BINOP_IN.
5130 * breakpoint.c (watchpoint_exp_is_const): Update.
5131 * eval.c (evaluate_subexp_standard): Likewise.
5132 * expprint.c (dump_subexp_body_standard): Likewise.
5133
5134 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5135
5136 * microblaze-tdep.c (microblaze_register_names): Add
5137 the rshr and rslr register names.
5138 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5139 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5140 Use of tdesc_numbered_register. Use of
5141 microblaze_register_g_packet_guesses. Use of
5142 tdesc_use_registers. Use of set_gdbarch_register_type.
5143 (microblaze_register_g_packet_guesses): New.
5144 * microblaze-tdep.h (microblaze_reg_num): Add
5145 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5146 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5147 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5148 * features/microblaze-core.xml: New file.
5149 * features/microblaze-stack-protect.xml: New file.
5150 * features/microblaze-with-stack-protect.c: New file.
5151 * features/microblaze-with-stack-protect.xml: New file.
5152 * features/microblaze.xml: New file.
5153 * features/microblaze.c: New file.
5154 * features/Makefile (microblaze-with-stack-protect): Add
5155 microblaze-with-stack-protect microblaze and microblaze-expedite.
5156 * regformats/microblaze-with-stack-protect.dat: New file.
5157 * regformats/microblaze.dat: New file.
5158 * doc/gdb.texinfo (MicroBlaze Features): Added.
5159
5160 2014-07-18 Tom Tromey <tromey@redhat.com>
5161
5162 * exec.c (exec_ops): Now static.
5163 * exec.h (exec_ops): Don't declare.
5164
5165 2014-07-18 Tom Tromey <tromey@redhat.com>
5166
5167 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5168 to find_target_beneath.
5169 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5170 find_target_beneath.
5171 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5172
5173 2014-07-18 Tom Tromey <tromey@redhat.com>
5174
5175 PR gdb/17130:
5176 * utils.c (quit): Use target_supports_terminal_ours.
5177 * target.h (target_supports_terminal_ours): Declare.
5178 * target.c (target_supports_delete_record): Don't check
5179 to_delete_record against NULL.
5180 (target_supports_terminal_ours): New function.
5181
5182 2014-07-18 Tom Tromey <tromey@redhat.com>
5183
5184 PR gdb/17130:
5185 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5186 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5187 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5188 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5189 * windows-nat.c (windows_xfer_partial): Always delegate.
5190 * record-btrace.c (record_btrace_xfer_partial): Simplify
5191 delegation.
5192 (record_btrace_fetch_registers, record_btrace_store_registers)
5193 (record_btrace_prepare_to_store, record_btrace_resume)
5194 (record_btrace_wait, record_btrace_find_new_threads)
5195 (record_btrace_thread_alive): Likewise.
5196 * procfs.c (procfs_xfer_partial): Always delegate.
5197 * corelow.c (core_xfer_partial): Always delegate.
5198 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5199
5200 2014-07-18 Tom Tromey <tromey@redhat.com>
5201
5202 * exec.c (exec_make_note_section): Move earlier.
5203
5204 2014-07-17 Doug Evans <dje@google.com>
5205
5206 PR gdb/17170
5207 * maint.c (count_symtabs_and_blocks): Handle NULL
5208 current_program_space.
5209 (report_command_stats): Check global enabled flag in addition to
5210 recorded enabled flag.
5211 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5212
5213 2014-07-16 Pedro Alves <palves@redhat.com>
5214
5215 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5216
5217 2014-07-16 Tom Tromey <tromey@redhat.com>
5218
5219 * target.h (struct target_ops) <to_delete_record>: Reformat
5220 comment.
5221
5222 2014-07-16 Tom Tromey <tromey@redhat.com>
5223
5224 * target-delegates.c: Rebuild.
5225
5226 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5227
5228 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5229 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5230 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5231 (avr_pointer_to_address): Likewise.
5232 (avr_address_class_type_flags): New function.
5233 (avr_address_class_type_flags_to_name): Likewise.
5234 (avr_address_class_name_to_type_flags): Likewise.
5235 (avr_gdbarch_init): Set address_class_type_flags,
5236 address_class_type_flags_to_name and
5237 address_class_name_to_type_flags.
5238
5239 2014-07-15 Pedro Alves <palves@redhat.com>
5240
5241 * linux-nat.c (kill_callback): Save errno and work with saved
5242 copy.
5243
5244 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5245
5246 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5247
5248 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5249
5250 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5251 breakpoint support correctly.
5252
5253 2014-07-14 Pedro Alves <palves@redhat.com>
5254
5255 * utils.c (prompt_for_continue): Call target_terminal_ours.
5256
5257 2014-07-14 Pedro Alves <palves@redhat.com>
5258
5259 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5260 catch_errors. Don't re-enable stdin or notify observers where,
5261 and rethrow error.
5262 (fetch_inferior_event_wrapper): Delete.
5263
5264 2014-07-14 Pedro Alves <palves@redhat.com>
5265
5266 PR gdb/17072
5267 * top.c: Include "inf-loop.h".
5268 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5269 field.
5270 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5271 was async before.
5272 (gdb_readline_wrapper): Store whether the target is async, and
5273 make it sync.
5274
5275 2014-07-14 Pedro Alves <palves@redhat.com>
5276
5277 PR gdb/17072
5278 * top.c (gdb_readline_wrapper_line): Tweak comment.
5279 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5280 the input handler callback.
5281
5282 2014-07-14 Pedro Alves <palves@redhat.com>
5283
5284 PR gdb/17072
5285 * main.c: Include event-top.h.
5286 (handle_command_errors): New function.
5287 (catch_command_errors, catch_command_errors_const): Use it.
5288
5289 2014-07-14 Pedro Alves <palves@redhat.com>
5290
5291 * exceptions.c (catch_command_errors, catch_command_errors_const):
5292 Moved to main.c.
5293 * exceptions.h (catch_command_errors_ftype)
5294 (catch_command_errors_const_ftype): Moved to main.c.
5295 (catch_command_errors, catch_command_errors_const): Delete
5296 declarations.
5297 * main.c (catch_command_errors_ftype)
5298 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5299 (catch_command_errors, catch_command_errors_const)): Moved here
5300 from exceptions.c and make static.
5301
5302 2014-07-14 Pedro Alves <palves@redhat.com>
5303
5304 * exceptions.c (print_any_exception): Delete.
5305 (catch_exceptions_with_msg): Use exception_print instead of
5306 print_any_exception.
5307 (catch_errors): Use exception_fprintf instead of
5308 print_any_exception.
5309 (catch_command_errors, catch_command_errors_const): Use
5310 exception_print instead of print_any_exception.
5311
5312 2014-07-14 Pedro Alves <palves@redhat.com>
5313
5314 * infcall.c (run_inferior_call): Set 'sync_execution' while
5315 running the inferior call.
5316
5317 2014-07-14 Pedro Alves <palves@redhat.com>
5318
5319 * value.c (value_contents_equal): Delete function.
5320 * value.h (value_contents_equal): Delete declaration.
5321
5322 2014-07-14 Tom Tromey <tromey@redhat.com>
5323
5324 PR exp/17106:
5325 * gdbtypes.c (is_dynamic_type_internal): New function, from
5326 is_dynamic_type.
5327 (is_dynamic_type): Rewrite.
5328 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5329 (resolve_dynamic_struct): Likewise.
5330 (resolve_dynamic_type_internal): New function, from
5331 resolve_dynamic_type.
5332 (resolve_dynamic_type): Rewrite.
5333
5334 2014-07-14 Tom Tromey <tromey@redhat.com>
5335
5336 * target.c (target_require_runnable): Also check record_stratum.
5337 Update comment.
5338
5339 2014-07-11 Yao Qi <yao@codesourcery.com>
5340
5341 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5342 thumb_instruction_restores_sp return true.
5343
5344 2014-07-11 Yao Qi <yao@codesourcery.com>
5345
5346 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5347 (thumb_in_function_epilogue_p): Call
5348 thumb_instruction_restores_sp.
5349
5350 2014-07-11 Yao Qi <yao@codesourcery.com>
5351
5352 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5353 'add sp, #imm'.
5354 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5355
5356 2014-07-11 Gary Benson <gbenson@redhat.com>
5357
5358 * amd64-linux-nat.c (gdbcore.h): Remove include.
5359 (regset.h): Likewise.
5360 (nat/linux-btrace.h): Likewise.
5361 (btrace.h): Likewise.
5362 (gdb_assert.h): Likewise.
5363 (string.h): Likewise.
5364 (sys/uio.h): Likewise.
5365 (sys/debugreg.h): Likewise.
5366 (sys/syscall.h): Likewise.
5367 (sys/procfs.h): Likewise.
5368 (sys/user.h): Likewise.
5369 (asm/ptrace.h): Likewise.
5370 (i386-nat.h): Likewise.
5371 * i386-linux-nat.c (i386-nat.h): Likewise.
5372 (regset.h): Likewise.
5373 (target.h): Likewise.
5374 (linux-nat.h): Likewise.
5375 (nat/linux-btrace.h): Likewise.
5376 (btrace.h): Likewise.
5377 (gdb_assert.h): Likewise.
5378 (string.h): Likewise.
5379 (sys/uio.h): Likewise.
5380 (sys/user.h): Likewise.
5381 (sys/procfs.h): Likewise.
5382 (sys/reg.h): Likewise.
5383 (sys/debugreg.h): Likewise.
5384 (ORIG_EAX): Remove definition.
5385
5386 2014-07-11 Gary Benson <gbenson@redhat.com>
5387
5388 * i386-linux-nat.h: New file.
5389 * x86-linux-nat.h: Likewise.
5390 * x86-linux-nat.c: Likewise.
5391 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5392 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5393 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5394 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5395 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5396 (PTRACE_SETREGSET): Likewise.
5397 (arch_lwp_info): Now in x86-linux-nat.c.
5398 (have_ptrace_getregset): Now in x86-linux-nat.h.
5399 (x86_linux_dr_get): Now in x86-linux-nat.c.
5400 (x86_linux_dr_set): Likewise.
5401 (x86_linux_dr_get_addr): Likewise.
5402 (x86_linux_dr_get_control): Likewise.
5403 (x86_linux_dr_get_status): Likewise.
5404 (update_debug_registers_callback): Likewise.
5405 (x86_linux_dr_set_control): Likewise.
5406 (x86_linux_dr_set_addr): Likewise.
5407 (x86_linux_prepare_to_resume): Likewise.
5408 (x86_linux_new_thread): Likewise.
5409 (x86_linux_new_fork): Likewise.
5410 (x86_linux_get_thread_area): Likewise.
5411 (super_post_startup_inferior): Likewise.
5412 (x86_linux_child_post_startup_inferior): Likewise.
5413 (AMD64_LINUX_USER64_CS): Likewise.
5414 (AMD64_LINUX_X32_DS): Likewise.
5415 (x86_linux_read_description): Likewise.
5416 (x86_linux_enable_btrace): Likewise.
5417 (x86_linux_disable_btrace): Likewise.
5418 (x86_linux_teardown_btrace): Likewise.
5419 (x86_linux_read_btrace): Likewise.
5420 (x86_linux_create_target): Likewise.
5421 (x86_linux_add_target): Likewise.
5422 * i386-linux-nat.c (x86-linux-nat.h): New include.
5423 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5424 (PTRACE_SETREGSET): Likewise.
5425 (arch_lwp_info): Now in x86-linux-nat.c.
5426 (have_ptrace_getregset): Now in x86-linux-nat.h.
5427 (x86_linux_dr_get): Now in x86-linux-nat.c.
5428 (x86_linux_dr_set): Likewise.
5429 (x86_linux_dr_get_addr): Likewise.
5430 (x86_linux_dr_get_control): Likewise.
5431 (x86_linux_dr_get_status): Likewise.
5432 (update_debug_registers_callback): Likewise.
5433 (x86_linux_dr_set_control): Likewise.
5434 (x86_linux_dr_set_addr): Likewise.
5435 (x86_linux_prepare_to_resume): Likewise.
5436 (x86_linux_new_thread): Likewise.
5437 (x86_linux_new_fork): Likewise.
5438 (x86_linux_get_thread_area): Likewise.
5439 (super_post_startup_inferior): Likewise.
5440 (x86_linux_child_post_startup_inferior): Likewise.
5441 (AMD64_LINUX_USER64_CS): Likewise.
5442 (AMD64_LINUX_X32_DS): Likewise.
5443 (x86_linux_read_description): Likewise.
5444 (x86_linux_enable_btrace): Likewise.
5445 (x86_linux_disable_btrace): Likewise.
5446 (x86_linux_teardown_btrace): Likewise.
5447 (x86_linux_read_btrace): Likewise.
5448 (x86_linux_create_target): Likewise.
5449 (x86_linux_add_target): Likewise.
5450
5451 2014-07-11 Gary Benson <gbenson@redhat.com>
5452
5453 * amd64-linux-nat.c: Comment and whitespace changes.
5454 * i386-linux-nat.c: Comment and whitespace changes.
5455
5456 2014-07-11 Gary Benson <gbenson@redhat.com>
5457
5458 * amd64-linux-nat.c (x86_linux_create_target): New function.
5459 (x86_linux_add_target): Likewise.
5460 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5461 * i386-linux-nat.c (x86_linux_create_target): New function.
5462 (x86_linux_add_target): Likewise.
5463 (_initialize_i386_linux_nat): Delegate to the above new functions.
5464
5465 2014-07-11 Gary Benson <gbenson@redhat.com>
5466
5467 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5468 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5469 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5470 (ps_get_thread_area): Delegate to the above.
5471
5472 2014-07-11 Gary Benson <gbenson@redhat.com>
5473
5474 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5475 x86_linux_read_description. All uses updated. amd64-specific
5476 code conditionalized. Conditionalized i386-specific code added.
5477 Redundant cast removed.
5478 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5479 x86_linux_read_description. All uses updated. i386-specific
5480 code conditionalized. Conditionalized amd64-specific code added.
5481 One sizeof replaced with the actual type it is describing.
5482
5483 2014-07-11 Gary Benson <gbenson@redhat.com>
5484
5485 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5486 x86_linux_dr_get. All uses updated.
5487 (amd64_linux_dr_set): Renamed to
5488 x86_linux_dr_set. All uses updated.
5489 (amd64_linux_dr_get_addr): Renamed to
5490 x86_linux_dr_get_addr. All uses updated.
5491 (amd64_linux_dr_get_control): Renamed to
5492 x86_linux_dr_get_control. All uses updated.
5493 (amd64_linux_dr_get_status): Renamed to
5494 x86_linux_dr_get_status. All uses updated.
5495 (amd64_linux_dr_set_control): Renamed to
5496 x86_linux_dr_set_control. All uses updated.
5497 (amd64_linux_dr_set_addr): Renamed to
5498 x86_linux_dr_set_addr. All uses updated.
5499 (amd64_linux_prepare_to_resume): Renamed to
5500 x86_linux_prepare_to_resume. All uses updated.
5501 (amd64_linux_new_thread): Renamed to
5502 x86_linux_new_thread. All uses updated.
5503 (amd64_linux_new_fork): Renamed to
5504 x86_linux_new_fork. All uses updated.
5505 (amd64_linux_child_post_startup_inferior): Renamed to
5506 x86_linux_child_post_startup_inferior. All uses updated.
5507 (amd64_linux_enable_btrace): Renamed to
5508 x86_linux_enable_btrace. All uses updated.
5509 (amd64_linux_disable_btrace): Renamed to
5510 x86_linux_disable_btrace. All uses updated.
5511 (amd64_linux_teardown_btrace): Renamed to
5512 x86_linux_teardown_btrace. All uses updated.
5513 (amd64_linux_read_btrace): Renamed to
5514 x86_linux_read_btrace. All uses updated.
5515 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5516 x86_linux_dr_get. All uses updated.
5517 (i386_linux_dr_set): Renamed to
5518 x86_linux_dr_set. All uses updated.
5519 (i386_linux_dr_get_addr): Renamed to
5520 x86_linux_dr_get_addr. All uses updated.
5521 (i386_linux_dr_get_control): Renamed to
5522 x86_linux_dr_get_control. All uses updated.
5523 (i386_linux_dr_get_status): Renamed to
5524 x86_linux_dr_get_status. All uses updated.
5525 (i386_linux_dr_set_control): Renamed to
5526 x86_linux_dr_set_control. All uses updated.
5527 (i386_linux_dr_set_addr): Renamed to
5528 x86_linux_dr_set_addr. All uses updated.
5529 (i386_linux_prepare_to_resume): Renamed to
5530 x86_linux_prepare_to_resume. All uses updated.
5531 (i386_linux_new_thread): Renamed to
5532 x86_linux_new_thread. All uses updated.
5533 (i386_linux_new_fork): Renamed to
5534 x86_linux_new_fork. All uses updated.
5535 (i386_linux_child_post_startup_inferior): Renamed to
5536 x86_linux_child_post_startup_inferior. All uses updated.
5537 (i386_linux_enable_btrace): Renamed to
5538 x86_linux_enable_btrace. All uses updated.
5539 (i386_linux_disable_btrace): Renamed to
5540 x86_linux_disable_btrace. All uses updated.
5541 (i386_linux_teardown_btrace): Renamed to
5542 x86_linux_teardown_btrace. All uses updated.
5543 (i386_linux_read_btrace): Renamed to
5544 x86_linux_read_btrace. All uses updated.
5545
5546 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5547
5548 * remote.c (extended_remote_post_attach): New function.
5549 (init_extended_remote_ops): Install it as to_post_attach method.
5550
5551 2014-07-09 Pedro Alves <palves@redhat.com>
5552
5553 * infcmd.c (attach_command_post_wait): Don't call
5554 target_terminal_inferior here.
5555 (attach_command): Call it here instead.
5556
5557 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5558
5559 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5560 field.
5561 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5562 from varobj.c, with additional checks.
5563 (c_varobj_ops): Fill in is_path_expr_parent field.
5564 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5565 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5566 field.
5567 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5568 ops method.
5569 (varobj_default_is_path_expr_parent): New function.
5570 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5571 (varobj_default_is_path_expr_parent): Declare new function.
5572
5573 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5574
5575 * infcmd.c (finish_backward): Turn internal error into normal error.
5576
5577 2014-07-07 Pedro Alves <palves@redhat.com>
5578
5579 PR gdb/17096
5580 * remote.c (async_handle_remote_sigint)
5581 (async_handle_remote_sigint_twice): Call
5582 gdb_call_async_signal_handler instead of
5583 mark_async_signal_handler.
5584
5585 2014-07-07 Tom Tromey <tromey@redhat.com>
5586
5587 * target-delegates.c: Rebuild.
5588 * target.c (target_info_record): Remove.
5589 * record.c (info_record_command): Unconditionally call
5590 to_info_record.
5591 * target.h (struct target_ops) <to_info_record>: Use
5592 TARGET_DEFAULT_IGNORE.
5593 (target_info_record): Remove.
5594
5595 2014-07-07 Tom Tromey <tromey@redhat.com>
5596
5597 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5598 TARGET_DEFAULT_NORETURN.
5599 * target.c (generic_tls_error): New function.
5600 (target_translate_tls_address): Don't search target stack.
5601 * target-delegates.c: Rebuild.
5602 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5603 stack.
5604 * linux-thread-db.c (thread_db_get_thread_local_address):
5605 Unconditionally call beneath target.
5606
5607 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5608
5609 * cli/cli-logging.c (pop_output_files): Assign targerr to
5610 gdb_stdtargerr.
5611
5612 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5613
5614 * MAINTAINERS (Write After Approval): Update my email address.
5615
5616 2014-07-02 Gary Benson <gbenson@redhat.com>
5617
5618 * proc-service.c (ps_xfer_memory): Update comment.
5619 (ps_pstop): Remove unused function.
5620 (ps_pcontinue): Likewise.
5621 (ps_lstop): Likewise.
5622 (ps_lcontinue): Likewise.
5623 (ps_lgetxregsize): Likewise.
5624 (ps_lgetxregs): Likewise.
5625 (ps_lsetxregs): Likewise.
5626 (ps_plog): Likewise.
5627 (ps_ptread): Likewise.
5628 (ps_ptwrite): Likewise.
5629
5630 2014-07-01 Mark Wielaard <mjw@redhat.com>
5631
5632 * dwarf2read.c (add_array_cv_type): New function.
5633 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5634 (read_tag_volatile_type): Likewise.
5635
5636 2014-07-01 Tom Tromey <tromey@redhat.com>
5637
5638 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5639 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5640 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5641 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5642 * command.h (cmd_cfunc_ftype): Move earlier.
5643 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5644 (add_com, add_info): Use cmd_cfunc_ftype.
5645
5646 2014-06-30 Tom Tromey <tromey@redhat.com>
5647
5648 * symtab.c (operator_chars): Make parameters and return type
5649 const.
5650 (file_matches): Make "files" const.
5651 (struct search_symbols_data) <files>: Now const.
5652 (search_symbols): Make "regexp" and "files" parameters const.
5653 Update.
5654 (symtab_symbol_info): Remove cast.
5655 (rbreak_command): Update.
5656 * symtab.h (search_symbols): Update.
5657
5658 2014-06-27 Yao Qi <yao@codesourcery.com>
5659
5660 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5661 Change parameter type to 'struct thread_info *'. Caller
5662 updated.
5663 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5664 Update declaration.
5665 * dummy-frame.c (struct dummy_frame_id): New.
5666 (dummy_frame_id_eq): New function.
5667 (struct dummy_frame) <id>: Change its type to 'struct
5668 dummy_frame_id'.
5669 (dummy_frame_push): Add parameter ptid and save it in
5670 dummy_frame_id.
5671 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5672 inferior_ptid.
5673 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5674 to inferior_ptid.
5675 (lookup_dummy_frame): Change parameter type to 'struct
5676 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5677 instead of frame_id_eq.
5678 (dummy_frame_pop): Add parameter ptid. Callers updated.
5679 Update comments. Compose dummy_frame_id and pass it to
5680 lookup_dummy_frame.
5681 (dummy_frame_discard): Add parameter ptid.
5682 (dummy_frame_sniffer): Compose dummy_frame_id and call
5683 dummy_frame_id_eq instead of frame_id_eq.
5684 (fprint_dummy_frames): Print ptid.
5685 * dummy-frame.h: Remove comments.
5686 (dummy_frame_push): Add ptid in declaration.
5687 (dummy_frame_pop, dummy_frame_discard): Likewise.
5688
5689 2014-06-26 Tom Tromey <tromey@redhat.com>
5690
5691 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5692 * command.h (error_no_arg): Update.
5693
5694 2014-06-26 Tom Tromey <tromey@redhat.com>
5695
5696 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5697 (do_show_command): Make "arg" const.
5698 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5699
5700 2014-06-26 Tom Tromey <tromey@redhat.com>
5701
5702 * record-full.c (record_full_get_bookmark): Make "args" const.
5703 (record_full_goto_bookmark): Make "raw_bookmark" const.
5704 * record.c (record_goto): New function.
5705 (cmd_record_goto): Use it. Now static.
5706 * record.h (record_goto): Declare.
5707 (cmd_record_goto): Remove declaration.
5708 * target-delegates.c: Rebuild.
5709 * target.h (struct target_ops) <to_get_bookmark,
5710 to_goto_bookmark>: Make parameter const.
5711
5712 2014-06-26 Tom Tromey <tromey@redhat.com>
5713
5714 * defs.h (generic_load): Update.
5715 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5716 * monitor.c (monitor_load): Make "args" const.
5717 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5718 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5719 const.
5720 (mips_load): Make "file" const.
5721 * remote-sim.c (gdbsim_load): Make "args" const.
5722 * remote.c (remote_load): Make "name" const.
5723 * symfile.c (generic_load): Make "args" const.
5724 * target-delegates.c: Rebuild.
5725 * target.c (target_load): Make "arg" const.
5726 (debug_to_load): Make "args" const.
5727 * target.h (struct target_ops) <to_load>: Make parameter const.
5728 (target_load): Update.
5729
5730 2014-06-26 Tom Tromey <tromey@redhat.com>
5731
5732 PR symtab/16902:
5733 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5734 (dwarf2_physname, read_partial_die)
5735 (guess_partial_die_structure_name, fixup_partial_die)
5736 (guess_full_die_structure_name, anonymous_struct_prefix)
5737 (dwarf2_name): Use per-BFD obstack.
5738
5739 2014-06-26 Yao Qi <yao@codesourcery.com>
5740
5741 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5742 dummyframe and this_id into inner block below.
5743
5744 2014-06-26 Yao Qi <yao@codesourcery.com>
5745
5746 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5747 with "signal_pass[0]" in the initialization of signal_pass.
5748
5749 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5750
5751 * record-btrace.c (record_btrace_generating_corefile)
5752 (record_btrace_prepare_to_generate_core)
5753 (record_btrace_done_generating_core): New.
5754 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5755 (record_btrace_store_registers, record_btrace_prepare_to_store):
5756 Forward request when generating a core file.
5757 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5758 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5759 to_done_generating_core.
5760
5761 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5762
5763 * target.h (target_ops) <to_prepare_to_generate_core>
5764 <to_done_generating_core>: New.
5765 (target_prepare_to_generate_core, target_done_generating_core): New.
5766 * target.c (target_prepare_to_generate_core)
5767 (target_done_generating_core): New.
5768 * target-delegates.c: Regenerate.
5769 * gcore.c: (write_gcore_file): Rename to ...
5770 (write_gcore_file_1): ...this.
5771 (write_gcore_file): Call target_prepare_to_generate_core
5772 and target_done_generating_core.
5773
5774 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5775
5776 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5777 * gcore.c (write_gcore_file): Free memory returned from
5778 make_corefile_notes.
5779 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5780 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5781
5782 2014-06-24 Yao Qi <yao@codesourcery.com>
5783
5784 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5785 (arm_linux_init_abi): Set skip_trampoline_code with
5786 gdbarch_skip_trampoline_code instead of
5787 find_solib_trampoline_target.
5788
5789 2014-06-24 Yao Qi <yao@codesourcery.com>
5790
5791 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5792 arm_skip_bx_reg returns non-zero.
5793
5794 2014-06-24 Yao Qi <yao@codesourcery.com>
5795
5796 * arm-tdep.c (arm_skip_bx_reg): New function.
5797 (arm_skip_stub): Call arm_skip_bx_reg.
5798
5799 2014-06-23 Don Breazeal <donb@codesourcery.com>
5800
5801 * MAINTAINERS: Add myself as write-after-approval maintainer.
5802
5803 2014-06-23 Pedro Alves <palves@redhat.com>
5804
5805 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5806 DR_CONTROL before setting DR0..DR3.
5807 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5808 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5809 bits of DR_CONTROL related to the debug register slot being
5810 disabled. If all slots are vacant, clear local slowdown as well,
5811 and assert DR_CONTROL is 0.
5812
5813 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5814
5815 * python/lib/gdb/command/xmethods.py
5816 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5817 current progspace only if the string "progspace" matches LOCUS_RE.
5818
5819 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5820
5821 Fix --with-system-readline with readline-6.3 patch 5.
5822 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5823 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5824 types.
5825
5826 2014-06-20 Tom Tromey <tromey@redhat.com>
5827
5828 * dwarf2read.c (dw2_get_real_path): Use correct type in
5829 OBSTACK_CALLOC.
5830 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5831
5832 2014-06-20 Gary Benson <gbenson@redhat.com>
5833
5834 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5835 * common/glibc_thread_db.h: Likewise.
5836 * common/i386-cpuid.h: Likewise.
5837 * common/i386-gcc-cpuid.h: Likewise.
5838 * common/linux-btrace.h: Likewise.
5839 * common/linux-osdata.h: Likewise.
5840 * common/linux-procfs.h: Likewise.
5841 * common/linux-ptrace.h: Likewise.
5842 * common/mips-linux-watch.h: Likewise.
5843 * common/linux-btrace.c: Moved to nat.
5844 * common/linux-osdata.c: Likewise.
5845 * common/linux-procfs.c: Likewise.
5846 * common/linux-ptrace.c: Likewise.
5847 * common/mips-linux-watch.c: Likewise.
5848 * nat/gdb_thread_db.h: Moved from common.
5849 * nat/glibc_thread_db.h: Likewise.
5850 * nat/i386-cpuid.h: Likewise.
5851 * nat/i386-gcc-cpuid.h: Likewise.
5852 * nat/linux-btrace.c: Likewise.
5853 * nat/linux-btrace.h: Likewise.
5854 * nat/linux-osdata.c: Likewise.
5855 * nat/linux-osdata.h: Likewise.
5856 * nat/linux-procfs.c: Likewise.
5857 * nat/linux-procfs.h: Likewise.
5858 * nat/linux-ptrace.c: Likewise.
5859 * nat/linux-ptrace.h: Likewise.
5860 * nat/mips-linux-watch.c: Likewise.
5861 * nat/mips-linux-watch.h: Likewise.
5862 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5863 (object file files): Reordered.
5864 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5865 of glibc_thread_db.h.
5866
5867 2014-06-20 Gary Benson <gbenson@redhat.com>
5868
5869 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5870 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5871 (i386_dr_low): Likewise.
5872 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5873 (i386_dr_low_set_addr): Likewise.
5874 (i386_dr_low_get_addr): Likewise.
5875 (i386_dr_low_can_set_control): Likewise.
5876 (i386_dr_low_set_control): Likewise.
5877 (i386_dr_low_get_control): Likewise.
5878 (i386_dr_low_get_status): Likewise.
5879 (i386_get_debug_register_length): Likewise.
5880 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5881 (i386_dr_low): Likewise.
5882 * nat/i386-dregs.c (i386-low.h): Remove include.
5883 (i386-nat.h): Likewise.
5884 (nat/i386-dregs.h): New include.
5885 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5886 (i386_dr_low_set_addr): Likewise.
5887 (i386_dr_low_get_addr): Likewise.
5888 (i386_dr_low_can_set_control): Likewise.
5889 (i386_dr_low_set_control): Likewise.
5890 (i386_dr_low_get_control): Likewise.
5891 (i386_dr_low_get_status): Likewise.
5892 (i386_get_debug_register_length): Likewise.
5893 (debug_hw_points): Likewise.
5894
5895 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5896
5897 * Makefile.in (SFILES): Add d-exp.y.
5898 (YYFILES): Add d-exp.c.
5899 (YYOBJ): Add d-exp.o.
5900 (local-maintainer-clean): Delete d-exp.c.
5901 * d-exp.y: New file.
5902 * d-lang.h (d_parse): New declaration.
5903 (d_error): New declaration.
5904 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5905 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5906 PREC_ORDER operators.
5907 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5908
5909 2014-06-19 Yao Qi <yao@codesourcery.com>
5910
5911 * gdbthread.h (any_running): Remove the declaration.
5912 * thread.c (any_running): Remove.
5913
5914 2014-06-19 Yao Qi <yao@codesourcery.com>
5915
5916 * gdbthread.h (struct thread_info) <state>: Change its type to
5917 'enum thread_state'. Update comments.
5918
5919 2014-06-19 Pedro Alves <palves@redhat.com>
5920
5921 * gdbthread.h (ALL_THREADS): Delete.
5922 (ALL_NON_EXITED_THREADS): New macro.
5923 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5924 instead of ALL_THREADS.
5925 * infrun.c (find_thread_needs_step_over)
5926 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5927 instead of ALL_THREADS.
5928 * record-btrace.c (record_btrace_open)
5929 (record_btrace_stop_recording, record_btrace_close)
5930 (record_btrace_is_replaying, record_btrace_resume)
5931 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5932 * remote.c (append_pending_thread_resumptions): Likewise.
5933 * thread.c (thread_apply_all_command): Likewise.
5934
5935 2014-06-19 Gary Benson <gbenson@redhat.com>
5936
5937 * i386-nat.c (i386_stopped_by_watchpoint):
5938 Use i386_dr_stopped_by_watchpoint.
5939 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5940 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5941
5942 2014-06-19 Gary Benson <gbenson@redhat.com>
5943
5944 * nat/i386-dregs.c: New file.
5945 * Makefile.in (i386-dregs.o): New rule.
5946 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5947 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5948 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5949 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5950 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5951 * config/i386/go32.mh (NATDEPFILES): Likewise.
5952 * config/i386/linux.mh (NATDEPFILES): Likewise.
5953 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5954 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5955 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5956 * i386-nat.h (debug_hw_points): New declaration.
5957 * i386-nat.c (breakpoint.h): Remove include.
5958 (command.h): Likewise.
5959 (target.h): Likewise.
5960 (gdb_assert.h): Likewise.
5961 (debug_hw_points): Made nonstatic.
5962 (debug_printf): Now in i386-dregs.c.
5963 (TARGET_HAS_DR_LEN_8): Likewise.
5964 (DR_CONTROL_SHIFT): Likewise.
5965 (DR_CONTROL_SIZE): Likewise.
5966 (DR_RW_EXECUTE): Likewise.
5967 (DR_RW_WRITE): Likewise.
5968 (DR_RW_READ): Likewise.
5969 (DR_RW_IORW): Likewise.
5970 (DR_LEN_1): Likewise.
5971 (DR_LEN_2): Likewise.
5972 (DR_LEN_4): Likewise.
5973 (DR_LEN_8): Likewise.
5974 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5975 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5976 (DR_ENABLE_SIZE): Likewise.
5977 (DR_LOCAL_SLOWDOWN): Likewise.
5978 (DR_GLOBAL_SLOWDOWN): Likewise.
5979 (DR_CONTROL_RESERVED): Likewise.
5980 (I386_DR_CONTROL_MASK): Likewise.
5981 (I386_DR_VACANT): Likewise.
5982 (I386_DR_LOCAL_ENABLE): Likewise.
5983 (I386_DR_GLOBAL_ENABLE): Likewise.
5984 (I386_DR_DISABLE): Likewise.
5985 (I386_DR_SET_RW_LEN): Likewise.
5986 (I386_DR_GET_RW_LEN): Likewise.
5987 (I386_DR_WATCH_HIT): Likewise.
5988 (i386_wp_op_t): Likewise.
5989 (i386_show_dr): Likewise.
5990 (i386_length_and_rw_bits): Likewise.
5991 (i386_insert_aligned_watchpoint): Likewise.
5992 (i386_remove_aligned_watchpoint): Likewise.
5993 (i386_handle_nonaligned_watchpoint): Likewise.
5994 (i386_update_inferior_debug_regs): Likewise.
5995 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5996 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5997 (i386_region_ok_for_watchpoint):
5998 Use i386_dr_region_ok_for_watchpoint.
5999 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6000
6001 2014-06-19 Gary Benson <gbenson@redhat.com>
6002
6003 * i386-nat.c (i386_insert_hw_breakpoint): Use
6004 i386_insert_watchpoint.
6005 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6006
6007 2014-06-19 Gary Benson <gbenson@redhat.com>
6008
6009 * i386-nat.c (i386_dr_show): Renamed to
6010 i386_show_dr and made static. All uses updated.
6011 (i386_dr_length_and_rw_bits): Renamed to
6012 i386_length_and_rw_bits and made static.
6013 All uses updated.
6014 (i386_dr_insert_aligned_watchpoint): Renamed to
6015 i386_insert_aligned_watchpoint and made static.
6016 All uses updated.
6017 (i386_dr_remove_aligned_watchpoint): Renamed to
6018 i386_remove_aligned_watchpoint and made static.
6019 All uses updated.
6020 (i386_dr_update_inferior_debug_regs): Renamed to
6021 i386_update_inferior_debug_regs and made static.
6022 All uses updated.
6023 * nat/i386-dregs.h (i386_dr_show): Removed.
6024 (i386_dr_length_and_rw_bits): Likewise.
6025 (i386_dr_insert_aligned_watchpoint): Likewise.
6026 (i386_dr_remove_aligned_watchpoint): Likewise.
6027 (i386_dr_update_inferior_debug_regs): Likewise.
6028
6029 2014-06-19 Gary Benson <gbenson@redhat.com>
6030
6031 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6032 * configure: Regenerate.
6033 * config.in: Likewise.
6034 * main.c (signal.h): New include.
6035 (setup_alternate_signal_stack): New function.
6036 (captured_main): Call the above.
6037 * cp-support.c (signal.h): New include.
6038 (catch_demangler_crashes): New flag.
6039 (SIGJMP_BUF): New define.
6040 (SIGSETJMP): Likewise.
6041 (SIGLONGJMP): Likewise.
6042 (gdb_demangle_jmp_buf): New static global.
6043 (gdb_demangle_attempt_core_dump): Likewise.
6044 (gdb_demangle_signal_handler): New function.
6045 (gdb_demangle): If catch_demangler_crashes is set, install the
6046 above signal handler before calling bfd_demangle, and restore
6047 the original signal handler afterwards. Display the offending
6048 symbol and call demangler_warning the first time a segmentation
6049 fault is caught.
6050 (_initialize_cp_support): New maint set/show command.
6051
6052 2014-06-19 Gary Benson <gbenson@redhat.com>
6053
6054 * utils.h (resource_limit_kind): New enum.
6055 (can_dump_core): New declaration.
6056 (warn_cant_dump_core): Likewise.
6057 (dump_core): Likewise.
6058 * utils.c (dump_core): Made nonstatic. Added new
6059 parameter "limit_kind".
6060 (can_dump_core): Made nonstatic. Moved printing code to...
6061 (warn_cant_dump_core): New function.
6062 (can_dump_core_warn): Likewise.
6063 (internal_vproblem): Replace calls to can_dump_core with
6064 calls to can_dump_core_warn. Supply new argument to each.
6065
6066 2014-06-19 Gary Benson <gbenson@redhat.com>
6067
6068 * utils.h (demangler_vwarning): New declaration.
6069 (demangler_warning): Likewise.
6070 * utils.c (struct internal_problem)
6071 <user_settable_should_quit>: New field.
6072 <user_settable_should_dump_core>: Likewise
6073 (internal_error_problem): Add values for above new fields.
6074 (internal_warning_problem): Likewise.
6075 (demangler_warning_problem): New static global.
6076 (demangler_vwarning): New function.
6077 (demangler_warning): Likewise.
6078 (add_internal_problem_command): Selectively add commands.
6079 (_initialize_utils): New internal problem command.
6080 * maint.c (maintenance_demangler_warning): New function.
6081 (_initialize_maint_cmds): New command.
6082
6083 2014-06-18 Tom Tromey <tromey@redhat.com>
6084
6085 * f-valprint.c (info_common_command_for_block): Update.
6086 * symtab.h (struct general_symbol_info) <common_block>: Now
6087 const.
6088
6089 2014-06-18 Tom Tromey <tromey@redhat.com>
6090
6091 * symtab.h (struct symtab) <blockvector>: Now const.
6092 * ada-lang.c (ada_add_global_exceptions): Update.
6093 * buildsym.c (augment_type_symtab): Update.
6094 * dwarf2read.c (dw2_lookup_symbol): Update.
6095 * jit.c (finalize_symtab): Update.
6096 * jv-lang.c (add_class_symtab_symbol): Update.
6097 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6098 Update.
6099 * objfiles.c (objfile_relocate1): Update.
6100 * psymtab.c (lookup_symbol_aux_psymtabs)
6101 (maintenance_check_psymtabs): Update.
6102 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6103 Update.
6104 * spu-tdep.c (spu_catch_start): Update.
6105 * symmisc.c (dump_symtab_1): Update.
6106 * symtab.c (lookup_global_symbol_from_objfile)
6107 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6108 (basic_lookup_transparent_type_quick)
6109 (basic_lookup_transparent_type, find_pc_sect_symtab)
6110 (find_pc_sect_line, search_symbols): Update.
6111 * block.c (find_block_in_blockvector): Make "bl" const.
6112 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6113 const.
6114 (blockvector_contains_pc): Make "bv" const.
6115 (block_for_pc_sect): Update.
6116 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6117 (blockvector_contains_pc): Update.
6118 * breakpoint.c (resolve_sal_pc): Update.
6119 * inline-frame.c (block_starting_point_at): Update.
6120
6121 2014-06-18 Tom Tromey <tromey@redhat.com>
6122
6123 * completer.c (complete_line): Make "line_buffer" const.
6124 * completer.h (complete_line): Update.
6125
6126 2014-06-18 Tom Tromey <tromey@redhat.com>
6127
6128 * symtab.c (add_macro_name): Remove unneeded cast.
6129
6130 2014-06-18 Tom Tromey <tromey@redhat.com>
6131
6132 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6133 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6134
6135 2014-06-18 Tom Tromey <tromey@redhat.com>
6136
6137 * probe.c (info_probes_for_ops): Make "arg" const.
6138 * probe.h (info_probes_for_ops): Update.
6139
6140 2014-06-18 Tom Tromey <tromey@redhat.com>
6141
6142 * varobj.c (varobj_create): Update.
6143 * valops.c (value_of_this): Update.
6144 * tracepoint.c (add_local_symbols, scope_info): Update.
6145 * symtab.h (struct general_symbol_info) <block>: Now const.
6146 * symtab.c (skip_prologue_sal)
6147 (default_make_symbol_completion_list_break_on)
6148 (skip_prologue_using_sal): Update.
6149 * stack.h (iterate_over_block_locals)
6150 (iterate_over_block_local_vars): Update.
6151 * stack.c (print_frame_args): Update.
6152 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6153 parameter const.
6154 (get_selected_block): Make return type const.
6155 * python/py-frame.c (frapy_block): Update.
6156 * python/py-block.c (gdbpy_block_for_pc): Update.
6157 * p-exp.y (%union) <bval>: Now const.
6158 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6159 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6160 * m2-exp.y (%union) <bval>: Now const.
6161 * linespec.c (get_current_search_block): Make return type const.
6162 (create_sals_line_offset, find_label_symbols): Update.
6163 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6164 Update.
6165 (block_starting_point_at): Make "block" const.
6166 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6167 (check_exception_resume): Update.
6168 * guile/scm-frame.c (gdbscm_frame_block): Update.
6169 * guile/scm-block.c (gdbscm_lookup_block): Update.
6170 * frame.h (get_frame_block): Update.
6171 (get_selected_block): Make return type const.
6172 * frame.c (frame_id_inner): Update.
6173 * f-valprint.c (info_common_command_for_block)
6174 (info_common_command): Update.
6175 * dwarf2loc.c (dwarf2_find_location_expression)
6176 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6177 (locexpr_describe_location_piece): Update.
6178 * c-exp.y (%union) <bval>: Now const.
6179 * breakpoint.c (resolve_sal_pc): Update.
6180 * blockframe.c (get_frame_block):Make return type const.
6181 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6182 (block_innermost_frame): Update.
6183 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6184 (block_for_pc, block_for_pc_sect): Update.
6185 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6186 'pblock' const.
6187 (block_for_pc_sect, block_for_pc): Make return type const.
6188 * ax-gdb.c (gen_expr): Update.
6189 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6190 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6191 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6192 (ada_read_var_value): Update.
6193 * ada-exp.y (struct name_info) <block>: Now const.
6194 (%union): Likewise.
6195 (block_lookup): Constify.
6196
6197 2014-06-18 Gary Benson <gbenson@redhat.com>
6198
6199 * nat/i386-dregs.h: New file.
6200 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6201 * i386-nat.h (i386-dregs.h): New include.
6202 (DR_FIRSTADDR): Now in i386-dregs.h.
6203 (DR_LASTADDR): Likewise.
6204 (DR_NADDR): Likewise.
6205 (DR_STATUS): Likewise.
6206 (DR_CONTROL): Likewise.
6207 (i386_debug_reg_state): Likewise.
6208 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6209
6210 2014-06-18 Don Breazeal <donb@codesourcery.com>
6211
6212 * breakpoint.c (set_longjmp_breakpoint): Call
6213 momentary_breakpoint_from_master with additional argument.
6214 (set_longjmp_breakpoint_for_call_dummy): Call
6215 momentary_breakpoint_from_master with additional argument.
6216 (set_std_terminate_breakpoint): Call
6217 momentary_breakpoint_from_master with additional argument.
6218 (momentary_breakpoint_from_master): Add argument to function
6219 definition and use it to initialize structure member flag.
6220 (clone_momentary_breakpoint): Call
6221 momentary_breakpoint_from_master with additional argument.
6222 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6223 member flags set in momentary_breakpoint_from_master.
6224
6225 2014-06-18 Gary Benson <gbenson@redhat.com>
6226
6227 * i386-nat.c (i386_show_dr): Renamed to
6228 i386_dr_show and made nonstatic. All uses updated.
6229 (i386_length_and_rw_bits): Renamed to
6230 i386_dr_length_and_rw_bits and made nonstatic.
6231 All uses updated.
6232 (i386_insert_aligned_watchpoint): Renamed to
6233 i386_dr_insert_aligned_watchpoint and made nonstatic.
6234 All uses updated.
6235 (i386_remove_aligned_watchpoint): Renamed to
6236 i386_dr_remove_aligned_watchpoint and made nonstatic.
6237 All uses updated.
6238 (i386_update_inferior_debug_regs): Renamed to
6239 i386_dr_update_inferior_debug_regs and made nonstatic.
6240 All uses updated.
6241
6242 2014-06-18 Gary Benson <gbenson@redhat.com>
6243
6244 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6245 (i386_dr_low_can_set_control): Likewise.
6246 (i386_dr_low_set_addr): Likewise.
6247 (i386_dr_low_set_control): Likewise.
6248 (i386_dr_low_get_addr): Likewise.
6249 (i386_dr_low_get_status): Likewise.
6250 (i386_dr_low_get_control): Likewise.
6251 (i386_insert_aligned_watchpoint): Use new macros.
6252 (i386_update_inferior_debug_regs): Likewise.
6253 (i386_stopped_data_address): Likewise.
6254
6255 2014-06-18 Gary Benson <gbenson@redhat.com>
6256
6257 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6258 New parameter. All uses updated.
6259
6260 2014-06-18 Gary Benson <gbenson@redhat.com>
6261
6262 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6263 All uses updated.
6264
6265 2014-06-18 Gary Benson <gbenson@redhat.com>
6266
6267 * i386-nat.c (debug_printf): New macro.
6268 (i386_get_debug_register_length): Likewise.
6269 (TARGET_HAS_DR_LEN_8): Use above macro.
6270 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6271 and printf_unfiltered. Use phex to format values.
6272
6273 2014-06-18 Gary Benson <gbenson@redhat.com>
6274
6275 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6276 Make const.
6277
6278 2014-06-18 Gary Benson <gbenson@redhat.com>
6279
6280 * i386-nat.c: Comment changes.
6281
6282 2014-06-18 Gary Benson <gbenson@redhat.com>
6283
6284 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6285
6286 2014-06-18 Gary Benson <gbenson@redhat.com>
6287
6288 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6289 (i386_insert_aligned_watchpoint): Likewise.
6290 (i386_remove_aligned_watchpoint): Likewise.
6291 (i386_handle_nonaligned_watchpoint): Likewise.
6292
6293 2014-06-18 Gary Benson <gbenson@redhat.com>
6294
6295 * i386-nat.c: Whitespace changes.
6296
6297 2014-06-17 Samuel Bronson <naesten@gmail.com>
6298
6299 * MAINTAINERS: Update Roland McGrath's email address.
6300 Thanks to Sergio Durigan Junior for pointing out that he left
6301 Red Hat a while ago, and giving me a current address.
6302
6303 2014-06-17 Tom Tromey <tromey@redhat.com>
6304
6305 * utils.h (savestring): Remove declaration.
6306
6307 2014-06-17 Tom Tromey <tromey@redhat.com>
6308
6309 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6310
6311 2014-06-16 Keith Seitz <keiths@redhat.com>
6312
6313 PR mi/15863
6314 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6315 to update the varobj if inferior_ptid is null_ptid.
6316
6317 2014-06-16 Tom Tromey <tromey@redhat.com>
6318
6319 * target.h (struct target_ops) <to_info_proc>: Make parameter
6320 const.
6321 (target_info_proc): Update.
6322 * target.c (target_info_proc): Make "args" const.
6323 * procfs.c (procfs_info_proc): Update.
6324 * linux-tdep.c (linux_info_proc): Update.
6325 (linux_core_info_proc_mappings): Make "args" const.
6326 (linux_core_info_proc): Update.
6327 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6328 * gdbarch.c: Rebuild.
6329 * gdbarch.h: Rebuild.
6330 * corelow.c (core_info_proc): Update.
6331
6332 2014-06-16 Tom Tromey <tromey@redhat.com>
6333
6334 * target.h (struct target_ops) <to_disconnect>: Make parameter
6335 const.
6336 (target_disconnect): Update.
6337 * target.c (target_disconnect): Make "args" const.
6338 * target-delegates.c: Rebuild.
6339 * remote.c (remote_disconnect): Update.
6340 * record.h (record_disconnect): Update.
6341 * record.c (record_disconnect): Update.
6342 * inf-child.c (inf_child_disconnect): Update.
6343
6344 2014-06-16 Tom Tromey <tromey@redhat.com>
6345
6346 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6347 * target.c (debug_to_rcmd, default_rcmd): Update.
6348 * target-delegates.c: Rebuild.
6349 * remote.c (remote_rcmd): Update.
6350 * monitor.c (monitor_rcmd): Update.
6351
6352 2014-06-16 Pedro Alves <palves@redhat.com>
6353
6354 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6355 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6356 have OBJF_SHARED set.
6357 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6358 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6359 instead of OBJF_USERLOADED.
6360 * objfiles.h (OBJF_SHARED): Update comment.
6361 (userloaded_objfile_contains_address_p): Rename to ...
6362 (shared_objfile_contains_address_p): ... this, and update
6363 comments.
6364 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6365 new objfile.
6366 (remove_symbol_file_command): Skip objfiles that don't have
6367 OBJF_SHARED set.
6368
6369 2014-06-16 Tom Tromey <tromey@redhat.com>
6370
6371 * minsyms.h (prim_record_minimal_symbol)
6372 (prim_record_minimal_symbol_and_info): Update comments.
6373
6374 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6375
6376 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6377 or --without-guile, according to how GDB was built.
6378
6379 2014-06-13 Tom Tromey <tromey@redhat.com>
6380
6381 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6382 to help_list.
6383 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6384 to help_list.
6385 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6386 help_list.
6387 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6388 help_list.Pass all_commands, not -1, to help_list.
6389 * cli/cli-dump.c (dump_command, append_command)
6390 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6391 (binary_dump_command, binary_append_command): Pass all_commands,
6392 not -1, to help_list.
6393 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6394 -1, to help_list.
6395 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6396 -1, to help_list.
6397 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6398 help_list.
6399 * top.c (set_history): Pass all_commands, not -1, to help_list.
6400 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6401 all_commands, not -1, to help_list.
6402 * symfile.c (overlay_command): Pass all_commands, not -1, to
6403 help_list.
6404 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6405 help_list.
6406 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6407 help_list.
6408 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6409 -1, to help_list.
6410 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6411 not -1, to help_list.
6412 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6413 not -1, to help_list.
6414 * maint.c (maintenance_command, maintenance_info_command)
6415 (maintenance_print_command, maintenance_set_cmd): Pass
6416 all_commands, not -1, to help_list.
6417 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6418 help_list.
6419 * language.c (set_check): Pass all_commands, not -1, to help_list.
6420 * infcmd.c (unset_command): Pass all_commands, not -1, to
6421 help_list.
6422 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6423 help_list.
6424 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6425 help_list.
6426 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6427 help_list.
6428 * breakpoint.c (save_command): Pass all_commands, not -1, to
6429 help_list.
6430 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6431 all_commands, not -1, to help_list.
6432
6433 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6434
6435 * regcache.c (struct register_to_invalidate): New structure.
6436 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6437 functions.
6438 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6439
6440 2014-06-12 Yao Qi <yao@codesourcery.com>
6441
6442 * varobj.c (varobj_get_num_children): Call
6443 varobj_is_dynamic_p.
6444 (varobj_list_children): Likewise.
6445 (varobj_update): Likewise. Update comments.
6446
6447 2014-06-12 Yao Qi <yao@codesourcery.com>
6448
6449 * varobj.c (varobj_pretty_printed_p): Rename to ...
6450 (varobj_is_dynamic_p): ... this. New function.
6451 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6452 (varobj_is_dynamic_p): Declare.
6453 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6454 (mi_print_value_p, varobj_update_one): Likewise.
6455
6456 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6457 Yao Qi <yao@codesourcery.com>
6458
6459 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6460 (varobj_get_iterator): Wrap up code for pretty-printer by
6461 "#if HAVE_PYTHON" and "#endif".
6462 (update_dynamic_varobj_children): Likewise.
6463
6464 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6465 Yao Qi <yao@codesourcery.com>
6466
6467 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6468 gdb_python_initialized is false. Move some code from varobj.c.
6469 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6470 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6471 (struct varobj_item): Moved to varobj-iter.h".
6472 (varobj_clear_saved_item): New function.
6473 (update_dynamic_varobj_children): Move python-related code to
6474 py-varobj.c.
6475 (free_variable): Call varobj_clear_saved_item and
6476 varobj_iter_delete.
6477
6478 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6479 Yao Qi <yao@codesourcery.com>
6480
6481 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6482 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6483 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6484 (py-varobj.o): New rule.
6485 * python/py-varobj.c: New file.
6486 * python/python-internal.h (py_varobj_get_iterator): Declare.
6487 * varobj-iter.h: New file.
6488 * varobj.c: Include "varobj-iter.h"
6489 (struct varobj) <child_iter>: Change its type from "PyObject *"
6490 to "struct varobj_iter *".
6491 <saved_item>: Likewise.
6492 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6493 [HAVE_PYTHON] (varobj_get_iterator): New function.
6494 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6495 python-specific code to python/py-varobj.c.
6496 (install_visualizer): Call varobj_iter_delete instead of
6497 Py_XDECREF.
6498 * varobj.h (varobj_ensure_python_env): Declare.
6499
6500 2014-06-12 Yao Qi <yao@codesourcery.com>
6501
6502 * varobj.c (struct varobj_item): New structure.
6503 (create_child_with_value): Update declaration.
6504 (varobj_add_child): Replace arguments 'name' and 'value' with
6505 'item'. All callers updated.
6506 (install_dynamic_child): Likewise.
6507 (update_dynamic_varobj_children): Likewise.
6508 (varobj_add_child): Likewise.
6509 (create_child_with_value): Likewise.
6510
6511 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6512
6513 * NEWS: Create a new section for the next release branch.
6514 Rename the section of the current branch, now that it has
6515 been cut.
6516
6517 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6518
6519 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6520 * version.in: Bump version to 7.8.50.DATE-cvs.
6521
6522 2014-06-11 Pedro Alves <palves@redhat.com>
6523
6524 PR remote/17028
6525 * ser-mingw.c (net_windows_socket_check_pending): New function.
6526 (net_windows_select_thread): Ignore spurious wakeups. Use
6527 net_windows_socket_check_pending.
6528 (net_windows_wait_handle): Check for pending events with
6529 ioctlsocket, through net_windows_socket_check_pending, instead of
6530 checking the socket's event.
6531
6532 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6533
6534 * python/python-internal.h (gdb_PyObject_GetAttrString)
6535 (gdb_PyObject_HasAttrString): New inline function definitions.
6536 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6537 char * of the second argument to PyObject_GetAttrString.
6538
6539 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6540
6541 * serial.c (serial_write): Fix index of character to be printed
6542 in call to serial_logchar when serial debug traces are enabled.
6543
6544 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6545
6546 * gdbtypes (resolve_dynamic_range): Add function description.
6547
6548 2014-06-09 Pedro Alves <palves@redhat.com>
6549
6550 * linux-nat.c (linux_child_follow_fork): Initialize status with
6551 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6552 inner block. Only pass the signal to PTRACE_DETACH if in pass
6553 state.
6554
6555 2014-06-09 Gary Benson <gbenson@redhat.com>
6556
6557 * common/signals.c (gdb_signal_from_host): Reorder to separate
6558 the always-available ANSI-standard signals from the signals that
6559 require checking.
6560 (do_gdb_signal_to_host): Likewise.
6561 * proc-events.c (signal_table): Likewise.
6562
6563 2014-06-08 Hui Zhu <hui@codesourcery.com>
6564
6565 * common/linux-ptrace.c (linux_disable_event_reporting): New
6566 function.
6567 * common/linux-ptrace.h (linux_disable_event_reporting): New
6568 declaration.
6569 * linux-nat.c (linux_child_follow_fork): Do a single step before
6570 detach.
6571
6572 2014-06-07 Keith Seitz <keiths@redhat.com>
6573
6574 Revert:
6575 PR c++/16253
6576 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6577 from symbol_matches_domain in symtab.c. All local callers
6578 of symbol_matches_domain updated.
6579 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6580 search STRUCT_DOMAIN.
6581 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6582 independently. standard_lookup will do that automatically.
6583 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6584 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6585 (cp_lookup_symbol_in_namespace): Likewise.
6586 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6587 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6588 may return a STRUCT_DOMAIN match.
6589 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6590 * cp-support.c: Include language.h.
6591 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6592 VAR_DOMAIN.
6593 * psymtab.c (match_partial_symbol): Compare the requested
6594 domain with the symbol's domain directly.
6595 (lookup_partial_symbol): Likewise.
6596 * symtab.c (lookup_symbol_in_language): Explain when/why
6597 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6598 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6599 appropriate languages.
6600 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6601 and moved to ada-lang.c
6602 (lookup_block_symbol): Explain that this function only returns
6603 symbol matching the requested DOMAIN.
6604 Compare the requested domain with the symbol's domain directly.
6605 (iterate_over_symbols): Compare the requested domain with the
6606 symbol's domain directly.
6607 * symtab.h (symbol_matches_domain): Remove.
6608
6609 2014-06-06 Doug Evans <xdje42@gmail.com>
6610
6611 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6612 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6613 (gdbscm_guile_version_is_at_least): Declare.
6614 (gdbscm_scm_string_to_int): Declare.
6615 * guile/guile.c (gdbscm_guile_major_version): New global.
6616 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6617 (guile_datadir): New static global.
6618 (gdbscm_guile_data_directory): New function.
6619 (initialize_scheme_side): Update.
6620 (misc_guile_functions): Add guile-data-directory.
6621 (initialize_gdb_module): Fetch guile version number.
6622 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6623 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6624 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6625 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6626 comments.
6627 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6628 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6629 * guile/scm-value.c (gdbscm_value_to_string): Only call
6630 scm_port_conversion_strategy if Guile version >= 2.0.6.
6631
6632 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6633
6634 * main.c (print_gdb_help): Add -q and --silent.
6635
6636 2014-06-06 Gary Benson <gbenson@redhat.com>
6637
6638 * common/signals.c: Remove preprocessor conditionals for
6639 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6640 SIGSEGV and SIGTERM.
6641 * proc-events.c: Likewise.
6642
6643 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6644
6645 * symfile.c (symfile_free_objfile): Remove restriction to
6646 OBJF_USERLOADED.
6647 * symfile-mem.c (symbol_file_add_from_memory): Call
6648 add_target_sections_of_objfile.
6649
6650 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6651
6652 * guile/scm-value.c (gdbscm_history_append_x): Use
6653 'vlscm_get_value_smob_arg_unsafe' instead of
6654 'vlscm_scm_to_value'.
6655
6656 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6657
6658 PR mi/15806
6659 * utils.c (printchar): Don't escape at all if quoter is NUL.
6660 Update function documentation to clarify effect of parameter
6661 QUOTER.
6662 * remote.c (escape_buffer): Pass '\\' as the quoter to
6663 fputstrn_unfiltered.
6664 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6665 generate the output.
6666 (mi_solib_unloaded): Same.
6667
6668 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6669
6670 * development.sh: Delete.
6671 * Makefile.in (config.status): Adjust dependency on development.sh.
6672 * configure.ac: Adjust development.sh source call.
6673 * configure: Regenerate.
6674
6675 2014-06-04 Doug Evans <xdje42@gmail.com>
6676
6677 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6678 is_scheme_bkpt, spec.
6679 (bpscm_make_breakpoint_smob): Initialize new members.
6680 (gdbscm_create_breakpoint_x): Split into two ...
6681 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6682 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6683 (scheme_function breakpoint_functions): Update.
6684 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6685 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6686 register-breakpoint!.
6687
6688 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6689
6690 PR server/17023
6691 * mem-break.c (z_type_supported): Return zero if
6692 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6693
6694 2014-06-04 Tom Tromey <tromey@redhat.com>
6695
6696 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6697 value_from_contents_and_address_unresolved.
6698 (ada_template_to_fixed_record_type_1): Likewise.
6699 (ada_which_variant_applies): Likewise.
6700 * value.h (value_from_contents_and_address_unresolved): Declare.
6701 * value.c (value_from_contents_and_address_unresolved): New
6702 function.
6703 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6704 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6705 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6706
6707 2014-06-04 Tom Tromey <tromey@redhat.com>
6708
6709 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6710
6711 2014-06-04 Tom Tromey <tromey@redhat.com>
6712
6713 * procfs.c (procfs_attach): Make "args" const.
6714 * windows-nat.c (windows_attach): Make "args" const.
6715 * nto-procfs.c (procfs_attach): Make "args" const.
6716 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6717 * go32-nat.c (go32_attach): Make "args" const.
6718 * gnu-nat.c (gnu_attach): Make "args" const.
6719 * darwin-nat.c (darwin_attach): Make "args" const.
6720 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6721 * linux-nat.c (linux_nat_attach): Make "args" const.
6722 * remote.c (extended_remote_attach_1, extended_remote_attach):
6723 Make "args" const.
6724 * target.h (struct target_ops) <to_attach>: Make "args" const.
6725 (find_default_attach): Likewise.
6726 * utils.c (parse_pid_to_attach): Make "args" const.
6727 * utils.h (parse_pid_to_attach): Update.
6728
6729 2014-06-04 Tom Tromey <tromey@redhat.com>
6730
6731 * target-delegates.c: Rebuild.
6732 * target.c (default_thread_address_space): New function.
6733 (target_thread_address_space): Simplify.
6734 * target.h (struct target_ops) <to_thread_address_space>: Add
6735 TARGET_DEFAULT_FUNC.
6736
6737 2014-06-04 Doug Evans <xdje42@gmail.com>
6738
6739 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6740
6741 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6742
6743 * record-btrace.c: Include event-loop.h and inf-loop.h.
6744 (record_btrace_resume_exec_dir)
6745 (record_btrace_async_inferior_event_handler)
6746 (record_btrace_handle_async_inferior_event): New.
6747 (record_btrace_open): Create async event handler.
6748 (record_btrace_close): Delete async event handler.
6749 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6750 Mark async event handler.
6751 (record_btrace_execution_direction): New.
6752 (init_record_btrace_ops): Initialize to_execution_direction.
6753
6754 2014-06-03 Doug Evans <xdje42@gmail.com>
6755
6756 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6757 (gdbscm_make_parameter): Ditto.
6758
6759 2014-06-03 Doug Evans <dje@google.com>
6760
6761 * exec.c (exec_close_1): Call clear_section_table instead of
6762 resize_section_table.
6763 (clear_section_table): New function.
6764 (resize_section_table): Make static. Rename arg num_added to
6765 adjustment.
6766 * exec.h (clear_section_table): Declare.
6767 (resize_section_table): Delete.
6768 * progspace.c (release_program_space): Call clear_section_table
6769 instead of resize_section_table.
6770
6771 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6772
6773 * NEWS (Python Scripting): Add entry about the new xmethods
6774 feature.
6775
6776 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6777
6778 * python/py-xmethods.c: New file.
6779 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6780 (objfpy_dealloc): XDECREF on the new xmethods field.
6781 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6782 field.
6783 (objfpy_get_xmethods): New function.
6784 (objfile_getset): New entry 'xmethods'.
6785 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6786 (pspy_dealloc): XDECREF on the new xmethods field.
6787 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6788 field.
6789 (pspy_get_xmethods): New function.
6790 (pspace_getset): New entry 'xmethods'.
6791 * python/python-internal.h: Add declarations for new functions.
6792 * python/python.c (_initialize_python): Invoke
6793 gdbpy_initialize_xmethods.
6794 * python/lib/gdb/__init__.py (xmethods): New
6795 attribute.
6796 * python/lib/gdb/xmethod.py: New file.
6797 * python/lib/gdb/command/xmethods.py: New file.
6798
6799 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6800
6801 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6802 best match method returned by find_overload_match is an xmethod.
6803 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6804 the best matching operator returned by find_overload_match is an
6805 xmethod.
6806 * valops.c: #include "extension.h".
6807 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6808 Return void. The list of matching source methods is returned in
6809 "fn_list" and a vector of matching debug method workers is
6810 returned in "xm_worker_vec". Update all callers.
6811 (value_find_oload_method_list): Likewise.
6812 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6813 non-NULL, then the index of the best matching method in this
6814 vector is returned. Update all callers.
6815 (find_overload_match): Include xmethods while performing overload
6816 resolution.
6817
6818 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6819
6820 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6821 * extension-priv.h (struct extension_language_ops): Add the
6822 xmethod interface.
6823 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6824 get_matching_xmethod_workers, get_xmethod_argtypes,
6825 invoke_xmethod, free_xmethod_worker,
6826 free_xmethod_worker_vec): New functions.
6827 * extension.h: #include "common/vec.h".
6828 New function declarations.
6829 (struct xmethod_worker): New struct.
6830 (VEC (xmethod_worker_ptr)): New vector type.
6831 (xmethod_worker_ptr): New typedef.
6832 (xmethod_worker_vec): Likewise.
6833 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6834 builtin_type.
6835 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6836 (struct builtin_type): New field "xmethod".
6837 * valarith.c (value_ptradd): Assert that the value argument is not
6838 lval_xcallable.
6839 * valops.c (value_must_coerce_to_target): Return 0 for
6840 lval_xcallable values.
6841 * value.c (struct value): New field XM_WORKER in the field
6842 LOCATION.
6843 (value_address, value_raw_address): Return 0 for lval_xcallable
6844 values.
6845 (set_value_address): Assert that the value is not an
6846 lval_xcallable.
6847 (value_free): Free the associated xmethod worker when freeing
6848 lval_xcallable values.
6849 (set_value_component_location): Assert that the WHOLE value is not
6850 lval_xcallable.
6851 (value_of_xmethod, call_xmethod): New functions.
6852 * value.h: Declare "struct xmethod_worker".
6853 Declare new functions value_of_xmethod, call_xmethod.
6854
6855 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6856 Pedro Alves <palves@redhat.com>
6857
6858 PR breakpoints/17000
6859 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6860 New function, extracted from software_breakpoint_inserted_here_p.
6861 (software_breakpoint_inserted_here_p): Replace factored out code
6862 by call to find_non_raw_software_breakpoint_inserted_here.
6863 (bp_target_info_copy_insertion_state): New function.
6864 (bkpt_insert_location): Handle the case of a single-step
6865 breakpoint already inserted at the same address.
6866 (bkpt_remove_location): Handle the case of a single-step
6867 breakpoint still inserted at the same address.
6868 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6869 breakpoint already inserted at the same address.
6870 (deprecated_remove_raw_breakpoint): Handle the case of a
6871 non-raw breakpoint still inserted at the same address.
6872 (find_single_step_breakpoint): New function, extracted from
6873 single_step_breakpoint_inserted_here_p.
6874 (find_single_step_breakpoint): New function,
6875 factored out from single_step_breakpoint_inserted_here_p.
6876 (single_step_breakpoint_inserted_here_p): Reimplement.
6877
6878 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6879
6880 Pushed by Joel Brobecker <brobecker@adacore.com>
6881 * source.c (show_substitute_path_command): Fix display of matching
6882 substitution rules.
6883
6884 2014-06-03 Gary Benson <gbenson@redhat.com>
6885
6886 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6887
6888 2014-06-02 Doug Evans <xdje42@gmail.com>
6889
6890 Add parameter support for Guile.
6891 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6892 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6893 (scm-param.o): New rule.
6894 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6895 (gdbscm_misc_error): Declare.
6896 (gdbscm_canonicalize_command_name): Declare.
6897 (gdbscm_scm_to_host_string): Declare.
6898 (gdbscm_scm_from_host_string): Declare.
6899 (gdbscm_initialize_parameters): Declare.
6900 * guile/guile.c (initialize_gdb_module): Call
6901 gdbscm_initialize_parameters.
6902 * guile/lib/gdb.scm: Export parameter symbols.
6903 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6904 cmdscm_canonicalize_name and made public. All callers updated.
6905 * guile/scm-exception.c (gdbscm_misc_error): New function.
6906 * guile/scm-param.c: New file.
6907 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6908 (gdbscm_scm_to_host_string): New function.
6909 (gdbscm_scm_from_host_string): New function.
6910 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6911
6912 2014-06-02 Doug Evans <xdje42@gmail.com>
6913
6914 Add command support for Guile.
6915 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6916 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6917 (scm-cmd.o): New rule.
6918 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6919 (gdbscm_user_error_p): Declare.
6920 (gdbscm_parse_command_name): Declare.
6921 (gdbscm_valid_command_class_p): Declare.
6922 (gdbscm_initialize_commands): Declare.
6923 * guile/guile.c (initialize_gdb_module): Call
6924 gdbscm_initialize_commands.
6925 * guile/lib/gdb.scm: Export command symbols.
6926 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6927 (throw-user-error): New function.
6928 * guile/scm-cmd.c: New file.
6929 * guile/scm-exception.c (user_error_symbol): New static global.
6930 (gdbscm_user_error_p): New function.
6931 (gdbscm_initialize_exceptions): Set user_error_symbol.
6932 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6933
6934 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6935
6936 * top.c (command_loop): Handle comments here...
6937 (command_line_input): ... not here.
6938
6939 2014-06-02 Doug Evans <xdje42@gmail.com>
6940
6941 Add progspace support for Guile.
6942 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6943 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6944 (scm-progspace.o): New rule.
6945 * guile/guile-internal.h (pspace_smob): New typedef.
6946 (psscm_pspace_smob_pretty_printers): Declare.
6947 (psscm_pspace_smob_from_pspace): Declare.
6948 (psscm_scm_from_pspace): Declare.
6949 * guile/guile.c (initialize_gdb_module): Call
6950 gdbscm_initialize_pspaces.
6951 * guile/lib/gdb.scm: Export progspace symbols.
6952 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6953 support.
6954 (append-pretty-printer!): Ditto.
6955 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6956 Implement.
6957 * guile/scm-progspace.c: New file.
6958
6959 2014-06-03 Alan Modra <amodra@gmail.com>
6960
6961 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6962 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6963
6964 2014-06-02 Doug Evans <dje@google.com>
6965
6966 Add support for skeletonless type units.
6967 * dwarf2read.c (struct dwarf2_per_objfile): New member
6968 n_allocated_type_units.
6969 (struct dwarf2_per_objfile) <tu_stats>: New member
6970 nr_all_type_units_reallocs.
6971 (create_signatured_type_table_from_index): Initialize
6972 n_allocated_type_units
6973 (create_all_type_units): Ditto.
6974 (add_type_unit): Move up in file. New arg slot.
6975 All callers updated. Increase space for all_type_units more
6976 efficiently.
6977 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6978 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6979 (lookup_dwp_signatured_type): Ditto.
6980 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6981 All callers updated.
6982 (build_type_psymtabs_1): Leave type_unit_groups as
6983 NULL if no TUs present.
6984 (print_tu_stats): New function.
6985 (process_skeletonless_type_unit): New function.
6986 (process_dwo_file_for_skeletonless_type_units): New
6987 function.
6988 (process_skeletonless_type_units): New function.
6989 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6990 Call print tu_stats if debugging enabled.
6991
6992 2014-06-02 Pedro Alves <palves@redhat.com>
6993
6994 * breakpoint.c (build_target_command_list): Don't build a command
6995 list if we have any duplicate location that isn't a dprintf.
6996
6997 2014-06-02 Pedro Alves <palves@redhat.com>
6998
6999 * breakpoint.c (dprintf_breakpoint_hit): New function.
7000 (initialize_breakpoint_ops): Install it as dprintf's
7001 breakpoint_hit method.
7002
7003 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7004
7005 * source.c (substitute_path_rule_matches): Simplify using
7006 filename_ncmp instead of FILENAME_CMP.
7007
7008 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7009
7010 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7011
7012 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7013
7014 * configure.ac: When Guile is available, check for the
7015 availability of 'scm_new_smob'.
7016 * configure, config.h.in: Regenerate.
7017 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7018 function.
7019
7020 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7021
7022 * frame.c (struct frame_info): Add stop_string field.
7023 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7024 (get_prev_frame_always): Old content moved into
7025 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7026 TRY_CATCH, handle MEMORY_ERROR exceptions.
7027 (frame_stop_reason_string): New function definition.
7028 * frame.h (unwind_stop_reason_to_string): Extend comment to
7029 mention frame_stop_reason_string.
7030 (frame_stop_reason_string): New function declaration.
7031 * stack.c (frame_info): Switch to frame_stop_reason_string.
7032 (backtrace_command_1): Switch to frame_stop_reason_string.
7033 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7034 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7035 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7036
7037 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7038
7039 * frame.c (frame_stop_reason_string): Rename to ...
7040 (unwind_stop_reason_to_string): this.
7041 * frame.h (frame_stop_reason_string): Rename to ...
7042 (unwind_stop_reason_to_string): this.
7043 * stack.c (frame_info): Update call to frame_stop_reason_string.
7044 (backtrace_command_1): Likewise.
7045 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7046 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7047
7048 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7049
7050 * frame.c (remove_prev_frame): New function.
7051 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7052 remove_prev_frame.
7053
7054 2014-05-29 Pedro Alves <palves@redhat.com>
7055
7056 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7057 and make it const. When a single-step decays to a continue,
7058 clear 'step', not 'hw_step'. Pass whether the caller wanted
7059 to step to user_visible_resume_ptid, not what we ask the
7060 target to do.
7061
7062 2014-05-29 Pedro Alves <palves@redhat.com>
7063
7064 * infrun.c (process_event_stop_test, handle_step_into_function)
7065 (handle_step_into_function_backward): Adjust.
7066 Don't set the even thread's stop_step and call stop_waiting before
7067 calling end_stepping_range. Instead do that ...
7068 (end_stepping_range): ... here. Take an ecs pointer parameter.
7069
7070 2014-05-29 Pedro Alves <palves@redhat.com>
7071
7072 * infrun.c (stop_stepping): Rename to ...
7073 (stop_waiting): ... this.
7074 (proceed): Update comment.
7075 (process_event_stop_test, handle_inferior_event)
7076 (handle_signal_stop, handle_step_into_function)
7077 (handle_step_into_function_backward): Update.
7078
7079 2014-05-29 Pedro Alves <palves@redhat.com>
7080
7081 * infcall.c (run_inferior_call): Don't check whether the current
7082 thread is running after the proceed call.
7083
7084 2014-05-29 Pedro Alves <palves@redhat.com>
7085 Tom Tromey <tromey@redhat.com>
7086
7087 * NEWS: Mention "maint set target-async", "set mi-async", and that
7088 background execution commands are now always available.
7089 * target.h (target_async_permitted): Update comment.
7090 * target.c (target_async_permitted, target_async_permitted_1):
7091 Default to 1.
7092 (set_target_async_command): Rename to ...
7093 (maint_set_target_async_command): ... this.
7094 (show_target_async_command): Rename to ...
7095 (maint_show_target_async_command): ... this.
7096 (_initialize_target): Adjust.
7097 * infcmd.c (prepare_execution_command): Make extern.
7098 * inferior.h (prepare_execution_command): Declare.
7099 * infrun.c (set_observer_mode): Leave target async alone.
7100 * mi/mi-interp.c (mi_interpreter_init): Install
7101 mi_on_sync_execution_done as sync_execution_done observer.
7102 (mi_on_sync_execution_done): New function.
7103 (mi_execute_command_input_handler): Don't print the prompt if we
7104 just started a synchronous command with an async target.
7105 (mi_on_resume): Check sync_execution before printing prompt.
7106 * mi/mi-main.h (mi_async_p): Declare.
7107 * mi/mi-main.c: Include gdbcmd.h.
7108 (mi_async_p): New function.
7109 (mi_async, mi_async_1): New globals.
7110 (set_mi_async_command, show_mi_async_command, mi_async): New
7111 functions.
7112 (exec_continue): Call prepare_execution_command.
7113 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7114 (mi_execute_async_cli_command): Use mi_async_p.
7115 (_initialize_mi_main): Install "set mi-async". Make
7116 "target-async" a deprecated alias.
7117
7118 2014-05-29 Pedro Alves <palves@redhat.com>
7119
7120 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7121 (_initialize_cli_interp): Adjust.
7122 * event-loop.c: Include "observer.h".
7123 (start_event_loop): Notify 'command_error' observers instead of
7124 calling display_gdb_prompt. Remove FIXME comment.
7125 * event-top.c (display_gdb_prompt): Remove call into the
7126 interpreters.
7127 * inf-loop.c: Include "observer.h".
7128 (inferior_event_handler): Notify 'command_error' observers instead
7129 of calling display_gdb_prompt.
7130 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7131 observers instead of calling display_gdb_prompt.
7132 * interps.c (interp_set): Don't call display_gdb_prompt.
7133 (current_interp_display_prompt_p): Delete.
7134 * interps.h (interp_prompt_p): Delete declaration.
7135 (interp_prompt_p_ftype): Delete.
7136 (struct interp_procs) <prompt_proc_p>: Delete field.
7137 (current_interp_display_prompt_p): Delete declaration.
7138 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7139 (_initialize_mi_interp): Adjust.
7140 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7141 'command_error' observers.
7142 (tui_on_sync_execution_done, tui_on_command_error): New
7143 functions.
7144 (tui_display_prompt_p): Delete.
7145 (_initialize_tui_interp): Adjust.
7146
7147 2014-05-29 Pedro Alves <palves@redhat.com>
7148
7149 PR gdb/13860
7150 * cli/cli-interp.c: Include infrun.h and observer.h.
7151 (cli_uiout, cli_interp): New globals.
7152 (cli_on_signal_received, cli_on_end_stepping_range)
7153 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7154 functions.
7155 (cli_interpreter_init): Install them as 'end_stepping_range',
7156 'signal_received' 'signal_exited', 'exited' and 'no_history'
7157 observers.
7158 (_initialize_cli_interp): Remove cli_interp local.
7159 * infrun.c (handle_inferior_event): Call the several stop reason
7160 observers instead of printing the stop reason directly.
7161 (end_stepping_range): New function.
7162 (print_end_stepping_range_reason, print_signal_exited_reason)
7163 (print_exited_reason, print_signal_received_reason)
7164 (print_no_history_reason): Make static, and add an uiout
7165 parameter. Print to that instead of to CURRENT_UIOUT.
7166 * infrun.h (print_end_stepping_range_reason)
7167 (print_signal_exited_reason, print_exited_reason)
7168 (print_signal_received_reason print_no_history_reason): New
7169 declarations.
7170 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7171 'mi_uiout'.
7172 <cli_uiout>: New field.
7173 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7174 uiout for CLI output. Install 'signal_received',
7175 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7176 observers.
7177 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7178 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7179 (mi_on_no_history): New functions.
7180 (ui_out_free_cleanup): Delete function.
7181 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7182 instead use the one already stored in the MI interpreter data.
7183 (mi_ui_out): Adjust.
7184 * tui/tui-interp.c: Include infrun.h and observer.h.
7185 (tui_interp): New global.
7186 (tui_on_signal_received, tui_on_end_stepping_range)
7187 (tui_on_signal_exited, tui_on_exited)
7188 (tui_on_no_history): New functions.
7189 (tui_init): Install them as 'end_stepping_range',
7190 'signal_received' 'signal_exited', 'exited' and 'no_history'
7191 observers.
7192 (_initialize_tui_interp): Delete tui_interp local.
7193
7194 2014-05-29 Pedro Alves <palves@redhat.com>
7195
7196 PR gdb/15713
7197 * linux-nat.c (linux_nat_resume_callback): Rename the second
7198 parameter to 'except'. Skip LP if it points to EXCEPT.
7199 (linux_nat_resume): Don't mark the event lwp as not stopped
7200 before resuming sibling lwps. Instead ask
7201 linux_nat_resume_callback to skip the event lwp. Mark it as not
7202 stopped after actually resuming it.
7203 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7204 resuming it.
7205 (wait_lwp): Mark the lwp as stopped here.
7206 (stop_wait_callback): Mark the lwp as not stopped right after
7207 resuming it. Don't mark lwps as stopped here.
7208 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7209 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7210
7211 2014-05-29 Pedro Alves <palves@redhat.com>
7212
7213 PR PR15693
7214 * infrun.c (resume): Determine how much to resume depending on
7215 whether the caller wanted a step, not whether we can hardware step
7216 the target. Mark all threads that we intend to run as running,
7217 unless we're calling an inferior function.
7218 (normal_stop): If the thread is running an infcall, don't finish
7219 thread state.
7220 * target.c (target_resume): Don't mark threads as running here.
7221
7222 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7223
7224 * serial.c (_initialize_serial): Remove support for
7225 the "set remotebaud" and "show remotebaud" commands.
7226 * NEWS: Add entry documenting the removal of that command.
7227
7228 2014-05-28 Yao Qi <yao@codesourcery.com>
7229
7230 * charset.c: Fix typo in comments.
7231
7232 2014-05-27 Gary Benson <gbenson@redhat.com>
7233
7234 * utils.c (internal_vproblem): Prompt for a bug report.
7235
7236 2014-05-26 Andy Wingo <wingo@igalia.com>
7237
7238 * guile/scm-arch.c (arscm_mark_arch_smob):
7239 * guile/scm-block.c (bkscm_mark_block_smob)
7240 (bkscm_mark_block_syms_progress_smob):
7241 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7242 * guile/scm-exception.c (exscm_mark_exception_smob):
7243 * guile/scm-frame.c (frscm_mark_frame_smob):
7244 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7245 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7246 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7247 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7248 (ppscm_mark_pretty_printer_worker_smob):
7249 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7250 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7251 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7252 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7253 mark functions.
7254 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7255 function.
7256
7257 2014-05-26 Andy Wingo <wingo@igalia.com>
7258 Doug Evans <xdje42@gmail.com>
7259
7260 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7261 empty_base_class. All uses updated.
7262 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7263 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7264 Adapt all callers.
7265 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7266 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7267 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7268 (gdbscm_gsmob_has_property_p, add_property_name)
7269 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7270 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7271 (gdb-object-has-property?, gdb-object-properties): Remove.
7272 (gdb-object-kind): Renamed from gsmob-kind.
7273
7274 2014-05-26 Andy Wingo <wingo@igalia.com>
7275
7276 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7277 * configure: Regenerate.
7278
7279 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7280
7281 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7282
7283 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7284
7285 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7286 (replay_memory_access_read_only, replay_memory_access_read_write)
7287 (replay_memory_access_types, replay_memory_access)
7288 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7289 (cmd_set_record_btrace, cmd_show_record_btrace)
7290 (cmd_show_replay_memory_access): New.
7291 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7292 (record_btrace_remove_breakpoint): Replace
7293 record_btrace_allow_memory_access with replay_memory_access.
7294 (_initialize_record_btrace): Add commands.
7295 * NEWS: Announce it.
7296
7297 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7298
7299 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7300
7301 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7302
7303 * MAINTAINERS (Write After Approval): Move self back from
7304 paper trail.
7305
7306 2014-05-22 Pedro Alves <palves@redhat.com>
7307
7308 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7309 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7310 (disable_randomization, enum exec_direction_kind)
7311 (execution_direction, stop_registers, start_remote)
7312 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7313 (wait_for_inferior, normal_stop, get_last_target_status)
7314 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7315 (insert_step_resume_breakpoint_at_sal)
7316 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7317 (set_step_info, print_stop_event, signal_stop_state)
7318 (signal_print_state, signal_pass_state, signal_stop_update)
7319 (signal_print_update, signal_pass_update)
7320 (update_signals_program_target, clear_exit_convenience_vars)
7321 (displaced_step_dump_bytes, update_observer_mode)
7322 (signal_catch_update, gdb_signal_from_command): Move
7323 declarations ...
7324 * infrun.h: ... to this new file.
7325 * amd64-tdep.c: Include infrun.h.
7326 * annotate.c: Include infrun.h.
7327 * arch-utils.c: Include infrun.h.
7328 * arm-linux-tdep.c: Include infrun.h.
7329 * arm-tdep.c: Include infrun.h.
7330 * break-catch-sig.c: Include infrun.h.
7331 * breakpoint.c: Include infrun.h.
7332 * common/agent.c: Include infrun.h instead of inferior.h.
7333 * corelow.c: Include infrun.h.
7334 * event-top.c: Include infrun.h.
7335 * go32-nat.c: Include infrun.h.
7336 * i386-tdep.c: Include infrun.h.
7337 * inf-loop.c: Include infrun.h.
7338 * infcall.c: Include infrun.h.
7339 * infcmd.c: Include infrun.h.
7340 * infrun.c: Include infrun.h.
7341 * linux-fork.c: Include infrun.h.
7342 * linux-nat.c: Include infrun.h.
7343 * linux-thread-db.c: Include infrun.h.
7344 * monitor.c: Include infrun.h.
7345 * nto-tdep.c: Include infrun.h.
7346 * procfs.c: Include infrun.h.
7347 * record-btrace.c: Include infrun.h.
7348 * record-full.c: Include infrun.h.
7349 * remote-m32r-sdi.c: Include infrun.h.
7350 * remote-mips.c: Include infrun.h.
7351 * remote-notif.c: Include infrun.h.
7352 * remote-sim.c: Include infrun.h.
7353 * remote.c: Include infrun.h.
7354 * reverse.c: Include infrun.h.
7355 * rs6000-tdep.c: Include infrun.h.
7356 * s390-linux-tdep.c: Include infrun.h.
7357 * solib-irix.c: Include infrun.h.
7358 * solib-osf.c: Include infrun.h.
7359 * solib-svr4.c: Include infrun.h.
7360 * target.c: Include infrun.h.
7361 * top.c: Include infrun.h.
7362 * windows-nat.c: Include infrun.h.
7363 * mi/mi-interp.c: Include infrun.h.
7364 * mi/mi-main.c: Include infrun.h.
7365 * python/py-threadevent.c: Include infrun.h.
7366
7367 2014-05-22 Pedro Alves <palves@redhat.com>
7368
7369 * infrun.c (handle_inferior_event): Store the exit code for
7370 --return-child-result here, instead of ...
7371 (print_exited_reason): ... here.
7372
7373 2014-05-21 Pedro Alves <palves@redhat.com>
7374
7375 PR gdb/13860
7376 * gdbthread.h (struct thread_control_state): New field
7377 `command_interp'.
7378 * infrun.c (follow_fork): Copy the new thread control field to the
7379 child fork thread.
7380 (clear_proceed_status_thread): Clear the new thread control field.
7381 (proceed): Set the new thread control field.
7382 * interps.h (command_interp): Declare.
7383 * interps.c (command_interpreter): New global.
7384 (command_interp): New function.
7385 (interp_exec): Set `command_interpreter' while here.
7386 * cli-out.c (cli_uiout_dtor): New function.
7387 (cli_ui_out_impl): Install it.
7388 * mi/mi-interp.c: Include cli-out.h.
7389 (mi_cmd_interpreter_exec): Add comment.
7390 (restore_current_uiout_cleanup): New function.
7391 (ui_out_free_cleanup): New function.
7392 (mi_on_normal_stop): If finishing an execution command started by
7393 a CLI command, or any kind of breakpoint-like event triggered,
7394 print the stop event to the output (CLI) stream.
7395 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7396
7397 2014-05-21 Pedro Alves <palves@redhat.com>
7398
7399 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7400 current source line having changed.
7401 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7402 * infrun.c (normal_stop): Adjust call to
7403 set_current_sal_from_frame.
7404 * source.c (clear_lines_listed_range): New function.
7405 (set_current_source_symtab_and_line, identify_source_line): Clear
7406 the lines listed range.
7407 (line_info): Handle the first "info line" after the current source
7408 line having changed.
7409 * stack.c (print_stack_frame): Remove center handling.
7410 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7411 center sal.line.
7412
7413 2014-05-21 Pedro Alves <palves@redhat.com>
7414
7415 * inf-child.c (inf_child_mourn_inferior): New function.
7416 * inf-child.h (inf_child_mourn_inferior): New declaration.
7417 * darwin-nat.c (darwin_mourn_inferior): Use
7418 inf_child_mourn_inferior.
7419 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7420 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7421 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7422 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7423 * windows-nat.c (windows_mourn_inferior): Likewise.
7424
7425 2014-05-21 Doug Evans <xdje42@gmail.com>
7426
7427 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7428
7429 2014-05-21 Doug Evans <xdje42@gmail.com>
7430
7431 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7432 (gdbscm_out_of_range_error): Ditto.
7433 (gdbscm_memory_error): Ditto.
7434 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7435 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7436 (gdbscm_out_of_range_error): Update.
7437 (gdbscm_memory_error): Update.
7438 (gdbscm_scm_to_target_string_unsafe): Delete.
7439
7440 2014-05-21 Pedro Alves <palves@redhat.com>
7441
7442 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7443 globals.
7444 (inf_child_open_target): New function.
7445 (inf_child_open): Use inf_child_open_target to push the target
7446 instead of erroring out.
7447 (inf_child_disconnect, inf_child_close)
7448 (inf_child_maybe_unpush_target): New functions.
7449 (inf_child_target): Install inf_child_disconnect and
7450 inf_child_close. Store a pointer to the returned object.
7451 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7452 declarations.
7453 * target.c (auto_connect_native_target): New global.
7454 (show_default_run_target): New function.
7455 (find_default_run_target): Return NULL if automatically connecting
7456 to the native target is disabled.
7457 (_initialize_target): Install set/show auto-connect-native-target.
7458 * NEWS: Mention "set auto-connect-native-target", and "target
7459 native".
7460 * linux-nat.c (super_close): New global.
7461 (linux_nat_close): Call super_close.
7462 (linux_nat_add_target): Store a pointer to the base class's
7463 to_close method.
7464 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7465 inf_child_maybe_unpush.
7466 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7467 already pushed.
7468 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7469 the inferior. Use inf_child_maybe_unpush_target.
7470 (inf_ttrace_attach): Don't push the target if it is already
7471 pushed.
7472 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7473 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7474 after mourning the inferior. Use inf_child_maybe_unpush_target.
7475 (darwin_attach_pid): Don't push the target if it is already
7476 pushed.
7477 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7478 mourning the inferior. Use inf_child_maybe_unpush_target.
7479 (gnu_detach): Use inf_child_maybe_unpush_target.
7480 * go32-nat.c (go32_create_inferior): Don't push the target if it
7481 is already pushed.
7482 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7483 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7484 (procfs_open): Rename to ...
7485 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7486 comments. Can target_preopen before changing node. Call
7487 inf_child_open_target to push the target explicitly.
7488 (procfs_attach): Don't push the target if it is already pushed.
7489 (procfs_detach): Use inf_child_maybe_unpush_target.
7490 (procfs_create_inferior): Don't push the target if it is already
7491 pushed.
7492 (nto_native_ops): New global.
7493 (procfs_open): Reimplement.
7494 (procfs_native_open): New function.
7495 (init_procfs_targets): Install procfs_native_open as to_open of
7496 "target native". Store a pointer to the "native" target in
7497 nto_native_ops.
7498 * procfs.c (procfs_attach): Don't push the target if it is already
7499 pushed.
7500 (procfs_detach): Use inf_child_maybe_unpush_target.
7501 (procfs_mourn_inferior): Only unpush the target after mourning the
7502 inferior. Use inf_child_maybe_unpush_target.
7503 (procfs_init_inferior): Don't push the target if it is already
7504 pushed.
7505 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7506 if it is already pushed.
7507
7508 2014-05-21 Pedro Alves <palves@redhat.com>
7509
7510 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7511 and "procfs" targets are now called "native" instead.
7512
7513 2014-05-21 Pedro Alves <palves@redhat.com>
7514
7515 * go32-nat.c (go32_open): Delete.
7516 (go32_target): Don't override the to_open method.
7517
7518 2014-05-21 Pedro Alves <palves@redhat.com>
7519
7520 * nto-procfs.c (procfs_can_run): New function.
7521 (nto_procfs_ops): New global.
7522 (init_procfs_targets): New, based on procfs_target. Install
7523 "target native" in addition to "target procfs".
7524 (_initialize_procfs): Call init_procfs_targets instead of adding
7525 the target here.
7526
7527 2014-05-21 Pedro Alves <palves@redhat.com>
7528
7529 * windows-nat.c (windows_target): Don't override to_shortname,
7530 to_longname or to_doc.
7531
7532 2014-05-21 Pedro Alves <palves@redhat.com>
7533
7534 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7535 to_doc.
7536
7537 2014-05-21 Pedro Alves <palves@redhat.com>
7538
7539 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7540 to_shortname, to_longname or to_doc.
7541
7542 2014-05-21 Pedro Alves <palves@redhat.com>
7543
7544 * go32-nat.c (go32_target): Don't override to_shortname,
7545 to_longname or to_doc.
7546
7547 2014-05-21 Pedro Alves <palves@redhat.com>
7548
7549 * inf-child.c (inf_child_open): Remove mention of "child".
7550 (inf_child_target): Rename target to "native" instead of "child".
7551
7552 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7553
7554 * Makefile.in (SFILES): Delete "regset.c".
7555 (COMMON_OBS): Delete "regset.o".
7556 * regset.c: Remove.
7557 * regset.h (regset_alloc): Delete prototype.
7558
7559 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7560
7561 * sparc-linux-tdep.c (sparc32_linux_gregset)
7562 (sparc32_linux_fpregset): New static regset structures.
7563 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7564 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7565 'fpregset' fields.
7566 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7567 (sparc64_linux_fpregset): New static regset structures.
7568 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7569 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7570 New static regset structures.
7571 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7572 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7573 New static regset structures.
7574 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7575 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7576 New static regset structures.
7577 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7578 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7579 New static regset structures.
7580 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7581
7582 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7583
7584 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7585 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7586 register maps ("regmaps") from "*regset" to "*regmap". Do this
7587 for all regmap types and variables.
7588 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7589 (sparc32_linux_supply_core_gregset)
7590 (sparc32_linux_collect_core_gregset)
7591 (sparc32_linux_supply_core_fpregset)
7592 (sparc32_linux_collect_core_fpregset): Likewise.
7593 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7594 (sparc_gregmap, sparc_fpregmap): ... these.
7595 (sparc_supply_gregset, sparc_collect_gregset)
7596 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7597 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7598 (_initialize_sparc_nat): Rename regmaps.
7599 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7600 (sparc_gregmap, sparc_fpregmap): ... these.
7601 (sparc_supply_gregset, sparc_collect_gregset)
7602 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7603 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7604 Rename macros to...
7605 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7606 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7607 Likewise.
7608 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7609 Rename to...
7610 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7611 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7612 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7613 regmaps.
7614 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7615 (sparc32_bsd_fpregset): Rename to...
7616 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7617 (sparc32_bsd_fpregmap): ... these.
7618 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7619 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7620 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7621 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7622 (struct sparc_gregmap, struct sparc_fpregmap)
7623 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7624 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7625 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7626 (sparc32_supply_regset, sparc32_collect_gregset)
7627 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7628 prototypes.
7629 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7630 (sparc64_linux_ptrace_gregmap): ... this.
7631 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7632 (_initialize_sparc64_linux_nat): Rename regmaps.
7633 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7634 (sparc64_linux_core_gregmap): ... this.
7635 (sparc64_linux_supply_core_gregset)
7636 (sparc64_linux_collect_core_gregset)
7637 (sparc64_linux_supply_core_fpregset)
7638 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7639 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7640 (sparc64_sol2_fpregset): Rename to...
7641 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7642 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7643 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7644 regmaps.
7645 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7646 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7647 (sparc64_bsd_fpregset): Rename to...
7648 (struct sparc_gregmap, sparc64_sol2_gregmap)
7649 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7650 (sparc64_bsd_fpregmap): ... these.
7651 (sparc64_supply_gregset, sparc64_collect_gregset)
7652 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7653 prototypes.
7654 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7655 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7656 (sparc64fbsd_gregmap): ... this.
7657 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7658 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7659 Rename regmaps.
7660 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7661 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7662 (sparc64nbsd_collect_fpregset): Likewise.
7663 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7664 (sparc64nbsd_gregmap): ... this.
7665 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7666 regmaps.
7667 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7668 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7669 (sparc64obsd_gregmap): ... this.
7670 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7671 regmaps.
7672 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7673 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7674 (sparc32nbsd_gregmap): ... this.
7675 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7676 regmaps.
7677
7678 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7679
7680 * score-tdep.c (score7_linux_gregset): New static regset
7681 structure.
7682 (score7_linux_regset_from_core_section): Remove dynamic regset
7683 allocation.
7684 (score_gdbarch_init): Drop allocation of tdep structure.
7685 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7686
7687 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7688
7689 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7690 regset structures.
7691 (am33_regset_from_core_section): Remove dynamic regset
7692 allocations.
7693
7694 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7695
7696 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7697 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7698 structures.
7699 (mips_linux_regset_from_core_section): Remove dynamic regset
7700 allocations.
7701 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7702 'gregset64', 'fpregset', and 'fpregset64'.
7703 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7704 deleted tdep fields.
7705
7706 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7707
7708 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7709 regset structures.
7710 (amd64_regset_from_core_section): Remove dynamic regset
7711 allocations.
7712 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7713 structure.
7714 (amd64obsd_regset_from_core_section): Remove dynamic regset
7715 allocation.
7716 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7717 Likewise.
7718 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7719 x86-common regset supply function.
7720 * i386-tdep.c (i386_collect_gregset): Make static.
7721 (i386_gregset): New global regset structure.
7722 (i386_fpregset, i386_xstateregset): New static regset structures.
7723 (i386_regset_from_core_section): Remove dynamic regset
7724 allocations.
7725 (i386_gdbarch_init): Remove initialization of tdep fields
7726 'gregset', 'fpregset', and 'xstateregset'.
7727 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7728 'fpregset', and 'xstateregset'.
7729 (i386_collect_gregset): Remove prototype.
7730 (i386_gregset): New declaration.
7731 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7732 structure.
7733 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7734 allocation.
7735
7736 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7737
7738 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7739 (arm_linux_vfpregset): New static regset structures.
7740 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7741 regset structures.
7742 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7743 and 'vfpregset' fields.
7744
7745 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7746
7747 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7748 (aarch64_linux_fpregset): New static regset structures.
7749 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7750 of regset structures.
7751 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7752 'fpregset' fields.
7753
7754 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7755
7756 * regset.h (struct regset): Remove gdbarch field.
7757 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7758 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7759 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7760 Likewise.
7761 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7762 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7763 (ppc32_linux_vsxregset): Likewise.
7764 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7765 via the regcache instead of the regset.
7766 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7767 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7768 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7769 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7770 Likewise.
7771
7772 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7773
7774 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7775 Constify structures.
7776 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7777 (alphanbsd_aout_gregset): Likewise.
7778 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7779 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7780 Likewise.
7781 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7782 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7783 Likewise.
7784 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7785 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7786 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7787 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7788 * m88k-tdep.c (m88k_gregset): Likewise.
7789 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7790 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7791 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7792 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7793 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7794 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7795 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7796 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7797 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7798 Likewise.
7799 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7800 * sh-tdep.h (sh_corefile_gregset): Likewise.
7801 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7802 * vax-tdep.c (vax_gregset): Likewise.
7803
7804 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7805
7806 Fix TLS access for -static -pthread.
7807 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7808 (try_thread_db_load_1): Initialize it.
7809 (thread_db_get_thread_local_address): Call it if LM is zero.
7810 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7811 * target.h (struct target_ops) (to_get_thread_local_address): Add
7812 load_module_addr comment.
7813
7814 2014-05-21 Pedro Alves <palves@redhat.com>
7815
7816 * dcache.c (dcache_read_memory_partial): If reading the cache line
7817 fails, fallback to reading just the memory the caller wanted.
7818
7819 2014-05-20 Doug Evans <dje@google.com>
7820
7821 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7822 instead of get_current_arch.
7823
7824 2014-05-20 Pedro Alves <palves@redhat.com>
7825
7826 * NEWS: Mention that compare-sections now works with all targets.
7827
7828 * remote.c (PACKET_qCRC): New enum value.
7829 (remote_verify_memory): Don't send qCRC if the target has no
7830 execution. Use packet_support/packet_ok. If the target doesn't
7831 support the qCRC packet, fallback to a deep memory copy.
7832 (compare_sections_command): Say "target image" instead of "remote
7833 executable".
7834 (_initialize_remote): Add PACKET_qCRC to the list of config
7835 packets that have no associated command. Extend comment.
7836 * target.c (simple_verify_memory, default_verify_memory): New
7837 function.
7838 * target.h (struct target_ops) <to_verify_memory>: Default to
7839 default_verify_memory.
7840 (simple_verify_memory): New declaration.
7841 * target-delegates.c: Regenerate.
7842
7843 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7844
7845 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7846
7847 2014-05-20 Hui Zhu <hui@codesourcery.com>
7848 Yao Qi <yao@codesourcery.com>
7849
7850 PR backtrace/16558
7851 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7852 and change address of sp and pc.
7853
7854 2014-05-19 Tom Tromey <tromey@redhat.com>
7855
7856 * gdbtypes.c (rank_function): Use XNEWVEC.
7857 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7858
7859 2014-05-19 Doug Evans <dje@google.com>
7860
7861 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7862 build_type_unit_groups and moved closer to only caller. Remove
7863 arguments. All references updated. Remove outdated .gdb_index
7864 comment.
7865 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7866 build_type_psymtabs_1.
7867
7868 2014-05-19 Doug Evans <dje@google.com>
7869
7870 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7871 n_type_unit_groups, all_type_unit_groups. All uses removed.
7872 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7873 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7874 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7875 (add_type_unit_group_to_table): Delete.
7876
7877 2014-05-19 Doug Evans <dje@google.com>
7878
7879 * eval.c (evaluate_subexp_standard): Add some comments.
7880
7881 2014-05-17 Doug Evans <xdje42@gmail.com>
7882
7883 * progspace.c (remove_program_space): Delete, unused.
7884 * progspace.h (remove_program_space): Ditto.
7885
7886 2014-05-17 Doug Evans <xdje42@gmail.com>
7887
7888 * inferior.c (prune_inferiors): Fix comment.
7889 (remove_inferior_command): Call prune_program_spaces.
7890
7891 2014-05-16 Doug Evans <dje@google.com>
7892
7893 New command line option -D.
7894 * NEWS: Mention it.
7895 * main.c (set_gdb_data_directory): New function.
7896 (captured_main): Recognize -D. Flag error for --data-directory "".
7897 Call set_gdb_data_directory.
7898 (print_gdb_help): Print --data-directory, -D.
7899 * main.h (set_gdb_data_directory): Declare.
7900 * top.c (staged_gdb_datadir): New static global.
7901 (set_gdb_datadir): Call set_gdb_data_directory
7902 (show_gdb_datadir): New function.
7903 (init_main): Update init of data-directory parameter.
7904
7905 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7906
7907 Import the "dirfd" gnulib module.
7908 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7909 * gnulib/aclocal.m4: Update.
7910 * gnulib/config.in: Update.
7911 * gnulib/configure: Update.
7912 * gnulib/import/Makefile.am: Update.
7913 * gnulib/import/Makefile.in: Update.
7914 * gnulib/import/dirfd.c: New.
7915 * gnulib/import/m4/dirfd.m4: New.
7916 * gnulib/import/m4/gnulib-cache.m4: Update.
7917 * gnulib/import/m4/gnulib-comp.m4: Update.
7918
7919 2014-05-16 Pierre Muller <muller@sourceware.org>
7920 Yao Qi <yao@codesourcery.com>
7921
7922 * valprint.c (print_wchar): Move the code on checking whether
7923 W is a printable wide char to the default branch of switch
7924 statement below. Call wchar_printable instead of gdb_iswprint.
7925
7926 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7927
7928 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7929 ldr.w and ldrd instructions.
7930
7931 2014-05-15 Doug Evans <dje@google.com>
7932
7933 * dwarf2read.c (read_structure_type): Delete outdated comments.
7934
7935 2014-05-14 Tom Tromey <tromey@redhat.com>
7936
7937 * macrocmd.c (print_macro_definition): Reindent.
7938
7939 2014-05-13 Doug Evans <xdje42@gmail.com>
7940
7941 * python/py-cmd.c (cmdpy_completer): Add comment.
7942 (completers): Make const.
7943
7944 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7945
7946 * infrun.c (resume): Remove should_resume (unused). Move up
7947 declaration of resume_ptid.
7948
7949 2014-05-13 Tom Tromey <tromey@redhat.com>
7950
7951 * language.h (unop_type_check): Remove.
7952 (binop_type_check): Don't declare.
7953
7954 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7955
7956 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7957 call to regcache_raw_collect.
7958
7959 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7960
7961 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7962 mi_console->quote as the quoting character.
7963
7964 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7965
7966 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7967
7968 2014-04-29 Tom Tromey <tromey@redhat.com>
7969
7970 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7971 "show debug varobj".
7972
7973 2014-05-07 Kyle McMartin <kyle@redhat.com>
7974
7975 Pushed by Joel Brobecker <brobecker@adacore.com>.
7976 * aarch64-tdep.c (aarch64_software_single_step): New function.
7977 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7978 with aarch64_software_single_step.
7979
7980 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7981
7982 GDB 7.7.1 released.
7983
7984 2014-05-05 Keith Seitz <keiths@redhat.com>
7985
7986 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7987 variable or history value is successfully parsed.
7988
7989 2014-05-05 Yao Qi <yao@codesourcery.com>
7990 Pedro Alves <palves@redhat.com>
7991
7992 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7993 address of blocks that intersects the requested range. Trim
7994 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7995 sections.
7996 * ctf.c (ctf_xfer_partial): Likewise.
7997
7998 2014-05-05 Yao Qi <yao@codesourcery.com>
7999
8000 * printcmd.c (display_command): Remove the check to
8001 target_has_execution.
8002
8003 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8004
8005 * ppcobsd-nat.c: Include "obsd-nat.h".
8006 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8007 add_target.
8008 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8009
8010 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8011
8012 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8013 and 16-bit signed and unsigned arguments. Update comment.
8014 (stap_parse_probe_arguments): Extend code to handle such
8015 arguments. Use warning instead of complaint to notify about
8016 unrecognized bitness.
8017
8018 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8019
8020 PR breakpoints/16889
8021 * stap-probe.c (stap_parse_probe_arguments): Simplify
8022 check for non-prefixed probes (i.e., probes whose
8023 arguments do not start with "N@"). Always set the
8024 argument type to a sane value.
8025
8026 2014-05-01 David Taylor <dtaylor@emc.com>
8027
8028 * remote.c (compare_sections_command): Add -r option to compare
8029 all loadable read-only sections.
8030
8031 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8032
8033 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8034 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8035 Update all callers.
8036 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8037 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8038 Remove unused CORE_ADDR argument. Update all callers.
8039
8040 2014-04-29 Pedro Alves <palves@redhat.com>
8041
8042 * remote.c (struct packet_config) <detect>: Extend comment.
8043 (add_packet_config_cmd): Don't set the config's detect or support
8044 fields here.
8045 (init_all_packet_configs): Also initialize the config's 'detect'
8046 field.
8047 (reset_all_packet_configs_support): New function.
8048 (remote_open_1): Call reset_all_packet_configs_support instead of
8049 init_all_packet_configs.
8050 (_initialize_remote): Initialize all packet configs. Assert that
8051 all packets have an associated command, except a few known
8052 outliers.
8053
8054 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8055
8056 * dwarf2read.c (read_subrange_type): Handle dynamic
8057 DW_AT_lower_bound attributes.
8058
8059 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8060
8061 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8062 dynamic bounds before computing its upper bound.
8063 (ada_discrete_type_low_bound): Same as above with the lower bound.
8064
8065 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8066
8067 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8068 range types. Adjust the array handling implementation to
8069 take advantage of this change.
8070 (resolve_dynamic_range): New function, mostly extracted from
8071 resolve_dynamic_bounds.
8072 (resolve_dynamic_array): New function, mostly extracted from
8073 resolve_dynamic_bounds.
8074 (resolve_dynamic_bounds): Delete.
8075 (resolve_dynamic_type): Reimplement. Add handling of
8076 TYPE_CODE_RANGE types.
8077
8078 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8079
8080 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8081 handling of parallel ___XA types.
8082
8083 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8084
8085 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8086 unnecessary second call to static_unwrap_type.
8087
8088 2014-04-27 Hui Zhu <hui@codesourcery.com>
8089
8090 * stack.c (print_frame_info): Call do_gdb_disassembly with
8091 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8092
8093 2014-04-26 Doug Evans <xdje42@gmail.com>
8094
8095 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8096
8097 2014-04-25 Pedro Alves <palves@redhat.com>
8098
8099 PR server/16255
8100 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8101 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8102 and newline from built string.
8103 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8104 (linux_ptrace_attach_fail_reason): ... this.
8105 * linux-nat.c (linux_nat_attach): Adjust to use
8106 linux_ptrace_attach_fail_reason.
8107
8108 2014-04-25 Pedro Alves <palves@redhat.com>
8109
8110 * remote.c (struct remote_state): Remove multi_process_aware,
8111 non_stop_aware, cond_tracepoints, cond_breakpoints,
8112 breakpoint_commands, fast_tracepoints, static_tracepoints,
8113 install_in_trace, disconnected_tracing,
8114 enable_disable_tracepoints, string_tracing, and
8115 augmented_libraries_svr4_read fields.
8116 (remote_multi_process_p): Move further below in the file.
8117 (struct packet_config): Add comments.
8118 (update_packet_config): Delete function.
8119 (show_packet_config_cmd): Use packet_config_support.
8120 (add_packet_config_cmd): Use NULL as set callback.
8121 (packet_ok): "set remote foo-packet"-style commands no longer
8122 change config->supported -- adjust.
8123 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8124 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8125 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8126 (PACKET_QNonStop, PACKET_multiprocess_feature)
8127 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8128 (PACKET_DisconnectedTracing_feature)
8129 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8130 (set_remote_protocol_packet_cmd): Delete function.
8131 (packet_config_support, packet_support): New functions.
8132 (set_remote_protocol_Z_packet_cmd): Don't call
8133 update_packet_config.
8134 (remote_query_attached, remote_pass_signals)
8135 (remote_program_signals, remote_threads_info)
8136 (remote_threads_extra_info, remote_start_remote): Use
8137 packet_support.
8138 (remote_start_remote): Use packet_config_support and
8139 packet_support.
8140 (init_all_packet_configs): Set all packets to unknown support,
8141 instead of calling update_packet_config.
8142 (remote_check_symbols): Use packet_support.
8143 (remote_supported_packet): Unconditionally set the packet config's
8144 support status.
8145 (remote_multi_process_feature, remote_non_stop_feature)
8146 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8147 (remote_breakpoint_commands_feature)
8148 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8149 (remote_install_in_trace_feature)
8150 (remote_disconnected_tracing_feature)
8151 (remote_enable_disable_tracepoint_feature)
8152 (remote_string_tracing_feature)
8153 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8154 (remote_protocol_features): Adjust to use remote_supported_packet
8155 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8156 "ConditionalTracepoints", "ConditionalBreakpoints",
8157 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8158 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8159 "EnableDisableTracepoints", and "tracenz".
8160 (remote_query_supported): Use packet_support.
8161 (remote_open_1): Adjust.
8162 (extended_remote_attach_1): Use packet_support. Switch on the
8163 result of packet_ok instead of checking whether the packet ended
8164 up disabled.
8165 (remote_vcont_resume): Use packet_support.
8166 (remote_resume, remote_stop_ns, fetch_register_using_p)
8167 (remote_prepare_to_store, store_register_using_P)
8168 (check_binary_download, remote_write_bytes): Use packet_support.
8169 (remote_vkill): Use packet_support. Switch on the result of
8170 packet_ok instead of checking whether the packet ended up
8171 disabled.
8172 (extended_remote_supports_disable_randomization): Use
8173 packet_support.
8174 (extended_remote_run): Switch on the result of packet_ok instead
8175 of checking whether the packet ended up disabled.
8176 (remote_insert_breakpoint, remote_remove_breakpoint)
8177 (remote_insert_watchpoint, remote_remove_watchpoint)
8178 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8179 packet_support.
8180 (remote_search_memory): Use packet_config_support.
8181 (remote_get_thread_local_address, remote_get_tib_address)
8182 (remote_hostio_send_command, remote_can_execute_reverse): Use
8183 packet_support.
8184 (remote_supports_cond_tracepoints)
8185 (remote_supports_cond_breakpoints)
8186 (remote_supports_fast_tracepoints)
8187 (remote_supports_static_tracepoints)
8188 (remote_supports_install_in_trace)
8189 (remote_supports_enable_disable_tracepoint)
8190 (remote_supports_string_tracing)
8191 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8192 the packet config says the feature is enabled or disabled.
8193 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8194 (remote_get_trace_status): Use packet_support.
8195 (remote_set_disconnected_tracing): Adjust to check whether the
8196 feature is enabled with packet_support.
8197 (remote_set_trace_buffer_size, remote_use_agent)
8198 (remote_can_use_agent, remote_supports_btrace): Use
8199 packet_support.
8200 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8201 Use packet_config_support.
8202 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8203 the packet config says the feature is enabled or disabled.
8204 (set_range_stepping): Use packet_support.
8205
8206 2014-04-25 Tom Tromey <tromey@redhat.com>
8207
8208 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8209 argument.
8210
8211 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8212
8213 * NEWS: Mention support for C99 variable length arrays.
8214
8215 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8216
8217 * ada-lang.c (standard_exc): Expand introductory comment.
8218
8219 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8220 Walfred Tedeschi <walfred.tedeschi@intel.com>
8221
8222 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8223 AVX512 registers.
8224 (amd64_linux_read_description): Add code to handle AVX512 xstate
8225 mask and return respective tdesc.
8226 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8227 and features/i386/x32-avx512-linux.c.
8228 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8229 (amd64_linux_core_read_description): Add code to handle AVX512
8230 xstate mask and return respective tdesc.
8231 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8232 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8233 calculation.
8234 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8235 (tdesc_amd64_avx512_linux): New prototype.
8236 (tdesc_x32_avx512_linux): Likewise.
8237 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8238 features/i386/x32-avx512.c.
8239 (amd64_ymm_avx512_names): New register names for pseudo
8240 registers YMM16-31.
8241 (amd64_ymmh_avx512_names): New register names for raw registers
8242 YMMH16-31.
8243 (amd64_k_names): New register names for K registers.
8244 (amd64_zmmh_names): New register names for ZMM raw registers.
8245 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8246 (amd64_xmm_avx512_names): New register names for XMM16-31
8247 registers.
8248 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8249 registers.
8250 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8251 if feature is present.
8252 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8253 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8254 (AMD64_NUM_REGS): Adjust to new number of registers.
8255 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8256 registers supplied via XSTATE by AVX512 registers.
8257 (i386_linux_read_description): Add case for AVX512.
8258 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8259 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8260 (i386_linux_core_read_description): Add case for AVX512.
8261 (i386_linux_init_abi): Install supported register note section
8262 for AVX512.
8263 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8264 AVX512.
8265 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8266 registers to be number of zmm7h + 1.
8267 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8268 * i386-tdep.c: Include features/i386/i386-avx512.c.
8269 (i386_zmm_names): Add ZMM pseudo register names array.
8270 (i386_zmmh_names): Add ZMM raw register names array.
8271 (i386_k_names): Add K raw register names array.
8272 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8273 registers. AVX512 has 16 more ZMM registers than there are YMM
8274 registers.
8275 (i386_zmmh_regnum_p): Add function to look up register number of
8276 ZMM raw registers.
8277 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8278 (i386_k_regnum_p): Likewise for K raw registers.
8279 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8280 registers added by AVX512.
8281 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8282 registers added by AVX512.
8283 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8284 added by AVX512.
8285 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8286 (i386_pseudo_register_name): Add ZMM pseudo registers.
8287 (i386_zmm_type): Construct and return vector registers type for ZMM
8288 registers.
8289 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8290 ZMM0-31 pseudo registers and K registers.
8291 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8292 and YMM16-31 registers from register cache.
8293 (i386_pseudo_register_write): Add code to write K, ZMM and
8294 YMM16-31 registers.
8295 (i386_register_reggroup_p): Add code to include/exclude AVX512
8296 registers in/from respective register groups.
8297 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8298 registers if feature is present in xcr0.
8299 (i386_gdbarch_init): Add code to initialize AVX512 feature
8300 variables in tdep structure, wire in pseudo registers and call
8301 initialize_tdesc_i386_avx512.
8302 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8303 variables.
8304 (i386_regnum): Add AVX512 registers.
8305 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8306 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8307 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8308 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8309 512 bits wide.
8310 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8311 (i386_ymm_avx512_regnum_p): Likewise.
8312 (i386_k_regnum_p): Likewise.
8313 (i386_zmm_regnum_p): Likewise.
8314 (i386_zmmh_regnum_p): Likewise.
8315 * i387-tdep.c : Update year in copyright notice.
8316 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8317 XSAVE buffer.
8318 (XSAVE_YMM_AVX512_ADDR): New macro.
8319 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8320 XSAVE buffer.
8321 (XSAVE_XMM_AVX512_ADDR): New macro.
8322 (xsave_avx512_k_offset): New table for K register offsets in
8323 XSAVE buffer.
8324 (XSAVE_AVX512_K_ADDR): New macro.
8325 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8326 in XSAVE buffer.
8327 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8328 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8329 buffer.
8330 (i387_collect_xsave): Add code to collect AVX512 registers from
8331 XSAVE buffer.
8332 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8333 of XMM16-31 registers.
8334 (I387_NUM_K_REGS): New define for number of K registers.
8335 (I387_K0_REGNUM): New define for K0 register number.
8336 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8337 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8338 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8339 registers.
8340 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8341 (I387_XMM16_REGNUM): New define for XMM16 register number.
8342 (I387_YMM0_REGNUM): New define for YMM0 register number.
8343 (I387_KEND_REGNUM): New define for last K register number.
8344 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8345 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8346 number.
8347 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8348 number.
8349 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8350 size.
8351 * features/Makefile: Add AVX512 related files.
8352 * features/i386/32bit-avx512.xml: New file.
8353 * features/i386/64bit-avx512.xml: Likewise.
8354 * features/i386/amd64-avx512-linux.c: Likewise.
8355 * features/i386/amd64-avx512-linux.xml: Likewise.
8356 * features/i386/amd64-avx512.c: Likewise.
8357 * features/i386/amd64-avx512.xml: Likewise.
8358 * features/i386/i386-avx512-linux.c: Likewise.
8359 * features/i386/i386-avx512-linux.xml: Likewise.
8360 * features/i386/i386-avx512.c: Likewise.
8361 * features/i386/i386-avx512.xml: Likewise.
8362 * features/i386/x32-avx512-linux.c: Likewise.
8363 * features/i386/x32-avx512-linux.xml: Likewise.
8364 * features/i386/x32-avx512.c: Likewise.
8365 * features/i386/x32-avx512.xml: Likewise.
8366 * regformats/i386/amd64-avx512-linux.dat: New file.
8367 * regformats/i386/amd64-avx512.dat: Likewise.
8368 * regformats/i386/i386-avx512-linux.dat: Likewise.
8369 * regformats/i386/i386-avx512.dat: Likewise.
8370 * regformats/i386/x32-avx512-linux.dat: Likewise.
8371 * regformats/i386/x32-avx512.dat: Likewise.
8372 * NEWS: Add note about new support for AVX512.
8373
8374
8375 2014-04-23 Pedro Alves <palves@redhat.com>
8376
8377 * breakpoint.c (insert_bp_location): Tolerate errors if the
8378 breakpoint is set in a user-loaded objfile.
8379 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8380 location is marked shlib_disabled. If the breakpoint is set in a
8381 user-loaded objfile is a GDB-side memory breakpoint, validate it
8382 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8383 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8384 flag.
8385 * mem-break.c (memory_validate_breakpoint): New function.
8386 * objfiles.c (userloaded_objfile_contains_address_p): New
8387 function.
8388 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8389 * target.h (memory_validate_breakpoint): New declaration.
8390
8391 2014-04-23 Pedro Alves <palves@redhat.com>
8392
8393 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8394 the breakpoint is set in a shared library, only suppress
8395 errors for software breakpoints, not hardware breakpoints.
8396
8397 2014-04-22 Pedro Alves <palves@redhat.com>
8398
8399 * infrun.c (schedlock_applies): New function, factored out from
8400 find_thread_needs_step_over.
8401 (find_thread_needs_step_over): Use it.
8402 (switch_back_to_stepped_thread): Always clear trap_expected if the
8403 step over is finished. Return early if scheduler locking applies.
8404 Look for the stepping thread and a potential step-over thread with
8405 a single loop.
8406 (currently_stepping_or_nexting_callback): Delete.
8407
8408 2014-04-22 Nick Clifton <nickc@redhat.com>
8409
8410 * NEWS: Mention that ARM sim now supports tracing.
8411
8412 2014-04-22 Yao Qi <yao@codesourcery.com>
8413
8414 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8415 to ...
8416 * tracefile.c (tracefile_fetch_registers): ... it. New
8417 function.
8418 * tracefile.h (tracefile_fetch_registers): Declare.
8419 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8420 tracefile_fetch_registers.
8421
8422 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8423
8424 PR gdb/14018
8425 * windows-nat.c (thread_rec): Don't display a warning when
8426 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8427 fails for any reason, set th->suspended to -1, so that we don't
8428 try to resume such a thread. Also, don't return NULL in these
8429 cases, to avoid completely ruin the session due to "PC register is
8430 not available" error.
8431 (do_windows_fetch_inferior_registers): Check errors in
8432 GetThreadContext call.
8433 (windows_continue): Accept an additional argument KILLED; if not
8434 zero, ignore errors in the SetThreadContext call, since the
8435 inferior was killed and is shutting down.
8436 (windows_resume, get_windows_debug_event)
8437 (windows_create_inferior, windows_mourn_inferior)
8438 (windows_kill_inferior): All callers of windows_continue changed
8439 to adjust to its new calling sequence.
8440
8441 2014-04-19 Yao Qi <yao@codesourcery.com>
8442
8443 * ctf.c (ctf_open): Call post_create_inferior.
8444
8445 2014-04-19 Yao Qi <yao@codesourcery.com>
8446
8447 * ctf.c (handle_id): New static variable.
8448 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8449 value. Get the declaration of event "register" and get length
8450 of field "contents".
8451
8452 2014-04-19 Yao Qi <yao@codesourcery.com>
8453
8454 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8455
8456 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8457
8458 * valops.c (oload_method_static): Remove unnecessary argument
8459 METHOD. Update all callers.
8460
8461 2014-04-18 Pedro alves <palves@redhat.com>
8462 Tom Tromey <tromey@redhat.com>
8463
8464 PR backtrace/15558
8465 * frame.c (get_prev_frame_1): Rename to ...
8466 (get_prev_frame_always): ... this, and make extern. Adjust.
8467 (skip_artificial_frames): Use get_prev_frame_always.
8468 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8469 (get_frame_unwind_stop_reason): Adjust to rename.
8470 * frame.h (get_prev_frame_always): Declare.
8471 * inline-frame.c: Include frame.h.
8472 (inline_frame_this_id): Use get_prev_frame_always.
8473
8474 2014-04-18 Tristan Gingold <gingold@adacore.com>
8475
8476 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8477 code by using bfd_mach_o_get_base_address.
8478
8479 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8480
8481 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8482 (spu_ax_pseudo_register_collect): New function.
8483 (spu_ax_pseudo_register_push_stack): Likewise.
8484 (spu_dwarf_reg_to_regnum): Likewise.
8485 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8486
8487 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8488
8489 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8490 Replace FRAME argument with FRAME_ID.
8491 * gdbarch.c, gdbarch.h: Regenerate.
8492 * findvar.c (default_value_from_register): Add GDBARCH argument;
8493 replace FRAME by FRAME_ID. No longer call get_frame_id.
8494 (value_from_register): Update call to gdbarch_value_from_register.
8495 * value.h (default_value_from_register): Update prototype.
8496 * s390-linux-tdep.c (s390_value_from_register): Update interface
8497 and call to default_value_from_register.
8498 * spu-tdep.c (spu_value_from_register): Likewise.
8499
8500 * findvar.c (address_from_register): Remove TYPE argument.
8501 Do not call value_from_register; use gdbarch_value_from_register
8502 with null_frame_id instead.
8503 * value.h (address_from_register): Update prototype.
8504 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8505 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8506 address_from_register interface change.
8507
8508 2014-04-17 Yao Qi <yao@codesourcery.com>
8509
8510 * gdbtypes.h: Update comments to link to types and macros'
8511 definitions.
8512
8513 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8514
8515 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8516
8517 2014-04-16 Keith Seitz <keiths@redhat.com>
8518
8519 PR gdb/15827
8520 * dwarf2read.c (skip_one_die): Check that all relative-offset
8521 sibling DIEs fall within range of the current reader's buffer.
8522 (read_partial_die): Likewise.
8523
8524 2014-04-16 Keith Seitz <keiths@redhat.com>
8525
8526 PR c++/16597
8527 * cp-namespace.c (lookup_symbol_file): If the type name of
8528 `this' is NULL, return immediately.
8529
8530 2014-04-14 Keith Seitz <keiths@redhat.com>
8531
8532 PR c++/16253
8533 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8534 from symbol_matches_domain in symtab.c. All local callers
8535 of symbol_matches_domain updated.
8536 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8537 search STRUCT_DOMAIN.
8538 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8539 independently. standard_lookup will do that automatically.
8540 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8541 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8542 (cp_lookup_symbol_in_namespace): Likewise.
8543 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8544 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8545 may return a STRUCT_DOMAIN match.
8546 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8547 * cp-support.c: Include language.h.
8548 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8549 VAR_DOMAIN.
8550 * psymtab.c (match_partial_symbol): Compare the requested
8551 domain with the symbol's domain directly.
8552 (lookup_partial_symbol): Likewise.
8553 * symtab.c (lookup_symbol_in_language): Explain when/why
8554 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8555 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8556 appropriate languages.
8557 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8558 and moved to ada-lang.c
8559 (lookup_block_symbol): Explain that this function only returns
8560 symbol matching the requested DOMAIN.
8561 Compare the requested domain with the symbol's domain directly.
8562 (iterate_over_symbols): Compare the requested domain with the
8563 symbol's domain directly.
8564 * symtab.h (symbol_matches_domain): Remove.
8565
8566 2014-04-14 Tom Tromey <tromey@redhat.com>
8567
8568 PR c++/15246:
8569 * c-exp.y (type_aggregate_p): New function.
8570 (qualified_name, classify_inner_name): Use it.
8571 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8572 and TYPE_TARGET_TYPE of an enum type.
8573 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8574 an enum type.
8575 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8576 handle TYPE_DECLARED_CLASS.
8577 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8578 types.
8579 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8580 * valops.c (enum_constant_from_type): New function.
8581 (value_aggregate_elt): Use it.
8582 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8583 TYPE_CODE_ENUM.
8584
8585 2014-04-14 Tom Tromey <tromey@redhat.com>
8586
8587 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8588 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8589 const.
8590 * value.h (value_aggregate_elt): Update.
8591
8592 2014-04-14 Tom Tromey <tromey@redhat.com>
8593
8594 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8595
8596 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8597
8598 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8599 (evaluate_subexp_standard): Pass noside argument.
8600 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8601 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8602 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8603 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8604 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8605
8606 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8607
8608 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8609 points to a constant blob.
8610
8611 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8612
8613 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8614 property and store it as the high bound and flag the range accordingly.
8615 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8616 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8617 * gdbtypes.h (enum range_flags): New enum.
8618 (struct range_bounds): Add flags member.
8619
8620 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8621
8622 * c-typeprint.c (c_type_print_varspec_suffix): Added
8623 check for not yet resolved high bound. If unresolved, print
8624 "variable length" string to the console instead of random
8625 length.
8626
8627 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8628
8629 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8630 value.
8631 (ada_template_to_fixed_record_type_1): Likewise.
8632 (ada_to_fixed_type_1): Likewise.
8633 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8634 (cp_print_value): Likewise.
8635 * d-valprint.c (dynamic_array_type): Likewise.
8636 * findvar.c (address_of_variable): Likewise.
8637 * jv-valprint.c (java_value_print): Likewise.
8638 * valops.c (value_ind): Likewise.
8639 * value.c (coerce_ref): Likewise.
8640
8641 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8642
8643 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8644 value and retrieve the dynamic type size.
8645
8646 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8647
8648 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8649 passed to sizeof is dynamic evaluate the argument to compute the length.
8650
8651 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8652 Joel Brobecker <brobecker@adacore.com>
8653
8654 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8655 (dwarf2_evaluate_property): New function.
8656 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8657 * dwarf2read.c (attr_to_dynamic_prop): New function.
8658 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8659 attribute.
8660 * gdbtypes.c: Include dwarf2loc.h.
8661 (is_dynamic_type): New function.
8662 (resolve_dynamic_type): New function.
8663 (resolve_dynamic_bounds): New function.
8664 (get_type_length): New function.
8665 (check_typedef): Use get_type_length to compute type length.
8666 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8667 (TYPE_LOW_BOUND_KIND): New macro.
8668 (is_dynamic_type): New function prototype.
8669 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8670 to resolve dynamic properties of the type. Update comment.
8671 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8672
8673 2014-04-14 Richard Henderson <rth@redhat.com>
8674
8675 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8676
8677 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8678 Doug Evans <xdje42@gmail.com>
8679
8680 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8681 dereference TYPE_CODE_REF values.
8682
8683 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8684
8685 Revert the following changes due to regressions:
8686
8687 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8688 (dwarf2_evaluate_property): New function.
8689 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8690 * dwarf2read.c (attr_to_dynamic_prop): New function.
8691 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8692 attribute.
8693 * gdbtypes.c: Include dwarf2loc.h.
8694 (is_dynamic_type): New function.
8695 (resolve_dynamic_type): New function.
8696 (resolve_dynamic_bounds): New function.
8697 (get_type_length): New function.
8698 (check_typedef): Use get_type_length to compute type length.
8699 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8700 (TYPE_LOW_BOUND_KIND): New macro.
8701 (is_dynamic_type): New function prototype.
8702 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8703 to resolve dynamic properties of the type. Update comment.
8704 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8705
8706 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8707 passed to sizeof is dynamic evaluate the argument to compute the length.
8708
8709 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8710 value and retrieve the dynamic type size.
8711
8712 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8713 (ada_template_to_fixed_record_type_1): Likewise.
8714 (ada_to_fixed_type_1): Likewise.
8715 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8716 (cp_print_value): Likewise.
8717 * d-valprint.c (dynamic_array_type): Likewise.
8718 * eval.c (evaluate_subexp_with_coercion): Likewise.
8719 * findvar.c (address_of_variable): Likewise.
8720 * jv-valprint.c (java_value_print): Likewise.
8721 * valops.c (value_ind): Likewise.
8722 * value.c (coerce_ref): Likewise.
8723
8724 * c-typeprint.c (c_type_print_varspec_suffix): Added
8725 check for not yet resolved high bound. If unresolved, print
8726 "variable length" string to the console instead of random
8727 length.
8728
8729 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8730 property and store it as the high bound and flag the range accordingly.
8731 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8732 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8733 * gdbtypes.h (enum range_flags): New enum.
8734 (struct range_bounds): Add flags member.
8735
8736 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8737 points to a constant blob.
8738
8739 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8740 (evaluate_subexp_standard): Pass noside argument.
8741 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8742 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8743 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8744 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8745 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8746
8747 2014-04-11 Keith Seitz <keiths@redhat.com>
8748
8749 PR c++/16675
8750 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8751 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8752 reference types.
8753
8754 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8755
8756 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8757 (evaluate_subexp_standard): Pass noside argument.
8758 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8759 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8760 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8761 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8762 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8763
8764 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8765
8766 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8767 points to a constant blob.
8768
8769 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8770
8771 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8772 property and store it as the high bound and flag the range accordingly.
8773 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8774 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8775 * gdbtypes.h (enum range_flags): New enum.
8776 (struct range_bounds): Add flags member.
8777
8778 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8779
8780 * c-typeprint.c (c_type_print_varspec_suffix): Added
8781 check for not yet resolved high bound. If unresolved, print
8782 "variable length" string to the console instead of random
8783 length.
8784
8785 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8786
8787 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8788 (ada_template_to_fixed_record_type_1): Likewise.
8789 (ada_to_fixed_type_1): Likewise.
8790 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8791 (cp_print_value): Likewise.
8792 * d-valprint.c (dynamic_array_type): Likewise.
8793 * eval.c (evaluate_subexp_with_coercion): Likewise.
8794 * findvar.c (address_of_variable): Likewise.
8795 * jv-valprint.c (java_value_print): Likewise.
8796 * valops.c (value_ind): Likewise.
8797 * value.c (coerce_ref): Likewise.
8798
8799 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8800
8801 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8802 value and retrieve the dynamic type size.
8803
8804 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8805
8806 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8807 passed to sizeof is dynamic evaluate the argument to compute the length.
8808
8809 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8810
8811 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8812 (dwarf2_evaluate_property): New function.
8813 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8814 * dwarf2read.c (attr_to_dynamic_prop): New function.
8815 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8816 attribute.
8817 * gdbtypes.c: Include dwarf2loc.h.
8818 (is_dynamic_type): New function.
8819 (resolve_dynamic_type): New function.
8820 (resolve_dynamic_bounds): New function.
8821 (get_type_length): New function.
8822 (check_typedef): Use get_type_length to compute type length.
8823 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8824 (TYPE_LOW_BOUND_KIND): New macro.
8825 (is_dynamic_type): New function prototype.
8826 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8827 to resolve dynamic properties of the type. Update comment.
8828 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8829
8830 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8831
8832 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8833 declaring high/low bounds and change uses accordingly. Call
8834 create_range_type instead of create_static_range_type.
8835 * gdbtypes.c (create_range_type): New function.
8836 (create_range_type): Convert bounds into struct bound_prop and pass
8837 them to create_range_type.
8838 * gdbtypes.h (struct bound_prop): New struct.
8839 (create_range_type): New function prototype.
8840 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8841 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8842 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8843 part of the bound.
8844 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8845
8846 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8847
8848 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8849 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8850 * ada-lang.c: All uses of create_range_type updated.
8851 * coffread.c: All uses of create_range_type updated.
8852 * dwarf2read.c: All uses of create_range_type updated.
8853 * f-exp.y: All uses of create_range_type updated.
8854 * m2-valprint.c: All uses of create_range_type updated.
8855 * mdebugread.c: All uses of create_range_type updated.
8856 * stabsread.c: All uses of create_range_type updated.
8857 * valops.c: All uses of create_range_type updated.
8858 * valprint.c: All uses of create_range_type updated.
8859
8860 2014-04-10 Pedro Alves <palves@redhat.com>
8861
8862 * breakpoint.c (single_step_breakpoints)
8863 (single_step_gdbarch): Move up in the file.
8864 (one_breakpoint_xfer_memory): New function, factored out from ...
8865 (breakpoint_xfer_memory): ... here. Also process single-step
8866 breakpoints.
8867
8868 2014-04-09 Tristan Gingold <gingold@adacore.com>
8869
8870 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8871 comments.
8872 (darwin_decode_exception_message): Free port only after use.
8873
8874 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8875
8876 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8877 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8878 when setting the size of call_length.
8879
8880 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8881
8882 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8883 dereference TYPE_CODE_REF values.
8884
8885 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8886
8887 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8888 end of warning message.
8889
8890 2014-04-03 Doug Evans <dje@google.com>
8891
8892 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8893 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8894
8895 2014-04-02 Alan Modra <amodra@gmail.com>
8896
8897 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8898 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8899 (struct symbol_file_add_from_memory_args): Add size field.
8900 (find_vdso_size): New function.
8901 (add_vsyscall_page): Attempt to find vdso size.
8902
8903 2014-04-01 Doug Evans <dje@google.com>
8904
8905 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8906
8907 2014-04-01 Tristan Gingold <gingold@adacore.com>
8908
8909 * darwin-nat.c (darwin_encode_reply): Add prototype.
8910 (darwin_decode_exception_message): Reply to unknown inferiors.
8911 (darwin_decode_message): Handle message by id. Ignore message
8912 to unknown inferior.
8913 (darwin_wait): Discard unknown messages, add debug trace.
8914
8915 2014-03-31 Doug Evans <dje@google.com>
8916
8917 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8918 comp_dir_string.
8919
8920 2014-03-31 Doug Evans <dje@google.com>
8921
8922 New option "set print symbol-loading".
8923 * NEWS: Mention it.
8924 * solib.c (solib_read_symbols): Only print symbol loading messages
8925 if requested.
8926 (solib_add): If symbol loading is in "brief" mode, notify user
8927 symbols are being loaded.
8928 (reload_shared_libraries_1): Ditto.
8929 * symfile.c (print_symbol_loading_off): New static global.
8930 (print_symbol_loading_brief): New static global.
8931 (print_symbol_loading_full): New static global.
8932 (print_symbol_loading_enums): New static global.
8933 (print_symbol_loading): New static global.
8934 (print_symbol_loading_p): New function.
8935 (symbol_file_add_with_addrs): Only print symbol loading messages
8936 if requested.
8937 (_initialize_symfile): Register "print symbol-loading" set/show
8938 command.
8939 * symfile.h (print_symbol_loading_p): Declare.
8940
8941 2014-03-30 Doug Evans <xdje42@gmail.com>
8942
8943 * infrun.c (set_last_target_status): New function.
8944 (handle_inferior_event): Call it.
8945
8946 2014-03-30 Doug Evans <xdje42@gmail.com>
8947
8948 * inferior.h (enum stop_kind): Improve comment.
8949
8950 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8951
8952 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8953 a reference, strip the reference layer before calling
8954 the lang_ops value_has_mutated callback.
8955
8956 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8957
8958 Remove some globals from our parser.
8959 * language.c (unk_lang_parser): Add "struct parser_state"
8960 argument.
8961 * language.h (struct language_defn) <la_parser>: Likewise.
8962 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8963 (initialize_expout): Add "struct parser_state" argument.
8964 Rewrite function to use the parser state.
8965 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8966 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8967 write_exp_elt_longcst, write_exp_elt_dblcst,
8968 write_exp_elt_decfloatcst, write_exp_elt_type,
8969 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8970 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8971 write_dollar_variable): Likewise.
8972 (parse_exp_in_context_1): Use parser state.
8973 (insert_type_address_space): Add "struct parser_state" argument.
8974 Use parser state.
8975 (increase_expout_size): New function.
8976 * parser-defs.h: Forward declare "struct language_defn" and
8977 "struct parser_state".
8978 (expout, expout_size, expout_ptr): Remove extern declarations.
8979 (parse_gdbarch, parse_language): Rewrite macro declarations to
8980 accept the parser state.
8981 (struct parser_state): New struct.
8982 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8983 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8984 write_exp_elt_decfloatcst, write_exp_elt_type,
8985 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8986 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8987 write_exp_msymbol, write_dollar_variable,
8988 mark_struct_expression, insert_type_address_space): Add "struct
8989 parser_state" argument.
8990 (increase_expout_size): New function.
8991 * utils.c (do_clear_parser_state): New function.
8992 (make_cleanup_clear_parser_state): Likewise.
8993 * utils.h (make_cleanup_clear_parser_state): New function
8994 prototype.
8995 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8996 Update calls to write_exp* in order to pass the parser state.
8997 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8998 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8999 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9000 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9001 * stap-probe.c (stap_parse_register_operand): Likewise.
9002 (stap_parse_single_operand): Likewise.
9003 (stap_parse_argument_1): Likewise.
9004 (stap_parse_argument): Use parser state.
9005 * stap-probe.h: Include "parser-defs.h".
9006 (struct stap_parse_info) <pstate>: New field.
9007 * c-exp.y (parse_type): Rewrite to use parser state.
9008 (yyparse): Redefine to c_parse_internal.
9009 (pstate): New global variable.
9010 (parse_number): Add "struct parser_state" argument.
9011 (write_destructor_name): Likewise.
9012 (type_exp): Update calls to write_exp* and similars in order to
9013 use parser state.
9014 (exp1, exp, variable, qualified_name, space_identifier,
9015 typename, typebase): Likewise.
9016 (write_destructor_name, parse_number, lex_one_token,
9017 classify_name, classify_inner_name, c_parse): Add "struct
9018 parser_state" argument. Update function to use parser state.
9019 * c-lang.h: Forward declare "struct parser_state".
9020 (c_parse): Add "struct parser_state" argument.
9021 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9022 (yyparse): Redefine macro to ada_parse_internal.
9023 (pstate): New variable.
9024 (write_int, write_object_renaming, write_var_or_type,
9025 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9026 type_int, type_long, type_long_long, type_float, type_double,
9027 type_long_double, type_char, type_boolean, type_system_address):
9028 Add "struct parser_state" argument.
9029 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9030 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9031 var_or_type, aggregate, aggregate_component_list,
9032 positional_list, others, component_group,
9033 component_associations): Update calls to write_exp* and similar
9034 functions in order to use parser state.
9035 (ada_parse, write_var_from_sym, write_int,
9036 write_exp_op_with_string, write_object_renaming,
9037 find_primitive_type, write_selectors, write_ambiguous_var,
9038 write_var_or_type, write_name_assoc, type_int, type_long,
9039 type_long_long, type_float, type_double, type_long_double,
9040 type_char, type_boolean, type_system_address): Add "struct
9041 parser_state" argument. Adjust function to use parser state.
9042 * ada-lang.c (parse): Likewise.
9043 * ada-lang.h: Forward declare "struct parser_state".
9044 (ada_parse): Add "struct parser_state" argument.
9045 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9046 calls to both functions.
9047 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9048 parser state.
9049 (yyparse): Redefine macro to f_parse_internal.
9050 (pstate): New variable.
9051 (parse_number): Add "struct parser_state" argument.
9052 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9053 and similars in order to use parser state.
9054 (parse_number): Adjust code to use parser state.
9055 (yylex): Likewise.
9056 (f_parse): New function.
9057 * f-lang.h: Forward declare "struct parser_state".
9058 (f_parse): Add "struct parser_state" argument.
9059 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9060 parser state.
9061 (yyparse): Redefine macro for java_parse_internal.
9062 (pstate): New variable.
9063 (push_expression_name, push_expression_name, insert_exp): Add
9064 "struct parser_state" argument.
9065 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9066 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9067 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9068 PostIncrementExpression, PostDecrementExpression,
9069 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9070 UnaryExpressionNotPlusMinus, CastExpression,
9071 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9072 RelationalExpression, EqualityExpression, AndExpression,
9073 ExclusiveOrExpression, InclusiveOrExpression,
9074 ConditionalAndExpression, ConditionalOrExpression,
9075 ConditionalExpression, Assignment, LeftHandSide): Update
9076 calls to write_exp* and similars in order to use parser state.
9077 (parse_number): Ajust code to use parser state.
9078 (yylex): Likewise.
9079 (java_parse): New function.
9080 (push_variable): Add "struct parser_state" argument. Adjust
9081 code to user parser state.
9082 (push_fieldnames, push_qualified_expression_name,
9083 push_expression_name, insert_exp): Likewise.
9084 * jv-lang.h: Forward declare "struct parser_state".
9085 (java_parse): Add "struct parser_state" argument.
9086 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9087 parser state.
9088 (yyparse): Redefine macro to m2_parse_internal.
9089 (pstate): New variable.
9090 (type_exp, exp, fblock, variable, type): Update calls to
9091 write_exp* and similars to use parser state.
9092 (yylex): Likewise.
9093 (m2_parse): New function.
9094 * m2-lang.h: Forward declare "struct parser_state".
9095 (m2_parse): Add "struct parser_state" argument.
9096 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9097 * objc-lang.h: Forward declare "struct parser_state".
9098 (end_msglist): Add "struct parser_state" argument.
9099 * p-exp.y (parse_type): Rewrite macro to use parser state.
9100 (yyparse): Redefine macro to pascal_parse_internal.
9101 (pstate): New variable.
9102 (parse_number): Add "struct parser_state" argument.
9103 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9104 write_exp* and similars in order to use parser state.
9105 (parse_number, yylex): Adjust code to use parser state.
9106 (pascal_parse): New function.
9107 * p-lang.h: Forward declare "struct parser_state".
9108 (pascal_parse): Add "struct parser_state" argument.
9109 * go-exp.y (parse_type): Rewrite macro to use parser state.
9110 (yyparse): Redefine macro to go_parse_internal.
9111 (pstate): New variable.
9112 (parse_number): Add "struct parser_state" argument.
9113 (type_exp, exp1, exp, variable, type): Update calls to
9114 write_exp* and similars in order to use parser state.
9115 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9116 to use parser state.
9117 (go_parse): Likewise.
9118 * go-lang.h: Forward declare "struct parser_state".
9119 (go_parse): Add "struct parser_state" argument.
9120
9121 2014-03-27 Doug Evans <dje@google.com>
9122
9123 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9124
9125 2014-03-27 Doug Evans <dje@google.com>
9126
9127 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9128 Remove argument abbrev_section. All callers updated.
9129
9130 2014-03-27 Doug Evans <dje@google.com>
9131
9132 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9133 addr_base, ranges_base.
9134
9135 2014-03-26 Keith Seitz <keiths@redhat.com>
9136
9137 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9138 types, not VAR_DOMAIN.
9139
9140 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9141
9142 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9143 "ra" registers.
9144 * features/nios2-linux.c: Regenerated.
9145 * features/nios2.c: Regenerated.
9146
9147 2014-03-25 Pedro Alves <palves@redhat.com>
9148
9149 * cli/cli-script.c (script_from_file): Force the interpreter to
9150 sync mode.
9151
9152 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9153
9154 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9155 small stack allocation.
9156
9157 2014-03-24 Tristan Gingold <gingold@adacore.com>
9158
9159 * darwin-nat.c (exc_server): Remove unused prototype.
9160 (darwin_dump_message): Correctly display data on x86_64.
9161 (darwin_encode_reply): Fix style.
9162 Add comments and fix indentation.
9163
9164 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9165
9166 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9167
9168 2014-03-22 Doug Evans <xdje42@gmail.com>
9169
9170 * infcmd.c: Whitespace fixes.
9171 (interrupt_command): Merge two function comments into one.
9172
9173 2014-03-22 Doug Evans <xdje42@gmail.com>
9174
9175 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9176 All uses updated.
9177
9178 2014-03-22 Yao Qi <yao@codesourcery.com>
9179
9180 * remote.c (target_read_live_memory): Remove.
9181 (memory_xfer_live_readonly_partial): Rename it to
9182 remote_xfer_live_readonly_partial. Remove argument 'object'.
9183 All callers updated. Call remote_read_bytes_1
9184 instead of target_read_live_memory.
9185 * tracepoint.c (set_traceframe_number): Remove.
9186 (make_cleanup_restore_traceframe_number): Likewise .
9187 * tracepoint.h (set_traceframe_number): Remove declaration.
9188 (make_cleanup_restore_traceframe_number): Likewise.
9189
9190 2014-03-22 Yao Qi <yao@codesourcery.com>
9191
9192 * remote.c (remote_read_bytes): Move code on reading from the
9193 remote stub to ...
9194 (remote_read_bytes_1): ... here. New function.
9195
9196 2014-03-22 Yao Qi <yao@codesourcery.com>
9197
9198 * ctf.c (ctf_xfer_partial): Check the return value of
9199 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9200 return TARGET_XFER_UNAVAILABLE.
9201 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9202 * target.c (target_read_live_memory): Move it to remote.c.
9203 (memory_xfer_live_readonly_partial): Likewise.
9204 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9205 * remote.c (target_read_live_memory): Moved from target.c.
9206 (memory_xfer_live_readonly_partial): Likewise.
9207 (remote_read_bytes): Factored out from
9208 memory_xfer_partial_1.
9209
9210 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9211
9212 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9213 NULL pointer.
9214
9215 2014-03-21 Pedro Alves <palves@redhat.com>
9216
9217 * infrun.c (normal_stop): Extend comment.
9218
9219 2014-03-21 Hui Zhu <hui@codesourcery.com>
9220 Pedro Alves <palves@redhat.com>
9221
9222 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9223 static buffer.
9224 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9225 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9226 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9227
9228 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9229
9230 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9231 `z' formatted output modifier.
9232
9233 2014-03-20 Tom Tromey <tromey@redhat.com>
9234 Sergio Durigan Junior <sergiodj@redhat.com>
9235
9236 * probe.c (parse_probes): Turn assert into an ordinary error.
9237 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9238 exceptions when parsing probes. Rearrange the code for clarity.
9239
9240 2014-03-20 Tom Tromey <tromey@redhat.com>
9241
9242 PR gdb/14135
9243 * top.c (execute_command): Only dispatch events if the command
9244 started the target.
9245
9246 2014-03-20 Tom Tromey <tromey@redhat.com>
9247
9248 PR cli/15718
9249 * infcall.c: Include event-top.h.
9250 (run_inferior_call): Call async_disable_stdin if needed.
9251
9252 2014-03-20 Pedro Alves <palves@redhat.com>
9253
9254 * infrun.c (prepare_to_proceed): Delete.
9255 (thread_still_needs_step_over): New function.
9256 (find_thread_needs_step_over): New function.
9257 (proceed): If the current thread needs a step-over, set its
9258 steping_over_breakpoint flag. Adjust to use
9259 find_thread_needs_step_over instead of prepare_to_proceed.
9260 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9261 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9262 breakpoint.
9263 (switch_back_to_stepped_thread): Step over breakpoints of all
9264 threads not the stepping thread, before switching back to the
9265 stepping thread.
9266
9267 2014-03-20 Pedro Alves <palves@redhat.com>
9268
9269 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9270 extern.
9271 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9272 * infrun.c (saved_singlestep_ptid)
9273 (stepping_past_singlestep_breakpoint): Delete.
9274 (resume): Remove stepping_past_singlestep_breakpoint handling.
9275 (proceed): Store the prev_pc of the stepping thread too.
9276 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9277 singlestep_pc.
9278 (enum infwait_states): Delete infwait_thread_hop_state.
9279 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9280 field.
9281 (handle_inferior_event): Adjust.
9282 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9283 handling and the thread-hop code. Before removing single-step
9284 breakpoints, check whether the thread hit a single-step breakpoint
9285 of another thread. If it did, the trap is not a random signal.
9286 (switch_back_to_stepped_thread): If the event thread hit a
9287 single-step breakpoint, unblock it before switching to the
9288 stepping thread. Handle the case of the stepped thread having
9289 advanced already.
9290 (keep_going): Handle the case of the current thread moving past a
9291 single-step breakpoint.
9292
9293 2014-03-20 Pedro Alves <palves@redhat.com>
9294
9295 PR breakpoints/7143
9296 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9297 are being stepped over.
9298 (breakpoint_address_match): Make extern.
9299 * breakpoint.h (breakpoint_address_match): New declaration.
9300 * inferior.h (stepping_past_instruction_at): New declaration.
9301 * infrun.c (struct step_over_info): New type.
9302 (step_over_info): New global.
9303 (set_step_over_info, clear_step_over_info)
9304 (stepping_past_instruction_at): New functions.
9305 (handle_inferior_event): Clear the step-over info when
9306 trap_expected is cleared.
9307 (resume): Remove now stale comment.
9308 (clear_proceed_status): Clear step-over info.
9309 (proceed): Adjust step-over handling to set or clear the step-over
9310 info instead of removing all breakpoints.
9311 (handle_signal_stop): When setting up a thread-hop, don't remove
9312 breakpoints here.
9313 (stop_stepping): Clear step-over info.
9314 (keep_going): Adjust step-over handling to set or clear step-over
9315 info and then always inserting breakpoints, instead of removing
9316 all breakpoints when stepping over one.
9317
9318 2014-03-20 Pedro Alves <palves@redhat.com>
9319
9320 * infrun.c (previous_inferior_ptid): Adjust comment.
9321 (deferred_step_ptid): Delete.
9322 (infrun_thread_ptid_changed, prepare_to_proceed)
9323 (init_wait_for_inferior): Adjust.
9324 (handle_signal_stop): Delete deferred_step_ptid handling.
9325
9326 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9327
9328 PR gdb/15358
9329 * defs.h (sync_quit_force_run): New declaration.
9330 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9331 * event-top.c (async_sigterm_handler): New declaration.
9332 (async_sigterm_token): New variable.
9333 (async_init_signals): Create also async_sigterm_token.
9334 (async_sigterm_handler): New function.
9335 (sync_quit_force_run): New variable.
9336 (handle_sigterm): Replace quit_force call by other calls.
9337 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9338
9339 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9340
9341 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9342 offset into SPE pseudo registers.
9343
9344 2014-03-18 Pedro Alves <palves@redhat.com>
9345
9346 PR gdb/13860
9347 * inferior.h (print_stop_event): Declare.
9348 * infrun.c (print_stop_event): New, factored out from ...
9349 (normal_stop): ... this.
9350 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9351 of bpstat_print/print_stack_frame.
9352
9353 2014-03-17 Tom Tromey <tromey@redhat.com>
9354
9355 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9356
9357 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9358
9359 * ada-lang.c (decode_constrained_packed_array): Perform a
9360 minimal coercion for reference with coerce_ref instead of
9361 ada_coerce_ref.
9362
9363 2014-03-17 Tristan Gingold <gingold@adacore.com>
9364
9365 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9366 (darwin_solib_create_inferior_hook): Emit a warning if version
9367 is unhandled.
9368
9369 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9370
9371 * python/py-value.c (get_field_flag): Cast flag_name argument to
9372 PyObject_GetAttrString to support Python 2.4.
9373
9374 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9375
9376 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9377 (Global Maintainers): Remove Jan Kratochvil.
9378
9379 2014-03-14 Pedro Alves <palves@redhat.com>
9380
9381 * inferior.h (terminal_ours_for_output): Rename to ...
9382 (child_terminal_ours_for_output): ... this.
9383 (terminal_save_ours): Rename to ...
9384 (child_terminal_save_ours): ... this.
9385 (terminal_ours): Rename to ...
9386 (child_terminal_ours): ... this.
9387 (terminal_inferior): Rename to ...
9388 (child_terminal_inferior): ... this.
9389 (terminal_init_inferior): Rename to ...
9390 (child_terminal_init_inferior): ... this.
9391 (terminal_init_inferior_with_pgrp): Rename to ...
9392 (child_terminal_init_inferior_with_pgrp): ... this.
9393 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9394 (child_terminal_init_with_pgrp): ... this.
9395 (terminal_save_ours): Rename to ...
9396 (child_terminal_save_ours): ... this.
9397 (terminal_init_inferior): Rename to ...
9398 (child_terminal_init): ... this. Adjust.
9399 (terminal_inferior): Rename to ...
9400 (child_terminal_inferior): ... this.
9401 (terminal_ours_for_output): Rename to ...
9402 (child_terminal_ours_for_output): ... this. Adjust.
9403 (terminal_ours): Rename to ...
9404 (child_terminal_ours): ... this.
9405 (terminal_ours_1): Rename to ...
9406 (child_terminal_ours_1): ... this. Adjust.
9407 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9408 * windows-nat.c (do_initial_windows_stuff): Adjust.
9409 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9410 (gnu_terminal_init): ... this. Adjust.
9411 (gnu_target): Adjust.
9412 * inf-child.c (inf_child_target): Adjust.
9413
9414 2014-03-13 Doug Evans <xdje42@gmail.com>
9415
9416 PR guile/16612
9417 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9418 new eq?-hashtab.
9419
9420 2014-03-13 Doug Evans <xdje42@gmail.com>
9421
9422 * value.c (record_latest_value): Call release_value_or_incref
9423 instead of release_value.
9424
9425 2014-03-13 Pedro Alves <palves@redhat.com>
9426
9427 * procfs.c (procfs_target): Don't override to_shortname,
9428 to_longname or to_doc.
9429
9430 2014-03-13 Pedro Alves <palves@redhat.com>
9431
9432 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9433 Unix in user visible strings.
9434
9435 2014-03-12 Stan Shebs <stan@codesourcery.com>
9436
9437 * gdbtypes.h: Annotate comments for Doxygen, add a page
9438 block comment with some general info.
9439
9440 2014-03-12 Pedro Alves <palves@redhat.com>
9441
9442 * infcmd.c (prepare_execution_command): New function, factored out
9443 from several execution commands.
9444 (run_command_1, continue_command, step_1, jump_command)
9445 (signal_command, until_command, advance_command, finish_command)
9446 (attach_command): Use prepare_execution_command.
9447
9448 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9449
9450 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9451 (MAX_BPTS): Define.
9452 (MAX_WPTS): Define.
9453 (struct arm_linux_thread_points): Removed.
9454 (struct arm_linux_process_info): New.
9455 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9456 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9457 (arm_linux_find_breakpoints_by_tid): Removed.
9458 (struct arch_lwp_info): New.
9459 (arm_linux_find_process_pid): New functions.
9460 (arm_linux_add_process): New functions.
9461 (arm_linux_process_info_get): New functions.
9462 (arm_linux_forget_process): New function.
9463 (arm_linux_get_debug_reg_state): New function.
9464 (struct update_registers_data): New.
9465 (update_registers_callback): New function.
9466 (arm_linux_insert_hw_breakpoint1): Updated.
9467 (arm_linux_remove_hw_breakpoint1): Updated.
9468 (arm_linux_insert_hw_breakpoint): Updated.
9469 (arm_linux_remove_hw_breakpoint): Updated.
9470 (arm_linux_insert_watchpoint): Updated.
9471 (arm_linux_remove_watchpoint): Updated.
9472 (arm_linux_new_thread): Updated.
9473 (arm_linux_prepare_to_resume): New function.
9474 (arm_linux_new_fork): New function.
9475 (_initialize_arm_linux_nat): Updated.
9476
9477 2014-03-12 Pedro Alves <palves@redhat.com>
9478
9479 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9480
9481 2014-03-12 Tom Tromey <tromey@redhat.com>
9482
9483 * inf-child.c (return_zero): New function.
9484 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9485 * aix-thread.c (aix_thread_inferior_created): New function.
9486 (aix_thread_attach): Remove.
9487 (init_aix_thread_ops): Don't set to_attach.
9488 (_initialize_aix_thread): Register inferior_created observer.
9489 * corelow.c (init_core_ops): Don't set to_attach or
9490 to_create_inferior.
9491 * exec.c (init_exec_ops): Don't set to_attach or
9492 to_create_inferior.
9493 * infcmd.c (run_command_1): Use find_run_target. Make direct
9494 target calls.
9495 (attach_command): Use find_attach_target. Make direct target
9496 calls.
9497 * record-btrace.c (init_record_btrace_ops): Don't set
9498 to_create_inferior.
9499 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9500 Remove.
9501 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9502 set to_create_inferior.
9503 * target.c (complete_target_initialization): Add assertion.
9504 (target_create_inferior): Remove.
9505 (find_default_attach, find_default_create_inferior): Remove.
9506 (find_attach_target, find_run_target): New functions.
9507 (find_default_is_async_p, find_default_can_async_p)
9508 (target_supports_non_stop, target_attach): Remove.
9509 (init_dummy_target): Don't set to_create_inferior or
9510 to_supports_non_stop.
9511 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9512 TARGET_DEFAULT_FUNC.
9513 <to_create_inferior>: Add comment.
9514 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9515 TARGET_DEFAULT_RETURN.
9516 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9517 (find_attach_target, find_run_target): Declare.
9518 (target_create_inferior): Remove.
9519 (target_has_execution_1): Update comment.
9520 (target_supports_non_stop): Remove.
9521 * target-delegates.c: Rebuild.
9522
9523 2014-03-12 Pedro Alves <palves@redhat.com>
9524
9525 * inf-child.h: Update comment to not mention Unix.
9526
9527 2014-03-12 Pedro Alves <palves@redhat.com>
9528
9529 * inf-child.c: Update top comment to not mention Unix. Add
9530 generic comment describing how this target is meant to be used.
9531 (inf_child_post_attach, inf_child_post_startup_inferior)
9532 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9533 Unix in comment.
9534
9535 2014-03-12 Pedro Alves <palves@redhat.com>
9536
9537 * nto-procfs.c: Include inf-child.h.
9538 (procfs_ops): Delete global.
9539 (procfs_can_run): Delete method.
9540 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9541 target pointer instead of referencing procfs_ops.
9542 (procfs_prepare_to_store): Delete.
9543 (init_procfs_ops): Delete function.
9544 (procfs_target): New function, based on init_procfs_ops, but
9545 inherit inf_child_target.
9546 (_initialize_procfs): Use procfs_target.
9547
9548 2014-03-12 Pedro Alves <palves@redhat.com>
9549
9550 * windows-nat.c: Include inf-child.h.
9551 (windows_ops): Delete global.
9552 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9553 methods.
9554 (init_windows_ops): Delete function.
9555 (windows_target): New function, based on init_windows_ops, but
9556 inherit inf_child_target.
9557 (_initialize_windows_nat): Use windows_target. Install x86
9558 specific target methods here.
9559
9560 2014-03-10 Doug Evans <xdje42@gmail.com>
9561
9562 * guile/guile.c (call_initialize_gdb_module): New function.
9563 (initialize_guile): Replace call to scm_init_guile with call to
9564 scm_with_guile.
9565
9566 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9567
9568 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9569 in call to TYPE_CODE macro.
9570
9571 2014-03-10 Jerome Guitton <guitton@adacore.com>
9572
9573 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9574 Resolve tagged types to full view.
9575
9576 2014-03-10 Hui Zhu <hui@codesourcery.com>
9577
9578 * target.h (target_insert_breakpoint): Remove "hardware" from its
9579 comments.
9580
9581 2014-03-07 Doug Evans <dje@google.com>
9582
9583 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9584
9585 2014-03-07 Doug Evans <dje@google.com>
9586
9587 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9588 Remove unused local comp_dir_attr. Assert exactly one of
9589 stub_comp_unit_die, stub_comp_dir is non-NULL.
9590
9591 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9592
9593 * target.h (complete_target_initialization, add_target):
9594 Add comment.
9595
9596 2014-03-07 Pedro Alves <palves@redhat.com>
9597
9598 * go32-nat.c: Include inf-child.h.
9599 (go32_ops): Delete global.
9600 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9601 Delete methods.
9602 (go32_create_inferior): Push the passed in target pointer instead
9603 of referencing go32_ops.
9604 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9605 (go32_target): New function, based on init_go32_ops, but inherit
9606 inf_child_target.
9607 (_initialize_go32_nat): Use go32_target. Move parts of
9608 init_go32_ops here.
9609
9610 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9611
9612 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9613 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9614 SYMBOL_VALUE_ADDRESS.
9615 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9616
9617 2014-03-06 Yao Qi <yao@codesourcery.com>
9618
9619 * breakpoint.c (get_tracepoint_by_number): Remove argument
9620 optional_p. All callers updated. Adjust comments. Update
9621 output message.
9622 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9623
9624 2014-03-06 Yao Qi <yao@codesourcery.com>
9625
9626 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9627 early if get_number returns zero. Use 'p' instead of 'args'.
9628
9629 2014-03-06 Yao Qi <yao@codesourcery.com>
9630
9631 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9632 message.
9633
9634 2014-03-06 Yao Qi <yao@codesourcery.com>
9635
9636 PR breakpoints/16508
9637 * tracepoint.c (check_trace_running): New function.
9638 (trace_find_command): Move code to check_trace_running and
9639 call check_trace_running.
9640 (trace_find_pc_command): Likewise.
9641 (trace_find_tracepoint_command): Likewise.
9642 (trace_find_line_command): Likewise.
9643 (trace_find_range_command): Likewise.
9644 * tracepoint.h (check_trace_running): Likewise.
9645 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9646
9647 2014-03-06 Yao Qi <yao@codesourcery.com>
9648
9649 * target.h (struct target_ops) <to_traceframe_info>: Use
9650 TARGET_DEFAULT_NORETURN (tcomplain ()).
9651 * target-delegates.c: Regenerated.
9652
9653 2014-03-05 Pedro Alves <palves@redhat.com>
9654
9655 PR gdb/16575
9656 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9657 void. Update comment.
9658 (dcache_xfer_memory): Delete.
9659 (dcache_read_memory_partial): New, based on the read bits of
9660 dcache_xfer_memory.
9661 (dcache_update): Add status parameter. Use ULONGEST for len, and
9662 adjust. Discard cache lines if the reason for the update was
9663 error.
9664 * dcache.h (dcache_xfer_memory): Delete declaration.
9665 (dcache_read_memory_partial): New declaration.
9666 (dcache_update): Update prototype.
9667 * target.c (raw_memory_xfer_partial): Update the dcache here.
9668 (memory_xfer_partial_1): Don't handle dcache writes here.
9669
9670 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9671
9672 * remote-sim.c (gdbsim_load): Add const to prog.
9673
9674 2014-03-03 Tom Tromey <tromey@redhat.com>
9675
9676 * elfread.c (probe_key): Change to bfd_data.
9677 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9678 now per-BFD, not per-objfile.
9679 * stap-probe.c (stap_probe_destroy): Update comment.
9680 (handle_stap_probe): Allocate on the per-BFD obstack.
9681
9682 2014-03-03 Tom Tromey <tromey@redhat.com>
9683
9684 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9685 * breakpoint.c (create_longjmp_master_breakpoint): Use
9686 get_probe_address.
9687 (add_location_to_breakpoint, bkpt_probe_insert_location)
9688 (bkpt_probe_remove_location): Update.
9689 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9690 * elfread.c (elf_symfile_relocate_probe): Remove.
9691 (elf_probe_fns): Update.
9692 (insert_exception_resume_breakpoint): Change type of "probe"
9693 parameter to bound_probe.
9694 (check_exception_resume): Update.
9695 * objfiles.c (objfile_relocate1): Don't relocate probes.
9696 * probe.c (bound_probe_s): New typedef.
9697 (parse_probes): Use get_probe_address. Set sal's objfile.
9698 (find_probe_by_pc): Return a bound_probe.
9699 (collect_probes): Return a VEC(bound_probe_s).
9700 (compare_probes): Update.
9701 (gen_ui_out_table_header_info): Change type of "probes"
9702 parameter. Update.
9703 (info_probes_for_ops): Update.
9704 (get_probe_address): New function.
9705 (probe_safe_evaluate_at_pc): Update.
9706 * probe.h (struct probe_ops) <get_probe_address>: New field.
9707 <set_semaphore, clear_semaphore>: Add objfile parameter.
9708 (struct probe) <objfile>: Remove field.
9709 <arch>: New field.
9710 <address>: Update comment.
9711 (struct bound_probe): New.
9712 (find_probe_by_pc): Return a bound_probe.
9713 (get_probe_address): Declare.
9714 * solib-svr4.c (struct probe_and_action) <address>: New field.
9715 (hash_probe_and_action, equal_probe_and_action): Update.
9716 (register_solib_event_probe): Add address parameter.
9717 (solib_event_probe_at): Update.
9718 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9719 get_probe_address.
9720 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9721 (stap_get_probe_address): New function.
9722 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9723 (compile_probe_arg): Update.
9724 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9725 address.
9726 (handle_stap_probe): Don't relocate the probe.
9727 (stap_relocate): Remove.
9728 (stap_gen_info_probes_table_values): Update.
9729 (stap_probe_ops): Remove stap_relocate.
9730 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9731 (debug_sym_probe_fns): Update.
9732 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9733 * symtab.c (init_sal): Use memset.
9734 * symtab.h (struct symtab_and_line) <objfile>: New field.
9735 * tracepoint.c (start_tracing, stop_tracing): Update.
9736
9737 2014-03-03 Tom Tromey <tromey@redhat.com>
9738
9739 * probe.h (parse_probes, find_probe_by_pc)
9740 (find_probes_in_objfile): Fix comments.
9741
9742 2014-03-02 Doug Evans <xdje42@gmail.com>
9743
9744 * infrun.c (handle_signal_stop): Replace test for
9745 TARGET_WAITKIND_STOPPED with an assert.
9746
9747 2014-03-02 Doug Evans <xdje42@gmail.com>
9748
9749 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9750
9751 2014-03-02 Doug Evans <xdje42@gmail.com>
9752
9753 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9754
9755 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9756
9757 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9758
9759 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9760
9761 * i386obsd-nat.c: Include "obsd-nat.h".
9762 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9763 add_target.
9764 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9765
9766 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9767
9768 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9769
9770 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9771
9772 * mips64obsd-nat.c: Include "obsd-nath".
9773 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9774 add_target
9775 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9776
9777 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9778
9779 * amd64obsd-nat.c: Include "obsd-nat,h.
9780 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9781 add_target.
9782 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9783
9784 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9785
9786 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9787 (find_overload_match): Update call to find_oload_champ.
9788 (find_oload_champ_namespace_loop): Likewise
9789
9790 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9791
9792 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9793
9794 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9795 * config/sparc/obsd64.mh: New file.
9796 * sparc64obsd-nat.c: New file.
9797
9798 * obsd-nat.h: New file.
9799 * obsd-nat.c: New file.
9800 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9801 (ALLDEPFILES): Add obsd-nat.c.
9802
9803 2014-02-28 Tom Tromey <tromey@redhat.com>
9804
9805 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9806 * cli-out.h (cli_ui_out_impl): Now const.
9807 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9808 * ui-out.c (struct ui_out) <impl>: Now const.
9809 (default_ui_out_impl): Now const.
9810 (ui_out_new): Make 'impl' parameter const.
9811 * ui-out.h (ui_out_new): Update.
9812
9813 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9814
9815 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9816
9817 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9818
9819 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9820
9821 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9822
9823 Additional PR 8882 fix.
9824 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9825
9826 2014-02-27 Pedro Alves <palves@redhat.com>
9827
9828 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9829 isn't set.
9830
9831 2014-02-27 Pedro Alves <palves@redhat.com>
9832
9833 PR 12702
9834 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9835 * nat/linux-waitpid.c: Include string.h.
9836 (status_to_str): Moved here and made extern.
9837 * nat/linux-waitpid.h (status_to_str): New declaration.
9838
9839 2014-02-27 Hui Zhu <hui@codesourcery.com>
9840
9841 PR 12702
9842 * infrun.c (ptid_match): Move ...
9843 * common/ptid.c (ptid_match): ... here.
9844 * inferior.h (ptid_match): Move ...
9845 * common/ptid.h (ptid_match): ... here.
9846
9847 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9848
9849 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9850 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9851 gdb_target_obs.
9852
9853 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9854
9855 * obsd-tdep.c (obsd_auxv_parse): New function.
9856 (obsd_init_abi): Set auxv_parse.
9857
9858 * gdbarch.sh (auxv_parse): New.
9859 * gdbarch.h: Regenerated.
9860 * gdbarch.c: Regenerated.
9861 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9862
9863 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9864
9865 * guile/scm-value.c (gdbscm_history_append_x): New function.
9866 (value_functions): Add it.
9867
9868 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9869
9870 * dwarf2read.c (attr_value_as_address): New function.
9871 (dwarf2_find_base_address, read_call_site_scope): Use
9872 attr_value_as_address in place of DW_ADDR.
9873 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9874 the low and high addresses. Slight rework of the handling
9875 of the high pc being a constant form, and limit it to
9876 DWARF verson 4 or higher.
9877 (dwarf2_record_block_ranges): Likewise.
9878 (read_partial_die): Likewise.
9879 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9880
9881 2014-02-26 Tom Tromey <tromey@redhat.com>
9882
9883 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9884
9885 2014-02-26 Tom Tromey <tromey@redhat.com>
9886
9887 * elfread.c (elf_read_minimal_symbols): Return early if
9888 minimal symbols have already been read. Add "ei" parameter.
9889 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9890 * minsyms.c (prim_record_minimal_symbol_full): Update.
9891 * objfiles.h (struct objstats) <n_minsyms>: Move...
9892 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9893 * symmisc.c (print_objfile_statistics): Update.
9894
9895 2014-02-26 Tom Tromey <tromey@redhat.com>
9896
9897 * elfread.c (elf_read_minimal_symbols): New function, from
9898 elf_symfile_read.
9899 (elf_symfile_read): Call it.
9900
9901 2014-02-26 Tom Tromey <tromey@redhat.com>
9902
9903 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9904 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9905 (lookup_minimal_symbol_solib_trampoline)
9906 (lookup_minimal_symbol_by_pc_section_1)
9907 (lookup_minimal_symbol_and_objfile): Update.
9908 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9909 Don't allocate a minimal symbol if minsyms have already been read.
9910 (build_minimal_symbol_hash_tables): Update.
9911 (install_minimal_symbols): Do nothing if minsyms already read.
9912 Use the per-BFD obstack.
9913 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9914 * objfiles.c (allocate_objfile): Call
9915 terminate_minimal_symbol_table later.
9916 (have_minimal_symbols): Update.
9917 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9918 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9919 Move from struct objfile.
9920 <minsyms_read>: New field.
9921 (struct objfile) <msymbols, minimal_symbol_count,
9922 msymbol_hash, msymbol_demangled_hash>: Move.
9923 (ALL_OBJFILE_MSYMBOLS): Update.
9924 * symfile.c (read_symbols): Set minsyms_read.
9925 (reread_symbols): Update.
9926 * symmisc.c (dump_objfile, dump_msymbols): Update.
9927
9928 2014-02-26 Tom Tromey <tromey@redhat.com>
9929
9930 * minsyms.c (msymbols_sort): Remove.
9931 * minsyms.h (msymbols_sort): Remove.
9932 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9933 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9934 * elfread.c (elf_symtab_read): Don't add section offsets.
9935 * xcoffread.c (record_minimal_symbol): Don't add section offset
9936 to minimal symbol address.
9937 * somread.c (text_offset, data_offset): Remove.
9938 (som_symtab_read): Don't add section offsets to minimal symbol
9939 addresses.
9940 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9941 Don't add section offsets to minimal symbols.
9942 * coffread.c (coff_symtab_read): Don't add section offsets
9943 to minimal symbol addresses.
9944 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9945 to minimal symbol addresses.
9946 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9947 section offset to minimal symbol addresses.
9948 * mdebugread.c (parse_partial_symbols): Don't add section
9949 offset to minimal symbol addresses.
9950 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9951 offset to minimal symbol addresses.
9952
9953 2014-02-26 Tom Tromey <tromey@redhat.com>
9954
9955 * ada-lang.c (ada_main_name): Update.
9956 (ada_add_standard_exceptions): Update.
9957 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9958 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9959 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9960 * auxv.c (ld_so_xfer_auxv): Update.
9961 * avr-tdep.c (avr_scan_prologue): Update.
9962 * ax-gdb.c (gen_var_ref): Update.
9963 * blockframe.c (get_pc_function_start)
9964 (find_pc_partial_function_gnu_ifunc): Update.
9965 * breakpoint.c (create_overlay_event_breakpoint)
9966 (create_longjmp_master_breakpoint)
9967 (create_std_terminate_master_breakpoint)
9968 (create_exception_master_breakpoint): Update.
9969 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9970 * c-valprint.c (c_val_print): Update.
9971 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9972 * common/agent.c (agent_look_up_symbols): Update.
9973 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9974 * dwarf2loc.c (call_site_to_target_addr): Update.
9975 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9976 * elfread.c (elf_gnu_ifunc_record_cache)
9977 (elf_gnu_ifunc_resolve_by_got): Update.
9978 * findvar.c (default_read_var_value): Update.
9979 * frame.c (inside_main_func): Update.
9980 * frv-tdep.c (frv_frame_this_id): Update.
9981 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9982 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9983 Update.
9984 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9985 (hppa_hpux_find_dummy_bpaddr): Update.
9986 * hppa-tdep.c (hppa_symbol_address): Update.
9987 * infcmd.c (until_next_command): Update.
9988 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9989 Update.
9990 * linespec.c (minsym_found, add_minsym): Update.
9991 * linux-nat.c (get_signo): Update.
9992 * linux-thread-db.c (inferior_has_bug): Update.
9993 * m32c-tdep.c (m32c_return_value)
9994 (m32c_m16c_address_to_pointer): Update.
9995 * m32r-tdep.c (m32r_frame_this_id): Update.
9996 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9997 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9998 * maint.c (maintenance_translate_address): Update.
9999 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10000 (frob_address): New function.
10001 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10002 frob_address. Rename parameter to "pc_in".
10003 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10004 addresses.
10005 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10006 Update.
10007 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10008 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10009 * objc-lang.c (find_objc_msgsend): Update.
10010 * objfiles.c (objfile_relocate1): Update.
10011 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10012 * p-valprint.c (pascal_val_print): Update.
10013 * parse.c (write_exp_msymbol): Update.
10014 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10015 (ppc_elfv2_skip_entrypoint): Update.
10016 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10017 * printcmd.c (build_address_symbolic, msym_info)
10018 (address_info): Update.
10019 * proc-service.c (ps_pglobal_lookup): Update.
10020 * psymtab.c (find_pc_sect_psymtab_closer)
10021 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10022 Change msymbol parameter to bound_minimal_symbol.
10023 * ravenscar-thread.c (get_running_thread_id): Update.
10024 * remote.c (remote_check_symbols): Update.
10025 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10026 address.
10027 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10028 * solib-dsbt.c (lm_base): Update.
10029 * solib-frv.c (lm_base, main_got): Update.
10030 * solib-irix.c (locate_base): Update.
10031 * solib-som.c (som_solib_create_inferior_hook)
10032 (link_map_start): Update.
10033 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10034 * solib-svr4.c (elf_locate_base, enable_break): Update.
10035 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10036 (flush_ea_cache): Update.
10037 * stabsread.c (define_symbol, scan_file_globals): Update.
10038 * stack.c (find_frame_funname): Update.
10039 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10040 (debug_qf_find_pc_sect_symtab): Update.
10041 * symfile.c (simple_read_overlay_table)
10042 (simple_overlay_update): Update.
10043 * symfile.h (struct quick_symbol_functions)
10044 <find_pc_sect_symtab>: Change type of msymbol to
10045 bound_minimal_symbol.
10046 * symmisc.c (dump_msymbols): Update.
10047 * symtab.c (find_pc_sect_symtab_via_partial)
10048 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10049 (search_symbols, print_msymbol_info): Update.
10050 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10051 (MSYMBOL_VALUE_ADDRESS): Redefine.
10052 (BMSYMBOL_VALUE_ADDRESS): New macro.
10053 * tracepoint.c (scope_info): Update.
10054 * tui/tui-disasm.c (tui_find_disassembly_address)
10055 (tui_get_begin_asm_address): Update.
10056 * valops.c (find_function_in_inferior): Update.
10057 * value.c (value_static_field, value_fn_field): Update.
10058
10059 2014-02-26 Tom Tromey <tromey@redhat.com>
10060
10061 * ada-lang.c (ada_update_initial_language): Update.
10062 (ada_main_name, ada_has_this_exception_support): Update.
10063 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10064 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10065 * arm-tdep.c (arm_skip_stub): Update.
10066 * auxv.c (ld_so_xfer_auxv): Update.
10067 * avr-tdep.c (avr_scan_prologue): Update.
10068 * ax-gdb.c (gen_var_ref): Update.
10069 * breakpoint.c (struct breakpoint_objfile_data)
10070 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10071 type to bound_minimal_symbol.
10072 (create_overlay_event_breakpoint)
10073 (create_longjmp_master_breakpoint)
10074 (create_std_terminate_master_breakpoint)
10075 (create_exception_master_breakpoint): Update.
10076 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10077 * c-exp.y (classify_name): Update.
10078 * coffread.c (coff_symfile_read): Update.
10079 * common/agent.c (agent_look_up_symbols): Update.
10080 * d-lang.c (d_main_name): Update.
10081 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10082 * dec-thread.c (enable_dec_thread): Update.
10083 * dwarf2loc.c (call_site_to_target_addr): Update.
10084 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10085 * eval.c (evaluate_subexp_standard): Update.
10086 * findvar.c (struct minsym_lookup_data) <result>: Change type
10087 to bound_minimal_symbol.
10088 <objfile>: Remove.
10089 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10090 * frame.c (inside_main_func): Update.
10091 * frv-tdep.c (frv_frame_this_id): Update.
10092 * gcore.c (call_target_sbrk): Update.
10093 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10094 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10095 Update.
10096 * go-lang.c (go_main_name): Update.
10097 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10098 (hppa_hpux_find_import_stub_for_addr): Update.
10099 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10100 Update. Change return type.
10101 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10102 type.
10103 * jit.c (jit_breakpoint_re_set_internal): Update.
10104 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10105 Update.
10106 * linux-nat.c (get_signo): Update.
10107 * linux-thread-db.c (inferior_has_bug): Update
10108 * m32c-tdep.c (m32c_return_value)
10109 (m32c_m16c_address_to_pointer): Update.
10110 * m32r-tdep.c (m32r_frame_this_id): Update.
10111 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10112 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10113 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10114 lookup_minimal_symbol. Change return type.
10115 (lookup_minimal_symbol): Remove.
10116 (lookup_bound_minimal_symbol): Update.
10117 (lookup_minimal_symbol_text): Change return type.
10118 (lookup_minimal_symbol_solib_trampoline): Change return type.
10119 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10120 (lookup_minimal_symbol_solib_trampoline): Change return type.
10121 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10122 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10123 (value_nsstring, find_imps): Update.
10124 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10125 * p-lang.c (pascal_main_name): Update.
10126 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10127 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10128 * proc-service.c (ps_pglobal_lookup): Update.
10129 * ravenscar-thread.c (get_running_thread_msymbol): Change
10130 return type.
10131 (has_ravenscar_runtime, get_running_thread_id): Update.
10132 * remote.c (remote_check_symbols): Update.
10133 * sol-thread.c (ps_pglobal_lookup): Update.
10134 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10135 * solib-dsbt.c (lm_base): Update.
10136 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10137 Update.
10138 * solib-irix.c (locate_base): Update.
10139 * solib-som.c (som_solib_create_inferior_hook)
10140 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10141 Update.
10142 * solib-spu.c (spu_enable_break): Update.
10143 * solib-svr4.c (elf_locate_base, enable_break): Update.
10144 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10145 (flush_ea_cache): Update.
10146 * stabsread.c (define_symbol): Update.
10147 * symfile.c (simple_read_overlay_table): Update.
10148 * symtab.c (find_pc_sect_line): Update.
10149 * tracepoint.c (scope_info): Update.
10150 * tui-disasm.c (tui_get_begin_asm_address): Update.
10151 * value.c (value_static_field): Update.
10152
10153 2014-02-26 Tom Tromey <tromey@redhat.com>
10154
10155 * minsyms.c (prim_record_minimal_symbol_full): Use
10156 SET_MSYMBOL_VALUE_ADDRESS.
10157 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10158 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10159 SET_MSYMBOL_VALUE_ADDRESS.
10160 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10161 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10162
10163 2014-02-26 Tom Tromey <tromey@redhat.com>
10164
10165 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10166 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10167 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10168 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10169 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10170 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10171 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10172 * ada-lang.c (ada_main_name): Update.
10173 (ada_lookup_simple_minsym): Update.
10174 (ada_make_symbol_completion_list): Update.
10175 (ada_add_standard_exceptions): Update.
10176 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10177 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10178 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10179 * arm-tdep.c (skip_prologue_function): Update.
10180 (arm_skip_stack_protector, arm_skip_stub): Update.
10181 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10182 (arm_wince_skip_main_prologue): Update.
10183 * auxv.c (ld_so_xfer_auxv): Update.
10184 * avr-tdep.c (avr_scan_prologue): Update.
10185 * ax-gdb.c (gen_var_ref): Update.
10186 * block.c (call_site_for_pc): Update.
10187 * blockframe.c (get_pc_function_start): Update.
10188 (find_pc_partial_function_gnu_ifunc): Update.
10189 * breakpoint.c (create_overlay_event_breakpoint): Update.
10190 (create_longjmp_master_breakpoint): Update.
10191 (create_std_terminate_master_breakpoint): Update.
10192 (create_exception_master_breakpoint): Update.
10193 (resolve_sal_pc): Update.
10194 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10195 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10196 Update.
10197 * c-valprint.c (c_val_print): Update.
10198 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10199 * coffread.c (coff_symfile_read): Update.
10200 * common/agent.c (agent_look_up_symbols): Update.
10201 * dbxread.c (find_stab_function_addr): Update.
10202 (end_psymtab): Update.
10203 * dwarf2loc.c (call_site_to_target_addr): Update.
10204 (func_verify_no_selftailcall): Update.
10205 (tailcall_dump): Update.
10206 (call_site_find_chain_1): Update.
10207 (dwarf_expr_reg_to_entry_parameter): Update.
10208 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10209 (elf_gnu_ifunc_resolve_by_got): Update.
10210 * f-valprint.c (info_common_command): Update.
10211 * findvar.c (read_var_value): Update.
10212 * frame.c (get_prev_frame_1): Update.
10213 (inside_main_func): Update.
10214 * frv-tdep.c (frv_skip_main_prologue): Update.
10215 (frv_frame_this_id): Update.
10216 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10217 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10218 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10219 (gnuv3_skip_trampoline): Update.
10220 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10221 (hppa64_hpux_in_solib_call_trampoline): Update.
10222 (hppa_hpux_skip_trampoline_code): Update.
10223 (hppa64_hpux_search_dummy_call_sequence): Update.
10224 (hppa_hpux_find_import_stub_for_addr): Update.
10225 (hppa_hpux_find_dummy_bpaddr): Update.
10226 * hppa-tdep.c (hppa_symbol_address)
10227 (hppa_lookup_stub_minimal_symbol): Update.
10228 * i386-tdep.c (i386_skip_main_prologue): Update.
10229 (i386_pe_skip_trampoline_code): Update.
10230 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10231 * infcall.c (get_function_name): Update.
10232 * infcmd.c (until_next_command): Update.
10233 * jit.c (jit_breakpoint_re_set_internal): Update.
10234 (jit_inferior_init): Update.
10235 * linespec.c (minsym_found): Update.
10236 (add_minsym): Update.
10237 * linux-fork.c (info_checkpoints_command): Update.
10238 * linux-nat.c (get_signo): Update.
10239 * linux-thread-db.c (inferior_has_bug): Update.
10240 * m32c-tdep.c (m32c_return_value): Update.
10241 (m32c_m16c_address_to_pointer): Update.
10242 (m32c_m16c_pointer_to_address): Update.
10243 * m32r-tdep.c (m32r_frame_this_id): Update.
10244 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10245 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10246 * maint.c (maintenance_translate_address): Update.
10247 * minsyms.c (add_minsym_to_hash_table): Update.
10248 (add_minsym_to_demangled_hash_table): Update.
10249 (msymbol_objfile): Update.
10250 (lookup_minimal_symbol): Update.
10251 (iterate_over_minimal_symbols): Update.
10252 (lookup_minimal_symbol_text): Update.
10253 (lookup_minimal_symbol_by_pc_name): Update.
10254 (lookup_minimal_symbol_solib_trampoline): Update.
10255 (lookup_minimal_symbol_by_pc_section_1): Update.
10256 (lookup_minimal_symbol_and_objfile): Update.
10257 (prim_record_minimal_symbol_full): Update.
10258 (compare_minimal_symbols): Update.
10259 (compact_minimal_symbols): Update.
10260 (build_minimal_symbol_hash_tables): Update.
10261 (install_minimal_symbols): Update.
10262 (terminate_minimal_symbol_table): Update.
10263 (find_solib_trampoline_target): Update.
10264 (minimal_symbol_upper_bound): Update.
10265 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10266 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10267 (mips_skip_pic_trampoline_code): Update.
10268 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10269 * objc-lang.c (selectors_info): Update.
10270 (classes_info): Update.
10271 (find_methods): Update.
10272 (find_imps): Update.
10273 (find_objc_msgsend): Update.
10274 * objfiles.c (objfile_relocate1): Update.
10275 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10276 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10277 * p-valprint.c (pascal_val_print): Update.
10278 * parse.c (write_exp_msymbol): Update.
10279 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10280 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10281 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10282 * printcmd.c (build_address_symbolic): Update.
10283 (sym_info): Update.
10284 (address_info): Update.
10285 * proc-service.c (ps_pglobal_lookup): Update.
10286 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10287 (find_pc_sect_psymtab): Update.
10288 * python/py-framefilter.c (py_print_frame): Update.
10289 * ravenscar-thread.c (get_running_thread_id): Update.
10290 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10291 Update.
10292 * remote.c (remote_check_symbols): Update.
10293 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10294 (rs6000_skip_trampoline_code): Update.
10295 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10296 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10297 * solib-dsbt.c (lm_base): Update.
10298 * solib-frv.c (lm_base): Update.
10299 (main_got): Update.
10300 * solib-irix.c (locate_base): Update.
10301 * solib-som.c (som_solib_create_inferior_hook): Update.
10302 (som_solib_desire_dynamic_linker_symbols): Update.
10303 (link_map_start): Update.
10304 * solib-spu.c (spu_enable_break): Update.
10305 (ocl_enable_break): Update.
10306 * solib-svr4.c (elf_locate_base): Update.
10307 (enable_break): Update.
10308 * spu-tdep.c (spu_get_overlay_table): Update.
10309 (spu_catch_start): Update.
10310 (flush_ea_cache): Update.
10311 * stabsread.c (define_symbol): Update.
10312 (scan_file_globals): Update.
10313 * stack.c (find_frame_funname): Update.
10314 (frame_info): Update.
10315 * symfile.c (simple_read_overlay_table): Update.
10316 (simple_overlay_update): Update.
10317 * symmisc.c (dump_msymbols): Update.
10318 * symtab.c (fixup_section): Update.
10319 (find_pc_sect_line): Update.
10320 (skip_prologue_sal): Update.
10321 (search_symbols): Update.
10322 (print_msymbol_info): Update.
10323 (rbreak_command): Update.
10324 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10325 (completion_list_objc_symbol): Update.
10326 (default_make_symbol_completion_list_break_on): Update.
10327 * tracepoint.c (scope_info): Update.
10328 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10329 (tui_get_begin_asm_address): Update.
10330 * valops.c (find_function_in_inferior): Update.
10331 * value.c (value_static_field): Update.
10332 (value_fn_field): Update.
10333
10334 2014-02-26 Tom Tromey <tromey@redhat.com>
10335
10336 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10337 bound minimal symbols. Move code that knows about minsym
10338 table layout...
10339 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10340 function.
10341 * minsyms.h (minimal_symbol_upper_bound): Declare.
10342 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10343 minimal_symbol_upper_bound.
10344
10345 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10346
10347 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10348 Use the type's name if its basic type does not have a tag.
10349
10350 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10351
10352 * dwarf2read.c (read_subrange_type): Add comment.
10353
10354 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10355
10356 * dwarf2read.c (update_enumeration_type_from_children): New
10357 function, mostly extracted from process_structure_scope.
10358 (read_enumeration_type): Call update_enumeration_type_from_children.
10359 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10360 and flag_flag_enum fields.
10361
10362 2014-02-26 Pedro Alves <palves@redhat.com>
10363
10364 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10365 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10366 to_xfer_partial method.
10367
10368 2014-02-26 Pedro Alves <palves@redhat.com>
10369
10370 * target.c (complete_target_initialization): Don't install
10371 default_xfer_partial as to_xfer_partial hook.
10372 (nomemory): Delete.
10373 (update_current_target): Don't INHERIT nor de_fault
10374 deprecated_xfer_memory. Delete de_fault macro.
10375 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10376 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10377 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10378 field.
10379
10380 2014-02-26 Pedro Alves <palves@redhat.com>
10381
10382 * go32-nat.c (my_write_child): New function.
10383 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10384 (go32_xfer_partial): New function.
10385 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10386 Instead install a to_xfer_partial hook.
10387
10388 2014-02-26 Pedro Alves <palves@redhat.com>
10389
10390 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10391 to_xfer_partial helper. Rewrite.
10392 (procfs_xfer_partial): New function.
10393 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10394 Install a to_xfer_partial hook.
10395
10396 2014-02-26 Pedro Alves <palves@redhat.com>
10397
10398 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10399 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10400 (m32r_xfer_partial): New function.
10401 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10402 Install a to_xfer_partial hook.
10403
10404 2014-02-26 Pedro Alves <palves@redhat.com>
10405
10406 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10407 helper.
10408 (mips_xfer_partial): New function.
10409 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10410 hook. Install a to_xfer_partial hook.
10411
10412 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10413
10414 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10415 * gdbtypes.c (create_array_type_with_stride): New function,
10416 renaming create_array_type, but with an added parameter
10417 called "bit_stride".
10418 (create_array_type): Re-implement using
10419 create_array_type_with_stride.
10420 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10421 and DW_AT_bit_stride attributes.
10422
10423 2014-02-26 Pedro Alves <palves@redhat.com>
10424
10425 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10426 task-specific breakpoints.
10427
10428 2014-02-25 Pedro Alves <palves@redhat.com>
10429
10430 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10431 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10432
10433 2014-02-25 Stan Shebs <stan@codesourcery.com>
10434
10435 * defs.h: Annotate comments for Doxygen.
10436
10437 2014-02-25 Tom Tromey <tromey@redhat.com>
10438
10439 * target.h (target_ignore): Don't declare.
10440 * target.c (target_ignore): Remove.
10441
10442 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10443
10444 PR gdb/16626
10445 * auto-load.c (auto_load_objfile_script_1): Change filename to
10446 debugfile.
10447
10448 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10449
10450 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10451 documentation. Adjust prototype to match the target_ops
10452 to_xfer_partial method. Adjust implementation accordingly.
10453
10454 2014-02-25 Hui Zhu <hui@codesourcery.com>
10455
10456 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10457 to_traceframe_info.
10458
10459 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10460
10461 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10462 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10463 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10464 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10465 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10466 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10467 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10468 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10469 New constants.
10470 (rl78_register_type): Use a data pointer type for SP and
10471 new pseudo registers mentioned above. Use a 16 bit integer
10472 type for all other register pairs.
10473 (rl78_register_name, rl78_g10_register_name): Update for
10474 new pseudo registers.
10475 (rl78_pseudo_register_read): Likewise.
10476 (rl78_pseudo_register_write): Likewise.
10477 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10478 to the newly added pseudo registers.
10479
10480 2014-02-24 Doug Evans <dje@google.com>
10481
10482 * value.c (record_latest_value): Fix comment.
10483 * printcmd.c (print_command_1): Remove code to handle -1 return from
10484 record_latest_value.
10485
10486 2014-02-24 Pedro Alves <palves@redhat.com>
10487
10488 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10489 deprecated_xfer_memory hook.
10490 (procfs_xfer_partial): Call procfs_xfer_memory instead
10491 of the deprecated_xfer_memory target hook.
10492 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10493 helper.
10494
10495 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10496
10497 * windows-nat.c (windows_xfer_shared_libraries): Return
10498 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10499 requested object is TARGET_OBJECT_LIBRARIES.
10500
10501 2014-02-24 Yao Qi <yao@codesourcery.com>
10502
10503 * target.h (enum target_xfer_status)
10504 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10505 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10506 explicitly. New.
10507 * corefile.c (memory_error_message): User updated.
10508 * exec.c (section_table_read_available_memory): Likewise.
10509 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10510 * target.c (target_xfer_status_to_string): Likewise.
10511 (raw_memory_xfer_partial): Likewise.
10512 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10513 * valops.c (read_value_memory): Likewise.
10514 * exec.h: Update comments.
10515
10516 2014-02-24 Yao Qi <yao@codesourcery.com>
10517
10518 * target.c (target_xfer_status_to_string): Rename argument err
10519 to status.
10520 * target.h (target_xfer_status_to_string): Update declaration.
10521 Replace target_xfer_error_to_string with
10522 target_xfer_status_to_string in comment.
10523
10524 2014-02-24 Yao Qi <yao@codesourcery.com>
10525
10526 * mips-linux-nat.c (super_close): Update its type.
10527 (mips_linux_close): Pass 'self' to super_close.
10528
10529 2014-02-24 Yao Qi <yao@codesourcery.com>
10530
10531 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10532 * corefile.c (read_memory): Adjusted.
10533 * target.c (target_write_with_progress): Adjusted.
10534
10535 2014-02-23 Yao Qi <yao@codesourcery.com>
10536
10537 Revert two patches:
10538
10539 2013-10-25 Yao Qi <yao@codesourcery.com>
10540
10541 * remote.c (remote_traceframe_info): Return early if
10542 traceframe is not selected.
10543
10544 2013-07-19 Yao Qi <yao@codesourcery.com>
10545
10546 * target.c (update_current_target): Change the default action
10547 of 'to_traceframe_info' from tcomplain to return_zero.
10548 * target.h (struct target_ops) <to_traceframe_info>: Add more
10549 comments.
10550
10551 2014-02-23 Yao Qi <yao@codesourcery.com>
10552
10553 * valops.c (read_value_memory): Rewrite it. Call
10554 target_xfer_partial in a loop.
10555 * exec.h (section_table_available_memory): Remove declaration.
10556 Move comments to ...
10557 * exec.c (section_table_available_memory): ... here. Make it
10558 static.
10559
10560 2014-02-23 Yao Qi <yao@codesourcery.com>
10561
10562 * exec.c (section_table_read_available_memory): New function.
10563 * exec.h (section_table_read_available_memory): Declare.
10564 * ctf.c (ctf_xfer_partial): Call
10565 section_table_read_available_memory.
10566 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10567
10568 2014-02-23 Yao Qi <yao@codesourcery.com>
10569
10570 * ctf.c (ctf_xfer_partial): Move code to ...
10571 * exec.c (exec_read_partial_read_only): ... it. New function.
10572 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10573 * tracefile.c: Include "exec.h".
10574 * exec.h (exec_read_partial_read_only): Declare.
10575
10576 2014-02-23 Yao Qi <yao@codesourcery.com>
10577
10578 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10579 (tfile_has_memory): Remove.
10580 (init_tfile_ops): Don't set fields to_has_all_memory and
10581 to_has_memory of tfile_ops.
10582 * tracefile.c (tracefile_has_all_memory): New function.
10583 (tracefile_has_memory): New function.
10584 (init_tracefile_ops): Initialize fields to_has_all_memory and
10585 to_has_memory of 'ops'.
10586
10587 2014-02-23 Yao Qi <yao@codesourcery.com>
10588
10589 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10590 (ctf_thread_alive, ctf_get_trace_status): Remove.
10591 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10592 init_tracefile_ops.
10593 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10594 (tfile_has_stack, tfile_has_registers): Remove.
10595 (tfile_thread_alive): Remove.
10596 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10597 init_tracefile_ops.
10598 * tracefile.c (tracefile_has_stack): New function.
10599 (tracefile_has_registers): New function.
10600 (tracefile_thread_alive): New function.
10601 (tracefile_get_trace_status): New function.
10602 (init_tracefile_ops): New function.
10603 * tracefile.h (init_tracefile_ops): Declare.
10604
10605 2014-02-23 Yao Qi <yao@codesourcery.com>
10606
10607 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10608 (O_LARGEFILE): Likewise.
10609 (tfile_ops): Likewise.
10610 (TRACE_HEADER_SIZE): Likewise.
10611 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10612 (cur_data_size): Likewise.
10613 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10614 (tfile_close, tfile_files_info): Likewise.
10615 (tfile_get_trace_status): Likewise.
10616 (tfile_get_tracepoint_status): Likewise.
10617 (tfile_get_traceframe_address): Likewise.
10618 (tfile_trace_find, match_blocktype): Likewise.
10619 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10620 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10621 (tfile_get_trace_state_variable_value): Likewise.
10622 (tfile_has_all_memory, tfile_has_memory): Likewise.
10623 (tfile_has_stack, tfile_has_registers): Likewise.
10624 (tfile_thread_alive, build_traceframe_info): Likewise.
10625 (tfile_traceframe_info, init_tfile_ops): Likewise.
10626 (_initialize_tracepoint): Don't call init_tfile_ops
10627 and add_target_with_completer.
10628 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10629 exec.h, completer.h and filenames.h.
10630 (_initialize_tracefile_tfile): New function.
10631
10632 2014-02-23 Yao Qi <yao@codesourcery.com>
10633
10634 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10635 tracefile-tfile.o.
10636 (HFILES_NO_SRCDIR): Add tracefile.h.
10637 * ctf.c: Include "tracefile.h".
10638 * tracefile.h: New file.
10639 * tracefile.c: New file
10640 * tracefile-tfile.c: New file.
10641 * tracepoint.c: Include "tracefile.h".
10642 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10643 (stop_reason_names): Add const.
10644 (trace_file_writer_xfree): Move it to tracefile.c.
10645 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10646 (trace_save_ctf): Likewise.
10647 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10648 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10649 (tfile_write_header, tfile_write_regblock_type): Likewise.
10650 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10651 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10652 (tfile_write_raw_data, tfile_end): Likewise.
10653 (tfile_trace_file_writer_new): Likewise.
10654 (free_uploaded_tp): Make it extern.
10655 (free_uploaded_tsv): Make it extern.
10656 (_initialize_tracepoint): Move code to register command 'tsave'
10657 to tracefile.c.
10658 * tracepoint.h (stop_reason_names): Declare.
10659 (struct trace_frame_write_ops): Move it to tracefile.h.
10660 (struct trace_file_write_ops): Likewise.
10661 (struct trace_file_writer): Likewise.
10662 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10663
10664 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10665
10666 PR gdb/16594
10667 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10668 process name.
10669 (get_cores_used_by_process): New parameter num_cores, use it.
10670 (linux_xfer_osdata_processes): Pass num_cores to it.
10671 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10672 process name.
10673
10674 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10675
10676 * target.c (memory_xfer_partial): Fix length arg in call to
10677 breakpoint_xfer_memory.
10678
10679 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10680
10681 PR tdep/16397
10682 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10683 number comes after the + or - signs. Adjust length of register
10684 name to be extracted.
10685
10686 2014-02-20 Tom Tromey <tromey@redhat.com>
10687
10688 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10689 (ada_varobj_ops): Mark "extern".
10690
10691 2014-02-20 Tom Tromey <tromey@redhat.com>
10692
10693 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10694
10695 2014-02-20 Doug Evans <xdje42@gmail.com>
10696
10697 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10698 All callers updated.
10699 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10700 All callers updated.
10701 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10702 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10703
10704 2014-02-20 lin zuojian <manjian2006@gmail.com>
10705 Joel Brobecker <brobecker@adacore.com>
10706 Doug Evans <xdje42@gmail.com>
10707
10708 PR symtab/16581
10709 * dwarf2read.c (struct die_info): New member in_process.
10710 (reset_die_in_process): New function.
10711 (process_die): Set it at the start, reset when returning.
10712 (inherit_abstract_dies): Only call process_die if origin_child_die
10713 not already being processed.
10714
10715 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10716
10717 * windows-nat.c (handle_unload_dll): Add function documentation.
10718 (do_initial_windows_stuff): Add comment explaining why we wait
10719 until after inferior initialization has finished before
10720 processing all DLLs.
10721
10722 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10723
10724 * windows-nat.c (get_module_name): Delete.
10725 (windows_get_exec_module_filename): New function, mostly
10726 inspired from get_module_name.
10727 (windows_pid_to_exec_file): Replace call to get_module_name
10728 by call to windows_get_exec_module_filename.
10729
10730 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10731
10732 * windows-nat.c (handle_load_dll): Rewrite this function's
10733 introductory comment. Remove code using get_module_name
10734 to get the DLL's name.
10735
10736 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10737
10738 * windows-nat.c (get_windows_debug_event): Ignore
10739 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10740 if windows_initialization_done == 0.
10741 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10742 Adjust implementation to always load all DLLs.
10743 (do_initial_windows_stuff): Replace call to
10744 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10745
10746 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10747
10748 * windows-nat.c (_initialize_windows_nat): Deprecate the
10749 "dll-symbols" command. Turn the "add-shared-symbol-files"
10750 and "assf" aliases into commands, and deprecate them as well.
10751 * NEWS: Add entry explaining that "dll-symbols" and its two
10752 aliases are now deprecated.
10753
10754 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10755
10756 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10757 new-line in debug string. Remove trailing spaces.
10758
10759 2014-02-19 Stan Shebs <stan@codesourcery.com>
10760
10761 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10762
10763 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10764
10765 * NEWS: Add entry for the new feature
10766 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10767 and class values.
10768
10769 2014-02-19 Stan Shebs <stan@codesourcery.com>
10770
10771 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10772
10773 2014-02-19 Pedro Alves <palves@redhat.com>
10774
10775 * common/ptid.h (struct ptid): Mention that process_stratum
10776 targets should prefer ptid.lwp.
10777
10778 2014-02-19 Pedro Alves <palves@redhat.com>
10779
10780 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10781 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10782 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10783 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10784 store remote thread ids rather than ptid.tid.
10785 (_initialize_remote): Adjust.
10786
10787 2014-02-19 Tom Tromey <tromey@redhat.com>
10788
10789 * target.c (target_get_unwinder): Rewrite.
10790 (target_get_tailcall_unwinder): Rewrite.
10791 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10792 (record_btrace_to_get_tailcall_unwinder): New function.
10793 (init_record_btrace_ops): Update.
10794 * target.h (struct target_ops) <to_get_unwinder,
10795 to_get_tailcall_unwinder>: Now function pointers. Use
10796 TARGET_DEFAULT_RETURN.
10797
10798 2014-02-19 Tom Tromey <tromey@redhat.com>
10799
10800 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10801 argument.
10802 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10803
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10807 directly.
10808 * target-delegates.c: Rebuild.
10809 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10810 TARGET_DEFAULT_FUNC.
10811 * target.c (default_target_decr_pc_after_break): Rename from
10812 forward_target_decr_pc_after_break. Simplify.
10813 (target_decr_pc_after_break): Rely on delegation.
10814
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10816
10817 * target.c (update_current_target): Do not INHERIT to_doc or
10818 to_magic. Do not de_fault to_open or to_close.
10819
10820 2014-02-19 Tom Tromey <tromey@redhat.com>
10821
10822 * gcore.h (objfile_find_memory_regions): Declare.
10823 * gcore.c (objfile_find_memory_regions): No longer static. Add
10824 "self" argument.
10825 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10826 * exec.c: Include gcore.h.
10827 (exec_set_find_memory_regions): Remove.
10828 (exec_find_memory_regions): Remove.
10829 (exec_do_find_memory_regions): Remove.
10830 (init_exec_ops): Update.
10831 * defs.h (exec_set_find_memory_regions): Remove.
10832
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target-delegates.c: Rebuild.
10836 * target.h (struct target_ops) <to_extra_thread_info,
10837 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10838 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10839 not 0, in TARGET_DEFAULT_RETURN.
10840
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target.c (complete_target_initialization): Remove casts. Use
10844 return_zero_has_execution.
10845 (return_zero): Add "ignore" argument.
10846 (return_zero_has_execution): New function.
10847 (init_dummy_target): Remove casts. Use
10848 return_zero_has_execution.
10849
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target.c (update_current_target): Update comments. Do not
10853 INHERIT to_stratum.
10854
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10856
10857 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10858 needed.
10859 * corelow.c (core_read_description): Delegate when needed.
10860 * remote.c (remote_read_description): Delegate when needed.
10861 * target-delegates.c: Rebuild.
10862 * target.c (target_read_description): Rewrite.
10863 * target.h (struct target_ops) <to_read_description>: Update
10864 comment. Use TARGET_DEFAULT_RETURN.
10865
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10867
10868 * target-delegates.c: Rebuild.
10869 * target.c (update_current_target): Don't inherit or default
10870 to_can_run.
10871 (find_default_run_target): Check against delegate_can_run.
10872 * target.h (struct target_ops) <to_can_run>: Use
10873 TARGET_DEFAULT_RETURN.
10874
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target-delegates.c: Rebuild.
10878 * target.c (target_disconnect): Unconditionally delegate.
10879 * target.h (struct target_ops) <to_disconnect>: Use
10880 TARGET_DEFAULT_NORETURN.
10881
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * record.c (record_stop): Unconditionally delegate.
10885 * target-delegates.c: Rebuild.
10886 * target.c (target_stop_recording): Unconditionally delegate.
10887 * target.h (struct target_ops) <to_stop_recording>: Use
10888 TARGET_DEFAULT_IGNORE.
10889
10890 2014-02-19 Tom Tromey <tromey@redhat.com>
10891
10892 * target-delegates.c: Rebuild.
10893 * target.c (target_enable_btrace): Unconditionally delegate.
10894 * target.h (struct target_ops) <to_enable_btrace>: Use
10895 TARGET_DEFAULT_NORETURN.
10896
10897 2014-02-19 Tom Tromey <tromey@redhat.com>
10898
10899 * target-delegates.c: Rebuild.
10900 * target.c (target_read_btrace): Unconditionally delegate.
10901 * target.h (struct target_ops) <to_read_btrace>: Use
10902 TARGET_DEFAULT_NORETURN.
10903
10904 2014-02-19 Tom Tromey <tromey@redhat.com>
10905
10906 * target-delegates.c: Rebuild.
10907 * target.c (target_teardown_btrace): Unconditionally delegate.
10908 * target.h (struct target_ops) <to_teardown_btrace>: Use
10909 TARGET_DEFAULT_NORETURN.
10910
10911 2014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * target-delegates.c: Rebuild.
10914 * target.c (target_disable_btrace): Unconditionally delegate.
10915 * target.h (struct target_ops) <to_disable_btrace>: Use
10916 TARGET_DEFAULT_NORETURN.
10917
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * target-delegates.c: Rebuild.
10921 * target.c (default_search_memory): New function.
10922 (simple_search_memory): Update comment.
10923 (target_search_memory): Unconditionally delegate.
10924 * target.h (struct target_ops) <to_search_memory>: Use
10925 TARGET_DEFAULT_FUNC.
10926
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10928
10929 * auxv.c (default_auxv_parse): No longer static.
10930 (target_auxv_parse): Unconditionally delegate.
10931 * auxv.h (default_auxv_parse): Declare.
10932 * target-delegates.c: Rebuild.
10933 * target.c: Include auxv.h.
10934 * target.h (struct target_ops) <to_auxv_parse>: Use
10935 TARGET_DEFAULT_FUNC.
10936
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10938
10939 * target-delegates.c: Rebuild.
10940 * target.c (target_memory_map): Unconditionally delegate.
10941 * target.h (struct target_ops) <to_memory_map>: Use
10942 TARGET_DEFAULT_RETURN.
10943
10944 2014-02-19 Tom Tromey <tromey@redhat.com>
10945
10946 * target-delegates.c: Rebuild.
10947 * target.c (target_thread_alive): Unconditionally delegate.
10948 * target.h (struct target_ops) <to_thread_alive>: Use
10949 TARGET_DEFAULT_RETURN.
10950
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target-delegates.c: Rebuild.
10954 * target.c (target_save_record): Unconditionally delegate.
10955 * target.h (struct target_ops) <to_save_record>: Use
10956 TARGET_DEFAULT_NORETURN.
10957
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10959
10960 * target-delegates.c: Rebuild.
10961 * target.c (target_delete_record): Unconditionally delegate.
10962 * target.h (struct target_ops) <to_delete_record>: Use
10963 TARGET_DEFAULT_NORETURN.
10964
10965 2014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * target-delegates.c: Rebuild.
10968 * target.c (target_record_is_replaying): Unconditionally
10969 delegate.
10970 * target.h (struct target_ops) <to_record_is_replaying>: Use
10971 TARGET_DEFAULT_RETURN.
10972
10973 2014-02-19 Tom Tromey <tromey@redhat.com>
10974
10975 * target-delegates.c: Rebuild.
10976 * target.c (target_goto_record_begin): Unconditionally delegate.
10977 * target.h (struct target_ops) <to_goto_record_begin>: Use
10978 TARGET_DEFAULT_NORETURN.
10979
10980 2014-02-19 Tom Tromey <tromey@redhat.com>
10981
10982 * target-delegates.c: Rebuild.
10983 * target.c (target_goto_record_end): Unconditionally delegate.
10984 * target.h (struct target_ops) <to_goto_record_end>: Use
10985 TARGET_DEFAULT_NORETURN.
10986
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10988
10989 * target-delegates.c: Rebuild.
10990 * target.c (target_goto_record): Unconditionally delegate.
10991 * target.h (struct target_ops) <to_goto_record>: Use
10992 TARGET_DEFAULT_NORETURN.
10993
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * target-delegates.c: Rebuild.
10997 * target.c (target_insn_history): Unconditionally delegate.
10998 * target.h (struct target_ops) <to_insn_history>: Use
10999 TARGET_DEFAULT_NORETURN.
11000
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * target-delegates.c: Rebuild.
11004 * target.c (target_insn_history_from): Unconditionally delegate.
11005 * target.h (struct target_ops) <to_insn_history_from>: Use
11006 TARGET_DEFAULT_NORETURN.
11007
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target-delegates.c: Rebuild.
11011 * target.c (target_insn_history_range): Unconditionally delegate.
11012 * target.h (struct target_ops) <to_insn_history_range>: Use
11013 TARGET_DEFAULT_NORETURN.
11014
11015 2014-02-19 Tom Tromey <tromey@redhat.com>
11016
11017 * target-delegates.c: Rebuild.
11018 * target.c (target_call_history): Unconditionally delegate.
11019 * target.h (struct target_ops) <to_call_history>: Use
11020 TARGET_DEFAULT_NORETURN.
11021
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target-delegates.c: Rebuild.
11025 * target.c (target_call_history_from): Unconditionally delegate.
11026 * target.h (struct target_ops) <to_call_history_from>: Use
11027 TARGET_DEFAULT_NORETURN.
11028
11029 2014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * target-delegates.c: Rebuild.
11032 * target.c (target_call_history_range): Unconditionally delegate.
11033 * target.h (struct target_ops) <to_call_history_range>: Use
11034 TARGET_DEFAULT_NORETURN.
11035
11036 2014-02-19 Tom Tromey <tromey@redhat.com>
11037
11038 * target-delegates.c: Rebuild.
11039 * target.c (target_verify_memory): Unconditionally delegate.
11040 * target.h (struct target_ops) <to_verify_memory>: Use
11041 TARGET_DEFAULT_NORETURN.
11042
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11044
11045 * target-delegates.c: Rebuild.
11046 * target.c (target_core_of_thread): Unconditionally delegate.
11047 * target.h (struct target_ops) <to_core_of_thread>: Use
11048 TARGET_DEFAULT_RETURN.
11049
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11051
11052 * target-delegates.c: Rebuild.
11053 * target.c (target_flash_done): Unconditionally delegate.
11054 * target.h (struct target_ops) <to_flash_done>: Use
11055 TARGET_DEFAULT_NORETURN.
11056
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11058
11059 * target-delegates.c: Rebuild.
11060 * target.c (target_flash_erase): Unconditionally delegate.
11061 * target.h (struct target_ops) <to_flash_erase>: Use
11062 TARGET_DEFAULT_NORETURN.
11063
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target-delegates.c: Rebuild.
11067 * target.c (target_get_section_table): Unconditionally delegate.
11068 * target.h (struct target_ops) <to_get_section_table>: Use
11069 TARGET_DEFAULT_RETURN.
11070
11071 2014-02-19 Tom Tromey <tromey@redhat.com>
11072
11073 * target-delegates.c: Rebuild.
11074 * target.c (target_pid_to_str): Unconditionally delegate.
11075 (init_dummy_target): Don't initialize to_pid_to_str.
11076 (default_pid_to_str): Rename from dummy_pid_to_str.
11077 * target.h (struct target_ops) <to_pid_to_str>: Use
11078 TARGET_DEFAULT_FUNC.
11079
11080 2014-02-19 Tom Tromey <tromey@redhat.com>
11081
11082 * target-delegates.c: Rebuild.
11083 * target.c (target_find_new_threads): Unconditionally delegate.
11084 * target.h (struct target_ops) <to_find_new_threads>: Use
11085 TARGET_DEFAULT_RETURN.
11086
11087 2014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * target-delegates.c: Rebuild.
11090 * target.c (target_program_signals): Unconditionally delegate.
11091 * target.h (struct target_ops) <to_program_signals>: Use
11092 TARGET_DEFAULT_IGNORE.
11093
11094 2014-02-19 Tom Tromey <tromey@redhat.com>
11095
11096 * target-delegates.c: Rebuild.
11097 * target.c (target_pass_signals): Unconditionally delegate.
11098 * target.h (struct target_ops) <to_pass_signals>: Use
11099 TARGET_DEFAULT_IGNORE.
11100
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * target-delegates.c: Rebuild.
11104 * target.c (default_mourn_inferior): New function.
11105 (target_mourn_inferior): Unconditionally delegate.
11106 * target.h (struct target_ops) <to_mourn_inferior>: Use
11107 TARGET_DEFAULT_FUNC.
11108
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11110
11111 * target-delegates.c: Rebuild.
11112 * target.c (default_follow_fork): New function.
11113 (target_follow_fork): Unconditionally delegate.
11114 * target.h (struct target_ops) <to_follow_fork>: Use
11115 TARGET_DEFAULT_FUNC.
11116
11117 2014-02-19 Tom Tromey <tromey@redhat.com>
11118
11119 * target-delegates.c: Rebuild.
11120 * target.c (target_kill): Unconditionally delegate.
11121 * target.h (struct target_ops) <to_kill>: Use
11122 TARGET_DEFAULT_NORETURN.
11123
11124 2014-02-19 Tom Tromey <tromey@redhat.com>
11125
11126 * target-delegates.c: Rebuild.
11127 * target.c (target_masked_watch_num_registers): Unconditionally
11128 delegate.
11129 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11130 Use TARGET_DEFAULT_RETURN.
11131
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11133
11134 * target-delegates.c: Rebuild.
11135 * target.c (target_remove_mask_watchpoint): Unconditionally
11136 delegate.
11137 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11138 TARGET_DEFAULT_RETURN.
11139
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11141
11142 * target-delegates.c: Rebuild.
11143 * target.c (target_insert_mask_watchpoint): Unconditionally
11144 delegate.
11145 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11146 TARGET_DEFAULT_RETURN.
11147
11148 2014-02-19 Tom Tromey <tromey@redhat.com>
11149
11150 * target-delegates.c: Rebuild.
11151 * target.c (target_ranged_break_num_registers): Unconditionally
11152 delegate.
11153 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11154 Use TARGET_DEFAULT_RETURN.
11155
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target-delegates.c: Rebuild.
11159 * target.c (target_fetch_registers): Unconditionally delegate.
11160 * target.h (struct target_ops) <to_fetch_registers>: Use
11161 TARGET_DEFAULT_NORETURN.
11162
11163 2014-02-19 Tom Tromey <tromey@redhat.com>
11164
11165 * target-delegates.c: Rebuild.
11166 * target.c (update_current_target): Don't inherit or default
11167 to_stop.
11168 * target.h (struct target_ops) <to_stop>: Use
11169 TARGET_DEFAULT_IGNORE.
11170
11171 2014-02-19 Tom Tromey <tromey@redhat.com>
11172
11173 * target-delegates.c: Rebuild.
11174 * target.c (update_current_target): Don't inherit or default
11175 to_can_run_breakpoint_commands.
11176 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11177 Use TARGET_DEFAULT_RETURN.
11178
11179 2014-02-19 Tom Tromey <tromey@redhat.com>
11180
11181 * target-delegates.c: Rebuild.
11182 * target.c (update_current_target): Don't inherit or default
11183 to_supports_evaluation_of_breakpoint_conditions.
11184 * target.h (struct target_ops)
11185 <to_supports_evaluation_of_breakpoint_conditions>: Use
11186 TARGET_DEFAULT_RETURN.
11187
11188 2014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * target-delegates.c: Rebuild.
11191 * target.c (update_current_target): Don't inherit or default
11192 to_augmented_libraries_svr4_read.
11193 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11194 Use TARGET_DEFAULT_RETURN.
11195
11196 2014-02-19 Tom Tromey <tromey@redhat.com>
11197
11198 * target-delegates.c: Rebuild.
11199 * target.c (update_current_target): Don't inherit or default
11200 to_can_use_agent.
11201 * target.h (struct target_ops) <to_can_use_agent>: Use
11202 TARGET_DEFAULT_RETURN.
11203
11204 2014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target-delegates.c: Rebuild.
11207 * target.c (update_current_target): Don't inherit or default
11208 to_use_agent.
11209 * target.h (struct target_ops) <to_use_agent>: Use
11210 TARGET_DEFAULT_NORETURN.
11211
11212 2014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target-delegates.c: Rebuild.
11215 * target.c (update_current_target): Don't inherit or default
11216 to_traceframe_info.
11217 (return_null): Remove.
11218 * target.h (struct target_ops) <to_traceframe_info>: Use
11219 TARGET_DEFAULT_RETURN.
11220
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11222
11223 * target-delegates.c: Rebuild.
11224 * target.c (update_current_target): Don't inherit or default
11225 to_static_tracepoint_markers_by_strid.
11226 * target.h (struct target_ops)
11227 <to_static_tracepoint_markers_by_strid>: Use
11228 TARGET_DEFAULT_NORETURN.
11229
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * target-delegates.c: Rebuild.
11233 * target.c (update_current_target): Don't inherit or default
11234 to_static_tracepoint_marker_at.
11235 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11236 Use TARGET_DEFAULT_RETURN.
11237
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target-delegates.c: Rebuild.
11241 * target.c (update_current_target): Don't inherit or default
11242 to_set_permissions.
11243 * target.h (struct target_ops) <to_set_permissions>: Use
11244 TARGET_DEFAULT_IGNORE.
11245
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target-delegates.c: Rebuild.
11249 * target.c (update_current_target): Don't inherit or default
11250 to_get_tib_address.
11251 * target.h (struct target_ops) <to_get_tib_address>: Use
11252 TARGET_DEFAULT_NORETURN.
11253
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * target-delegates.c: Rebuild.
11257 * target.c (update_current_target): Don't inherit or default
11258 to_set_trace_notes.
11259 * target.h (struct target_ops) <to_set_trace_notes>: Use
11260 TARGET_DEFAULT_RETURN.
11261
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11263
11264 * target-delegates.c: Rebuild.
11265 * target.c (update_current_target): Don't initialize
11266 to_set_trace_buffer_size.
11267 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11268 TARGET_DEFAULT_IGNORE.
11269
11270 2014-02-19 Tom Tromey <tromey@redhat.com>
11271
11272 * target-delegates.c: Rebuild.
11273 * target.c (update_current_target): Don't inherit or default
11274 to_set_circular_trace_buffer.
11275 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11276 TARGET_DEFAULT_IGNORE.
11277
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11279
11280 * target-delegates.c: Rebuild.
11281 * target.c (update_current_target): Don't inherit or default
11282 to_set_disconnected_tracing.
11283 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11284 TARGET_DEFAULT_IGNORE.
11285
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target-delegates.c: Rebuild.
11289 * target.c (update_current_target): Don't inherit or default
11290 to_get_min_fast_tracepoint_insn_len.
11291 (return_minus_one): Remove.
11292 * target.h (struct target_ops)
11293 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11294
11295 2014-02-19 Tom Tromey <tromey@redhat.com>
11296
11297 * target-delegates.c: Rebuild.
11298 * target.c (update_current_target): Don't inherit or default
11299 to_get_raw_trace_data.
11300 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11301 TARGET_DEFAULT_NORETURN.
11302
11303 2014-02-19 Tom Tromey <tromey@redhat.com>
11304
11305 * target-delegates.c: Rebuild.
11306 * target.c (update_current_target): Don't inherit or default
11307 to_upload_trace_state_variables.
11308 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11309 Use TARGET_DEFAULT_RETURN.
11310
11311 2014-02-19 Tom Tromey <tromey@redhat.com>
11312
11313 * target-delegates.c: Rebuild.
11314 * target.c (update_current_target): Don't inherit or default
11315 to_upload_tracepoints.
11316 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11317 TARGET_DEFAULT_RETURN.
11318
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target-delegates.c: Rebuild.
11322 * target.c (update_current_target): Don't inherit or default
11323 to_save_trace_data.
11324 * target.h (struct target_ops) <to_save_trace_data>: Use
11325 TARGET_DEFAULT_NORETURN.
11326
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11328
11329 * target-delegates.c: Rebuild.
11330 * target.c (update_current_target): Don't inherit or default
11331 to_get_trace_state_variable_value.
11332 * target.h (struct target_ops)
11333 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11334
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 * target-delegates.c: Rebuild.
11338 * target.c (update_current_target): Don't inherit or default
11339 to_trace_find.
11340 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11341
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target-delegates.c: Rebuild.
11345 * target.c (update_current_target): Don't inherit or default
11346 to_trace_stop.
11347 * target.h (struct target_ops) <to_trace_stop>: Use
11348 TARGET_DEFAULT_NORETURN.
11349
11350 2014-02-19 Tom Tromey <tromey@redhat.com>
11351
11352 * target-delegates.c: Rebuild.
11353 * target.c (update_current_target): Don't inherit or default
11354 to_get_tracepoint_status.
11355 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11356 TARGET_DEFAULT_NORETURN.
11357
11358 2014-02-19 Tom Tromey <tromey@redhat.com>
11359
11360 * target-delegates.c: Rebuild.
11361 * target.c (update_current_target): Don't inherit or default
11362 to_get_trace_status.
11363 * target.h (struct target_ops) <to_get_trace_status>: Use
11364 TARGET_DEFAULT_RETURN.
11365
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11367
11368 * target-delegates.c: Rebuild.
11369 * target.c (update_current_target): Don't inherit or default
11370 to_trace_start.
11371 * target.h (struct target_ops) <to_trace_start>: Use
11372 TARGET_DEFAULT_NORETURN.
11373
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * target-delegates.c: Rebuild.
11377 * target.c (update_current_target): Don't inherit or default
11378 to_trace_set_readonly_regions.
11379 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11380 Use TARGET_DEFAULT_NORETURN.
11381
11382 2014-02-19 Tom Tromey <tromey@redhat.com>
11383
11384 * target-delegates.c: Rebuild.
11385 * target.c (update_current_target): Don't inherit or default
11386 to_disable_tracepoint.
11387 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11388 TARGET_DEFAULT_NORETURN.
11389
11390 2014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target-delegates.c: Rebuild.
11393 * target.c (update_current_target): Don't inherit or default
11394 to_enable_tracepoint.
11395 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11396 TARGET_DEFAULT_NORETURN.
11397
11398 2014-02-19 Tom Tromey <tromey@redhat.com>
11399
11400 * target-delegates.c: Rebuild.
11401 * target.c (update_current_target): Don't inherit or default
11402 to_download_trace_state_variable.
11403 * target.h (struct target_ops) <to_download_trace_state_variable>:
11404 Use TARGET_DEFAULT_NORETURN.
11405
11406 2014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * target-delegates.c: Rebuild.
11409 * target.c (update_current_target): Don't inherit or default
11410 to_can_download_tracepoint.
11411 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11412 TARGET_DEFAULT_RETURN.
11413
11414 2014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * target-delegates.c: Rebuild.
11417 * target.c (update_current_target): Don't inherit or default
11418 to_download_tracepoint.
11419 * target.h (struct target_ops) <to_download_tracepoint>: Use
11420 TARGET_DEFAULT_NORETURN.
11421
11422 2014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target-delegates.c: Rebuild.
11425 * target.c (update_current_target): Don't inherit or default
11426 to_trace_init.
11427 * target.h (struct target_ops) <to_trace_init>: Use
11428 TARGET_DEFAULT_RETURN.
11429
11430 2014-02-19 Tom Tromey <tromey@redhat.com>
11431
11432 * target-delegates.c: Rebuild.
11433 * target.c (update_current_target): Don't inherit or default
11434 to_supports_string_tracing.
11435 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11436 TARGET_DEFAULT_RETURN.
11437
11438 2014-02-19 Tom Tromey <tromey@redhat.com>
11439
11440 * target-delegates.c: Rebuild.
11441 * target.c (update_current_target): Don't inherit or default
11442 to_supports_enable_disable_tracepoint.
11443 * target.h (struct target_ops)
11444 <to_supports_enable_disable_tracepoint>: Use
11445 TARGET_DEFAULT_RETURN.
11446
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11448
11449 * target-delegates.c: Rebuild.
11450 * target.c (update_current_target): Don't inherit or default
11451 to_supports_multi_process.
11452 * target.h (struct target_ops) <to_supports_multi_process>: Use
11453 TARGET_DEFAULT_RETURN.
11454
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11456
11457 * target-delegates.c: Rebuild.
11458 * target.c (update_current_target): Don't inherit or default
11459 to_get_ada_task_ptid.
11460 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11461 TARGET_DEFAULT_FUNC.
11462
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11467 to_thread_architecture.
11468 * target.h (struct target_ops) <to_thread_architecture>: Use
11469 TARGET_DEFAULT_FUNC.
11470
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11472
11473 * target-delegates.c: Rebuild.
11474 * target.c (update_current_target): Don't inherit or default
11475 to_execution_direction.
11476 * target.h (struct target_ops) <to_execution_direction>: Use
11477 TARGET_DEFAULT_FUNC.
11478
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11480
11481 * target-delegates.c: Rebuild.
11482 * target.c (update_current_target): Don't inherit or default
11483 to_can_execute_reverse.
11484 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11485 TARGET_DEFAULT_RETURN.
11486 (target_can_execute_reverse): Unconditionally delegate.
11487
11488 2014-02-19 Tom Tromey <tromey@redhat.com>
11489
11490 * target-delegates.c: Rebuild.
11491 * target.c (update_current_target): Don't inherit or default
11492 to_goto_bookmark.
11493 (dummy_goto_bookmark): Remove.
11494 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11495 * target.h (struct target_ops) <to_goto_bookmark>: Use
11496 TARGET_DEFAULT_NORETURN.
11497
11498 2014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * target-delegates.c: Rebuild.
11501 * target.c (update_current_target): Don't inherit or default
11502 to_get_bookmark.
11503 (dummy_get_bookmark): Remove.
11504 (init_dummy_target): Don't inherit or default to_get_bookmark.
11505 * target.h (struct target_ops) <to_get_bookmark>: Use
11506 TARGET_DEFAULT_NORETURN
11507
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target-delegates.c: Rebuild.
11511 * target.c (update_current_target): Don't inherit or default
11512 to_make_corefile_notes.
11513 (init_dummy_target): Don't initialize to_make_corefile_notes.
11514 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11515 TARGET_DEFAULT_FUNC.
11516
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target-delegates.c: Rebuild.
11520 * target.c (update_current_target): Don't inherit or default
11521 to_find_memory_regions.
11522 (init_dummy_target): Don't initialize to_find_memory_regions.
11523 * target.h (struct target_ops) <to_find_memory_regions>: Use
11524 TARGET_DEFAULT_FUNC.
11525
11526 2014-02-19 Tom Tromey <tromey@redhat.com>
11527
11528 * target-delegates.c: Rebuild.
11529 * target.c (update_current_target): Don't inherit or default
11530 to_log_command.
11531 * target.h (struct target_ops) <to_log_command>: Use
11532 TARGET_DEFAULT_IGNORE.
11533 (target_log_command): Unconditionally delegate.
11534
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11536
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_pid_to_exec_file.
11540 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11541 TARGET_DEFAULT_RETURN.
11542
11543 2014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't inherit or default
11547 to_thread_name.
11548 (target_thread_name): Unconditionally delegate.
11549 * target.h (struct target_ops) <to_thread_name>: Use
11550 TARGET_DEFAULT_RETURN.
11551
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target-delegates.c: Rebuild.
11555 * target.c (update_current_target): Don't inherit or default
11556 to_extra_thread_info.
11557 * target.h (struct target_ops) <to_extra_thread_info>: Use
11558 TARGET_DEFAULT_RETURN.
11559
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11561
11562 * target-delegates.c: Rebuild.
11563 * target.c (update_current_target): Don't inherit or default
11564 to_has_exited.
11565 * target.h (struct target_ops) <to_has_exited>: Use
11566 TARGET_DEFAULT_RETURN..
11567
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target-delegates.c: Rebuild.
11571 * target.c (update_current_target): Don't inherit or default
11572 to_set_syscall_catchpoint.
11573 (return_one): Remove.
11574 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11575 TARGET_DEFAULT_RETURN.
11576
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11578
11579 * target-delegates.c: Rebuild.
11580 * target.c (update_current_target): Don't inherit or default
11581 to_insert_exec_catchpoint.
11582 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11583 TARGET_DEFAULT_RETURN.
11584
11585 2014-01-08 Tom Tromey <tromey@redhat.com>
11586
11587 * target-delegates.c: Rebuild.
11588 * target.c (update_current_target): Don't inherit or default
11589 to_insert_exec_catchpoint.
11590 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11591 TARGET_DEFAULT_RETURN.
11592
11593 2014-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_remove_vfork_catchpoint.
11598 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11599 TARGET_DEFAULT_RETURN.
11600
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11602
11603 * target-delegates.c: Rebuild.
11604 * target.c (update_current_target): Don't inherit or default
11605 to_insert_vfork_catchpoint.
11606 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11607 TARGET_DEFAULT_RETURN.
11608
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11610
11611 * target-delegates.c: Rebuild.
11612 * target.c (update_current_target): Don't inherit or default
11613 to_remove_fork_catchpoint.
11614 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11615 TARGET_DEFAULT_RETURN.
11616
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * target-delegates.c: Rebuild.
11620 * target.c (update_current_target): Don't inherit or default
11621 to_insert_fork_catchpoint.
11622 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11623 TARGET_DEFAULT_RETURN.
11624
11625 2014-02-19 Tom Tromey <tromey@redhat.com>
11626
11627 * target-delegates.c: Rebuild.
11628 * target.c (update_current_target): Don't inherit or default
11629 to_post_startup_inferior.
11630 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11631 TARGET_DEFAULT_IGNORE.
11632
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target-delegates.c: Rebuild.
11636 * target.c (update_current_target): Don't inherit or default
11637 to_load.
11638 * target.h (struct target_ops) <to_load>: Use
11639 TARGET_DEFAULT_NORETURN.
11640
11641 2014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target-delegates.c: Rebuild.
11644 * target.c (update_current_target): Don't inherit or default
11645 to_terminal_info.
11646 * target.h (struct target_ops) <to_terminal_info>: Use
11647 TARGET_DEFAULT_FUNC.
11648
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11650
11651 * target-delegates.c: Rebuild.
11652 * target.c (update_current_target): Don't inherit or default
11653 to_terminal_save_ours.
11654 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11655 TARGET_DEFAULT_IGNORE.
11656
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target-delegates.c: Rebuild.
11660 * target.c (update_current_target): Don't inherit or default
11661 to_terminal_ours.
11662 * target.h (struct target_ops) <to_terminal_ours>: Use
11663 TARGET_DEFAULT_IGNORE.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11669 to_terminal_ours_for_output.
11670 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11671 TARGET_DEFAULT_IGNORE.
11672
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_terminal_inferior.
11678 * target.h (struct target_ops) <to_terminal_inferior>: Use
11679 TARGET_DEFAULT_IGNORE.
11680
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11682
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11685 to_terminal_init.
11686 * target.h (struct target_ops) <to_terminal_init>: Use
11687 TARGET_DEFAULT_IGNORE.
11688
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_can_accel_watchpoint_condition.
11694 * target.h (struct target_ops)
11695 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11696
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11698
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_region_ok_for_hw_watchpoint.
11702 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11703 Use TARGET_DEFAULT_FUNC.
11704
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11706
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_watchpoint_addr_within_range.
11710 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11711 Use TARGET_DEFAULT_FUNC.
11712
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_remove_watchpoint.
11718 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11719 TARGET_DEFAULT_NORETURN.
11720
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11722
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_insert_watchpoint.
11726 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11727 TARGET_DEFAULT_RETURN.
11728
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11730
11731 * target-delegates.c: Rebuild.
11732 * target.c (update_current_target): Don't inherit or default
11733 to_remove_hw_breakpoint.
11734 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11735 TARGET_DEFAULT_RETURN.
11736
11737 2014-02-19 Tom Tromey <tromey@redhat.com>
11738
11739 * target-delegates.c: Rebuild.
11740 * target.c (update_current_target): Don't inherit or default
11741 to_insert_hw_breakpoint.
11742 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11743 TARGET_DEFAULT_RETURN.
11744
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11746
11747 * target-delegates.c: Rebuild.
11748 * target.c (update_current_target): Don't inherit or default
11749 to_can_use_hw_breakpoint.
11750 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11751 TARGET_DEFAULT_RETURN.
11752
11753 2014-02-19 Tom Tromey <tromey@redhat.com>
11754
11755 * target-delegates.c: Rebuild.
11756 * target.c (update_current_target): Don't inherit or default
11757 to_files_info.
11758 * target.h (struct target_ops) <to_files_info>: Use
11759 TARGET_DEFAULT_IGNORE.
11760
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * target-delegates.c: Rebuild.
11764 * target.c (update_current_target): Don't inherit or default
11765 to_store.
11766 * target.h (struct target_ops) <to_store>: Use
11767 TARGET_DEFAULT_NORETURN.
11768
11769 2014-02-19 Tom Tromey <tromey@redhat.com>
11770
11771 * target-delegates.c: Rebuild.
11772 * target.c (update_current_target): Don't inherit or default
11773 to_post_attach.
11774 * target.h (struct target_ops) <to_post_attach>: Use
11775 TARGET_DEFAULT_IGNORE.
11776
11777 2014-02-19 Tom Tromey <tromey@redhat.com>
11778
11779 * target-delegates.c: Rebuild.
11780 * target.c (update_current_target): Don't inherit or default
11781 to_rcmd.
11782 (default_rcmd): New function.
11783 (do_monitor_command): Unconditionally delegate.
11784 * target.h (struct target_ops) <to_rmcd>: Use
11785 TARGET_DEFAULT_FUNC.
11786
11787 2014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target-delegates.c: Rebuild.
11790 * target.c (init_dummy_target): Don't initialize to_attach.
11791 (target_attach): Unconditionally delegate.
11792 * target.h (struct target_ops) <to_attach>: Use
11793 TARGET_DEFAULT_FUNC.
11794
11795 2014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 * target-delegates.c: Rebuild.
11798 * target.c (target_detach): Unconditionally delegate.
11799 (init_dummy_target): Don't initialize to_detach.
11800 * target.h (struct target_ops) <to_detach>: Use
11801 TARGET_DEFAULT_IGNORE.
11802
11803 2014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11806 Add argument.
11807 (target_augmented_libraries_svr4_read): Add argument.
11808 * target.c (update_current_target): Update.
11809 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11810 argument.
11811
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11813
11814 * target.h (struct target_ops) <to_call_history_range>: Add
11815 argument.
11816 * target.c (target_call_history_range): Add argument.
11817 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11818 argument.
11819 (record_btrace_call_history_from): Update.
11820
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target.h (struct target_ops) <to_call_history_from>: Add
11824 argument.
11825 * target.c (target_call_history_from): Add argument.
11826 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11827 argument.
11828
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11830
11831 * target.h (struct target_ops) <to_call_history>: Add argument.
11832 * target.c (target_call_history): Add argument.
11833 * record-btrace.c (record_btrace_call_history): Add 'self'
11834 argument.
11835
11836 2014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * target.h (struct target_ops) <to_insn_history_range>: Add
11839 argument.
11840 * target.c (target_insn_history_range): Add argument.
11841 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11842 argument.
11843 (record_btrace_insn_history_from): Update.
11844
11845 2014-02-19 Tom Tromey <tromey@redhat.com>
11846
11847 * target.h (struct target_ops) <to_insn_history_from>: Add
11848 argument.
11849 * target.c (target_insn_history_from): Add argument.
11850 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11851 argument.
11852
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * target.h (struct target_ops) <to_insn_history>: Add argument.
11856 * target.c (target_insn_history): Add argument.
11857 * record-btrace.c (record_btrace_insn_history): Add 'self'
11858 argument.
11859
11860 2014-02-19 Tom Tromey <tromey@redhat.com>
11861
11862 * target.h (struct target_ops) <to_goto_record>: Add argument.
11863 * target.c (target_goto_record): Add argument.
11864 * record-full.c (record_full_goto): Add 'self' argument.
11865 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11866
11867 2014-02-19 Tom Tromey <tromey@redhat.com>
11868
11869 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11870 * target.c (target_goto_record_end): Add argument.
11871 * record-full.c (record_full_goto_end): Add 'self' argument.
11872 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11873
11874 2014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target.h (struct target_ops) <to_goto_record_begin>: Add
11877 argument.
11878 * target.c (target_goto_record_begin): Add argument.
11879 * record-full.c (record_full_goto_begin): Add 'self' argument.
11880 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11881 argument.
11882
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11884
11885 * target.h (struct target_ops) <to_record_is_replaying>: Add
11886 argument.
11887 * target.c (target_record_is_replaying): Add argument.
11888 * record-full.c (record_full_is_replaying): Add 'self' argument.
11889 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11890 argument.
11891 (record_btrace_xfer_partial, record_btrace_store_registers)
11892 (record_btrace_prepare_to_store, record_btrace_resume)
11893 (record_btrace_wait, record_btrace_decr_pc_after_break)
11894 (record_btrace_find_new_threads, record_btrace_thread_alive):
11895 Update.
11896
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11898
11899 * target.h (struct target_ops) <to_delete_record>: Add argument.
11900 * target.c (target_delete_record): Add argument.
11901 * record-full.c (record_full_delete): Add 'self' argument.
11902
11903 2014-02-19 Tom Tromey <tromey@redhat.com>
11904
11905 * target.h (struct target_ops) <to_save_record>: Add argument.
11906 * target.c (target_save_record): Add argument.
11907 * record-full.c (record_full_save): Add 'self' argument.
11908 (record_full_save): Add 'self' argument.
11909
11910 2014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * target.h (struct target_ops) <to_info_record>: Add argument.
11913 * target.c (target_info_record): Add argument.
11914 * record.c (info_record_command): Add argument.
11915 * record-full.c (record_full_info): Add 'self' argument.
11916 * record-btrace.c (record_btrace_info): Add 'self' argument.
11917
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11919
11920 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11921 * target.c (target_stop_recording): Add argument.
11922 * record.c (record_stop): Add argument.
11923 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11924 argument.
11925
11926 2014-02-19 Tom Tromey <tromey@redhat.com>
11927
11928 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11929 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11930 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11931 argument.
11932 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11933 (_initialize_amd64_linux_nat): Use it.
11934 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11935 (_initialize_i386_linux_nat): Use it.
11936
11937 2014-02-19 Tom Tromey <tromey@redhat.com>
11938
11939 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11940 * target.c (target_teardown_btrace): Add argument.
11941 * remote.c (remote_teardown_btrace): Add 'self' argument.
11942 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11943 argument.
11944 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11945 argument.
11946
11947 2014-02-19 Tom Tromey <tromey@redhat.com>
11948
11949 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11950 * target.c (target_disable_btrace): Add argument.
11951 * remote.c (remote_disable_btrace): Add 'self' argument.
11952 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11953 argument.
11954 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11955 argument.
11956
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11958
11959 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11960 * target.c (target_enable_btrace): Add argument.
11961 * remote.c (remote_enable_btrace): Add 'self' argument.
11962 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11963 argument.
11964 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11965 argument.
11966
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11970 (target_can_use_agent): Add argument.
11971 * target.c (update_current_target): Update.
11972 * remote.c (remote_can_use_agent): Add 'self' argument.
11973 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11974
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target.h (struct target_ops) <to_use_agent>: Add argument.
11978 (target_use_agent): Add argument.
11979 * target.c (update_current_target): Update.
11980 * remote.c (remote_use_agent): Add 'self' argument.
11981 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11982
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11986 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11987 (target_traceframe_info): Add argument.
11988 * target.c (update_current_target): Update.
11989 * remote.c (remote_traceframe_info): Add 'self' argument.
11990 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11991
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (target_static_tracepoint_markers_by_strid): Add
11995 argument.
11996 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11997 'self' argument.
11998 * target.c (update_current_target): Update.
11999 * remote.c (struct target_ops)
12000 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12001 * linux-nat.c (struct target_ops)
12002 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12003
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12007 Add argument.
12008 (target_static_tracepoint_marker_at): Add argument.
12009 * target.c (update_current_target): Update.
12010 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12011 argument.
12012
12013 2014-02-19 Tom Tromey <tromey@redhat.com>
12014
12015 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12016 (target_set_permissions): Add argument.
12017 * target.c (update_current_target): Update.
12018 * remote.c (remote_set_permissions): Add 'self' argument.
12019 (remote_start_remote): Update.
12020
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12024 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12025 (target_get_tib_address): Add argument.
12026 * target.c (update_current_target): Update.
12027 * remote.c (remote_get_tib_address): Add 'self' argument.
12028
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12030
12031 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12032 (target_set_trace_notes): Add argument.
12033 * target.c (update_current_target): Update.
12034 * remote.c (remote_set_trace_notes): Add 'self' argument.
12035
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12037
12038 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12039 argument.
12040 (target_set_trace_buffer_size): Add argument.
12041 * target.c (update_current_target): Update.
12042 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12043
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12047 argument.
12048 (target_set_circular_trace_buffer): Add argument.
12049 * target.c (update_current_target): Update.
12050 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12051 argument.
12052
12053 2014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12056 argument.
12057 (target_set_disconnected_tracing): Add argument.
12058 * target.c (update_current_target): Update.
12059 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12060
12061 2014-02-19 Tom Tromey <tromey@redhat.com>
12062
12063 * target.h (struct target_ops)
12064 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12065 (target_get_min_fast_tracepoint_insn_len): Add argument.
12066 * target.c (update_current_target): Update.
12067 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12068 argument.
12069
12070 2014-02-19 Tom Tromey <tromey@redhat.com>
12071
12072 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12073 argument.
12074 (target_get_raw_trace_data): Add argument.
12075 * target.c (update_current_target): Update.
12076 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12077
12078 2014-02-19 Tom Tromey <tromey@redhat.com>
12079
12080 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12081 Add argument.
12082 (target_upload_trace_state_variables): Add argument.
12083 * target.c (update_current_target): Update.
12084 * remote.c (remote_upload_trace_state_variables): Add 'self'
12085 argument.
12086 (remote_start_remote): Update.
12087
12088 2014-02-19 Tom Tromey <tromey@redhat.com>
12089
12090 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12091 argument.
12092 (target_upload_tracepoints): Add argument.
12093 * target.c (update_current_target): Update.
12094 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12095 (remote_start_remote): Update.
12096
12097 2014-02-19 Tom Tromey <tromey@redhat.com>
12098
12099 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12100 (target_save_trace_data): Add argument.
12101 * target.c (update_current_target): Update.
12102 * remote.c (remote_save_trace_data): Add 'self' argument.
12103
12104 2014-02-19 Tom Tromey <tromey@redhat.com>
12105
12106 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12107 argument.
12108 * target.h (struct target_ops)
12109 <to_get_trace_state_variable_value>: Add argument.
12110 (target_get_trace_state_variable_value): Add argument.
12111 * target.c (update_current_target): Update.
12112 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12113 argument.
12114 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12115
12116 2014-02-19 Tom Tromey <tromey@redhat.com>
12117
12118 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12119 * target.h (struct target_ops) <to_trace_find>: Add argument.
12120 (target_trace_find): Add argument.
12121 * target.c (update_current_target): Update.
12122 * remote.c (remote_trace_find): Add 'self' argument.
12123 * ctf.c (ctf_trace_find): Add 'self' argument.
12124
12125 2014-02-19 Tom Tromey <tromey@redhat.com>
12126
12127 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12128 (target_trace_stop): Add argument.
12129 * target.c (update_current_target): Update.
12130 * remote.c (remote_trace_stop): Add 'self' argument.
12131
12132 2014-02-19 Tom Tromey <tromey@redhat.com>
12133
12134 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12135 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12136 argument.
12137 (target_get_tracepoint_status): Add argument.
12138 * target.c (update_current_target): Update.
12139 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12140
12141 2014-02-19 Tom Tromey <tromey@redhat.com>
12142
12143 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12144 * target.h (struct target_ops) <to_get_trace_status>: Add
12145 argument.
12146 (target_get_trace_status): Add argument.
12147 * target.c (update_current_target): Update.
12148 * remote.c (remote_get_trace_status): Add 'self' argument.
12149 (remote_start_remote, remote_can_download_tracepoint): Update.
12150 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12151
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target.h (struct target_ops) <to_trace_start>: Add argument.
12155 (target_trace_start): Add argument.
12156 * target.c (update_current_target): Update.
12157 * remote.c (remote_trace_start): Add 'self' argument.
12158
12159 2014-02-19 Tom Tromey <tromey@redhat.com>
12160
12161 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12162 Add argument.
12163 (target_trace_set_readonly_regions): Add argument.
12164 * target.c (update_current_target): Update.
12165 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12166 argument.
12167
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12169
12170 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12171 argument.
12172 (target_disable_tracepoint): Add argument.
12173 * target.c (update_current_target): Update.
12174 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12175
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12177
12178 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12179 argument.
12180 (target_enable_tracepoint): Add argument.
12181 * target.c (update_current_target): Update.
12182 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12183
12184 2014-02-19 Tom Tromey <tromey@redhat.com>
12185
12186 * target.h (struct target_ops) <to_download_trace_state_variable>:
12187 Add argument.
12188 (target_download_trace_state_variable): Add argument.
12189 * target.c (update_current_target): Update.
12190 * remote.c (remote_download_trace_state_variable): Add 'self'
12191 argument.
12192
12193 2014-02-19 Tom Tromey <tromey@redhat.com>
12194
12195 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12196 argument.
12197 (target_can_download_tracepoint): Add argument.
12198 * target.c (update_current_target): Update.
12199 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12200
12201 2014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * target.h (struct target_ops) <to_download_tracepoint>: Add
12204 argument.
12205 (target_download_tracepoint): Add argument.
12206 * target.c (update_current_target): Update.
12207 * remote.c (remote_download_tracepoint): Add 'self' argument.
12208
12209 2014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target.h (struct target_ops) <to_trace_init>: Add argument.
12212 (target_trace_init): Add argument.
12213 * target.c (update_current_target): Update.
12214 * remote.c (remote_trace_init): Add 'self' argument.
12215
12216 2014-02-19 Tom Tromey <tromey@redhat.com>
12217
12218 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12219 * target.c (target_fileio_readlink): Add argument.
12220 * remote.c (remote_hostio_readlink): Add 'self' argument.
12221 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12222
12223 2014-02-19 Tom Tromey <tromey@redhat.com>
12224
12225 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12226 * target.c (target_fileio_unlink): Add argument.
12227 * remote.c (remote_hostio_unlink): Add 'self' argument.
12228 (remote_file_delete): Update.
12229 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12230
12231 2014-02-19 Tom Tromey <tromey@redhat.com>
12232
12233 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12234 * target.c (target_fileio_close): Add argument.
12235 * remote.c (remote_hostio_close): Add 'self' argument.
12236 (remote_hostio_close_cleanup): Update.
12237 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12238 Update.
12239 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12240
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12244 * target.c (target_fileio_pread): Add argument.
12245 * remote.c (remote_hostio_pread): Add 'self' argument.
12246 (remote_bfd_iovec_pread, remote_file_get): Update.
12247 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12248
12249 2014-02-19 Tom Tromey <tromey@redhat.com>
12250
12251 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12252 * target.c (target_fileio_pwrite): Add argument.
12253 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12254 (remote_file_put): Update.
12255 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12256
12257 2014-02-19 Tom Tromey <tromey@redhat.com>
12258
12259 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12260 * target.c (target_fileio_open): Add argument.
12261 * remote.c (remote_hostio_open): Add 'self' argument.
12262 (remote_bfd_iovec_open): Add 'self' argument.
12263 (remote_file_put): Add 'self' argument.
12264 (remote_file_get): Add 'self' argument.
12265 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12266
12267 2014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12270 Add argument.
12271 (target_can_run_breakpoint_commands): Add argument.
12272 * target.c (update_current_target): Update.
12273 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12274 argument.
12275 (remote_insert_breakpoint): Add 'self' argument.
12276 (remote_insert_hw_breakpoint): Add 'self' argument.
12277 (remote_can_run_breakpoint_commands): Add 'self' argument.
12278
12279 2014-02-19 Tom Tromey <tromey@redhat.com>
12280
12281 * target.h (struct target_ops)
12282 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12283 (target_supports_evaluation_of_breakpoint_conditions): Add
12284 argument.
12285 * target.c (update_current_target): Update.
12286 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12287 argument.
12288 (remote_insert_breakpoint): Add 'self' argument.
12289 (remote_insert_hw_breakpoint): Add 'self' argument.
12290 (remote_supports_cond_breakpoints): Add 'self' argument.
12291
12292 2014-02-19 Tom Tromey <tromey@redhat.com>
12293
12294 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12295 argument.
12296 (target_supports_string_tracing): Add argument.
12297 * target.c (update_current_target): Update.
12298 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12299
12300 2014-02-19 Tom Tromey <tromey@redhat.com>
12301
12302 * target.h (struct target_ops)
12303 <to_supports_disable_randomization>: Add argument.
12304 * target.c (find_default_supports_disable_randomization): Add
12305 argument.
12306 (target_supports_disable_randomization): Add argument.
12307 (find_default_supports_disable_randomization): Add 'self'
12308 argument.
12309 * remote.c (extended_remote_supports_disable_randomization): Add
12310 'self' argument.
12311 (remote_supports_disable_randomization): Add 'self' argument.
12312 (extended_remote_create_inferior): Update.
12313 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12314 'self' argument.
12315
12316 2014-02-19 Tom Tromey <tromey@redhat.com>
12317
12318 * target.h (struct target_ops)
12319 <to_supports_enable_disable_tracepoint>: Add argument.
12320 (target_supports_enable_disable_tracepoint): Add argument.
12321 * target.c (update_current_target): Update.
12322 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12323 argument.
12324
12325 2014-02-19 Tom Tromey <tromey@redhat.com>
12326
12327 * target.h (struct target_ops) <to_supports_multi_process>: Add
12328 argument.
12329 (target_supports_multi_process): Add argument.
12330 * target.c (update_current_target): Update.
12331 * remote.c (remote_supports_multi_process): Add 'self' argument.
12332 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12333 argument.
12334 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12335 argument.
12336
12337 2014-02-19 Tom Tromey <tromey@redhat.com>
12338
12339 * target.h (struct target_ops) <to_execution_direction>: Add
12340 argument.
12341 (target_execution_direction): Add argument.
12342 * target.c (default_execution_direction): Add 'self' argument.
12343 * record-full.c (record_full_execution_direction): Add 'self'
12344 argument.
12345
12346 2014-02-19 Tom Tromey <tromey@redhat.com>
12347
12348 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12349 argument.
12350 (target_can_execute_reverse): Add argument.
12351 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12352 * record-full.c (record_full_can_execute_reverse): Add 'self'
12353 argument.
12354 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12355 argument.
12356
12357 2014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12360 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12361 argument.
12362 (target_get_ada_task_ptid): Add argument.
12363 * target.c (update_current_target): Update.
12364 (default_get_ada_task_ptid): Add 'self' argument.
12365 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12366 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12367 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12368 argument.
12369 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12370 argument.
12371 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12372 argument.
12373 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12374 argument.
12375 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12376 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12377 argument.
12378
12379 2014-02-19 Tom Tromey <tromey@redhat.com>
12380
12381 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12382 (target_goto_bookmark): Add argument.
12383 * target.c (dummy_goto_bookmark): Add 'self' argument.
12384 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12385
12386 2014-02-19 Tom Tromey <tromey@redhat.com>
12387
12388 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12389 (target_get_bookmark): Add argument.
12390 * target.c (dummy_get_bookmark): Add 'self' argument.
12391 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12392
12393 2014-02-19 Tom Tromey <tromey@redhat.com>
12394
12395 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12396 argument.
12397 (target_make_corefile_notes): Add argument.
12398 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12399 * procfs.c (procfs_make_note_section): Add 'self' argument.
12400 (procfs_make_note_section): Add 'self' argument.
12401 (procfs_make_note_section): Add 'self' argument.
12402 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12403 argument.
12404 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12405 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12406 * exec.c (exec_make_note_section): Add 'self' argument.
12407 (exec_make_note_section): Add 'self' argument.
12408
12409 2014-02-19 Tom Tromey <tromey@redhat.com>
12410
12411 * target.h (struct target_ops) <to_find_memory_regions>: Add
12412 argument.
12413 (target_find_memory_regions): Add argument.
12414 * target.c (dummy_find_memory_regions): Add 'self' argument.
12415 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12416 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12417 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12418 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12419 * exec. (exec_do_find_memory_regions): New global.
12420 (exec_set_find_memory_regions): Rewrite.
12421 (exec_find_memory_regions): New function.
12422 (init_exec_ops): Use exec_find_memory_regions.
12423
12424 2014-02-19 Tom Tromey <tromey@redhat.com>
12425
12426 * target.h (struct target_ops) <to_supports_non_stop>: Add
12427 argument.
12428 * target.c (find_default_supports_non_stop): Add argument.
12429 (target_supports_non_stop): Add argument.
12430 (find_default_supports_non_stop): Add 'self' argument.
12431 * remote.c (remote_supports_non_stop): Add 'self' argument.
12432 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12433
12434 2014-02-19 Tom Tromey <tromey@redhat.com>
12435
12436 * target.h (struct target_ops) <to_log_command>: Add argument.
12437 (target_log_command): Add argument.
12438 * serial.h (serial_log_command): Add 'self' argument.
12439 * serial.c (serial_log_command): Add 'self' argument.
12440
12441 2014-02-19 Tom Tromey <tromey@redhat.com>
12442
12443 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12444 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12445 argument.
12446 (target_pid_to_exec_file): Add argument.
12447 * target.c (debug_to_pid_to_exec_file): Add argument.
12448 (update_current_target): Update.
12449 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12450 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12451 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12452 (linux_handle_extended_wait): Update.
12453 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12454 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12455 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12456 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12457
12458 2014-02-19 Tom Tromey <tromey@redhat.com>
12459
12460 * target.h (struct target_ops) <to_rcmd>: Add argument.
12461 (target_rcmd): Add argument.
12462 * target.c (debug_to_rcmd): Add argument.
12463 (update_current_target, do_monitor_command): Update.
12464 * remote.c (remote_rcmd): Add 'self' argument.
12465 * monitor.c (monitor_rcmd): Add 'self' argument.
12466
12467 2014-02-19 Tom Tromey <tromey@redhat.com>
12468
12469 * windows-nat.c (windows_stop): Add 'self' argument.
12470 * target.h (struct target_ops) <to_stop>: Add argument.
12471 * target.c (target_stop): Add argument.
12472 (debug_to_stop): Add argument.
12473 (update_current_target): Update.
12474 * remote.c (remote_stop): Add 'self' argument.
12475 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12476 (gdbsim_cntrl_c): Update.
12477 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12478 * procfs.c (procfs_stop): Add 'self' argument.
12479 * nto-procfs.c (procfs_stop): Add 'self' argument.
12480 * monitor.c (monitor_stop): Add 'self' argument.
12481 (monitor_open): Update.
12482 * linux-nat.c (linux_nat_stop): Add argument.
12483 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12484 * gnu-nat.c (gnu_stop): Add 'self' argument.
12485 * darwin-nat.c (darwin_stop): Add 'self' argument.
12486
12487 2014-02-19 Tom Tromey <tromey@redhat.com>
12488
12489 * target.h (struct target_ops) <to_thread_name>: Add argument.
12490 * target.c (target_thread_name): Add argument.
12491 (update_current_target): Update.
12492 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12493
12494 2014-02-19 Tom Tromey <tromey@redhat.com>
12495
12496 * target.h (struct target_ops) <to_extra_thread_info>: Add
12497 argument.
12498 (target_extra_thread_info): Add argument.
12499 * target.c (update_current_target): Update.
12500 * remote.c (remote_threads_extra_info): Add 'self' argument.
12501 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12502 argument.
12503 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12504 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12505 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12506 argument.
12507 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12508 argument.
12509 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12510 argument.
12511 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12512 argument.
12513
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target.h (struct target_ops) <to_program_signals>: Add argument.
12517 * target.c (target_program_signals): Add argument.
12518 * remote.c (remote_program_signals): Add 'self' argument.
12519
12520 2014-02-19 Tom Tromey <tromey@redhat.com>
12521
12522 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12523 * target.c (target_pass_signals): Add argument.
12524 * remote.c (remote_pass_signals): Add 'self' argument.
12525 (remote_start_remote): Update.
12526 * procfs.c (procfs_pass_signals): Add 'self' argument.
12527 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12528 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12529 (linux_nat_create_inferior, linux_nat_attach): Update.
12530
12531 2014-02-19 Tom Tromey <tromey@redhat.com>
12532
12533 * windows-nat.c (windows_can_run): Add 'self' argument.
12534 * target.h (struct target_ops) <to_can_run>: Add argument.
12535 (target_can_run): Add argument.
12536 * target.c (debug_to_can_run): Add argument.
12537 (update_current_target): Update.
12538 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12539 * inf-child.c (inf_child_can_run): Add 'self' argument.
12540 * go32-nat.c (go32_can_run): Add 'self' argument.
12541
12542 2014-02-19 Tom Tromey <tromey@redhat.com>
12543
12544 * target.h (struct target_ops) <to_has_exited>: Add argument.
12545 (target_has_exited): Add argument.
12546 * target.c (debug_to_has_exited): Add argument.
12547 (update_current_target): Update.
12548
12549 2014-02-19 Tom Tromey <tromey@redhat.com>
12550
12551 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12552 argument.
12553 (target_set_syscall_catchpoint): Add argument.
12554 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12555 argument.
12556 * target.c (update_current_target): Update.
12557
12558 2014-02-19 Tom Tromey <tromey@redhat.com>
12559
12560 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12561 argument.
12562 (target_remove_exec_catchpoint): Add argument.
12563 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12564 (update_current_target): Update.
12565 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12566 argument.
12567
12568 2014-02-19 Tom Tromey <tromey@redhat.com>
12569
12570 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12571 argument.
12572 (target_insert_exec_catchpoint): Add argument.
12573 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12574 (update_current_target): Update.
12575 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12576 argument.
12577
12578 2014-02-19 Tom Tromey <tromey@redhat.com>
12579
12580 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12581 argument.
12582 (target_remove_vfork_catchpoint): Add argument.
12583 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12584 (update_current_target): Update.
12585 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12586 argument.
12587
12588 2014-02-19 Tom Tromey <tromey@redhat.com>
12589
12590 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12591 argument.
12592 (target_insert_vfork_catchpoint): Add argument.
12593 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12594 (update_current_target): Update.
12595 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12596 argument.
12597
12598 2014-02-19 Tom Tromey <tromey@redhat.com>
12599
12600 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12601 argument.
12602 (target_remove_fork_catchpoint): Add argument.
12603 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12604 (update_current_target): Update.
12605 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12606 argument.
12607
12608 2014-02-19 Tom Tromey <tromey@redhat.com>
12609
12610 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12611 argument.
12612 (target_insert_fork_catchpoint): Add argument.
12613 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12614 (update_current_target): Update.
12615 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12616 argument.
12617
12618 2014-02-19 Tom Tromey <tromey@redhat.com>
12619
12620 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12621 argument.
12622 (target_post_startup_inferior): Add argument.
12623 * target.c (debug_to_post_startup_inferior): Add argument.
12624 (update_current_target): Update.
12625 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12626 argument.
12627 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12628 argument.
12629 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12630 argument.
12631 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12632 argument.
12633 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12634 'self' argument.
12635 (super_post_startup_inferior): Likewise.
12636 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12637 'self' argument.
12638 (super_post_startup_inferior): Likewise.
12639 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12640 Add 'self' argument.
12641 (super_post_startup_inferior): Likewise.
12642
12643 2014-02-19 Tom Tromey <tromey@redhat.com>
12644
12645 * target.h (struct target_ops) <to_load>: Add argument.
12646 * target.c (target_load): Add argument.
12647 (debug_to_load): Add argument.
12648 (update_current_target): Update.
12649 * remote.c (remote_load): Add 'self' argument.
12650 * remote-sim.c (gdbsim_load): Add 'self' argument.
12651 * remote-mips.c (mips_load): Add 'self' argument.
12652 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12653 * monitor.c (monitor_load): Add 'self' argument.
12654 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12655
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12659 (target_terminal_info): Add argument.
12660 * target.c (debug_to_terminal_info): Add argument.
12661 (default_terminal_info): Likewise.
12662 * inflow.c (child_terminal_info): Add 'self' argument.
12663 * inferior.h (child_terminal_info): Add 'self' argument.
12664 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12665
12666 2014-02-19 Tom Tromey <tromey@redhat.com>
12667
12668 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12669 argument.
12670 (target_terminal_save_ours): Add argument.
12671 * target.c (debug_to_terminal_save_ours): Add argument.
12672 (update_current_target): Update.
12673 * inflow.c (terminal_save_ours): Add 'self' argument.
12674 * inferior.h (terminal_save_ours): Add 'self' argument.
12675
12676 2014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12679 (target_terminal_ours): Add argument.
12680 * target.c (debug_to_terminal_ours): Add argument.
12681 (update_current_target): Update.
12682 * remote.c (remote_terminal_ours): Add 'self' argument.
12683 (remote_close): Update.
12684 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12685 * inflow.c (terminal_ours): Add 'self' argument.
12686 * inferior.h (terminal_ours): Add 'self' argument.
12687 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12688
12689 2014-02-19 Pedro Alves <palves@redhat.com>
12690 Tom Tromey <tromey@redhat.com>
12691
12692 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12693 argument.
12694 (target_terminal_ours_for_output): Add argument.
12695 * target.c (debug_to_terminal_ours_for_output): Add argument.
12696 (update_current_target): Update.
12697 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12698 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12699 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12700
12701 2014-02-19 Tom Tromey <tromey@redhat.com>
12702
12703 * target.h (struct target_ops) <to_terminal_inferior>: Add
12704 argument.
12705 * target.c (target_terminal_inferior): Add argument.
12706 (update_current_target): Update.
12707 * remote.c (remote_terminal_inferior): Add 'self' argument.
12708 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12709 * inflow.c (terminal_inferior): Add 'self' argument.
12710 * inferior.h (terminal_inferior): Add 'self' argument.
12711 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12712 (go32_terminal_inferior): Add 'self' argument.
12713
12714 2014-02-19 Tom Tromey <tromey@redhat.com>
12715
12716 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12717 (target_terminal_init): Add argument.
12718 * target.c (debug_to_terminal_init): Add argument.
12719 (update_current_target): Update.
12720 * inflow.c (terminal_init_inferior): Add 'self' argument.
12721 * inferior.h (terminal_init_inferior): Add 'self' argument.
12722 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12723 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12724
12725 2014-02-19 Tom Tromey <tromey@redhat.com>
12726
12727 * target.h (struct target_ops)
12728 <to_can_accel_watchpoint_condition>: Add argument.
12729 (target_can_accel_watchpoint_condition): Add argument.
12730 * target.c (debug_to_can_accel_watchpoint_condition): Add
12731 argument.
12732 (update_current_target): Update.
12733 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12734 'self' argument.
12735
12736 2014-02-19 Tom Tromey <tromey@redhat.com>
12737
12738 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12739 Add argument.
12740 (target_region_ok_for_hw_watchpoint): Add argument.
12741 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12742 (default_region_ok_for_hw_watchpoint): Add argument.
12743 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12744 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12745 argument.
12746 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12747 argument.
12748 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12749 argument.
12750 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12751 'self' argument.
12752 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12753 'self' argument.
12754 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12755 'self' argument.
12756 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12757 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12758 'self' argument.
12759 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12760 Add 'self' argument.
12761
12762 2014-02-19 Tom Tromey <tromey@redhat.com>
12763
12764 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12765 argument.
12766 (target_insert_watchpoint): Add argument.
12767 * target.c (debug_to_insert_watchpoint): Add argument.
12768 (update_current_target): Update.
12769 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12770 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12771 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12772 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12773 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12774 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12775 argument.
12776 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12777 (procfs_insert_hw_watchpoint): Add 'self' argument.
12778 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12779 argument.
12780 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12781 argument.
12782 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12783 argument.
12784 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12785 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12786 argument.
12787 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12788 'self' argument.
12789
12790 2014-02-19 Tom Tromey <tromey@redhat.com>
12791
12792 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12793 argument.
12794 (target_remove_watchpoint): Add argument.
12795 * target.c (debug_to_remove_watchpoint): Add argument.
12796 (update_current_target): Update.
12797 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12798 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12799 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12800 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12801 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12802 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12803 argument.
12804 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12805 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12806 argument.
12807 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12808 argument.
12809 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12810 argument.
12811 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12812 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12813 argument.
12814 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12815 'self' argument.
12816
12817 2014-02-19 Tom Tromey <tromey@redhat.com>
12818
12819 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12820 argument.
12821 (target_remove_hw_breakpoint): Add argument.
12822 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12823 (update_current_target): Update.
12824 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12825 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12826 argument.
12827 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12828 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12829 argument.
12830 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12831 'self' argument.
12832
12833 2014-02-19 Tom Tromey <tromey@redhat.com>
12834
12835 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12836 argument.
12837 (target_insert_hw_breakpoint): Add argument.
12838 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12839 (update_current_target): Update.
12840 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12841 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12842 argument.
12843 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12844 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12845 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12846 argument.
12847 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12848 'self' argument.
12849
12850 2014-02-19 Tom Tromey <tromey@redhat.com>
12851
12852 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12853 argument.
12854 (target_can_use_hardware_watchpoint): Add argument.
12855 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12856 (update_current_target): Update.
12857 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12858 argument.
12859 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12860 argument.
12861 * remote.c (remote_check_watch_resources): Add 'self' argument.
12862 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12863 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12864 argument.
12865 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12866 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12867 argument.
12868 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12869 argument.
12870 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12871 argument.
12872 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12873 argument.
12874 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12875 argument.
12876 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12877 argument.
12878 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12879 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12880 argument.
12881 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12882 'self' argument.
12883
12884 2014-02-19 Tom Tromey <tromey@redhat.com>
12885
12886 * target.h (struct target_ops) <to_post_attach>: Add argument.
12887 (target_post_attach): Add argument.
12888 * target.c (debug_to_post_attach): Add argument.
12889 (update_current_target): Update.
12890 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12891 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12892 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12893 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12894 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12895
12896 2014-02-19 Tom Tromey <tromey@redhat.com>
12897
12898 * windows-nat.c (windows_close): Add 'self' argument.
12899 * tracepoint.c (tfile_close): Add 'self' argument.
12900 * target.h (struct target_ops) <to_close>: Add argument.
12901 * target.c (target_close): Add argument.
12902 (update_current_target): Update.
12903 * remote.c (remote_close): Add 'self' argument.
12904 * remote-sim.c (gdbsim_close): Add 'self' argument.
12905 * remote-mips.c (mips_close): Add 'self' argument.
12906 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12907 * record-full.c (record_full_close): Add 'self' argument.
12908 * record-btrace.c (record_btrace_close): Add 'self' argument.
12909 * monitor.h (monitor_close): Add 'self' argument.
12910 * monitor.c (monitor_close): Add 'self' argument.
12911 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12912 * linux-nat.c (linux_nat_close): Add argument.
12913 * go32-nat.c (go32_close): Add 'self' argument.
12914 * exec.c (exec_close_1): Add 'self' argument.
12915 * ctf.c (ctf_close): Add 'self' argument.
12916 * corelow.c (core_close): Add 'self' argument.
12917 (core_close_cleanup): Update.
12918 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12919 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12920
12921 2014-02-19 Tom Tromey <tromey@redhat.com>
12922
12923 * remote.c (remote_load): New function.
12924 (init_remote_ops): Use it.
12925
12926 2014-02-19 Tom Tromey <tromey@redhat.com>
12927
12928 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12929 argument.
12930 * common/linux-btrace.h (linux_supports_btrace): Update.
12931 * remote.c (remote_supports_btrace): Add "self" argument.
12932 * target-delegates.c: Rebuild.
12933 * target.c (target_supports_btrace): Remove.
12934 * target.h (struct target_ops) <to_supports_btrace>: Add
12935 target_ops argument.
12936 (target_supports_btrace): New define.
12937
12938 2014-02-19 Tom Tromey <tromey@redhat.com>
12939
12940 * record-full.c (record_full_beneath_to_resume_ops)
12941 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12942 (record_full_beneath_to_wait)
12943 (record_full_beneath_to_store_registers_ops)
12944 (record_full_beneath_to_store_registers)
12945 (record_full_beneath_to_xfer_partial_ops)
12946 (record_full_beneath_to_xfer_partial)
12947 (record_full_beneath_to_insert_breakpoint_ops)
12948 (record_full_beneath_to_insert_breakpoint)
12949 (record_full_beneath_to_remove_breakpoint_ops)
12950 (record_full_beneath_to_remove_breakpoint)
12951 (record_full_beneath_to_stopped_by_watchpoint)
12952 (record_full_beneath_to_stopped_data_address)
12953 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12954 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12955 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12956 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12957 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12958 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12959 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12960 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12961 (record_full_resume, record_full_wait_1)
12962 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12963 (record_full_store_registers, record_full_xfer_partial)
12964 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12965 (record_full_async, record_full_core_xfer_partial): Use target
12966 delegation.
12967 * target-delegates.c: Rebuild.
12968 * target.c (current_xfer_partial): Remove.
12969 (update_current_target): Do not INHERIT or de_fault
12970 to_insert_breakpoint, to_remove_breakpoint,
12971 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12972 to_is_async_p, to_async. Do not set to_xfer_partial field.
12973 (default_xfer_partial): Simplify.
12974 (current_xfer_partial): Remove.
12975 (target_wait, target_resume): Simplify.
12976 (find_default_can_async_p, find_default_is_async_p): Update.
12977 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12978 to_xfer_partial, to_stopped_by_watchpoint,
12979 to_stopped_data_address.
12980 (target_store_registers): Simplify.
12981 (forward_target_remove_breakpoint)
12982 (forward_target_insert_breakpoint): Remove.
12983 (target_remove_breakpoint, target_insert_breakpoint)
12984 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12985 * target.h (struct target_ops) <to_resume, to_wait,
12986 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12987 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12988 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12989 markup.
12990 (forward_target_remove_breakpoint)
12991 (forward_target_insert_breakpoint): Remove.
12992 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12993 directly.
12994 (record_btrace_insert_breakpoint): Delegate directly.
12995
12996 2014-02-19 Tom Tromey <tromey@redhat.com>
12997
12998 PR build/7701:
12999 * target-delegates.c: New file.
13000 * target.c: Include target-delegates.c.
13001 (init_dummy_target): Call install_dummy_methods.
13002 (complete_target_initialization): Call install_delegators.
13003 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13004 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13005 * make-target-delegates: New file.
13006
13007 2014-02-19 Tom Tromey <tromey@redhat.com>
13008
13009 * record.c (find_record_target): Use find_target_at.
13010 * target.c (find_target_at): New function.
13011 * target.h (find_target_at): Declare.
13012
13013 2014-02-19 Tom Tromey <tromey@redhat.com>
13014
13015 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13016 Add 'ops' argument.
13017 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13018 'ops' argument.
13019 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13020 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13021 'ops' argument.
13022 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13023 argument.
13024 * linux-nat.c (save_sigtrap): Update.
13025 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13026 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13027 (linux_nat_close): Update.
13028 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13029 argument.
13030 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13031 argument.
13032 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13033 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13034 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13035 (tmp_to_async): Add 'ops' argument.
13036 (record_full_stopped_by_watchpoint, record_full_async)
13037 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13038 argument.
13039 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13040 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13041 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13042 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13043 (remote_is_async_p, remote_async): Add 'ops' argument.
13044 (remote_stopped_data_address): Update.
13045 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13046 * target.c (update_current_target)
13047 (find_default_can_async_p, find_default_is_async_p): Update.
13048 (init_dummy_target): Update.
13049 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13050 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13051 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13052 (target_can_async_p, target_is_async_p, target_async)
13053 (target_stopped_by_watchpoint): Update.
13054
13055 2014-02-19 Yao Qi <yao@codesourcery.com>
13056
13057 PR gdb/16220
13058 * gdbarch.sh: Remove startup_gdbarch.
13059 * gdbarch.c: Regenerated.
13060 * gdbarch.h: Likewise.
13061
13062 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13063
13064 * rl78-tdep.c (rl78_g10_register_name): New function.
13065 (rl78_return_value): Add g10 support.
13066 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13067 g10.
13068
13069 2014-02-17 Doug Evans <xdje42@gmail.com>
13070
13071 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13072 (SUBDIR_GUILE_SRCS): Ditto.
13073 (scm-gsmob.o): Ditto.
13074
13075 2014-02-17 Yao Qi <yao@codesourcery.com>
13076
13077 * gnu-nat.c (ILL_RPC): Declare defined function.
13078
13079 2014-02-17 Yao Qi <yao@codesourcery.com>
13080
13081 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13082 mach_msg_type_number_t.
13083 (gnu_write_inferior): Likewise.
13084
13085 2014-02-17 Yao Qi <yao@codesourcery.com>
13086
13087 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13088 in format string.
13089 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13090 (inf_validate_procs, inf_signal): Likewise.
13091 (S_exception_raise_request): Likewise.
13092 (do_mach_notify_dead_name): Likewise.
13093 (steal_exc_port): Likewise.
13094 (gnu_read_inferior): Change 'copy_count''s type to
13095 mach_msg_type_number_t.
13096 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13097 format string.
13098
13099 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13100
13101 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13102 flag. Adjust all users; in particular...
13103 (gnu_wait): ..., don't decrement its value in here...
13104 (gnu_create_inferior): ..., and instead set the flag in here,
13105 around the startup_inferior call, and call that one with
13106 START_INFERIOR_TRAPS_EXPECTED.
13107
13108 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13109 (ILL_RPC): ... new macro.
13110 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13111 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13112 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13113 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13114 functions with ILL_RPC macro.
13115 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13116 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13117 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13118 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13119 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13120 (S_proc_getlogin_reply, S_proc_getsid_reply)
13121 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13122 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13123 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13124 (S_proc_getnports_reply, S_proc_is_important_reply)
13125 (S_proc_get_code_reply): New stub functions, generated with
13126 ILL_RPC macro.
13127
13128 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13129 collected the type check structures.
13130
13131 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13132
13133 2014-02-14 Doug Evans <dje@google.com>
13134
13135 * target.c (target_write_partial): Fix result type.
13136
13137 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13138
13139 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13140 the proper offsets to access fpregset_t.
13141
13142 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13143
13144 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13145 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13146 * h8300-tdep.c (setmachinelist): Remove global.
13147 * hppa-tdep.c (hppa_sigtramp): Remove global.
13148 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13149 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13150 * ravenscar-thread.c (update_target_observer): Remove global.
13151 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13152
13153 2014-02-12 Tom Tromey <tromey@redhat.com>
13154
13155 * common/rsp-low.c: Update comments.
13156 * common/rsp-low.h: Update comments.
13157
13158 2014-02-12 Tom Tromey <tromey@redhat.com>
13159
13160 * common/rsp-low.c (convert_ascii_to_int): Remove.
13161 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13162
13163 2014-02-12 Tom Tromey <tromey@redhat.com>
13164
13165 * common/rsp-low.h (unhexify): Don't declare.
13166 * common/rsp-low.c (unhexify): Remove.
13167
13168 2014-02-12 Tom Tromey <tromey@redhat.com>
13169
13170 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13171 * common/rsp-low.c (convert_int_to_ascii): Remove.
13172
13173 2014-02-12 Tom Tromey <tromey@redhat.com>
13174
13175 * common/rsp-low.h (hexify): Don't declare.
13176 * common/rsp-low.c (hexify): Remove.
13177
13178 2014-02-12 Tom Tromey <tromey@redhat.com>
13179
13180 * common/rsp-low.c (hexify): Never take strlen of argument.
13181
13182 2014-02-12 Tom Tromey <tromey@redhat.com>
13183
13184 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13185 * remote.c (extended_remote_run, remote_rcmd)
13186 (remote_download_trace_state_variable, remote_save_trace_data)
13187 (remote_set_trace_notes): Update.
13188 * tracepoint.c (encode_source_string, tfile_write_status)
13189 (tfile_write_uploaded_tsv): Update.
13190
13191 2014-02-12 Tom Tromey <tromey@redhat.com>
13192
13193 * tracepoint.c: Include rsp-low.h.
13194 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13195 * remote.c: Include rsp-low.h.
13196 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13197 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13198 (remote_unescape_input): Move to common/rsp-low.c.
13199 * common/rsp-low.h: New file.
13200 * common/rsp-low.c: New file.
13201 * Makefile.in (SFILES): Add common/rsp-low.c.
13202 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13203 (COMMON_OBS): Add rsp-low.o.
13204 (rsp-low.o): New target.
13205
13206 2014-02-12 Tom Tromey <tromey@redhat.com>
13207
13208 * utils.h: Include print-utils.h.
13209 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13210 (int_string, core_addr_to_string, core_addr_to_string_nz)
13211 (hex_string, hex_string_custom): Don't declare.
13212 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13213 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13214 (hex_string_custom, int_string, core_addr_to_string)
13215 (core_addr_to_string_nz, host_address_to_string): Move to
13216 common/print-utils.c.
13217 * common/print-utils.h: New file.
13218 * common/print-utils.c: New file
13219 * Makefile.in (SFILES): Add common/print-utils.c.
13220 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13221 (COMMON_OBS): Add print-utils.o.
13222 (print-utils.o): New target.
13223
13224 2014-02-12 Tom Tromey <tromey@redhat.com>
13225
13226 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13227
13228 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13229
13230 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13231
13232 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13233
13234 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13235 if a PT_IO ptrace request returns sucessfully but indicates that 0
13236 bytes were transferred.
13237
13238 2014-02-12 Pedro Alves <palves@redhat.com>
13239 Kevin Buettner <kevinb@redhat.com>
13240
13241 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13242 TYPE_INSTANCE_FLAG_CODE_SPACE.
13243
13244 2014-02-12 Pedro Alves <palves@redhat.com>
13245
13246 * h8300-tdep.c (pseudo_from_raw_register)
13247 (raw_from_pseudo_register): New functions.
13248 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13249 them.
13250
13251 2014-02-12 Pedro Alves <palves@redhat.com>
13252
13253 * h8300-tdep.c (h8300_register_sim_regno): New function.
13254 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13255 gdbarch_register_sim_regno hook.
13256
13257 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13258
13259 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13260
13261 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13262
13263 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13264
13265 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13266
13267 * obsd-tdep.h (obsd_init_abi): New prototype.
13268 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13269 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13270 (obsd_init_abi): New functions.
13271 * i386obsd-tdep.c: Include "obsd-tdep.h".
13272 (i386obsd_init_abi): Call obsd_init_abi.
13273 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13274 (amd64obsd_init_abi): Call obsd_init_abi.
13275 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13276 obsd-tdep.c to gdb_target_obs.
13277
13278 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13279
13280 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13281 double float arguments to 16-byte in the argument slots.
13282
13283 2014-02-11 Doug Evans <xdje42@gmail.com>
13284
13285 * configure.ac: Don't crash if pkg-config is not found and guile
13286 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13287 in guile checks.
13288 * configure: Regenerate.
13289
13290 2014-02-11 Yao Qi <yao@codesourcery.com>
13291
13292 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13293 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13294 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13295 * gnu-nat.c (gnu_xfer_memory): Likewise.
13296 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13297 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13298 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13299 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13300
13301 2014-02-11 Yao Qi <yao@codesourcery.com>
13302
13303 * target.h (enum target_xfer_error): Rename to ...
13304 (enum target_xfer_status): ... it. New. All users updated.
13305 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13306 New.
13307 (TARGET_XFER_STATUS_ERROR_P): New macro.
13308 (target_xfer_error_to_string): Remove declaration.
13309 (target_xfer_status_to_string): Declare.
13310 (target_xfer_partial_ftype): Adjust it.
13311 (struct target_ops) <to_xfer_partial>: Return
13312 target_xfer_status. Add argument xfered_len. Update
13313 comments.
13314 * target.c (target_xfer_error_to_string): Rename to ...
13315 (target_xfer_status_to_string): ... it. New. All callers
13316 updated.
13317 (target_read_live_memory): Likewise. Call target_xfer_partial
13318 instead of target_read.
13319 (memory_xfer_live_readonly_partial): Return
13320 target_xfer_status. Add argument xfered_len.
13321 (raw_memory_xfer_partial): Likewise.
13322 (memory_xfer_partial_1): Likewise.
13323 (memory_xfer_partial): Likewise.
13324 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13325 properly. Update debug message.
13326 (default_xfer_partial, current_xfer_partial): Likewise.
13327 (target_write_partial): Likewise.
13328 (target_read_partial): Likewise. All callers updated.
13329 (read_whatever_is_readable): Likewise.
13330 (target_write_with_progress): Likewise.
13331 (target_read_alloc_1): Likewise.
13332
13333 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13334 * auxv.c (procfs_xfer_auxv): Likewise.
13335 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13336 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13337 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13338 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13339 * corefile.c (read_memory): Adjust.
13340 * corelow.c (core_xfer_partial): Likewise.
13341 * ctf.c (ctf_xfer_partial): Likewise.
13342 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13343 updated.
13344 (darwin_xfer_partial): Likewise.
13345 * exec.c (section_table_xfer_memory_partial): Likewise. All
13346 callers updated.
13347 (exec_xfer_partial): Likewise.
13348 * exec.h (section_table_xfer_memory_partial): Update
13349 declaration.
13350 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13351 negative.
13352 (gnu_xfer_partial): Likewise.
13353 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13354 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13355 (ia64_hpux_xfer_solib_got): Likewise.
13356 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13357 type of 'partial_len' to ULONGEST.
13358 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13359 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13360 (linux_nat_xfer_partial): Likewise.
13361 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13362 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13363 * monitor.c (monitor_xfer_memory): Likewise.
13364 (monitor_xfer_partial): Likewise.
13365 * procfs.c (procfs_xfer_partial): Likewise.
13366 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13367 * record-full.c (record_full_xfer_partial): Likewise.
13368 (record_full_core_xfer_partial): Likewise.
13369 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13370 (gdbsim_xfer_partial): Likewise.
13371 * remote.c (remote_write_bytes_aux): Likewise. All callers
13372 updated.
13373 (remote_write_bytes, remote_read_bytes): Likewise. All
13374 callers updated.
13375 (remote_flash_erase): Likewise. All callers updated.
13376 (remote_write_qxfer): Likewise. All callers updated.
13377 (remote_read_qxfer): Likewise. All callers updated.
13378 (remote_xfer_partial): Likewise.
13379 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13380 (rs6000_xfer_shared_libraries): Likewise.
13381 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13382 (sol_thread_xfer_partial): Likewise.
13383 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13384 (sparc_xfer_partial): Likewise.
13385 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13386 updated.
13387 (spu_xfer_partial): Likewise.
13388 * spu-multiarch.c (spu_xfer_partial): Likewise.
13389 * tracepoint.c (tfile_xfer_partial): Likewise.
13390 * windows-nat.c (windows_xfer_memory): Likewise.
13391 (windows_xfer_shared_libraries): Likewise.
13392 (windows_xfer_partial): Likewise.
13393 * valprint.c: Replace 'target_xfer_error' with
13394 'target_xfer_status' in comments.
13395
13396 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13397
13398 Checked in by Joel Brobecker <brobecker@adacore.com>.
13399 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13400
13401 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13402
13403 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13404 function parameters.
13405
13406 2014-02-10 Will Newton <will.newton@linaro.org>
13407
13408 * elfread.c (elf_rel_plt_read): Look for a .got section if
13409 looking up .got.plt fails.
13410 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13411 on address passed to elf_gnu_ifunc_record_cache.
13412 (elf_gnu_ifunc_resolve_addr): Likewise.
13413 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13414
13415 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13416
13417 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13418 (X_RETTURN): New macro.
13419 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13420
13421 * sparc64-tdep.c (sparc64_init_abi): Hook
13422 sparc_in_function_epilogue_p.
13423
13424 2014-02-10 Gary Benson <gbenson@redhat.com>
13425
13426 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13427 Rename name_matcher to symbol_matcher.
13428
13429 2014-02-10 Gary Benson <gbenson@redhat.com>
13430
13431 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13432 Use expand_symtabs_file_matcher_ftype and
13433 expand_symtabs_symbol_matcher_ftype.
13434
13435 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13436
13437 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13438 (struct ada_symbol_cache): New.
13439 (ada_free_symbol_cache): Forward declare.
13440 (struct ada_pspace_data): New.
13441 (ada_pspace_data_handle): New static global.
13442 (get_ada_pspace_data, ada_pspace_data_cleanup)
13443 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13444 (cache_space, cache): Delete, now folded inside struct
13445 ada_pspace_data.
13446 (ada_get_symbol_cache): New function.
13447 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13448 implementation.
13449 (_initialize_ada_language): Remove initialization of cache_space.
13450 Move call to observer_attach_inferior_exit up, grouping it
13451 with the other observer registrations inside this function.
13452 Rename command to be more general. Add call to
13453 register_program_space_data_with_cleanup.
13454
13455 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13456
13457 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13458 ada_new_objfile_observer.
13459 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13460 (_initialize_tasks): Update uses of ada_new_objfile_observer
13461 and ada_tasks_normal_stop_observer.
13462
13463 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13464
13465 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13466 returned by the 'Length attribute to integer.
13467
13468 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13469
13470 * ada-lang.c (_initialize_ada_language): Initialize
13471 cache_space obstack.
13472
13473 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13474
13475 * ada-lang.c (HASH_SIZE): New macro.
13476 (struct cache_entry): New type.
13477 (cache_space, cache): New static globals.
13478 (ada_clear_symbol_cache, find_entry): New functions.
13479 (lookup_cached_symbol, cache_symbol): Implement.
13480 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13481 (_initialize_ada_language): Attach ada_new_objfile_observer
13482 and ada_free_objfile_observer.
13483
13484 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13485
13486 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13487 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13488 struct block * parameter.
13489 (ada_lookup_symbol_list_worker): Constify local variable "block".
13490 Remove cast which is no longer necessary.
13491
13492 2014-02-10 Doug Evans <xdje42@gmail.com>
13493
13494 Add Guile as an extension language.
13495 * NEWS: Mention Guile scripting.
13496 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13497 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13498 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13499 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13500 (CLIBS): Add GUILE_LIBS.
13501 (install-guile): New rule.
13502 (guile.o): New rule.
13503 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13504 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13505 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13506 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13507 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13508 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13509 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13510 * configure.ac: New option --with-guile.
13511 * configure: Regenerate.
13512 * config.in: Regenerate.
13513 * auto-load.c: Remove #include "python/python.h". Add #include
13514 "gdb/section-scripts.h".
13515 (source_section_scripts): Handle Guile scripts.
13516 (_initialize_auto_load): Add name of Guile objfile script to
13517 scripts-directory help text.
13518 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13519 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13520 (struct breakpoint): New member scm_bp_object.
13521 * defs.h (enum command_control_type): New value guile_control.
13522 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13523 "extension.h".
13524 (show_user): Update comment.
13525 (_initialize_cli_cmds): Update help text for "show user". Update help
13526 text for max-user-call-depth.
13527 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13528 "extension.h".
13529 (multi_line_command_p): Add guile_control.
13530 (print_command_lines): Handle guile_control.
13531 (execute_control_command, recurse_read_control_structure): Ditto.
13532 (process_next_line): Recognize "guile" commands.
13533 * disasm.c (gdb_disassemble_info): Make non-static.
13534 * disasm.h: #include "dis-asm.h".
13535 (struct gdbarch): Add forward decl.
13536 (gdb_disassemble_info): Declare.
13537 * extension.c: #include "guile/guile.h".
13538 (extension_languages): Add guile.
13539 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13540 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13541 * gdbtypes.c (get_unsigned_type_max): New function.
13542 (get_signed_type_minmax): New function.
13543 * gdbtypes.h (get_unsigned_type_max): Declare.
13544 (get_signed_type_minmax): Declare.
13545 * guile/README: New file.
13546 * guile/guile-internal.h: New file.
13547 * guile/guile.c: New file.
13548 * guile/guile.h: New file.
13549 * guile/scm-arch.c: New file.
13550 * guile/scm-auto-load.c: New file.
13551 * guile/scm-block.c: New file.
13552 * guile/scm-breakpoint.c: New file.
13553 * guile/scm-disasm.c: New file.
13554 * guile/scm-exception.c: New file.
13555 * guile/scm-frame.c: New file.
13556 * guile/scm-gsmob.c: New file.
13557 * guile/scm-iterator.c: New file.
13558 * guile/scm-lazy-string.c: New file.
13559 * guile/scm-math.c: New file.
13560 * guile/scm-objfile.c: New file.
13561 * guile/scm-ports.c: New file.
13562 * guile/scm-pretty-print.c: New file.
13563 * guile/scm-safe-call.c: New file.
13564 * guile/scm-string.c: New file.
13565 * guile/scm-symbol.c: New file.
13566 * guile/scm-symtab.c: New file.
13567 * guile/scm-type.c: New file.
13568 * guile/scm-utils.c: New file.
13569 * guile/scm-value.c: New file.
13570 * guile/lib/gdb.scm: New file.
13571 * guile/lib/gdb/boot.scm: New file.
13572 * guile/lib/gdb/experimental.scm: New file.
13573 * guile/lib/gdb/init.scm: New file.
13574 * guile/lib/gdb/iterator.scm: New file.
13575 * guile/lib/gdb/printing.scm: New file.
13576 * guile/lib/gdb/types.scm: New file.
13577 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13578 (VPATH): Add $(GUILE_SRCDIR).
13579 (GUILE_DIR): New variable.
13580 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13581 (all): Add stamp-guile dependency.
13582 (stamp-guile): New rule.
13583 (clean-guile, install-guile, uninstall-guile): New rules.
13584 (install-only): Add install-guile dependency.
13585 (uninstall): Add uninstall-guile dependency.
13586 (clean): Add clean-guile dependency.
13587
13588 2014-02-09 Doug Evans <xdje42@gmail.com>
13589
13590 Revert this patch (which I approved, mea culpa).
13591
13592 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13593
13594 * Makefile.in (all-lib): Remove.
13595 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13596
13597 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13598
13599 Fix Python stack corruption.
13600 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13601 gdb_py_longest.
13602
13603 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13604
13605 * Makefile.in (all-lib): Remove.
13606 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13607
13608 2014-02-07 Doug Evans <dje@google.com>
13609
13610 * extension-priv.h (extension_language_script_ops): Add comment.
13611 (extension_language_ops): Add comment.
13612 (active_ext_lang_state): Fix typo in comment.
13613
13614 2014-02-07 Pedro Alves <palves@redhat.com>
13615
13616 PR breakpoints/16292
13617 * infrun.c (handle_signal_stop) <signal arrives while stepping
13618 over a breakpoint>: Switch back to the stepping thread.
13619
13620 2014-02-07 Yao Qi <yao@codesourcery.com>
13621
13622 * target.c (target_xfer_partial): Return zero if LEN is zero.
13623
13624 2014-02-07 Yao Qi <yao@codesourcery.com>
13625
13626 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13627 (ld_so_xfer_auxv): Likewise.
13628 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13629 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13630 * corelow.c (core_xfer_partial): Likewise.
13631 * ctf.c (ctf_xfer_partial): Likewise.
13632 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13633 (darwin_xfer_partial): Likewise.
13634 * exec.c (exec_xfer_partial): Likewise.
13635 * gnu-nat.c (gnu_xfer_partial): Likewise.
13636 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13637 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13638 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13639 * linux-nat.c (linux_xfer_siginfo): Likewise.
13640 (linux_proc_xfer_spu): Likewise.
13641 * procfs.c (procfs_xfer_partial): Likewise.
13642 * record-full.c (record_full_xfer_partial): Likewise.
13643 (record_full_core_xfer_partial): Likewise.
13644 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13645 * remote.c (remote_write_qxfer): Likewise.
13646 (remote_write_qxfer, remote_read_qxfer): Likewise.
13647 (remote_xfer_partial): Likewise.
13648 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13649 (rs6000_xfer_shared_libraries): Likewise.
13650 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13651 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13652 (spu_xfer_partial): Likewise.
13653 * target.c (memory_xfer_partial_1): Likewise.
13654 * tracepoint.c (tfile_xfer_partial): Likewise.
13655 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13656 (windows_xfer_partial): Likewise.
13657
13658 2014-02-07 Yao Qi <yao@codesourcery.com>
13659
13660 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13661 comments.
13662 (core_xfer_shared_libraries_aix): Likewise.
13663 * gdbarch.c, gdbarch.h: Regenerated.
13664 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13665 ULONGEST. Change 'len_avail' type to ULONGEST.
13666 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13667 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13668 declaration.
13669 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13670
13671 2014-02-07 Yao Qi <yao@codesourcery.com>
13672
13673 * corefile.c (memory_error): Get 'exception' from ERR and pass
13674 'exception' to throw_error.
13675
13676 2014-02-06 Doug Evans <xdje42@gmail.com>
13677
13678 * configure.ac (libpython checking): Remove all but python.o from
13679 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13680 * configure: Regenerate.
13681
13682 * Makefile.in (SFILES): Add extension.c.
13683 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13684 (COMMON_OBS): Add extension.o.
13685 * extension.h: New file.
13686 * extension-priv.h: New file.
13687 * extension.c: New file.
13688
13689 * python/python-internal.h: #include "extension.h".
13690 (gdbpy_auto_load_enabled): Declare.
13691 (gdbpy_apply_val_pretty_printer): Declare.
13692 (gdbpy_apply_frame_filter): Declare.
13693 (gdbpy_preserve_values): Declare.
13694 (gdbpy_breakpoint_cond_says_stop): Declare.
13695 (gdbpy_breakpoint_has_cond): Declare.
13696 (void source_python_script_for_objfile): Delete.
13697 * python/python.c: #include "extension-priv.h".
13698 Delete inclusion of "observer.h".
13699 (extension_language_python): Moved here and renamed from
13700 script_language_python in py-auto-load.c.
13701 Redefined to be of type extension_language_defn.
13702 (python_extension_script_ops): New global.
13703 (python_extension_ops): New global.
13704 (struct python_env): New member previous_active.
13705 (restore_python_env): Call restore_active_ext_lang.
13706 (ensure_python_env): Call set_active_ext_lang.
13707 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13708 New arg extlang.
13709 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13710 New arg extlang.
13711 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13712 New arg extlang.
13713 (gdbpy_eval_from_control_command): Renamed from
13714 eval_python_from_control_command, made static. New arg extlang.
13715 (gdbpy_source_script) Renamed from source_python_script, made static.
13716 New arg extlang.
13717 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13718 result to int. New arg extlang.
13719 (gdbpy_source_objfile_script): Renamed from
13720 source_python_script_for_objfile, made static. New arg extlang.
13721 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13722 static. New args extlang, extlang_printers. Change result type to
13723 "void".
13724 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13725 static. New arg extlang. Rename arg printers to extlang_printers
13726 and change type to ext_lang_type_printers *.
13727 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13728 static. Replace argument arg with extlang, extlang_printers.
13729 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13730 (!HAVE_PYTHON, source_python_script): Delete.
13731 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13732 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13733 (!HAVE_PYTHON, start_type_printers): Delete.
13734 (!HAVE_PYTHON, apply_type_printers): Delete.
13735 (!HAVE_PYTHON, free_type_printers): Delete.
13736 (_initialize_python): Delete call to observer_attach_before_prompt.
13737 (finalize_python): Set/restore active extension language.
13738 (gdbpy_finish_initialization) Renamed from
13739 finish_python_initialization, made static. New arg extlang.
13740 (gdbpy_initialized): New function.
13741 * python/python.h: #include "extension.h". Delete #include
13742 "value.h", "mi/mi-cmds.h".
13743 (extension_language_python): Declare.
13744 (GDBPY_AUTO_FILE_NAME): Delete.
13745 (enum py_bt_status): Moved to extension.h and renamed to
13746 ext_lang_bt_status.
13747 (enum frame_filter_flags): Moved to extension.h.
13748 (enum py_frame_args): Moved to extension.h and renamed to
13749 ext_lang_frame_args.
13750 (finish_python_initialization): Delete.
13751 (eval_python_from_control_command): Delete.
13752 (source_python_script): Delete.
13753 (apply_val_pretty_printer): Delete.
13754 (apply_frame_filter): Delete.
13755 (preserve_python_values): Delete.
13756 (gdbpy_script_language_defn): Delete.
13757 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13758 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13759
13760 * auto-load.c: #include "extension.h".
13761 (GDB_AUTO_FILE_NAME): Delete.
13762 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13763 (script_language_gdb): Delete, moved to extension.c and renamed to
13764 extension_language_gdb.
13765 (source_gdb_script_for_objfile): Delete.
13766 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13767 (loaded_script): Change type of language member to
13768 struct extension_language_defn *.
13769 (init_loaded_scripts_info): Initialize
13770 unsupported_script_warning_printed.
13771 (maybe_add_script): Make static. Change type of language arg to
13772 struct extension_language_defn *.
13773 (clear_section_scripts): Reset unsupported_script_warning_printed.
13774 (auto_load_objfile_script_1): Rewrite to use extension language API.
13775 (auto_load_objfile_script): Make public. Remove support-compiled-in
13776 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13777 (source_section_scripts): Rewrite to use extension language API.
13778 (load_auto_scripts_for_objfile): Rewrite to use
13779 auto_load_scripts_for_objfile.
13780 (collect_matching_scripts_data): Change type of language member to
13781 struct extension_language_defn *.
13782 (auto_load_info_scripts): Change type of language arg to
13783 struct extension_language_defn *.
13784 (unsupported_script_warning_print): New function.
13785 (script_not_found_warning_print): Make static.
13786 (_initialize_auto_load): Rewrite construction of scripts-directory
13787 help.
13788 * auto-load.h (struct objfile): Add forward decl.
13789 (struct script_language): Delete.
13790 (struct auto_load_pspace_info): Add forward decl.
13791 (struct extension_language_defn): Add forward decl.
13792 (maybe_add_script): Delete.
13793 (auto_load_objfile_script): Declare.
13794 (script_not_found_warning_print): Delete.
13795 (auto_load_info_scripts): Update prototype.
13796 (auto_load_gdb_scripts_enabled): Declare.
13797 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13798 auto_load_python_scripts_enabled and made public.
13799 (script_language_python): Delete, moved to python.c.
13800 (gdbpy_script_language_defn): Delete.
13801 (info_auto_load_python_scripts): Update to use
13802 extension_language_python.
13803
13804 * breakpoint.c (condition_command): Replace call to
13805 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13806 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13807 with call to breakpoint_ext_lang_cond_says_stop.
13808 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13809 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13810 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13811 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13812 New arg slang.
13813 (local_setattro): Print name of extension language with existing
13814 stop condition.
13815
13816 * valprint.c (val_print, value_print): Update to call
13817 apply_ext_lang_val_pretty_printer.
13818 * cp-valprint.c (cp_print_value): Update call to
13819 apply_ext_lang_val_pretty_printer.
13820 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13821 (gdbpy_apply_val_pretty_printer): Renamed from
13822 apply_val_pretty_printer. New arg extlang.
13823 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13824
13825 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13826 extension language API.
13827 * cli/cli-script.c (execute_control_command): Update to call
13828 eval_ext_lang_from_control_command.
13829
13830 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13831 enum ext_lang_bt_status values. Update call to
13832 apply_ext_lang_frame_filter.
13833 (mi_cmd_stack_list_locals): Ditto.
13834 (mi_cmd_stack_list_args): Ditto.
13835 (mi_cmd_stack_list_variables): Ditto.
13836 * mi/mi-main.c: Delete #include "python/python-internal.h".
13837 Add #include "extension.h".
13838 (mi_cmd_list_features): Replace reference to python internal variable
13839 gdb_python_initialized with call to ext_lang_initialized_p.
13840
13841 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13842 Update to use enum ext_lang_frame_args. Update to call
13843 apply_ext_lang_frame_filter.
13844 * python/py-framefilter.c (extract_sym): Update to use enum
13845 ext_lang_bt_status.
13846 (extract_value, py_print_type, py_print_value): Ditto.
13847 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13848 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13849 (py_print_frame): Ditto.
13850 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13851 New arg extlang. Update to use enum ext_lang_bt_status.
13852
13853 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13854 finish_python_initialization. Replace with call to
13855 finish_ext_lang_initialization.
13856
13857 * typeprint.c (do_free_global_table): Update to call
13858 free_ext_lang_type_printers.
13859 (create_global_typedef_table): Update to call
13860 start_ext_lang_type_printers.
13861 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13862 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13863 (type_print_options): Change type of global_printers from "void *"
13864 to "struct ext_lang_type_printers *".
13865
13866 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13867 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13868 (gdbpy_preserve_values): Renamed from preserve_python_values.
13869 New arg extlang.
13870 (!HAVE_PYTHON, preserve_python_values): Delete.
13871
13872 * utils.c (quit_flag): Delete, moved to extension.c.
13873 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13874 extension.c.
13875
13876 * eval.c: Delete #include "python/python.h".
13877 * main.c: Delete #include "python/python.h".
13878
13879 * defs.h: Update comment.
13880
13881 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13882
13883 GDB 7.7 released.
13884
13885 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13886
13887 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13888 defined.
13889
13890 2014-02-05 Yao Qi <yao@codesourcery.com>
13891
13892 * remote.c (remote_pass_signals): Remove local 'buf' and use
13893 rs->buf.
13894 (remote_program_signals): Likewise.
13895
13896 2014-02-05 Yao Qi <yao@codesourcery.com>
13897
13898 * ctf.c: Include "inferior.h" and "gdbthread.h".
13899 (CTF_PID): A new macro.
13900 (ctf_open): Call inferior_appeared and add_thread_silent.
13901 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13902 (ctf_thread_alive): New function.
13903 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13904
13905 2014-02-05 Yao Qi <yao@codesourcery.com>
13906
13907 Revert this patch:
13908
13909 2013-05-24 Yao Qi <yao@codesourcery.com>
13910
13911 * tracepoint.c (TFILE_PID): Remove.
13912 (tfile_open): Don't add thread and inferior.
13913 (tfile_close): Don't set 'inferior_ptid'. Don't call
13914 exit_inferior_silent.
13915 (tfile_thread_alive): Remove.
13916 (init_tfile_ops): Don't set field 'to_thread_alive' of
13917 tfile_ops.
13918
13919 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13920
13921 * remote.c (remote_start_remote): Call remote_check_symbols even
13922 if only symbol-file (not file) has been given.
13923
13924 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13925
13926 * gdbarch.sh (skip_entrypoint): New callback.
13927 * gdbarch.c, gdbarch.h: Regenerate.
13928 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13929 * infrun.c (fill_in_stop_func): Likewise.
13930 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13931 (ppc_elfv2_elf_make_msymbol_special): New function.
13932 (ppc_elfv2_skip_entrypoint): Likewise.
13933 (ppc_linux_init_abi): Install them for ELFv2.
13934
13935 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13936
13937 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13938 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13939 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13940 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13941 structures returned in GPRs.
13942
13943 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13944
13945 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13946 offset to the stack parameter list for the ELFv2 ABI.
13947
13948 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13949
13950 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13951 set_gdbarch_convert_from_func_ptr_addr and
13952 set_gdbarch_elf_make_msymbol_special for ELFv1.
13953 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13954 function descriptors on ELFv1.
13955 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13956 set up r12 at function entry.
13957
13958 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13959
13960 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13961 (struct gdbarch_tdep): New member elf_abi.
13962
13963 * rs6000-tdep.c: Include "elf/ppc64.h".
13964 (rs6000_gdbarch_init): Detect ELF ABI version.
13965
13966 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13967
13968 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13969 within a register pair holding a DFP 128-bit value on little-endian.
13970 (ppc64_sysv_abi_return_value_base): Likewise.
13971 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13972 (dfp_pseudo_register_write): Likewise.
13973
13974 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13975
13976 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13977 offset on little-endian when passing _Decimal32.
13978 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13979
13980 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13981
13982 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13983 of the overlapped FP register within the VSX register on little-
13984 endian platforms.
13985 (efpr_pseudo_register_write): Likewise.
13986
13987 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13988
13989 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13990 offset on little-endian when passing small structures.
13991
13992 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13993
13994 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13995 (struct ppc64_sysv_argpos): New data structure.
13996 (ppc64_sysv_abi_push_float): Remove.
13997 (ppc64_sysv_abi_push_val): New function.
13998 (ppc64_sysv_abi_push_integer): Likewise.
13999 (ppc64_sysv_abi_push_freg): Likewise.
14000 (ppc64_sysv_abi_push_vreg): Likewise.
14001 (ppc64_sysv_abi_push_param): Likewise.
14002 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14003 (ppc64_sysv_abi_return_value_base): New function.
14004 (ppc64_sysv_abi_return_value): Refactor to use it.
14005
14006 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14007
14008 * NEWS: Document new target powerpc64le-*-linux*.
14009
14010 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14011
14012 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14013 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14014 core dumps.
14015 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14016 register set used in ELF core dumps. Add floating-point register set.
14017
14018 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14019
14020 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14021 dwarf2_to_gdb[] table using symbolic constants. Adjust
14022 penultimate entry from number representing the PC register
14023 to symbolic constant representing the MDR register. Add
14024 constant for the PC register to the end of the table.
14025
14026 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14027
14028 * bsd-kvm.c: Include <sys/param.h>
14029
14030 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14031
14032 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14033
14034 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14035
14036 * ada-lang.h (clear_ada_sym_cache): Delete.
14037
14038 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14039
14040 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14041
14042 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14043
14044 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14045 the sigreturn register save area only if the syscall is
14046 sigreturn.
14047
14048 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14049
14050 * valops.c (value_slice): Minor reformatting.
14051
14052 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14053
14054 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14055
14056 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14057
14058 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14059 New static globals.
14060 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14061 (ada_ignore_descriptive_types_p): New static global.
14062 (find_parallel_type_by_descriptive_type): Return immediately
14063 if ada_ignore_descriptive_types_p is set.
14064 (_initialize_ada_language): Register new commands "maintenance
14065 set ada", "maintenance show ada", "maintenance set ada
14066 ignore-descriptive-types" and "maintenance show ada
14067 ignore-descriptive-types".
14068 * NEWS: Add entry for new "maint ada set/show
14069 ignore-descriptive-types" commands.
14070
14071 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14072
14073 * record-btrace.c (record_btrace_close): Call btrace_teardown
14074 for all threads.
14075
14076 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14077
14078 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14079 "ui-out.h".
14080
14081 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14082
14083 * ada-typeprint (type_is_full_subrange_of_target_type):
14084 New function.
14085 (print_range): Add parameter bounds_prefered_p. If not set,
14086 try printing range types using the name of their base type.
14087 (print_range_type): Add parameter bounds_prefered_p.
14088 Use it in call to print_range.
14089 (print_array_type, ada_print_type): Update calls to print_range
14090 and print_range_type.
14091
14092 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14093
14094 * ada-typeprint.c (print_array_type, print_choices, print_range)
14095 (print_range_bound, print_dynamic_range_bound, print_range_type):
14096 Remove declaration.
14097
14098 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14099
14100 * ada-typeprint.c (print_range): Add missing empty line
14101 after local declaration.
14102
14103 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14104
14105 * ada-valprint.c (print_optional_low_bound): Get index_type's
14106 target type for as long as it is a TYPE_CODE_RANGE.
14107
14108 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14109
14110 * procfs.c (procfs_make_note_section): Remove assertion and
14111 associated comment.
14112
14113 2014-01-24 Yao Qi <yao@codesourcery.com>
14114
14115 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14116 * corelow.c (get_core_siginfo): Likewise.
14117
14118 2014-01-24 Yao Qi <yao@codesourcery.com>
14119
14120 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14121 ULONGEST. Don't check 'len' is negative.
14122 (remote_write_bytes): Change type of 'len' to ULONGEST.
14123
14124 2014-01-23 Tom Tromey <tromey@redhat.com>
14125
14126 PR python/16485:
14127 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14128 Handle exception from frame.block.
14129 (FrameVars.fetch_frame_locals): Likewise.
14130
14131 2014-01-23 Tom Tromey <tromey@redhat.com>
14132
14133 PR python/16487:
14134 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14135 on a NULL pointer. Move "goto error" to correct place.
14136
14137 2014-01-23 Tom Tromey <tromey@redhat.com>
14138
14139 PR python/16491:
14140 * python/py-framefilter.c (apply_frame_filter): Call
14141 ensure_python_env after computing gdbarch.
14142
14143 2014-01-23 Yao Qi <yao@codesourcery.com>
14144
14145 * target.c (raw_memory_xfer_partial): Change argument type
14146 from void * to gdb_byte *.
14147 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14148
14149 2014-01-22 Doug Evans <dje@google.com>
14150
14151 New gdbserver option --debug-format=timestamp.
14152 * NEWS: Mention it.
14153
14154 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14155
14156 * syscalls/s390x-linux.xml: New file.
14157 * syscalls/s390-linux.xml: New file.
14158 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14159 (XML_SYSCALL_FILENAME_S390X): Likewise.
14160 (op_svc): New enum value for SVC opcode.
14161 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14162 (s390_linux_get_syscall_number): New function.
14163 (s390_gdbarch_init): Register '*get_syscall_number' and the
14164 syscall xml file name.
14165 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14166 "s390-linux.xml" and "s390x-linux.xml".
14167 * NEWS: Announce new feature.
14168
14169 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14170
14171 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14172
14173 2014-01-22 Pedro Alves <palves@redhat.com>
14174
14175 * xtensa-config.c: Include defs.h.
14176
14177 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14178
14179 * common/common-utils.h: Add "ARI:" comment beside __func__
14180 reference.
14181
14182 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14183
14184 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14185 documentation a bit.
14186
14187 2014-01-21 Roland McGrath <mcgrathr@google.com>
14188
14189 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14190 * configure: Regenerate.
14191 * aclocal.m4: Regenerate.
14192 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14193 New substituted variables.
14194 (install-strip): New target.
14195 (INSTALL_SCRIPT): New substituted variable.
14196 (FLAGS_TO_PASS): Add it.
14197 (install-only): Use $(INSTALL_SCRIPT) rather than
14198 $(INSTALL_PROGRAM) for gcore.
14199
14200 2014-01-20 Tom Tromey <tromey@redhat.com>
14201
14202 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14203 together.
14204
14205 2014-01-20 Tom Tromey <tromey@redhat.com>
14206
14207 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14208 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14209 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14210 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14211 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14212 (struct cmd_list_element) <flags>: Remove.
14213 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14214 doc_allocated>: New fields.
14215 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14216 bitfields.
14217 * maint.c (maintenance_do_deprecate): Update.
14218 * top.c (execute_command): Update.
14219
14220 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14221
14222 * xtensa-linux-nat.c: Include asm/ptrace.h.
14223
14224 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14225
14226 * Makefile.in (SFILES): Add d-support.c.
14227 (COMMON_OBS): Add d-support.o.
14228 * d-lang.h (d_parse_symbol): Add comment, now defined in
14229 d-support.c.
14230 * d-lang.c (parse_call_convention)
14231 (parse_attributes, parse_function_types)
14232 (parse_function_args, parse_type, parse_identifier)
14233 (call_convention_p, d_parse_symbol): Move functions to ...
14234 * d-support.c: ... New file.
14235
14236 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14237
14238 * d-lang.h (d_parse_symbol): Add declaration.
14239 * d-lang.c (extract_identifiers)
14240 (extract_type_info): Remove functions.
14241 (parse_call_convention, parse_attributes)
14242 (parse_function_types, parse_function_args)
14243 (parse_type, parse_identifier, call_convention_p)
14244 (d_parse_symbol): New functions.
14245 (d_demangle): Use d_parse_symbol to demangle D symbols.
14246
14247 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14248
14249 * d-lang.h (struct builtin_d_type): New data type.
14250 (builtin_d_type): Add declaration.
14251 * d-lang.c (d_language_arch_info, build_d_types)
14252 (builtin_d_type): New functions.
14253 (enum d_primitive_types): New data type.
14254 (d_language_defn): Change c_language_arch_info to
14255 d_language_arch_info.
14256 (d_type_data): New static variable.
14257 (_initialize_d_language): Initialize d_type_data.
14258
14259 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14260
14261 * d-lang.h (d_main_name): Add declaration.
14262 * d-lang.c (d_main_name): New function.
14263 * symtab.c (find_main_name): Add call to d_main_name.
14264
14265 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14266
14267 * d-lang.c (d_language_defn): Change macro_expansion_c to
14268 macro_expansion_no.
14269
14270 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14271
14272 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14273
14274 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14275
14276 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14277 gdb_exception" declaration.
14278 * remote.c (getpkt_or_notif_sane): Likewise.
14279
14280 2014-01-17 Doug Evans <dje@google.com>
14281
14282 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14283 function, contents of dirnames_to_char_ptr_vec_append moved here.
14284 (delim_string_to_char_ptr_vec): New function.
14285 (dirnames_to_char_ptr_vec_append): Rewrite.
14286 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14287
14288 2014-01-17 Doug Evans <dje@google.com>
14289
14290 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14291 and moved here ...
14292 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14293 #include "common-utils.h".
14294 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14295 * common/vec.h (VEC_ASSERT_PASS): Update.
14296 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14297 (MACH_CHECK_ERROR): Update.
14298
14299 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14300
14301 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14302 comments.
14303 * gdbarch.h: Regenerate.
14304
14305 2014-01-16 Tom Tromey <tromey@redhat.com>
14306
14307 * value.c (struct value) <regnum>: Move earlier.
14308
14309 2014-01-16 Tom Tromey <tromey@redhat.com>
14310
14311 * remote.c (extended_remote_create_inferior): Rename from
14312 extended_remote_create_inferior_1. Add "ops" argument. Remove
14313 old implementation.
14314
14315 2014-01-16 Pedro Alves <palves@redhat.com>
14316
14317 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14318 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14319 the backchain.
14320
14321 2014-01-16 Doug Evans <dje@google.com>
14322
14323 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14324
14325 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14326
14327 * btrace.h (btrace_thread_flag): New.
14328 (struct btrace_thread_info) <flags>: New.
14329 * record-btrace.c (record_btrace_resume_thread)
14330 (record_btrace_find_thread_to_move, btrace_step_no_history)
14331 (btrace_step_stopped, record_btrace_start_replaying)
14332 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14333 (record_btrace_find_resume_thread): New.
14334 (record_btrace_resume, record_btrace_wait): Extend.
14335 (record_btrace_can_execute_reverse): New.
14336 (record_btrace_open): Fail in non-stop mode.
14337 (record_btrace_set_replay): Split into this, ...
14338 (record_btrace_stop_replaying): ... this, ...
14339 (record_btrace_clear_histories): ... and this.
14340 (init_record_btrace_ops): Init to_can_execute_reverse.
14341 * NEWS: Announce it.
14342
14343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14344
14345 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14346 (forward_target_decr_pc_after_break)
14347 (target_decr_pc_after_break): New.
14348 * target.c (forward_target_decr_pc_after_break)
14349 (target_decr_pc_after_break): New.
14350 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14351 instead of gdbarch_decr_pc_after_break.
14352 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14353 instead of gdbarch_decr_pc_after_break.
14354 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14355 instead of gdbarch_decr_pc_after_break.
14356 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14357 instead of gdbarch_decr_pc_after_break.
14358 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14359 instead of gdbarch_decr_pc_after_break.
14360 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14361 instead of gdbarch_decr_pc_after_break.
14362
14363 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14364
14365 * btrace.c: Include regcache.h.
14366 (btrace_add_pc): New.
14367 (btrace_enable): Call btrace_add_pc.
14368 (btrace_is_empty): New.
14369 * btrace.h (btrace_is_empty): New.
14370 * record-btrace.c (require_btrace, record_btrace_info): Call
14371 btrace_is_empty.
14372
14373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14374
14375 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14376 Support delta reads.
14377 (linux_disable_btrace): Change return type.
14378 * common/linux-btrace.h (linux_read_btrace): Change parameters
14379 and return type to allow error reporting. Update users.
14380 (linux_disable_btrace): Change return type. Update users.
14381 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14382 New.
14383 (btrace_error): New.
14384 (btrace_block) <begin>: Comment on BEGIN == 0.
14385 * btrace.c (btrace_compute_ftrace): Start from the end of
14386 the current trace.
14387 (btrace_stitch_trace, btrace_clear_history): New.
14388 (btrace_fetch): Read delta trace, return if replaying.
14389 (btrace_clear): Move clear history code to btrace_clear_history.
14390 (parse_xml_btrace): Throw an error if parsing failed.
14391 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14392 and return type to allow error reporting.
14393 (target_read_btrace): Change parameters and return type to allow
14394 error reporting.
14395 * target.c (target_read_btrace): Update.
14396 * remote.c (remote_read_btrace): Support delta reads. Pass
14397 errors on.
14398 * NEWS: Announce it.
14399
14400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14401
14402 * record.h (record_btrace_frame_unwind)
14403 (record_btrace_tailcall_frame_unwind): New declarations.
14404 * dwarf2-frame: Include record.h
14405 (dwarf2_frame_cfa): Throw an error for btrace frames.
14406 * record-btrace.c: Include hashtab.h.
14407 (btrace_get_bfun_name): New.
14408 (btrace_call_history): Call btrace_get_bfun_name.
14409 (struct btrace_frame_cache): New.
14410 (bfcache): New.
14411 (bfcache_hash, bfcache_eq, bfcache_new): New.
14412 (btrace_get_frame_function): New.
14413 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14414 (record_btrace_frame_this_id): Compute own id.
14415 (record_btrace_frame_prev_register): Provide PC, throw_error
14416 for all other registers.
14417 (record_btrace_frame_sniffer): Detect btrace frames.
14418 (record_btrace_tailcall_frame_sniffer): New.
14419 (record_btrace_frame_dealloc_cache): New.
14420 (record_btrace_frame_unwind): Add new functions.
14421 (record_btrace_tailcall_frame_unwind): New.
14422 (_initialize_record_btrace): Allocate cache.
14423 * btrace.c (btrace_clear): Call reinit_frame_cache.
14424 * NEWS: Announce it.
14425
14426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14427
14428 * record-btrace.c (record_btrace_set_replay)
14429 (record_btrace_goto_begin, record_btrace_goto_end)
14430 (record_btrace_goto): New.
14431 (init_record_btrace_ops): Initialize them.
14432 * NEWS: Announce it.
14433
14434 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14435
14436 * record-btrace.c (record_btrace_find_new_threads)
14437 (record_btrace_thread_alive): New.
14438 (init_record_btrace_ops): Initialize to_find_new_threads and
14439 to_thread_alive.
14440
14441 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14442
14443 * record-btrace.c (record_btrace_resume): New.
14444 (record_btrace_wait): New.
14445 (init_record_btrace_ops): Initialize to_wait and to_resume.
14446
14447 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14448
14449 * record-btrace.c (record_btrace_xfer_partial)
14450 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14451 (record_btrace_allow_memory_access): New.
14452 (init_record_btrace_ops): Initialize new methods.
14453 * target.c (raw_memory_xfer_partial): Bail out if target reports
14454 that this memory is not available.
14455
14456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14457
14458 * target.h (target_ops) <to_insert_breakpoint>
14459 <to_remove_breakpoint>: Add target_ops parameter.
14460 (forward_target_insert_breakpoint): New.
14461 (forward_target_remove_breakpoint): New.
14462 (memory_remove_breakpoint, memory_insert_breakpoint):
14463 Add target_ops parameter.
14464 * target.c (target_insert_breakpoint): Split into this and ...
14465 (forward_target_insert_breakpoint): ... this.
14466 (target_remove_breakpoint): Split into this and ...
14467 (forward_target_remove_breakpoint): ... this.
14468 (debug_to_insert_breakpoint): Add target_ops parameter.
14469 Call forward_target_insert_breakpoint.
14470 (debug_to_remove_breakpoint): Add target_ops parameter.
14471 Call forward_target_remove_breakpoint.
14472 (update_current_target): Do not inherit or default to_insert_breakpoint
14473 and to_remove_breakpoint.
14474 * corelow.c (ignore): Add target_ops parameter.
14475 * exec.c (ignore): Add target_ops parameter.
14476 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14477 Add target_ops parameter.
14478 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14479 Add target_ops parameter.
14480 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14481 Add target_ops parameter.
14482 * record-full.c (record_full_beneath_to_insert_breakpoint)
14483 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14484 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14485 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14486 (record_full_core_remove_breakpoint): Add target_ops parameter.
14487 Update users.
14488 (record_full_beneath_to_insert_breakpoint_ops)
14489 (record_full_beneath_to_remove_breakpoint_ops)
14490 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14491 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14492 tmp_to_remove_breakpoint_ops,
14493 record_full_beneath_to_insert_breakpoint_ops, and
14494 record_full_beneath_to_remove_breakpoint_ops.
14495 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14496 (m32r_remove_breakpoint): Add target_ops parameter.
14497 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14498 Add target_ops parameter.
14499 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14500 Add target_ops parameter.
14501
14502 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14503 Markus Metzger <markus.t.metzger@intel.com>
14504
14505 * record-btrace.c: Include frame-unwind.h.
14506 (record_btrace_frame_unwind_stop_reason)
14507 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14508 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14509 New.
14510 (init_record_btrace_ops): Install it.
14511
14512 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14513
14514 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14515 get_prev_frame_1.
14516
14517 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14518
14519 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14520 earlier.
14521
14522 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14523
14524 * frame-unwind.c: Include target.h.
14525 (frame_unwind_try_unwinder): New function with code from ...
14526 (frame_unwind_find_by_frame): ... here. New variable
14527 unwinder_from_target, call also target_get_unwinder)
14528 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14529 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14530 * target.h (struct target_ops): New fields to_get_unwinder and
14531 to_get_tailcall_unwinder.
14532 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14533
14534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14535
14536 * record-btrace.c (record_btrace_fetch_registers)
14537 (record_btrace_store_registers)
14538 (record_btrace_to_prepare_to_store): New.
14539 (init_record_btrace_ops): Add the above.
14540
14541 2014-01-16 Tom Tromey <tromey@redhat.com>
14542
14543 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14544 * target.h (struct target_ops) <to_prepare_to_store>: Add
14545 argument.
14546 (target_prepare_to_store): Add argument.
14547 * target.c (debug_to_prepare_to_store): Add argument.
14548 (update_current_target): Update.
14549 * remote.c (remote_prepare_to_store): Add 'self' argument.
14550 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14551 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14552 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14553 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14554 argument.
14555 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14556 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14557 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14558 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14559 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14560
14561 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14562
14563 * btrace.h (replay) <replay>: New.
14564 (btrace_is_replaying): New.
14565 * btrace.c (btrace_clear): Free replay iterator.
14566 (btrace_is_replaying): New.
14567 * record-btrace.c (record_btrace_is_replaying): New.
14568 (record_btrace_info): Print insn number if replaying.
14569 (record_btrace_insn_history): Start at replay position.
14570 (record_btrace_call_history): Start at replay position.
14571 (init_record_btrace_ops): Init to_record_is_replaying.
14572
14573 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14574
14575 * record-btrace.c (record_btrace_insn_history_range): Include
14576 end.
14577 (record_btrace_insn_history_from): Adjust range.
14578 (record_btrace_call_history_range): Include
14579 end.
14580 (record_btrace_call_history_from): Adjust range.
14581 * NEWS: Announce changes.
14582
14583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14584
14585 * record.h (enum record_print_flag)
14586 <record_print_indent_calls>: New.
14587 * record.c (get_call_history_modifiers): Recognize /c modifier.
14588 (_initialize_record): Document /c modifier.
14589 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14590 Reorder fields. Optionally indent the function name. Update
14591 all users.
14592 * NEWS: Announce changes.
14593
14594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14595
14596 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14597
14598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14599
14600 * btrace.c (ftrace_new_function): Start counting at one.
14601 * record-btrace.c (record_btrace_info): Adjust number of calls
14602 and insns.
14603 * NEWS: Announce it.
14604
14605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14606
14607 * record-btrace.c (btrace_call_history_insn_range): Print
14608 insn range as [begin, end].
14609
14610 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14611
14612 * btrace.h (struct btrace_func_link): New.
14613 (enum btrace_function_flag): New.
14614 (struct btrace_inst): Rename to ...
14615 (struct btrace_insn): ...this. Update all users.
14616 (struct btrace_func) <ibegin, iend>: Remove.
14617 (struct btrace_func_link): New.
14618 (struct btrace_func): Rename to ...
14619 (struct btrace_function): ...this. Update all users.
14620 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14621 (number, level, flags>: New.
14622 (struct btrace_insn_iterator): Rename to ...
14623 (struct btrace_insn_history): ...this.
14624 Update all users.
14625 (struct btrace_insn_iterator, btrace_call_iterator): New.
14626 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14627 (struct btrace_target_info) <begin, end, level>
14628 <insn_history, call_history>: New.
14629 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14630 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14631 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14632 (btrace_call_number, btrace_call_begin, btrace_call_end)
14633 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14634 (btrace_find_function_by_number, btrace_set_insn_history)
14635 (btrace_set_call_history): New.
14636 * btrace.c (btrace_init_insn_iterator)
14637 (btrace_init_func_iterator, compute_itrace): Remove.
14638 (ftrace_print_function_name, ftrace_print_filename)
14639 (ftrace_skip_file): Change
14640 parameter to const.
14641 (ftrace_init_func): Remove.
14642 (ftrace_debug): Use new btrace_function fields.
14643 (ftrace_function_switched): Also consider gaining and
14644 losing symbol information).
14645 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14646 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14647 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14648 New.
14649 (ftrace_new_function): Move. Remove debug print.
14650 (ftrace_update_lines, ftrace_update_insns): New.
14651 (ftrace_update_function): Check for call, ret, and jump.
14652 (compute_ftrace): Renamed to ...
14653 (btrace_compute_ftrace): ...this. Rewritten to compute call
14654 stack.
14655 (btrace_fetch, btrace_clear): Updated.
14656 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14657 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14658 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14659 (btrace_call_number, btrace_call_begin, btrace_call_end)
14660 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14661 (btrace_find_function_by_number, btrace_set_insn_history)
14662 (btrace_set_call_history): New.
14663 * record-btrace.c (require_btrace): Use new btrace thread
14664 info fields.
14665 (record_btrace_info, btrace_insn_history)
14666 (record_btrace_insn_history, record_btrace_insn_history_range):
14667 Use new btrace thread info fields and new iterator.
14668 (btrace_func_history_src_line): Rename to ...
14669 (btrace_call_history_src_line): ...this. Use new btrace
14670 thread info fields.
14671 (btrace_func_history): Rename to ...
14672 (btrace_call_history): ...this. Use new btrace thread info
14673 fields and new iterator.
14674 (record_btrace_call_history, record_btrace_call_history_range):
14675 Use new btrace thread info fields and new iterator.
14676
14677 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14678
14679 * frame.h (frame_id_build_unavailable_stack_special): New.
14680 * frame.c (frame_id_build_unavailable_stack_special): New.
14681
14682 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14683
14684 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14685 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14686 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14687 to gdbarch.
14688 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14689 (i386_insn_is_jump, i386_jmp_p): New.
14690 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14691 insn_is_jump to gdbarch.
14692 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14693 * gdbarch.h: Regenerated.
14694 * gdbarch.c: Regenerated.
14695 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14696 (default_insn_is_jump): New.
14697 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14698 (default_insn_is_jump): New.
14699
14700 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14701
14702 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14703 Change to ...
14704 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14705 (btrace_read_type) <btrace_read_new>: Change to ...
14706 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14707
14708 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14709
14710 * common/linux-btrace.c (linux_read_btrace): Free trace from
14711 previous iteration.
14712
14713 2014-01-15 Doug Evans <dje@google.com>
14714
14715 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14716 uint32_t.
14717
14718 2014-01-15 Tom Tromey <tromey@redhat.com>
14719
14720 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14721 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14722 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14723 (set_objfile_main_name): New function.
14724 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14725 language_of_main>: New fields.
14726 (set_objfile_main_name): Declare.
14727 * symtab.c (find_main_name): Loop over objfiles to find the main
14728 name and language.
14729 (set_main_name): Now static.
14730 (get_main_info): Add comment.
14731 * symtab.h (set_main_name): Don't declare.
14732
14733 2014-01-15 Tom Tromey <tromey@redhat.com>
14734
14735 * symtab.c (main_progspace_key): New global.
14736 (struct main_info): New.
14737 (name_of_main, language_of_main): Remove.
14738 (get_main_info, main_info_cleanup): New function.
14739 (set_main_name, main_name, main_language): Use get_main_info.
14740 (_initialize_symtab): Initialize main_progspace_key.
14741
14742 2014-01-15 Tom Tromey <tromey@redhat.com>
14743
14744 * dbxread.c (process_one_symbol): Update.
14745 * dwarf2read.c (read_partial_die): Update.
14746 * symfile.c (set_initial_language): Call main_language.
14747 * symtab.c (language_of_main): Now static.
14748 (set_main_name): Add 'lang' parameter.
14749 (find_main_name): Update.
14750 (main_language): New function.
14751 (symtab_observer_executable_changed): Update.
14752 * symtab.h (set_main_name): Update.
14753 (language_of_main): Remove.
14754 (main_language): Declare.
14755
14756 2014-01-15 Tom Tromey <tromey@redhat.com>
14757
14758 * symfile.c (init_entry_point_info): Use new "initialized" field.
14759 Update.
14760 * objfiles.h (struct entry_point) <initialized>: New field.
14761 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14762 (struct objfile) <ei>: ...here. Remove.
14763 * objfiles.c (entry_point_address_query): Update.
14764
14765 2014-01-15 Tom Tromey <tromey@redhat.com>
14766
14767 * objfiles.c (entry_point_address_query): Relocate entry point
14768 address.
14769 (objfile_relocate1): Do not relocate entry point address.
14770 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14771 <the_bfd_section_index>: New field.
14772 * symfile.c (init_entry_point_info): Find the entry point's
14773 section.
14774
14775 2014-01-15 Tom Tromey <tromey@redhat.com>
14776
14777 * solib-frv.c (enable_break): Use entry_point_address_query.
14778
14779 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14780
14781 * NEWS: Add note on improved process record-replay on
14782 arm*-linux* targets.
14783
14784 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14785
14786 * arm-tdep.c (enum arm_record_result): New enum.
14787 (arm_record_unsupported_insn): New function.
14788 (arm_record_coproc_data_proc): Removed.
14789 (thumb2_record_ld_st_multiple): New function.
14790 (thumb2_record_ld_st_dual_ex_tbb): New function.
14791 (thumb2_record_data_proc_sreg_mimm): New function.
14792 (thumb2_record_ps_dest_generic): New function.
14793 (thumb2_record_branch_misc_cntrl): New function.
14794 (thumb2_record_str_single_data): New function.
14795 (thumb2_record_ld_mem_hints): New function.
14796 (thumb2_record_ld_word): New function.
14797 (thumb2_record_lmul_lmla_div): New function.
14798 (thumb2_record_decode_insn_handler): New function.
14799 (decode_insn): Add thumb32 instruction handlers.
14800
14801 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14802
14803 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14804 (struct arm_linux_record_tdep): Declare.
14805 (arm_canonicalize_syscall): New function.
14806 (arm_all_but_pc_registers_record): New function.
14807 (arm_linux_syscall_record): New function.
14808 (arm_linux_init_abi): Add syscall recording constructs.
14809 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14810 decoding. (arm_record_coproc_data_proc): Update arm syscall
14811 decoding.
14812 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14813 <arm_syscall_record>: New field.
14814 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14815 gdb_target_obs.
14816
14817 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14818
14819 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14820 register for push instruction recording.
14821
14822 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14823
14824 * arm-tdep.c (thumb_record_misc): Update to correct logical
14825 error while recording ldm, ldmia and pop instructions.
14826
14827 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14828
14829 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14830
14831 2014-01-15 Pedro Alves <palves@redhat.com>
14832
14833 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14834 (go32_resume, go32_fetch_registers, store_register)
14835 (go32_store_registers, go32_prepare_to_store)
14836 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14837 (go32_create_inferior, go32_can_run, go32_terminal_init)
14838 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14839 declarations.
14840
14841 2014-01-15 Tom Tromey <tromey@redhat.com>
14842
14843 * target.h (async_callback_ftype): New typedef.
14844 (struct target_ops) <to_async>: Use it.
14845
14846 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14847
14848 * python/py-value.c (get_field_type): Remove unnecessary curly
14849 braces for single-statement if block.
14850
14851 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14852
14853 * python/py-type.c (convert_field): Add missing empty line
14854 after declarations.
14855
14856 2014-01-14 Doug Evans <dje@google.com>
14857
14858 * symfile.h (expand_symtabs_matching): Renamed from
14859 expand_partial_symbol_names. Update prototype.
14860 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14861 * symfile.c (expand_symtabs_matching): Renamed from
14862 expand_partial_symbol_names. New args file_matcher, kind.
14863 Rename arg fun to symbol_matcher.
14864 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14865 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14866 ada_expand_partial_symbol_name.
14867 (ada_make_symbol_completion_list): Update to call
14868 expand_symtabs_matching.
14869 (ada_add_global_exceptions): Call expand_symtabs_matching.
14870 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14871 call map_symbol_filenames.
14872 * symtab.c (sources_info): Update to call map_symbol_filenames.
14873 (search_symbols): Call expand_symtabs_matching.
14874 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14875 (default_make_symbol_completion_list_break_on): Update to call
14876 expand_symtabs_matching.
14877 (make_source_files_completion_list): Update to call
14878 map_symbol_filenames.
14879
14880 2014-01-14 Doug Evans <dje@google.com>
14881
14882 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14883 (expand_symtabs_symbol_matcher_ftype): New typedef.
14884 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14885 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14886 * symfile.c (expand_partial_symbol_names): Update to use
14887 expand_symtabs_symbol_matcher_ftype.
14888 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14889 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14890 Arg name_matcher renamed to symbol_matcher.
14891 * psymtab.c (recursively_search_psymtabs): Update to use
14892 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14893 sym_matcher.
14894 (expand_symtabs_matching_via_partial): Update to use
14895 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14896 Arg name_matcher renamed to symbol_matcher.
14897
14898 2014-01-14 Doug Evans <dje@google.com>
14899
14900 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14901 (map_partial_symbol_filenames): Ditto.
14902 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14903 (map_partial_symbol_filenames): Ditto.
14904 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14905 (map_partial_symbol_filenames): Ditto.
14906 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14907 (map_partial_symbol_filenames): Ditto.
14908 * symtab.c: Delete #include "psymtab.h".
14909
14910 2014-01-14 Pedro Alves <palves@redhat.com>
14911 Tom Tromey <tromey@redhat.com>
14912
14913 * infrun.c (use_displaced_stepping): Use find_record_target
14914 instead of RECORD_IS_USED.
14915 (adjust_pc_after_break): Use record_full_is_used instead of
14916 RECORD_IS_USED.
14917 * record-btrace.c (record_btrace_open): Call record_preopen
14918 instead of checking RECORD_IS_USED.
14919 * record-full.c (record_full_shortname)
14920 (record_full_core_shortname): New globals.
14921 (record_full_is_used): New function.
14922 (find_full_open): Call record_preopen instead of checking
14923 RECORD_IS_USED.
14924 (init_record_full_ops): Set the target's shortname to
14925 record_full_shortname.
14926 (init_record_full_core_ops): Set the target's shortname to
14927 record_full_core_shortname.
14928 * record-full.h (record_full_is_used): Declare.
14929 * record.c (find_record_target): Make extern.
14930 (record_preopen): New function.
14931 * record.h (RECORD_IS_USED): Delete macro.
14932 (find_record_target, record_preopen): Declare functions.
14933
14934 2014-01-14 Yao Qi <yao@codesourcery.com>
14935
14936 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14937 'len''s type to ULONGEST.
14938 (core_xfer_shared_libraries_aix): Likewise.
14939 * gdbarch.c, gdbarch.h: Regenerated.
14940 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14941 Change type of 'len' to ULONGEST.
14942 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14943 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14944
14945 2014-01-14 Yao Qi <yao@codesourcery.com>
14946
14947 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14948 type of 'len' to ULONGEST.
14949 (linux_xfer_osdata_processgroups): Likewise.
14950 (linux_xfer_osdata_threads): Likewise.
14951 (linux_xfer_osdata_fds): Likewise.
14952 (linux_xfer_osdata_isockets): Likewise.
14953 (linux_xfer_osdata_shm): Likewise.
14954 (linux_xfer_osdata_sem): Likewise.
14955 (linux_xfer_osdata_msg): Likewise.
14956 (linux_common_xfer_osdata): Likewise.
14957 (struct osdata_type) <getter>: Likewise.
14958 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14959 the declaration.
14960
14961 2014-01-14 Yao Qi <yao@codesourcery.com>
14962
14963 * target.h (target_xfer_partial_ftype): Update.
14964 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14965 ULONGEST.
14966 * aix-thread.c (aix_thread_xfer_partial): Change type of
14967 argument 'len' to ULONGEST.
14968 * auxv.c (procfs_xfer_auxv): Likewise.
14969 (ld_so_xfer_auxv): Likewise.
14970 (memory_xfer_auxv): Likewise.
14971 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14972 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14973 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14974 * corelow.c (core_xfer_partial): Likewise.
14975 * ctf.c (ctf_xfer_partial): Likewise.
14976 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14977 '%u'.
14978 (darwin_read_dyld_info): Likewise.
14979 (darwin_xfer_partial): Likewise.
14980 * exec.c (section_table_xfer_memory_partial): Likewise.
14981 (exec_xfer_partial): Likewise.
14982 * exec.h (section_table_xfer_memory_partial): Update
14983 declaration.
14984 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14985 instead of plongest.
14986 (gnu_xfer_partial): Likewise.
14987 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14988 (ia64_hpux_xfer_solib_got): Likewise.
14989 (ia64_hpux_xfer_partial): Likewise.
14990 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14991 * inf-ptrace.c (inf_ptrace_xfer_partial):
14992 * inf-ttrace.c (inf_ttrace_xfer_partial):
14993 * linux-nat.c (linux_xfer_siginfo): Likewise.
14994 (linux_nat_xfer_partial): Likewise.
14995 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14996 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14997 * monitor.c (monitor_xfer_memory): Likewise.
14998 (monitor_xfer_partial): Likewise.
14999 * procfs.c (procfs_xfer_partial): Likewise.
15000 * record-full.c (record_full_xfer_partial): Likewise.
15001 (record_full_core_xfer_partial): Likewise.
15002 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15003 instead of plongest.
15004 (gdbsim_xfer_partial): Likewise.
15005 * remote.c (remote_xfer_partial): Likewise.
15006 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15007 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15008 declaration.
15009 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15010 (rs6000_xfer_shared_libraries): Likewise.
15011 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15012 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15013 (sparc_xfer_partial): Likewise.
15014 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15015 (spu_xfer_partial): Likewise.
15016 * spu-multiarch.c (spu_xfer_partial): Likewise.
15017 * target.c (target_read_live_memory): Likewise.
15018 (memory_xfer_live_readonly_partial): Likewise.
15019 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15020 (target_xfer_partial, default_xfer_partial): Likewise.
15021 (current_xfer_partial): Likewise.
15022 * tracepoint.c (tfile_xfer_partial): Likewise.
15023 * windows-nat.c (windows_xfer_memory): Likewise. Call
15024 pulongest instead of plongest.
15025 (windows_xfer_partial): Likewise.
15026 (windows_xfer_shared_libraries): Likewise.
15027
15028 2014-01-14 Yao Qi <yao@codesourcery.com>
15029
15030 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15031 target_xfer_partial_ftype.
15032
15033 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15034
15035 PR python/15464
15036 PR python/16113
15037 * valops.c (value_struct_elt_bitpos): New function
15038 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15039 object to 'None' if the field name is an empty string ("").
15040 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15041 attribute to look for a field when 'name' is 'None'.
15042 (get_field_type): New function
15043
15044 2014-01-13 Doug Evans <dje@google.com>
15045
15046 PR symtab/16426
15047 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15048 (try_open_dwop_file): Ditto.
15049 * gdb_bfd.c: #include "vec.h".
15050 (bfdp): New typedef.
15051 (struct gdb_bfd_data): New member included_bfds.
15052 (gdb_bfd_unref): Unref all included bfds.
15053 (gdb_bfd_record_inclusion): New function.
15054 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15055
15056 2014-01-13 Tom Tromey <tromey@redhat.com>
15057
15058 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15059
15060 2014-01-13 Tom Tromey <tromey@redhat.com>
15061
15062 * defs.h (use_windows): Remove.
15063 * gdb.c (main): Update.
15064 * main.c (captured_main, gdb_main): Update.
15065 * main.h (struct captured_main_args) <use_windows>: Remove.
15066 * top.c (use_windows): Remove.
15067
15068 2014-01-13 Tom Tromey <tromey@redhat.com>
15069
15070 * defs.h (deprecated_flush_hook): Remove.
15071
15072 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15073
15074 PR threads/16216
15075 * linux-thread-db.c (try_thread_db_load): Add parameter
15076 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15077 (try_thread_db_load_from_pdir_1): Move it there from here.
15078 (try_thread_db_load_from_sdir): Update caller.
15079 (try_thread_db_load_from_dir): Move it there from here.
15080
15081 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15082
15083 * regformats/regdat.sh: Always rewrite the register file.
15084
15085 2014-01-13 Pedro Alves <palves@redhat.com>
15086
15087 * Makefile.in (CHECK_HEADERS): New variable.
15088 (check-headers:): New rule.
15089
15090 2014-01-13 Tom Tromey <tromey@redhat.com>
15091
15092 * cli/cli-setshow.c (do_set_command): Update.
15093 * defs.h (deprecated_set_hook): Remove.
15094 * top.c (deprecated_set_hook): Remove.
15095
15096 2014-01-13 Pedro Alves <palves@redhat.com>
15097
15098 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15099 the tracepoint if the PC is a pseudo-register.
15100
15101 2014-01-13 Tom Tromey <tromey@redhat.com>
15102
15103 * defs.h (XCALLOC): Remove.
15104 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15105 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15106 * dwarf2loc.c (allocate_piece_closure): Likewise.
15107 * elfread.c (elf_symfile_segments): Likewise.
15108 (elf_symfile_segments): Likewise.
15109 * gdbtypes.c (copy_type_recursive): Likewise.
15110 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15111 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15112 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15113 XCALLOC.
15114 * mt-tdep.c (mt_gdbarch_init): Likewise.
15115 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15116 XCALLOC.
15117 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15118 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15119 * registry.c (registry_alloc_data): Likewise.
15120 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15121 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15122 * serial.c (serial_fdopen_ops): Likewise.
15123 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15124 XCALLOC.
15125 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15126 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15127 not XCALLOC.
15128
15129 2014-01-13 Tom Tromey <tromey@redhat.com>
15130
15131 * defs.h (XMALLOC): Remove.
15132 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15133 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15134 * cli-out.c (struct ui_out *): Likewise.
15135 * cli/cli-dump.c (add_dump_command): Likewise.
15136 (add_dump_command): Likewise.
15137 * complaints.c (get_complaints): Likewise.
15138 (find_complaint): Likewise.
15139 * dwarf2-frame.c (execute_cfa_program): Likewise.
15140 * dwarf2read.c (abbrev_table_read_table): Likewise.
15141 * gdbarch.sh: Likewise.
15142 * gdbarch.c: Rebuild.
15143 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15144 * interps.c (interp_new): Likewise.
15145 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15146 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15147 * mi/mi-console.c (mi_console_file_new): Likewise.
15148 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15149 * mi/mi-out.c (mi_out_new): Likewise.
15150 * mi/mi-parse.c (mi_parse): Likewise.
15151 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15152 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15153 * observer.c (xalloc_observer_list_node): Likewise.
15154 * regcache.c (regcache_xmalloc_1): Likewise.
15155 * reggroups.c (reggroup_new): Likewise.
15156 (_initialize_reggroup): Likewise.
15157 * registry.c (register_data_with_cleanup): Likewise.
15158 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15159 * ser-base.c (serial_ttystate): Likewise.
15160 * ser-mingw.c (make_pipe_state): Likewise.
15161 * ser-pipe.c (pipe_open): Likewise.
15162 * serial.c (serial_open): Likewise.
15163 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15164 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15165 (tui_alloc_win_info): Likewise.
15166 (tui_add_content_elements): Likewise.
15167 * tui/tui-file.c (tui_file_new): Likewise.
15168 * tui/tui-out.c (tui_out_new): Likewise.
15169 * ui-file.c (mem_file_new): Likewise.
15170 * ui-out.c (push_level): Likewise.
15171 (make_cleanup_ui_out_end): Likewise.
15172 (append_header_to_list): Likewise.
15173 (ui_out_new): Likewise.
15174 * user-regs.c (user_reg_add_builtin): Likewise.
15175
15176 2014-01-13 Tom Tromey <tromey@redhat.com>
15177
15178 * defs.h (XZALLOC): Remove.
15179 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15180 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15181 (get_ada_tasks_inferior_data): Likewise.
15182 * auto-load.c (get_auto_load_pspace_data): Likewise.
15183 * auxv.c (get_auxv_inferior_data): Likewise.
15184 * bfd-target.c (target_bfd_reopen): Likewise.
15185 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15186 (deprecated_insert_raw_breakpoint): Likewise.
15187 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15188 * corelow.c (core_open): Likewise.
15189 * darwin-nat.c (darwin_check_new_threads): Likewise.
15190 (darwin_attach_pid): Likewise.
15191 * dummy-frame.c (dummy_frame_push): Likewise.
15192 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15193 * dwarf2loc.c (allocate_piece_closure): Likewise.
15194 * elfread.c (elf_symfile_segments): Likewise.
15195 * eval.c (ptrmath_type_p): Likewise.
15196 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15197 * gdbtypes.c (alloc_type_arch): Likewise.
15198 (alloc_type_instance): Likewise.
15199 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15200 * inf-child.c (inf_child_can_use_agent): Likewise.
15201 * inflow.c (get_inflow_inferior_data): Likewise.
15202 * infrun.c (save_infcall_suspend_state): Likewise.
15203 * jit.c (jit_reader_load): Likewise.
15204 (get_jit_objfile_data): Likewise.
15205 (get_jit_program_space_data): Likewise.
15206 (jit_object_open_impl): Likewise.
15207 (jit_symtab_open_impl): Likewise.
15208 (jit_block_open_impl): Likewise.
15209 (jit_frame_sniffer): Likewise.
15210 * linux-fork.c (add_fork): Likewise.
15211 * maint.c (make_command_stats_cleanup): Likewise.
15212 * objfiles.c (get_objfile_pspace_data): Likewise.
15213 * opencl-lang.c (struct lval_closure): Likewise.
15214 * osdata.c (osdata_start_osdata): Likewise.
15215 * progspace.c (new_address_space): Likewise.
15216 (add_program_space): Likewise.
15217 * remote-sim.c (get_sim_inferior_data): Likewise.
15218 * sh-tdep.c (sh_gdbarch_init): Likewise.
15219 * skip.c (Ignore): Likewise.
15220 (skip_delete_command): Likewise.
15221 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15222 (library_list_start_library): Likewise.
15223 (solib_aix_current_sos): Likewise.
15224 * solib-darwin.c (get_darwin_info): Likewise.
15225 (darwin_current_sos): Likewise.
15226 * solib-dsbt.c (get_dsbt_info): Likewise.
15227 * solib-ia64-hpux.c (new_so_list): Likewise.
15228 (ia64_hpux_get_solib_linkage_addr): Likewise.
15229 * solib-spu.c (append_ocl_sos): Likewise.
15230 (spu_current_sos): Likewise.
15231 * solib-svr4.c (get_svr4_info): Likewise.
15232 (svr4_keep_data_in_core): Likewise.
15233 (library_list_start_library): Likewise.
15234 (svr4_default_sos): Likewise.
15235 (svr4_read_so_list): Likewise.
15236 * solib-target.c (library_list_start_library): Likewise.
15237 (solib_target_current_sos): Likewise.
15238 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15239 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15240 * symfile.c (default_symfile_segments): Likewise.
15241 * target-descriptions.c (tdesc_data_init): Likewise.
15242 (tdesc_create_reg): Likewise.
15243 (struct tdesc_type *): Likewise.
15244 (tdesc_create_vector): Likewise.
15245 (tdesc_set_struct_size): Likewise.
15246 (struct tdesc_type *): Likewise.
15247 (tdesc_free_feature): Likewise.
15248 (tdesc_create_feature): Likewise.
15249 * windows-nat.c (windows_add_thread): Likewise.
15250 (windows_make_so): Likewise.
15251 * xml-support.c (gdb_xml_body_text): Likewise.
15252 (gdb_xml_create_parser_and_cleanup): Likewise.
15253 (xml_process_xincludes): Likewise.
15254 * xml-syscall.c (allocate_syscalls_info): Likewise.
15255 (syscall_create_syscall_desc): Likewise.
15256
15257 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15258
15259 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15260 function, with code from i386_stap_parse_special_token.
15261 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15262 (i386_stap_parse_special_token): Move code to the two functions
15263 above; simplify it.
15264
15265 2014-01-09 Pedro Alves <palves@redhat.com>
15266 Hui Zhu <hui@codesourcery.com>
15267
15268 PR gdb/16101
15269 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15270 bp_err_string. Don't mark the location shlib_disabled if the
15271 error thrown wasn't a generic or memory error. Catch errors
15272 thrown while inserting breakpoints in overlayed code. Output
15273 error message of software breakpoints.
15274 * remote.c (remote_insert_breakpoint): If this breakpoint has
15275 target-side commands but this stub doesn't support Z0 packets,
15276 throw NOT_SUPPORTED_ERROR error.
15277 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15278 * target.h (target_insert_breakpoint): Extend comment.
15279 (target_insert_hw_breakpoint): Add comment.
15280
15281 2014-01-08 Pedro Alves <palves@redhat.com>
15282
15283 * remote.c (remote_add_thread): Add threads silently if starting
15284 up.
15285 (remote_notice_new_inferior): If in all-stop, and starting up,
15286 don't call notice_new_inferior.
15287 (get_current_thread): New function, factored out from ...
15288 (add_current_inferior_and_thread): ... this. Adjust.
15289 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15290 found any thread, then select the remote's current thread as GDB's
15291 current thread too.
15292
15293 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15294
15295 * NEWS: Create a new section for the next release branch.
15296 Rename the section of the current branch, now that it has
15297 been cut.
15298
15299 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15300
15301 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15302 * version.in: Bump version to 7.7.50.DATE-cvs.
15303
15304 2014-01-08 Yao Qi <yao@codesourcery.com>
15305
15306 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15307 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15308 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15309
15310 2014-01-08 Yao Qi <yao@codesourcery.com>
15311
15312 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15313 return value of bfd_get_filename to symbol_file_add_from_bfd.
15314
15315 2014-01-08 Pierre Muller <muller@sourceware.org>
15316
15317 Fix PR16201.
15318 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15319 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15320 to prim_record_mininal_symbol_and_info.
15321 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15322 in call to prim_record_minimal_symbol_and_info.
15323 (read_pe_exported_syms): Set index field of section_data.
15324
15325 2014-01-07 Andrew Pinski <apinski@cavium.com>
15326
15327 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15328 * features/aarch64.c: Regenerate.
15329
15330 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15331
15332 * target.c (return_null): Define.
15333 (update_current_target): Use it instead of return_zero for
15334 functions that return a pointer.
15335
15336 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15337
15338 * source.c (add_path): Fix check for duplicated paths in the previously
15339 included paths.
15340
15341 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15342
15343 * ada-lang.c: Remove duplicated include statements.
15344 * alphabsd-nat.c: Ditto.
15345 * amd64-darwin-tdep.c: Ditto.
15346 * amd64fbsd-nat.c: Ditto.
15347 * auto-load.c: Ditto.
15348 * ax-gdb.c: Ditto.
15349 * breakpoint.c: Ditto.
15350 * dbxread.c: Ditto.
15351 * fork-child.c: Ditto.
15352 * gdb_usleep.c: Ditto.
15353 * i386-darwin-tdep.c: Ditto.
15354 * i386fbsd-nat.c: Ditto.
15355 * infcmd.c: Ditto.
15356 * inferior.c: Ditto.
15357 * jv-lang.c: Ditto.
15358 * linux-nat.c: Ditto.
15359 * linux-tdep.c: Ditto.
15360 * m68kbsd-nat.c: Ditto.
15361 * m68klinux-nat.c: Ditto.
15362 * microblaze-tdep.c: Ditto.
15363 * mips-linux-tdep.c: Ditto.
15364 * mn10300-tdep.c: Ditto.
15365 * nto-tdep.c: Ditto.
15366 * opencl-lang.c: Ditto.
15367 * osdata.c: Ditto.
15368 * printcmd.c: Ditto.
15369 * regcache.c: Ditto.
15370 * remote-m32r-sdi.c: Ditto.
15371 * remote.c: Ditto.
15372 * symfile.c: Ditto.
15373 * symtab.c: Ditto.
15374 * tilegx-linux-nat.c: Ditto.
15375 * tilegx-tdep.c: Ditto.
15376 * tracepoint.c: Ditto.
15377 * valops.c: Ditto.
15378 * vaxbsd-nat.c: Ditto.
15379 * windows-nat.c: Ditto.
15380 * xtensa-tdep.c: Ditto.
15381
15382 2014-01-07 Yao Qi <yao@codesourcery.com>
15383
15384 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15385
15386 2014-01-07 Yao Qi <yao@codesourcery.com>
15387 Joel Brobecker <brobecker@adacore.com>
15388
15389 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15390 (pdc_write_regs): Likewise.
15391 (fetch_regs_kernel_thread): Likewise.
15392 (store_regs_kernel_thread): Likewise.
15393
15394 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15395
15396 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15397 tagged type objects to their actual type.
15398
15399 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15400
15401 * ada-valprint.c (print_field_values): Add "language" parameter.
15402 Update calls to print_field_values and print_variant_part.
15403 Pass new parameter "language" in call to val_print instead
15404 of "current_language". Replace call to ada_val_print by call
15405 to val_print.
15406 (print_variant_part): Add "language" parameter.
15407 (ada_val_print_struct_union): Update call to print_field_values.
15408
15409 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15410
15411 * ada-valprint.c (ui_memcpy): Delete.
15412 (ada_print_floating): Update documentation. Add empty line
15413 between between function documentation and implementation.
15414 Delete variable "buffer". Use ui_file_xstrdup in place of
15415 ui_file_put. Minor adjustments following this change.
15416
15417 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15418
15419 * ada-valprint.c (ada_val_print_string): New function,
15420 extracted from ada_val_print_array.
15421 (ada_val_print_array): Replace extracted code by call
15422 to ada_val_print_string followed by a return. Move
15423 "else" branch to the function's top block.
15424
15425 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15426
15427 * ada-valprint.c (ada_val_print_array): Move implementation
15428 down. Rename parameter "offset" and "val" into "offset_aligned"
15429 and "original_value" respectively. Add parameter "offset".
15430
15431 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15432
15433 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15434 re-organizing the code. Change the "???" message printed
15435 when target type is a TYPE_CODE_UNDEF into
15436 "<ref to undefined type>".
15437
15438 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15439
15440 * ada-valprint.c (print_record): Delete, implementation inlined...
15441 (ada_val_print_struct_union): ... here. Remove call to
15442 ada_check_typedef in inlined implementation.
15443
15444 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15445
15446 * ada-valprint.c (ada_val_print_gnat_array): New function,
15447 extracted from ada_val_print_1;
15448 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15449 (ada_val_print_flt, ada_val_print_struct_union)
15450 (ada_val_print_ref): Likewise.
15451 (ada_val_print_1): Delete variables i and elttype.
15452 Replace extracted-out code by call to corresponding
15453 new functions.
15454
15455 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15456
15457 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15458
15459 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15460
15461 * ada-valprint.c (ada_val_print_1): Replace calls to
15462 ada_val_print_1 by calls to val_print.
15463
15464 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15465
15466 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15467 Update calls to self accordingly. Replace calls to c_val_print
15468 by calls to val_print.
15469
15470 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15471
15472 * ada-valprint.c (print_record): Delete declaration.
15473 (adjust_type_signedness, ada_val_print_1): Likewise.
15474 (ada_val_print): Move function implementation down.
15475 (print_variant_part, print_field_values, print_record):
15476 Move function implementation up.
15477
15478 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15479
15480 * python/py-type.c (typy_get_name): New function.
15481 (type_object_getset): Add entry for attribute "name".
15482 * NEWS: Add entry mentioning this new attribute.
15483
15484 2014-01-07 Yao Qi <yao@codesourcery.com>
15485
15486 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15487 statement.
15488
15489 2014-01-07 Yao Qi <yao@codesourcery.com>
15490
15491 * gnu-nat.c (info_port_rights): Add qualifier const to
15492 argument args.
15493
15494 2014-01-07 Yao Qi <yao@codesourcery.com>
15495
15496 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15497
15498 2014-01-07 Yao Qi <yao@codesourcery.com>
15499
15500 * gnu-nat.c (make_inf) Update declaration.
15501 (make_inf): Make it static.
15502 (inf_set_traced): Likewise.
15503 (inf_port_to_thread, inf_task_died_status): Likewise.
15504
15505 2014-01-07 Yao Qi <yao@codesourcery.com>
15506
15507 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15508
15509 2014-01-07 Yao Qi <yao@codesourcery.com>
15510
15511 * gnu-nat.c (_initialize_gnu_nat): Declare.
15512
15513 2014-01-07 Yao Qi <yao@codesourcery.com>
15514
15515 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15516 'enum bfd_endian'.
15517 (struct gdbarch_info) <byte_order>: Change type to
15518 'enum bfd_endian'.
15519 <byte_order_for_code>: Likewise.
15520 * gdbarch.c, gdbarch.h: Regenerated.
15521
15522 2014-01-06 Sasha Smundak <asmundak@google.com>
15523
15524 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15525
15526 2014-01-06 Tom Tromey <tromey@redhat.com>
15527
15528 * doublest.c (convert_doublest_to_floatformat): Use const, not
15529 CONST.
15530 * somread.c (som_symtab_read): Likewise.
15531
15532 2014-01-07 Hui Zhu <hui@codesourcery.com>
15533
15534 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15535 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15536 (gdb_bfd_fopen): Ditto.
15537 (gdb_bfd_openr): Ditto.
15538 (gdb_bfd_openw): Ditto.
15539 (gdb_bfd_openr_iovec): Ditto.
15540 (gdb_bfd_fdopenr): Ditto.
15541 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15542 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15543 with xstrdup.
15544 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15545 with xstrdup.
15546 * symfile-mem.c (symbol_file_add_from_memory): Removed
15547 gdb_bfd_stash_filename.
15548
15549 2014-01-03 Doug Evans <dje@google.com>
15550
15551 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15552 output.
15553
15554 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15555
15556 Update year range in copyright notice of all files.
15557
15558 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15559
15560 * top.c (print_gdb_version): Set copyright year to 2014.
15561
15562 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15563
15564 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15565
15566 For older changes see ChangeLog-2013.
15567 \f
15568 Local Variables:
15569 mode: change-log
15570 left-margin: 8
15571 fill-column: 74
15572 version-control: never
15573 coding: utf-8
15574 End: