]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb_realpath: Rework comment about handling on Windows.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-28 Joel Brobecker <brobecker@adacore.com>
2
3 * utils.c (gdb_realpath): Rework comment about handling on
4 Windows.
5
6 2014-11-28 Yao Qi <yao@codesourcery.com>
7
8 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
9 rename.
10 * gnulib/aclocal.m4: Re-generated.
11 * gnulib/config.in: Re-generated.
12 * gnulib/configure: Re-generated.
13 * gnulib/import/Makefile.am: Re-generated.
14 * gnulib/import/Makefile.in: Re-generated.
15 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
16 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
17 * import/basename-lgpl.c: New file.
18 * import/dirname-lgpl.c: New file.
19 * import/dirname.h: New file.
20 * import/m4/dirname.m4: New file.
21 * import/m4/malloc.m4: New file.
22 * import/m4/rename.m4: New file.
23 * import/m4/rmdir.m4: New file.
24 * import/m4/stdio_h.m4: New file.
25 * import/malloc.c: New file.
26 * import/rename.c: New file.
27 * import/rmdir.c: New file.
28 * import/same-inode.h: New file.
29 * import/stdio.c: New file.
30 * import/stdio.in.h: New file.
31 * import/stripslash.c: New file.
32
33 2014-11-28 Yao Qi <yao@codesourcery.com>
34
35 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
36 and realpath.
37 * config.in: Re-generated.
38 * configure: Re-generated.
39 * utils.c (gdb_realpath): Remove code calling realpath,
40 canonicalize_file_name and pathconf.
41 [!_WIN32]: Call canonicalize_file_name.
42
43 2014-11-28 Yao Qi <yao@codesourcery.com>
44
45 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
46 canonicalize-lgpl.
47 * aclocal.m4: Re-generated.
48 * config.in: Re-generated.
49 * configure: Re-generated.
50 * import/Makefile.am: Re-generated.
51 * import/Makefile.in: Re-generated.
52 * import/m4/gnulib-cache.m4: Re-generated.
53 * import/m4/gnulib-comp.m4: Re-generated.
54 * import/canonicalize-lgpl.c: New file.
55 * import/extra/snippet/_Noreturn.h: New file.
56 * import/m4/canonicalize.m4: New file.
57 * import/m4/double-slash-root.m4: New file.
58 * import/m4/eealloc.m4: New file.
59 * import/m4/malloca.m4: New file.
60 * import/m4/nocrash.m4: New file.
61 * import/m4/stdlib_h.m4: New file.
62 * import/malloca.c: New file.
63 * import/malloca.h: New file.
64 * import/malloca.valgrind: New file.
65
66 2014-11-28 Yao Qi <yao@codesourcery.com>
67
68 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
69 * config.in, configure: Regenerate.
70 * symfile.c (find_separate_debug_file_by_debuglink): Remove
71 code checking HAVE_LSTAT is defined.
72
73 2014-11-28 Yao Qi <yao@codesourcery.com>
74
75 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
76 lstat.
77 * gnulib/aclocal.m4: Re-generated.
78 * gnulib/config.in: Re-generated.
79 * gnulib/configure: Re-generated.
80 * gnulib/import/Makefile.am: Re-generated.
81 * gnulib/import/Makefile.in: Re-generated.
82 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
83 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
84 * gnulib/import/lstat.c: New file.
85 * gnulib/import/m4/lstat.m4: New file.
86
87 2014-11-28 Yao Qi <yao@codesourcery.com>
88
89 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
90 * config.in, configure: Re-generate.
91 * inf-child.c (inf_child_fileio_readlink): Don't check
92 HAVE_READLINK is defined.
93
94 2014-11-28 Yao Qi <yao@codesourcery.com>
95
96 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
97 * gnulib/aclocal.m4: Re-generated.
98 * gnulib/config.in: Likewise.
99 * gnulib/configure: Likewise.
100 * gnulib/import/Makefile.am: Likewise.
101 * gnulib/import/Makefile.in: Likewise.
102 * gnulib/import/m4/gnulib-cache.m4: Likewise.
103 * gnulib/import/m4/gnulib-comp.m4: Likewise.
104 * gnulib/import/dosname.h: New file
105 * gnulib/import/m4/largefile.m4: New file.
106 * gnulib/import/m4/readlink.m4: New file.
107 * gnulib/import/m4/stat.m4: New file.
108 * gnulib/import/readlink.c: New file.
109 * gnulib/import/stat.c: New file.
110
111 2014-11-26 Mark Wielaard <mjw@redhat.com>
112
113 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
114 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
115
116 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
117
118 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
119 that there can be only one stack adjustment in the prologue
120 with tests to detect specific disallowed stack adjustments.
121
122 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
123
124 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
125 adjustments.
126
127 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
128
129 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
130 the instruction as well as reading it from memory.
131 (nios2_match_add): New.
132 (nios2_match_sub): New.
133 (nios2_match_addi): New.
134 (nios2_match_orhi): New.
135 (nios2_match_stw): New.
136 (nios2_match_ldw): New.
137 (nios2_match_rdctl): New.
138 (enum branch_condition): New.
139 (nios2_match_branch): New.
140 (nios2_match_jmpi): New.
141 (nios2_match_calli): New.
142 (nios2_match_jmpr): New.
143 (nios2_match_callr): New.
144 (nios2_match_break): New.
145 (nios2_match_trap): New.
146 (nios2_in_epilogue_p): Rewrite to use new functions.
147 (nios2_analyze_prologue): Likewise.
148 (nios2_skip_prologue): Delete unused local limit_pc.
149 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
150 (nios2_get_next_pc): Rewrite to use new functions.
151
152 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
153
154 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
155
156 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
157
158 Pushed by Joel Brobecker <brobecker@adacore.com>
159 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
160 elements pi_len by the size of the elements before calling
161 vm_deallocate.
162 (inf_validate_task_sc): Likewise, and properly deallocate the
163 noise array.
164
165 2014-11-23 Doug Evans <xdje42@gmail.com>
166
167 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
168 number and name if present. All callers updated.
169 (dump_fn_fieldlists): Fix indentation of args.
170
171 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
172
173 * MAINTAINERS (Write After Approval): Add myself.
174
175 2014-11-23 Joel Brobecker <brobecker@adacore.com>
176
177 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
178 to a bp_call_dummy breakpoint type.
179
180 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
181
182 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
183 registering the signal handler.
184
185 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
186
187 * event-top.h (call_stdin_event_handler_again_p): Declare.
188 * event-top.c (call_stdin_event_handler_again_p): Define.
189 (stdin_event_handler): Use it.
190 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
191 handler again if there is pending input following a
192 start sequence.
193
194 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
195
196 Pushed by Joel Brobecker <brobecker@adacore.com>
197 * linux-fork.c (checkpoint_command): Print index of new
198 checkpoint in response message.
199
200 2014-11-23 Yao Qi <yao@codesourcery.com>
201
202 * valprint.c (read_string): Move local variables 'found_nul',
203 'chunksize' and 'limit' to inner scope. Update comments.
204
205 2014-11-22 Doug Evans <xdje42@gmail.com>
206
207 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
208 function comment.
209 (search_symbols): Fix comments and whitespace.
210
211 2014-11-22 Doug Evans <xdje42@gmail.com>
212
213 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
214
215 2014-11-21 Doug Evans <dje@google.com>
216
217 * psymtab.c (psymtab_search_name): Fix whitespace.
218
219 2014-11-21 Yao Qi <yao@codesourcery.com>
220
221 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
222 errno.
223 * gnulib/import/Makefile.am: Re-generated.
224 * gnulib/import/Makefile.in: Likewise.
225 * gnulib/import/m4/gnulib-cache.m4: Likewise.
226
227 2014-11-21 Yao Qi <yao@codesourcery.com>
228
229 * gdb_wchar.h: Include wchar.h and wctype.h.
230 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
231 include wchar.h and wctype.h.
232 Don't check HAVE_WCHAR_H.
233
234 2014-11-21 Yao Qi <yao@codesourcery.com>
235
236 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
237 and wctype-h.
238 * gnulib/import/Makefile.am: Re-generated.
239 * gnulib/import/Makefile.in: Likewise.
240 * gnulib/import/m4/gnulib-cache.m4: Likewise.
241
242 2014-11-21 Yao Qi <yao@codesourcery.com>
243
244 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
245 memchr.
246 * gnulib/import/Makefile.am: Re-generated.
247 * gnulib/import/Makefile.in: Likewise.
248 * gnulib/import/m4/gnulib-cache.m4: Likewise.
249
250 2014-11-21 Yao Qi <yao@codesourcery.com>
251
252 * common/common-defs.h: Include alloca.h
253 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
254 * configure: Re-generated.
255 * defs.h: Remove code handling alloca.
256 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
257 or not.
258
259 2014-11-21 Yao Qi <yao@codesourcery.com>
260
261 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
262 alloca.
263 * gnulib/import/Makefile.am: Re-generated.
264 * gnulib/import/Makefile.in: Likewise..
265 * gnulib/import/m4/gnulib-cache.m4: Likewise.
266
267 2014-11-21 Yao Qi <yao@codesourcery.com>
268
269 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
270 alphabetical order.
271
272 2014-11-21 Joel Brobecker <brobecker@adacore.com>
273
274 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
275 flag_unsigned if HIGH_BOUND is constant and negative.
276
277 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
278
279 PR breakpoints/10737
280 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
281 modifier from "struct gdbarch" when compiling without Expat (XML)
282 support.
283 (get_syscall_by_number): Likewise.
284 (get_syscall_by_name): Likewise.
285 (get_syscall_names): Likewise.
286
287 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
288
289 PR breakpoints/10737
290 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
291 set_xml_syscall_file_name to provide gdbarch.
292 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
293 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
294 * breakpoint.c (print_it_catch_syscall): Adjust call to
295 get_syscall_by_number to provide gdbarch.
296 (print_one_catch_syscall): Likewise.
297 (print_mention_catch_syscall): Likewise.
298 (print_recreate_catch_syscall): Likewise.
299 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
300 and get_syscall_by_name to provide gdbarch.
301 (catch_syscall_completer): Adjust call to get_syscall_names to
302 provide gdbarch.
303 * gdbarch.c: Regenerate.
304 * gdbarch.h: Likewise.
305 * gdbarch.sh: Forward declare "struct syscalls_info".
306 (xml_syscall_file): New variable.
307 (syscalls_info): Likewise.
308 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
309 set_xml_syscall_file_name to provide gdbarch.
310 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
311 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
312 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
313 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
314 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
315 * xml-syscall.c: Include gdbarch.h.
316 (set_xml_syscall_file_name): Accept gdbarch parameter.
317 (get_syscall_by_number): Likewise.
318 (get_syscall_by_name): Likewise.
319 (get_syscall_names): Likewise.
320 (my_gdb_datadir): Delete global variable.
321 (struct syscalls_info) <my_gdb_datadir>: New variable.
322 (struct syscalls_info) <sysinfo>: Rename variable to
323 "syscalls_info".
324 (sysinfo): Delete global variable.
325 (have_initialized_sysinfo): Likewise.
326 (xml_syscall_file): Likewise.
327 (sysinfo_free_syscalls_desc): Rename to...
328 (syscalls_info_free_syscalls_desc): ... this.
329 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
330 code to the new layout of "struct syscalls_info".
331 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
332 "syscalls_info".
333 (syscall_create_syscall_desc): Likewise.
334 (syscall_start_syscall): Likewise.
335 (syscall_parse_xml): Likewise.
336 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
337 (init_sysinfo): Rename to...
338 (init_syscalls_info): ...this. Add gdbarch as a parameter.
339 Adjust function to deal with gdbarch.
340 (xml_get_syscall_number): Delete parameter sysinfo. Accept
341 gdbarch as a parameter. Adjust code.
342 (xml_get_syscall_name): Likewise.
343 (xml_list_of_syscalls): Likewise.
344 (set_xml_syscall_file_name): Accept gdbarch as parameter.
345 (get_syscall_by_number): Likewise.
346 (get_syscall_by_name): Likewise.
347 (get_syscall_names): Likewise.
348 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
349 (get_syscall_by_number): Likewise.
350 (get_syscall_by_name): Likewise.
351 (get_syscall_names): Likewise.
352
353 2014-11-20 Doug Evans <xdje42@gmail.com>
354
355 Split struct symtab into two: struct symtab and compunit_symtab.
356 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
357 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
358 to "struct compunit_symtab *". All callers updated.
359 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
360 "struct symtab *" argument to "struct compunit_symtab *".
361 All callers updated.
362 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
363 result to "struct compunit_symtab *". All callers updated.
364 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
365 Change result to "struct compunit_symtab *". All callers updated.
366 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
367 hange type to "struct compunit_symtab *". All uses updated.
368 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
369 Change type to "struct compunit_symtab *". All uses updated.
370 * buildsym.c (struct buildsym_compunit): New struct.
371 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
372 (buildsym_compunit): New static global.
373 (finish_block_internal): Update to fetch objfile from
374 buildsym_compunit.
375 (make_blockvector): Delete objfile argument.
376 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
377 debugformat, producer.
378 (start_buildsym_compunit): New function.
379 (free_buildsym_compunit): Renamed from free_subfiles_list.
380 All callers updated.
381 (patch_subfile_names): Rewrite to use buildsym_compunit.
382 (get_compunit_symtab): New function.
383 (get_macro_table): Delete argument comp_dir. All callers updated.
384 (start_symtab): Change result to "struct compunit_symtab *".
385 All callers updated. Create the subfile of the main source file.
386 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
387 (reset_symtab_globals): Update.
388 (end_symtab_get_static_block): Update to use buildsym_compunit.
389 (end_symtab_without_blockvector): Rewrite.
390 (end_symtab_with_blockvector): Change result to
391 "struct compunit_symtab *". All callers updated.
392 Update to use buildsym_compunit. Don't set symtab->dirname,
393 instead set it in the compunit.
394 Explicitly make sure main symtab is first in its list.
395 Set debugformat, producer, blockvector, block_line_section, and
396 macrotable in the compunit.
397 (end_symtab_from_static_block): Change result to
398 "struct compunit_symtab *". All callers updated.
399 (end_symtab, end_expandable_symtab): Ditto.
400 (set_missing_symtab): Change symtab argument to
401 "struct compunit_symtab *". All callers updated.
402 (augment_type_symtab): Ditto.
403 (record_debugformat): Update to use buildsym_compunit.
404 (record_producer): Update to use buildsym_compunit.
405 * buildsym.h (struct subfile) <dirname>: Delete.
406 <producer, debugformat>: Delete.
407 <buildsym_compunit>: New member.
408 (get_compunit_symtab): Declare.
409 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
410 from primary_symtab. Change type to "struct compunit_symtab *".
411 All uses updated.
412 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
413 All callers updated.
414 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
415 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
416 symtab. Change type to "struct compunit_symtab *". All uses updated.
417 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
418 All callers updated.
419 (dw2_find_last_source_symtab): Ditto.
420 (dw2_lookup_symbol): Ditto.
421 (recursively_find_pc_sect_compunit_symtab): Renamed from
422 recursively_find_pc_sect_symtab. Change result to
423 "struct compunit_symtab *". All callers updated.
424 (dw2_find_pc_sect_compunit_symtab): Renamed from
425 dw2_find_pc_sect_symtab. Change result to
426 "struct compunit_symtab *". All callers updated.
427 (get_compunit_symtab): Renamed from get_symtab. Change result to
428 "struct compunit_symtab *". All callers updated.
429 (recursively_compute_inclusions): Change type of immediate_parent
430 argument to "struct compunit_symtab *". All callers updated.
431 (compute_compunit_symtab_includes): Renamed from
432 compute_symtab_includes. All callers updated. Rewrite to compute
433 includes of compunit_symtabs and not symtabs.
434 (process_full_comp_unit): Update to work with struct compunit_symtab.
435 (process_full_type_unit): Ditto.
436 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
437 (dwarf_decode_lines): Remove special case handling of main subfile.
438 (macro_start_file): Delete argument comp_dir. All callers updated.
439 (dwarf_decode_macro_bytes): Ditto.
440 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
441 use struct compunit_symtab.
442 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
443 * jit.c (finalize_symtab): Build compunit_symtab.
444 * jv-lang.c (get_java_class_symtab): Change result to
445 "struct compunit_symtab *". All callers updated.
446 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
447 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
448 comp_dir. Change type to "struct compunit_symtab *".
449 All uses updated.
450 (new_macro_table): Change comp_dir argument to cust,
451 "struct compunit_symtab *". All callers updated.
452 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
453 nr_primary_symtabs. All uses updated.
454 (count_symtabs_and_blocks): Update to handle compunits.
455 (report_command_stats): Update output, "primary symtabs" renamed to
456 "compunits".
457 * mdebugread.c (new_symtab): Change result to
458 "struct compunit_symtab *". All callers updated.
459 (parse_procedure): Change type of search_symtab argument to
460 "struct compunit_symtab *". All callers updated.
461 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
462 separate loop.
463 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
464 symtabs. Change type to "struct compunit_symtab *". All uses updated.
465 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
466 All uses updated.
467 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
468 All uses updated.
469 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
470 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
471 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
472 symtab. Change type to "struct compunit_symtab *". All uses updated.
473 * psymtab.c (psymtab_to_symtab): Change result type to
474 "struct compunit_symtab *". All callers updated.
475 (find_pc_sect_compunit_symtab_from_partial): Renamed from
476 find_pc_sect_symtab_from_partial. Change result type to
477 "struct compunit_symtab *". All callers updated.
478 (lookup_symbol_aux_psymtabs): Change result type to
479 "struct compunit_symtab *". All callers updated.
480 (find_last_source_symtab_from_partial): Ditto.
481 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
482 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
483 and macro_table from compunit.
484 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
485 type to "struct compunit_symtab *". All callers updated.
486 (debug_qf_lookup_symbol): Ditto.
487 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
488 debug_qf_find_pc_sect_symtab, change result type to
489 "struct compunit_symtab *". All callers updated.
490 * symfile.c (allocate_symtab): Delete objfile argument.
491 New argument cust.
492 (allocate_compunit_symtab): New function.
493 (add_compunit_symtab_to_objfile): New function.
494 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
495 Change result type to "struct compunit_symtab *". All uses updated.
496 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
497 Change result type to "struct compunit_symtab *". All uses updated.
498 * symmisc.c (print_objfile_statistics): Compute blockvector count in
499 separate loop.
500 (dump_symtab_1): Update test for primary source symtab.
501 (maintenance_info_symtabs): Update to handle compunit symtabs.
502 (maintenance_check_symtabs): Ditto.
503 * symtab.c (set_primary_symtab): Delete.
504 (compunit_primary_filetab): New function.
505 (compunit_language): New function.
506 (iterate_over_some_symtabs): Change type of arguments "first",
507 "after_last" to "struct compunit_symtab *". All callers updated.
508 Update to loop over symtabs in each compunit.
509 (error_in_psymtab_expansion): Rename symtab argument to cust,
510 and change type to "struct compunit_symtab *". All callers updated.
511 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
512 Change result type to "struct compunit_symtab *". All callers updated.
513 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
514 Change result type to "struct compunit_symtab *". All callers updated.
515 (find_pc_sect_line): Only loop over symtabs within selected compunit
516 instead of all symtabs in the objfile.
517 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
518 <compunit_symtab> New member.
519 <block_line_section>: Moved to compunit_symtab.
520 <locations_valid>: Ditto.
521 <epilogue_unwind_valid>: Ditto.
522 <macro_table>: Ditto.
523 <dirname>: Ditto.
524 <debugformat>: Ditto.
525 <producer>: Ditto.
526 <objfile>: Ditto.
527 <call_site_htab>: Ditto.
528 <includes>: Ditto.
529 <user>: Ditto.
530 <primary>: Delete
531 (SYMTAB_COMPUNIT): New macro.
532 (SYMTAB_BLOCKVECTOR): Update definition.
533 (SYMTAB_OBJFILE): Update definition.
534 (SYMTAB_DIRNAME): Update definition.
535 (struct compunit_symtab): New type. Common members among all source
536 symtabs within a compilation unit moved here. All uses updated.
537 (COMPUNIT_OBJFILE): New macro.
538 (COMPUNIT_FILETABS): New macro.
539 (COMPUNIT_DEBUGFORMAT): New macro.
540 (COMPUNIT_PRODUCER): New macro.
541 (COMPUNIT_DIRNAME): New macro.
542 (COMPUNIT_BLOCKVECTOR): New macro.
543 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
544 (COMPUNIT_LOCATIONS_VALID): New macro.
545 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
546 (COMPUNIT_CALL_SITE_HTAB): New macro.
547 (COMPUNIT_MACRO_TABLE): New macro.
548 (ALL_COMPUNIT_FILETABS): New macro.
549 (compunit_symtab_ptr): New typedef.
550 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
551
552 2014-11-20 Joel Brobecker <brobecker@adacore.com>
553
554 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
555 if the TYPE_CODE of range_type's base type does not match
556 the TYPE_CODE of encoding_type's base type.
557
558 2014-11-19 Joel Brobecker <brobecker@adacore.com>
559
560 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
561 it starts with '<'.
562
563 2014-11-19 Joel Brobecker <brobecker@adacore.com>
564
565 * ada-lang.c (ada_is_redundant_range_encoding): New function.
566 (ada_is_redundant_index_type_desc): New function.
567 (to_fixed_array_type): Ignore parallel XA type if redundant.
568
569 2014-11-19 Joel Brobecker <brobecker@adacore.com>
570
571 * ada-lang.c (constrained_packed_array_type): Set the length
572 of the return array as if both bounds where zero if that
573 returned array's index type is dynamic.
574
575 2014-11-19 Yao Qi <yao@codesourcery.com>
576
577 * config/i386/go32.mh (CC): Remove.
578
579 2014-11-18 Doug Evans <xdje42@gmail.com>
580
581 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
582 updated.
583
584 2014-11-18 Doug Evans <xdje42@gmail.com>
585
586 * buildsym.c (buildsym_objfile): New static global.
587 (buildsym_comp_dir): New static global.
588 (finish_block_internal): Delete arg objfile. All callers updated.
589 (finish_block): Delete arg objfile. All callers updated.
590 (start_subfile): Delete arg dirname. All callers updated.
591 (patch_subfile_names): Update buildsym_comp_dir.
592 (get_macro_table): Delete arg objfile. All callers updated.
593 (start_symtab): New arg objfile. All callers updated.
594 Rename arg dirname to comp_dir.
595 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
596 (end_symtab_get_static_block): Delete arg objfile. All callers
597 updated.
598 (end_symtab_without_blockvector): Ditto.
599 (end_symtab_with_blockvector): Ditto.
600 (end_symtab_from_static_block): Ditto.
601 (end_symtab): Ditto.
602 (end_expandable_symtab): Ditto.
603 (augment_type_symtab): Ditto.
604 * coffread.c (coff_start_symtab): New arg objfile. All callers
605 updated.
606
607 2014-11-18 Doug Evans <xdje42@gmail.com>
608
609 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
610 updated.
611
612 2014-11-18 Doug Evans <xdje42@gmail.com>
613
614 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
615 symtab.dirname updated to use it.
616
617 2014-11-18 Doug Evans <xdje42@gmail.com>
618
619 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
620 symtab.objfile updated to use it.
621
622 2014-11-18 Doug Evans <xdje42@gmail.com>
623
624 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
625
626 2014-11-18 Doug Evans <xdje42@gmail.com>
627
628 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
629 SYMBOL_OBJFILE.
630 * findvar.c (default_read_var_value): Ditto.
631 * jv-lang.c (add_class_symtab_symbol): Ditto.
632 * parse.c (operator_check_standard): Ditto.
633 * printcmd.c (address_info): Ditto.
634 * symtab.c (fixup_symbol_section): Ditto.
635 (skip_prologue_sal): Ditto.
636 * tracepoint.c (scope_info): Ditto.
637 * valops.c (find_function_in_inferior): Ditto.
638 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
639 * python/py-symbol.c (set_symbol): Ditto.
640
641 2014-11-18 Doug Evans <xdje42@gmail.com>
642
643 * buildsym.c (main_subfile): New static global.
644 (free_subfiles_list): New function.
645 (start_symtab): Set main_subfile.
646 (restart_symtab): Replace init of subfiles, current_subfile with
647 call to free_subfiles_list.
648 (watch_main_source_file_lossage): Use main_subfile.
649 (reset_symtab_globals): Replace init of current_subfile with call
650 to free_subfiles_list.
651 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
652 functions, split out from ...
653 (end_symtab_from_static_block): ... here. Rewrite to call them.
654
655 2014-11-18 Doug Evans <xdje42@gmail.com>
656
657 The result of symtab expansion is always a primary symtab.
658 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
659 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
660 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
661 (psymtab_to_symtab): Add comment and assert.
662 (map_matching_symbols_psymtab): Remove unnecessary test for
663 non-primary symtab.
664
665 2014-11-15 Doug Evans <xdje42@gmail.com>
666
667 PR symtab/17559
668 * symtab.c (find_pc_line_symtab): New function.
669 * symtab.h (find_pc_line_symtab): Declare.
670 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
671 find_pc_symtab.
672 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
673 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
674 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
675 * tui/tui-win.c (make_visible_with_new_height): Ditto.
676 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
677 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
678
679 2014-11-15 Doug Evans <xdje42@gmail.com>
680
681 * symtab.c (expand_symtab_containing_pc): Renamed from
682 find_pc_sect_symtab_via_partial. All callers updated.
683
684 2014-11-15 Yao Qi <yao@codesourcery.com>
685
686 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
687
688 2014-11-14 Joel Brobecker <brobecker@adacore.com>
689
690 * common/common-defs.h: Move <stdarg.h> #include ahead of
691 <stdio.h> #include.
692
693 2014-11-14 Pedro Alves <palves@redhat.com>
694
695 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
696 [!PHONY_ICONV] (gdb_iconv): New function.
697 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
698
699 2014-11-13 Doug Evans <dje@google.com>
700
701 PR symtab/17591
702 * dwarf2read.c (find_slot_in_mapped_hash): Handle
703 "(anonymous namespace)".
704
705 2014-11-13 Doug Evans <dje@google.com>
706
707 * dwarf2read.c (update_enumeration_type_from_children): Avoid
708 infinite loop.
709
710 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
711
712 * NEWS (maint set target-async): Fix typo.
713
714 2014-11-12 Pedro Alves <palves@redhat.com>
715
716 * infrun.c (enum infwait_states, infwait_state): Delete.
717
718 2014-11-12 Pedro Alves <palves@redhat.com>
719
720 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
721 Rewrite stepping over a permanent breakpoint.
722 (thread_still_needs_step_over, proceed): Don't set
723 stepping_over_breakpoint for permanent breakpoints.
724 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
725 single-step breakpoints out of the target on hardware step
726 targets.
727 (process_event_stop_test): If stepping a permanent breakpoint
728 doesn't hit the step-resume breakpoint, delete the step-resume
729 breakpoint.
730 (switch_back_to_stepped_thread): Also check if the stepped thread
731 has advanced already on hardware step targets.
732 (currently_stepping): Return true if the thread stepped a
733 breakpoint.
734
735 2014-11-12 Pedro Alves <palves@redhat.com>
736
737 Mark locations as permanent, not the whole breakpoint.
738 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
739 (mark_breakpoints_out): Don't mark permanent breakpoints as
740 uninserted.
741 (breakpoint_init_inferior): Use mark_breakpoints_out.
742 (breakpoint_here_p): Adjust.
743 (bpstat_stop_status, describe_other_breakpoints): Remove handling
744 of permanent breakpoints.
745 (make_breakpoint_permanent): Mark each location as permanent,
746 instead of marking the breakpoint.
747 (add_location_to_breakpoint): If the location is permanent, mark
748 it as such, and as inserted.
749 (init_breakpoint_sal): Don't make the breakpoint permanent here.
750 (bp_location_compare, update_global_location_list): Adjust.
751 (update_breakpoint_locations): Don't make the breakpoint permanent
752 here.
753 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
754 breakpoints.
755 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
756 (struct bp_location) <permanent>: New field.
757 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
758 reference to bp_permanent.
759
760 2014-11-12 Pedro Alves <palves@redhat.com>
761
762 * arch-utils.c (default_skip_permanent_breakpoint): New function.
763 * arch-utils.h (default_skip_permanent_breakpoint): New
764 declaration.
765 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
766 Install default_skip_permanent_breakpoint as default method.
767 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
768 (i386_gdbarch_init): Don't install it.
769 * infrun.c (resume): Assume there's always a
770 gdbarch_skip_permanent_breakpoint implementation.
771 * gdbarch.h, gdbarch.c: Regenerate.
772
773 2014-11-11 Daniel Colascione <dancol@dancol.org>
774
775 Warn about cross-PID-namespace debugging.
776 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
777 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
778 * linux-thread-db.c (check_pid_namespace_match): New function.
779 (thread_db_inferior_created): Call it.
780
781 2014-11-10 Doug Evans <xdje42@gmail.com>
782
783 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
784 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
785
786 2014-11-10 Doug Evans <xdje42@gmail.com>
787
788 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
789
790 2014-11-10 Doug Evans <xdje42@gmail.com>
791
792 PR symtab/17564
793 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
794 (lookup_static_symbol): Move definition to new location and rewrite.
795 (lookup_symbol_in_objfile): New function.
796 (lookup_symbol_global_iterator_cb): Call it.
797
798 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
799
800 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
801
802 2014-11-07 Pedro Alves <palves@redhat.com>
803
804 * infrun.c (process_event_stop_test) <subroutine check>: Don't
805 check if we did a "nexti" inside a prologue.
806 * symtab.c (in_prologue): Delete function.
807 * symtab.h (in_prologue): Delete declaration.
808
809 2014-11-06 Doug Evans <xdje42@gmail.com>
810
811 * symtab.h (lookup_global_symbol): Improve function comment.
812
813 2014-11-06 Doug Evans <xdje42@gmail.com>
814
815 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
816 All callers updated.
817 * symtab.h (lookup_global_symbol): Update decl.
818 (lookup_static_symbol): Move decl to better location.
819
820 2014-11-06 Doug Evans <xdje42@gmail.com>
821
822 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
823
824 2014-11-06 Doug Evans <xdje42@gmail.com>
825
826 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
827 All callers updated.
828 (lookup_symbol_in_all_objfiles): Renamed from
829 lookup_symbol_aux_symtabs. All callers updated.
830 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
831 All callers updated.
832 (lookup_symbol_in_objfile_symtabs): Renamed from
833 lookup_symbol_aux_objfile. All callers updated.
834
835 2014-11-06 Doug Evans <xdje42@gmail.com>
836
837 * symtab.c (lookup_symbol_in_block): Renamed from
838 lookup_symbol_aux_block. All callers updated.
839
840 2014-11-06 Doug Evans <xdje42@gmail.com>
841
842 * symtab.c (lookup_static_symbol): Renamed from
843 lookup_static_symbol_aux. All callers updated.
844 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
845 All callers updated.
846
847 2014-11-06 Doug Evans <xdje42@gmail.com>
848
849 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
850 * block.c (block_lookup_symbol): Use it.
851 * cp-support.c (make_symbol_overload_list_block): Use it.
852 * symtab.c (iterate_over_symbols): Use it.
853
854 2014-11-06 Doug Evans <xdje42@gmail.com>
855
856 * symtab.c (lookup_block_symbol): Moved to ...
857 * block.c (block_lookup_symbol): ... here and renamed.
858 All callers updated.
859 * block.h (block_lookup_symbol): Declare.
860 * symtab.h (lookup_block_symbol): Delete.
861
862 2014-11-06 Doug Evans <xdje42@gmail.com>
863
864 * ada-lang.c (ada_make_symbol_completion_list): Use
865 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
866 * symtab.c (lookup_objfile_from_block): Ditto.
867
868 2014-11-06 Doug Evans <xdje42@gmail.com>
869
870 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
871 TYPE_CODE_STRUCT.
872
873 2014-11-06 Doug Evans <xdje42@gmail.com>
874
875 * objfiles.c (get_objfile_arch): Constify.
876 * objfiles.h (get_objfile_arch): Update prototype.
877 * solib.c (solib_global_lookup): Fetch arch from objfile,
878 not target_gdbarch.
879
880 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
881
882 * nios2-tdep.c (wild_insn): Delete.
883 (profiler_insn, irqentry_insn): Delete.
884 (nios2_match_sequence): Delete.
885 (nios2_analyze_prologue): Update comments. Remove matching
886 of obsolete profiler_insn and irqentry_insn sequences.
887
888 2014-11-05 Alan Modra <amodra@gmail.com>
889
890 * charset.c (convert_between_encodings): Shrink obstack using
891 obstack_blank_fast.
892 * minsyms.c (install_minimal_symbols): Likewise.
893 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
894 to char* before doing pointer arithmetic.
895
896 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
897
898 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
899
900 2014-11-04 Pedro Alves <palves@redhat.com>
901
902 * breakpoint.c (breakpoint_thread_match): Delete function.
903 * breakpoint.h (breakpoint_thread_match): Delete declaration.
904
905 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
906
907 PR c++/17494
908 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
909 the method args also under EVAL_SKIP when evaluating method
910 calls under EVAL_SKIP.
911
912 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
913
914 * dwarf2loc.c (read_pieced_value): Do big endian
915 processing only if gdb_regnum is not -1.
916 (write_pieced_value): Ditto.
917
918 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
919
920 * arm-linux-tdep.c (arm_linux_init_abi): Use
921 info.byte_order_for_code to choose endianity of breakpoint
922 instructions snippets.
923
924 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
925
926 * arm-tdep.c (extract_arm_insn): Use
927 gdbarch_byte_order_for_code to read arm instruction.
928
929 2014-11-02 Doug Evans <xdje42@gmail.com>
930
931 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
932
933 2014-11-02 Doug Evans <xdje42@gmail.com>
934
935 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
936 main_subfile before returning.
937
938 2014-10-31 Doug Evans <xdje42@gmail.com>
939
940 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
941 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
942
943 2014-10-31 Doug Evans <xdje42@gmail.com>
944
945 * valops.c (value_cast_pointers): Fix whitespace.
946 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
947 Ditto.
948
949 2014-10-30 Doug Evans <dje@google.com>
950
951 * NEWS: Mention ability add attributes to gdb.Objfile and
952 gdb.Progspace objects.
953 * python/py-objfile.c (objfile_object): New member dict.
954 (objfpy_dealloc): Py_XDECREF dict.
955 (objfpy_initialize): Initialize dict.
956 (objfile_getset): Add __dict__.
957 (objfile_object_type): Set tp_dictoffset member.
958 * python/py-progspace.c (progspace_object): New member dict.
959 (pspy_dealloc): Py_XDECREF dict.
960 (pspy_initialize): Initialize dict.
961 (pspace_getset): Add __dict__.
962 (pspace_object_type): Set tp_dictoffset member.
963
964 2014-10-30 Yao Qi <yao@codesourcery.com>
965
966 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
967 replace '\\' with '\\\\'.
968
969 2014-10-29 Joel Brobecker <brobecker@adacore.com>
970
971 GDB 7.8.1 released.
972
973 2014-10-29 Pedro Alves <palves@redhat.com>
974
975 PR gdb/17408
976 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
977 instead of assuming a thread with a stepping range is always
978 stepping.
979
980 2014-10-29 Pedro Alves <palves@redhat.com>
981
982 PR python/17372
983 * event-top.c (change_line_handler): Call
984 gdb_rl_callback_handler_remove instead of
985 rl_callback_handler_remove.
986 (callback_handler_installed): New global.
987 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
988 (gdb_rl_callback_handler_reinstall): New functions.
989 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
990 gdb_rl_callback_handler_install instead of
991 rl_callback_handler_remove and rl_callback_handler_install.
992 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
993 instead of rl_callback_handler_remove.
994 * event-top.h (gdb_rl_callback_handler_remove)
995 (gdb_rl_callback_handler_install)
996 (gdb_rl_callback_handler_reinstall): New declarations.
997 * infrun.c (reinstall_readline_callback_handler_cleanup): New
998 cleanup function.
999 (fetch_inferior_event): Install it.
1000 * top.c (gdb_readline_wrapper_line) Call
1001 gdb_rl_callback_handler_remove instead of
1002 rl_callback_handler_remove.
1003 (gdb_readline_wrapper_cleanup): Don't call
1004 rl_callback_handler_install.
1005
1006 2014-10-29 Pedro Alves <palves@redhat.com>
1007
1008 * event-top.c (command_line_handler): Clear the first byte of
1009 linebuffer, when it is first allocated.
1010
1011 2014-10-29 Pedro Alves <palves@redhat.com>
1012
1013 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1014 TRY_CATCH.
1015
1016 2014-10-29 Pedro Alves <palves@redhat.com>
1017
1018 PR tui/16138
1019 PR tui/17519
1020 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1021 (tui_allowed_p): Delete function.
1022 * tui/tui.c: Include "interps.h".
1023 (tui_enable): Don't use tui_allowed_p. Error out here with
1024 detailed error messages if the TUI is the top level interpreter,
1025 or if output is not a terminal. Use newterm instead of initscr,
1026 and error out if initializing the terminal fails. Also error out if
1027 the terminal doesn't support cursor addressing.
1028 * tui/tui.h (tui_allowed_p): Delete declaration.
1029
1030 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1031
1032 * arm-tdep.c (arm_skip_stack_protector): Return early if
1033 address loaded by first "ldr" instruction does not have
1034 a corresponding minimal symbol. Update comment.
1035
1036 2014-10-29 Yao Qi <yao@codesourcery.com>
1037
1038 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1039 loaded address correctly of ldr instruction.
1040
1041 2014-10-28 Pedro Alves <palves@redhat.com>
1042
1043 PR gdb/12623
1044 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1045 field.
1046 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1047 thread's stepped_breakpoint field. Skip if reverse debugging.
1048 Add comment.
1049 (init_thread_stepping_state, handle_signal_stop): Clear the
1050 thread's stepped_breakpoint field.
1051
1052 2014-10-27 Pedro Alves <palves@redhat.com>
1053
1054 * remote.c (remote_thread_alive): New, factored out from ...
1055 (remote_thread_alive): ... this.
1056 (remote_update_thread_list): Bail out before deleting threads if
1057 the target returned an empty list, and, the current thread has a
1058 magic/fake ptid.
1059
1060 2014-10-27 Pedro Alves <palves@redhat.com>
1061
1062 * infrun.c (handle_signal_stop): Also skip handlers when a random
1063 signal arrives while handling a "stepi" or a "nexti". Set the
1064 thread's 'step_after_step_resume_breakpoint' flag.
1065
1066 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1067
1068 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1069 (arm_record_ld_st_imm_offset): Reimplement to cover all
1070 load/store cases for ARM opcode 010.
1071 (arm_record_ld_st_multiple): Reimplement to cover all
1072 load/store cases for ARM opcode 100.
1073
1074 2014-10-26 Doug Evans <xdje42@gmail.com>
1075
1076 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1077
1078 2014-10-26 Doug Evans <xdje42@gmail.com>
1079
1080 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1081 parameter "kind" to "block_index".
1082 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1083 "block_index".
1084 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1085
1086 2014-10-26 Doug Evans <xdje42@gmail.com>
1087
1088 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1089
1090 2014-10-26 Doug Evans <xdje42@gmail.com>
1091
1092 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1093 obstack_alloc.
1094
1095 2014-10-26 Doug Evans <xdje42@gmail.com>
1096
1097 * parser-defs.h (block_found): Move decl from here ...
1098 * symtab.h (block_found): ... to here.
1099
1100 2014-10-26 Doug Evans <xdje42@gmail.com>
1101
1102 * symtab.h (struct field_of_this_result): Fix typo in comment.
1103 (lookup_symbol_in_language): Move function comment here.
1104 (lookup_symbol): Improve function comment.
1105 (basic_lookup_symbol_nonlocal): Ditto.
1106 (lookup_symbol_static, lookup_symbol_global): Ditto.
1107 (lookup_symbol_aux_block): Ditto.
1108 (lookup_language_this): Add function comment.
1109 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1110 function comment.
1111 (lookup_block_symbol): Improve function comment.
1112 (lookup_struct): Fix capitalization in function comment.
1113 (lookup_transparent_type): Add function comment.
1114 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1115 Improve function comment.
1116 (lookup_objfile_from_block): Add function comment.
1117 * symtab.c (lookup_symbol_in_language): Update function comment.
1118 (lookup_symbol, lookup_language_this): Ditto.
1119 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1120 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1121 (basic_lookup_symbol_nonlocal): Ditto.
1122 (lookup_symbol_static, lookup_symbol_global): Ditto.
1123 (lookup_transparent_type, lookup_block_symbol): Ditto.
1124
1125 2014-10-25 Doug Evans <xdje42@gmail.com>
1126
1127 * symtab.c (types_info): Delete forward decl.
1128 (functions_info, variables_info, sources_info): Ditto.
1129 (_initialize_symtab): Rewrite forward decl to use
1130 initialize_file_ftype.
1131
1132 2014-10-25 Doug Evans <xdje42@gmail.com>
1133
1134 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1135
1136 2014-10-25 Doug Evans <xdje42@gmail.com>
1137
1138 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1139 of local var child_die.
1140
1141 2014-10-24 Don Breazeal <donb@codesourcery.com>
1142
1143 * infrun.c (follow_fork_inferior): Update fork message printing
1144 to use target_terminal_ours_for_output instead of
1145 target_terminal_ours, to use _() for all format strings, to print
1146 "vfork" instead of "fork" for vforks, and to add a detach message.
1147 (handle_vfork_child_exec_or_exit): Update message printing to use
1148 target_terminal_ours_for_output instead of target_terminal_ours, to
1149 use _() for all format strings, and to fix some formatting.
1150
1151 2014-10-24 Pedro Alves <palves@redhat.com>
1152
1153 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1154 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1155 * config/vax/vax.mh: Delete.
1156 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1157 obsolete configurations section.
1158 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1159 * vax-nat.c: Delete file.
1160
1161 2014-10-24 Pedro Alves <palves@redhat.com>
1162
1163 * NEWS (Removed targets): Add OS/arch column.
1164
1165 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1166
1167 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1168 on the arg type of a constructor only if it is of reference type.
1169
1170 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1171
1172 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1173 accessors and constants from nios2 opcodes update.
1174 (nios2_get_next_pc): Likewise.
1175
1176 2014-10-19 Doug Evans <xdje42@gmail.com>
1177
1178 * gdbthread.h (set_running): Fix comment.
1179 (set_executing, finish_thread_state): Fix comment.
1180
1181 2014-10-18 Doug Evans <xdje42@gmail.com>
1182
1183 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1184
1185 2014-10-17 Doug Evans <dje@google.com>
1186
1187 * NEWS: Mention new event gdb.clear_objfiles.
1188 * python/py-event.h (emit_clear_objfiles_event): Clear
1189 * python/py-events.h (events_object): New member clear_objfiles.
1190 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1191 event.
1192 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1193 emit clear_objfiles event.
1194 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1195 function.
1196 (emit_clear_objfiles_event): New function.
1197 (clear_objfiles): New event.
1198 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1199 Declare.
1200 * python/python.c (_initialize_python): Call
1201 gdbpy_initialize_clear_objfiles_event.
1202
1203 2014-10-17 Doug Evans <dje@google.com>
1204
1205 * NEWS: Mention new gdb.Objfile.progspace attribute.
1206 * python/py-objfile.c (objfpy_get_progspace): New function.
1207 (objfile_getset): New entry for "progspace".
1208
1209 2014-10-17 Pedro Alves <palves@redhat.com>
1210
1211 PR gdb/17471
1212 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1213 returns a copy of the input.
1214 (run_command_1, continue_command, step_1, jump_command)
1215 (signal_command, until_command, advance_command, finish_command)
1216 (attach_command): Adjust and install a cleanup to free the
1217 stripped args.
1218
1219 2014-10-17 Pedro Alves <palves@redhat.com>
1220
1221 PR gdb/17300
1222 * infcmd.c (continue_1): If continuing all threads in the
1223 foreground, make sure the inferior's terminal settings are put in
1224 effect.
1225
1226 2014-10-17 Pedro Alves <palves@redhat.com>
1227
1228 PR gdb/17472
1229 * annotate.c (annotate_breakpoints_invalid): Use
1230 target_terminal_our_for_output instead of target_terminal_ours.
1231 Give back the terminal to the target.
1232 (annotate_frames_invalid): Likewise.
1233
1234 2014-10-17 Pedro Alves <palves@redhat.com>
1235
1236 * target.c (enum terminal_state): New enum.
1237 (terminal_state): New global.
1238 (target_terminal_init): New function.
1239 (target_terminal_inferior): Skip if inferior already owns the
1240 terminal.
1241 (target_terminal_ours, target_terminal_ours_for_output): New
1242 functions.
1243 * target.h (target_terminal_init): Convert to function prototype.
1244 (target_terminal_ours_for_output): Convert to function prototype
1245 and tweak comment.
1246 (target_terminal_ours): Convert to function prototype and tweak
1247 comment.
1248 * windows-nat.c (do_initial_windows_stuff): Call
1249 target_terminal_init instead of child_terminal_init_with_pgrp.
1250
1251 2014-10-17 Pedro Alves <palves@redhat.com>
1252
1253 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1254 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1255 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1256 solib-osf.c.
1257 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1258 * ada-lang.h [__alpha__ && __osf__]
1259 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1260 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1261 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1262 GDB_OSABI_OSF1.
1263 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1264 files.
1265 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1266 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1267 * configure: Regenerate.
1268 * configure.ac: Remove references to osf.
1269 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1270 section. Remove all other references to osf.
1271 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1272 Remove all other references to osf.
1273 * dec-thread.c: Delete file.
1274 * defs.h (GDB_OSABI_OSF1): Delete.
1275 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1276 defined.
1277 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1278 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1279 Delete code.
1280 (unconditionally_kill_inferior)
1281 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1282 * solib-osf.c: Delete file.
1283
1284 2014-10-17 Pedro Alves <palves@redhat.com>
1285
1286 * remote.c (clear_threads_listing_context): Move higher up, out of
1287 the HAVE_LIBEXPAT guard.
1288
1289 2014-10-16 Tristan Gingold <gingold@adacore.com>
1290
1291 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1292 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1293 on amd64.
1294
1295 2014-10-15 Pedro Alves <palves@redhat.com>
1296
1297 * dec-thread.c (dec_thread_count_gdb_threads)
1298 (dec_thread_add_gdb_thread): Delete.
1299 (dec_thread_update_thread_list): Delete.
1300 (dec_thread_find_new_threads): Rename to ...
1301 (dec_thread_update_thread_list): ... this. Delete GDB-size
1302 threads that are no longer found in dec_thread_list.
1303 (resync_thread_list): Delete.
1304 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1305 resync_thread_list.
1306
1307 2014-10-15 Pedro Alves <palves@redhat.com>
1308
1309 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1310 * remote.c (remote_update_thread_list): Skip calling prune_threads
1311 if any thread listing method is supported, and instead walk over
1312 the set of remote threads listed, deleting those that are not
1313 found in GDB's thread list.
1314
1315 2014-10-15 Pedro Alves <palves@redhat.com>
1316
1317 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1318 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1319 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1320 (bsd_uthread_target): Adjust.
1321 * corelow.c (core_open): Adjust.
1322 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1323 (dec_thread_update_thread_list): New function.
1324 (init_dec_thread_ops): Adjust.
1325 * gdbthread.h (prune_threads): New declaration.
1326 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1327 (thread_db_update_thread_list): ... this. Call prune_threads.
1328 (init_thread_db_ops): Adjust.
1329 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1330 (procfs_update_thread_list): ... this. Call prune_threads.
1331 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1332 Adjust.
1333 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1334 (obsd_update_thread_list): ... this. Call prune_threads.
1335 (obsd_add_target): Adjust.
1336 * procfs.c (procfs_target): Adjust.
1337 (procfs_notice_thread): Update comment.
1338 (procfs_find_new_threads): Rename to ...
1339 (procfs_update_thread_list): ... this. Call prune_threads.
1340 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1341 comment.
1342 (ravenscar_wait): Adjust.
1343 (ravenscar_find_new_threads): Rename to ...
1344 (ravenscar_update_thread_list): ... this. Call prune_threads.
1345 (init_ravenscar_thread_ops): Adjust.
1346 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1347 (record_btrace_update_thread_list): ... this. Adjust comment.
1348 (init_record_btrace_ops): Adjust.
1349 * remote.c (remote_threads_info): Rename to ...
1350 (remote_update_thread_list): ... this. Call prune_threads.
1351 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1352 Adjust.
1353 * sol-thread.c (check_for_thread_db): Adjust.
1354 (sol_find_new_threads_callback): Rename to ...
1355 (sol_update_thread_list_callback): ... this.
1356 (sol_find_new_threads): Rename to ...
1357 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1358 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1359 * target-delegates.c: Regenerate.
1360 * target.c (target_find_new_threads): Rename to ...
1361 (target_update_thread_list): ... this.
1362 * target.h (struct target_ops): Rename to_find_new_threads field
1363 to to_update_thread_list.
1364 (target_find_new_threads): Rename to ...
1365 (target_update_thread_list): ... this.
1366 * thread.c (prune_threads): Make extern.
1367 (update_thread_list): Adjust.
1368
1369 2014-10-15 Pedro Alves <palves@redhat.com>
1370
1371 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1372 Add describing comment. Return -1 if the qL packet is not
1373 supported.
1374 (struct thread_item, thread_item_t): Move higher up in
1375 the file. Add comments.
1376 (struct threads_parsing_context): Move higher up in
1377 the file, add comments, and remote to ...
1378 (struct threads_listing_context): ... this.
1379 (remote_newthread_step): Don't add the thread to GDB's thread
1380 database here. Instead push it to the thread_listing_context
1381 list.
1382 (remote_find_new_threads): Rename to ...
1383 (remote_get_threads_with_ql): ... this. Add target_ops and
1384 targets_listing_context parameters. Pass down context.
1385 (start_thread): Adjust.
1386 (clear_threads_parsing_context): Rename to ...
1387 (clear_threads_listing_context): ... this.
1388 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1389 remote_threads_info.
1390 (remote_get_threads_with_qthreadinfo): Ditto.
1391 (remote_threads_info): Reimplement.
1392
1393 2014-10-15 Pedro Alves <palves@redhat.com>
1394
1395 * infrun.c (resume): Don't force displaced-stepping for all
1396 single-steps on software single-stepping archs.
1397
1398 2014-10-15 Pedro Alves <palves@redhat.com>
1399
1400 * breakpoint.c (single_step_breakpoints): Delete global.
1401 (insert_single_step_breakpoint): Adjust to store the breakpoint
1402 pointer in the current thread.
1403 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1404 (cancel_single_step_breakpoints): Delete functions.
1405 (breakpoint_has_location_inserted_here): Make extern.
1406 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1407 breakpoint list.
1408 * breakpoint.h (breakpoint_has_location_inserted_here): New
1409 declaration.
1410 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1411 (cancel_single_step_breakpoints): Remove declarations.
1412 * gdbthread.h (struct thread_control_state)
1413 <single_step_breakpoints>: New field.
1414 (delete_single_step_breakpoints)
1415 (thread_has_single_step_breakpoints_set)
1416 (thread_has_single_step_breakpoint_here): New declarations.
1417 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1418 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1419 (singlestep_pc): Delete globals.
1420 (infrun_thread_ptid_changed): Remove references to removed
1421 globals.
1422 (resume_cleanups): Delete the current thread's single-step
1423 breakpoints.
1424 (maybe_software_singlestep): Remove references to removed globals.
1425 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1426 delete_single_step_breakpoints.
1427 (init_wait_for_inferior): Remove references to removed globals.
1428 (delete_thread_infrun_breakpoints): Delete the thread's
1429 single-step breakpoints too.
1430 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1431 single-step breakpoints here.
1432 (delete_stopped_threads_single_step_breakpoints): New function.
1433 (adjust_pc_after_break): Adjust to use
1434 thread_has_single_step_breakpoints_set.
1435 (handle_inferior_event): Remove references to removed globals.
1436 Use delete_stopped_threads_single_step_breakpoints.
1437 (handle_signal_stop): Adjust to per-thread single-step
1438 breakpoints. Swap test order to do cheaper tests first.
1439 (switch_back_to_stepped_thread): Extend debug output. Remove
1440 references to removed globals.
1441 * record-full.c (record_full_wait_1): Adjust to per-thread
1442 single-step breakpoints.
1443 * thread.c (delete_single_step_breakpoints)
1444 (thread_has_single_step_breakpoints_set)
1445 (thread_has_single_step_breakpoint_here): New functions.
1446 (clear_thread_inferior_resources): Also delete the thread's
1447 single-step breakpoints.
1448
1449 2014-10-15 Pedro Alves <palves@redhat.com>
1450
1451 * thread.c (delete_thread_breakpoint): New function.
1452 (delete_step_resume_breakpoint)
1453 (delete_exception_resume_breakpoint): Use it.
1454 (delete_at_next_stop): New function.
1455 (clear_thread_inferior_resources): Use delete_at_next_stop.
1456
1457 2014-10-15 Pedro Alves <palves@redhat.com>
1458
1459 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1460 (breakpoint_inserted_here_p): ... here. Remove special case for
1461 software single-step breakpoints.
1462 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1463 (software_breakpoint_inserted_here_p): ... here. Remove special
1464 case for software single-step breakpoints.
1465 (bp_target_info_copy_insertion_state)
1466 (deprecated_insert_raw_breakpoint)
1467 (deprecated_remove_raw_breakpoint): Delete functions.
1468 * breakpoint.h (deprecated_insert_raw_breakpoint)
1469 (deprecated_remove_raw_breakpoint): Remove declarations.
1470
1471 2014-10-15 Pedro Alves <palves@redhat.com>
1472
1473 PR breakpoints/9649
1474 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1475 Delete array globals.
1476 (single_step_breakpoints): New global.
1477 (breakpoint_xfer_memory): Remove special handling for single-step
1478 breakpoints.
1479 (update_breakpoints_after_exec): Delete bp_single_step
1480 breakpoints.
1481 (detach_breakpoints): Remove special handling for single-step
1482 breakpoints.
1483 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1484 (bpstat_stop_status): Add comment.
1485 (bpstat_what, bptype_string, print_one_breakpoint_location)
1486 (adjust_breakpoint_address, init_bp_location): Handle
1487 bp_single_step.
1488 (new_single_step_breakpoint): New function.
1489 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1490 handling for single-step breakpoints.
1491 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1492 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1493 Rewrite.
1494 (detach_single_step_breakpoints, find_single_step_breakpoint):
1495 Delete functions.
1496 (breakpoint_has_location_inserted_here): New function.
1497 (single_step_breakpoint_inserted_here_p): Rewrite.
1498 * breakpoint.h: Remove FIXME.
1499 (enum bptype) <bp_single_step>: New enum value.
1500 (insert_single_step_breakpoint): Update comment.
1501 * infrun.c (resume_cleanups)
1502 (delete_step_thread_step_resume_breakpoint): Remove single-step
1503 breakpoints.
1504 (fetch_inferior_event): Install a cleanup that removes infrun
1505 breakpoints.
1506 (switch_back_to_stepped_thread) <expect thread advanced also>:
1507 Clear step-over info.
1508
1509 2014-10-15 Pedro Alves <palves@redhat.com>
1510
1511 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1512 (delete_thread_infrun_breakpoints): New function, with parts
1513 salvaged from delete_step_resume_breakpoint_callback.
1514 (delete_step_thread_step_resume_breakpoint): Delete.
1515 (for_each_just_stopped_thread_callback_func): New typedef.
1516 (for_each_just_stopped_thread): New function.
1517 (delete_just_stopped_threads_infrun_breakpoints): New function.
1518 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1519 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1520 ... this. Adjust.
1521 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1522
1523 2014-10-15 Pedro Alves <palves@redhat.com>
1524
1525 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1526 trying to step past a non-steppable watchpoint.
1527 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1528 field.
1529 * infrun.c (struct step_over_info): Add new field
1530 'nonsteppable_watchpoint_p' and adjust comments.
1531 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1532 Adjust.
1533 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1534 (stepping_past_nonsteppable_watchpoint): New function.
1535 (step_over_info_valid_p): Also return true if stepping past a
1536 nonsteppable watchpoint.
1537 (proceed): Adjust call to set_step_over_info. Remove reference to
1538 init_infwait_state.
1539 (init_wait_for_inferior): Remove reference to init_infwait_state.
1540 (waiton_ptid): Delete global.
1541 (struct execution_control_state)
1542 <stepped_after_stopped_by_watchpoint>: Delete field.
1543 (wait_for_inferior, fetch_inferior_event): Always pass
1544 minus_one_ptid to target_wait.
1545 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1546 field.
1547 (init_infwait_state): Delete function.
1548 (handle_inferior_event): Remove infwait_state handling.
1549 (handle_signal_stop) <watchpoints handling>: Adjust after
1550 stepped_after_stopped_by_watchpoint removal. Don't remove
1551 breakpoints here nor set infwait_state. Set the thread's
1552 stepping_over_watchpoint flag, and call keep_going instead.
1553 (keep_going): Handle stepping_over_watchpoint. Adjust
1554 set_step_over_info calls.
1555 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1556 function.
1557
1558 2014-10-15 Pedro Alves <palves@redhat.com>
1559
1560 * infrun.c (step_over_info_valid_p): New function.
1561 (resume): Use step_over_info_valid_p instead of checking the
1562 threads's trap_expected flag.
1563
1564 2014-10-15 Doug Evans <dje@google.com>
1565 Walfred Tedeschi <walfred.tedeschi@intel.com>
1566
1567 PR python/17364
1568 * python/lib/gdb/__init__.py (packages): Add "printer".
1569 * python/lib/gdb/command/bound_registers.py: Moved to ...
1570 * python/lib/gdb/printer/bound_registers.py: ... here.
1571 Add printer to global set of builtin printers. Rename printer from
1572 "bound" to "mpx_bound128".
1573 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1574 registered as global "builtin" printer.
1575 (add_builtin_pretty_printer): New function.
1576 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1577 gdb/printer/__init__.py.
1578
1579 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1580
1581 * Makefile.in (SFILES): Remove d-support.c.
1582 (COMMON_OBS): Remove d-support.o.
1583 * d-lang.h (d_parse_symbol): Remove declaration.
1584 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1585 * d-support.c: Remove file.
1586
1587 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1588
1589 * gdb/infrun.c (process_event_stop_test): Apply
1590 gdbarch_addr_bits_remove to longjmp resume address.
1591
1592 2014-10-15 Pedro Alves <palves@redhat.com>
1593
1594 * regformats/microblaze.dat: Delete file.
1595
1596 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1597
1598 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1599 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1600
1601 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1602
1603 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1604 as non-trivial.
1605
1606 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1607
1608 PR c++/13403
1609 PR c++/15154
1610 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1611 with qualified args.
1612
1613 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1614
1615 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1616 of the case where the second operand is a pointer.
1617 <BINOP_SUB>: Likewise.
1618
1619 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1620
1621 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1622 only if it is not NULL.
1623 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1624 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1625 (struct probe_ops) <clear_semaphore>: Likewise.
1626 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1627 not NULL.
1628 (stop_tracing): Likewise, for clear_semaphore.
1629
1630 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1631
1632 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1633 using language_c, instead of current_language.
1634
1635 2014-10-13 Doug Evans <dje@google.com>
1636
1637 * python/py-objfile.c (objfpy_initialize): New function.
1638 (objfpy_new, objfile_to_objfile_object): Call it.
1639 * python/py-progspace.c (pspy_initialize): New function.
1640 (pspy_new, pspace_to_pspace_object): Call it.
1641
1642 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1643 Jan Kratochvil <jan.kratochvil@redhat.com>
1644
1645 Fix "save breakpoints" for "catch" command.
1646 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1647 newline.
1648
1649 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1650
1651 Fix "save breakpoints" for "disable $bpnum" command.
1652 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1653
1654 2014-10-10 Pedro Alves <palves@redhat.com>
1655
1656 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1657 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1658 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1659 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1660 and been removed.
1661 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1662 * configure.ac: Remove references to IRIX.
1663 * configure.host: Add *-*-irix* to the obsolete hosts section.
1664 Remove all other references to irix.
1665 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1666 Delete files.
1667
1668 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1669
1670 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1671 isn't valid, release the tdesc arch data and return NULL.
1672
1673 2014-10-10 Pedro Alves <palves@redhat.com>
1674
1675 * linux-tdep.c: Include observer.h.
1676 (linux_inferior_data): New global.
1677 (struct linux_info): New structure.
1678 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1679 (get_linux_inferior_data): New functions.
1680 (linux_vsyscall_range): Rename to ...
1681 (linux_vsyscall_range_raw): ... this.
1682 (linux_vsyscall_range): New function; handles caching.
1683 (_initialize_linux_tdep): Register linux_inferior_data. Install
1684 inferior_exit and inferior_appeared observers.
1685
1686 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1687 Pedro Alves <palves@redhat.com>
1688
1689 PR symtab/14466
1690 * solib-svr4.c (svr4_read_so_list): Rename to ...
1691 (svr4_current_sos_1): ... this and change the function comment.
1692 (svr4_current_sos): New function.
1693
1694 2014-10-10 Pedro Alves <palves@redhat.com>
1695
1696 * arch-utils.c (default_vsyscall_range): New function.
1697 * arch-utils.h (default_vsyscall_range): New declaration.
1698 * gdbarch.sh (vsyscall_range): New hook.
1699 * gdbarch.h, gdbarch.c: Regenerate.
1700 * linux-tdep.c (linux_vsyscall_range): New function.
1701 (linux_init_abi): Install linux_vsyscall_range as
1702 vsyscall_range gdbarch hook.
1703 * memrange.c (address_in_mem_range): New function.
1704 * memrange.h (address_in_mem_range): New declaration.
1705 * symfile-mem.c (find_vdso_size): Delete function.
1706 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1707
1708 2014-10-10 Pedro Alves <palves@redhat.com>
1709
1710 * infrun.c (normal_stop): Fix typo in comment.
1711
1712 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1713
1714 PR tdep/9390
1715 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1716 typo when using logical AND to determine instruction type.
1717
1718 2014-10-09 Yao Qi <yao@codesourcery.com>
1719
1720 * infrun.c (handle_signal_stop): Remove local variable
1721 'printed'.
1722
1723 2014-10-08 Stan Shebs <stan@codesourcery.com>
1724
1725 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1726
1727 2014-10-08 Gary Benson <gbenson@redhat.com>
1728
1729 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1730
1731 2014-10-08 Gary Benson <gbenson@redhat.com>
1732
1733 * common/common-defs.h: Include common-exceptions.h.
1734 * exceptions.h: Do not include common-exceptions.h.
1735
1736 2014-10-08 Gary Benson <gbenson@redhat.com>
1737
1738 * common/common-defs.h: Include cleanups.h.
1739 * common/common-exceptions.c: Do not include cleanups.h.
1740 * utils.h: Likewise.
1741
1742 2014-10-08 Gary Benson <gbenson@redhat.com>
1743
1744 * ada-lang.c: Do not include exceptions.h.
1745 * ada-valprint.c: Likewise.
1746 * amd64-tdep.c: Likewise.
1747 * auto-load.c: Likewise.
1748 * block.c: Likewise.
1749 * break-catch-throw.c: Likewise.
1750 * breakpoint.c: Likewise.
1751 * btrace.c: Likewise.
1752 * c-lang.c: Likewise.
1753 * cli/cli-cmds.c: Likewise.
1754 * cli/cli-interp.c: Likewise.
1755 * cli/cli-script.c: Likewise.
1756 * completer.c: Likewise.
1757 * corefile.c: Likewise.
1758 * corelow.c: Likewise.
1759 * cp-abi.c: Likewise.
1760 * cp-support.c: Likewise.
1761 * cp-valprint.c: Likewise.
1762 * darwin-nat.c: Likewise.
1763 * dwarf2-frame-tailcall.c: Likewise.
1764 * dwarf2-frame.c: Likewise.
1765 * dwarf2loc.c: Likewise.
1766 * dwarf2read.c: Likewise.
1767 * eval.c: Likewise.
1768 * event-loop.c: Likewise.
1769 * event-top.c: Likewise.
1770 * f-valprint.c: Likewise.
1771 * frame-unwind.c: Likewise.
1772 * frame.c: Likewise.
1773 * gdbtypes.c: Likewise.
1774 * gnu-v2-abi.c: Likewise.
1775 * gnu-v3-abi.c: Likewise.
1776 * guile/scm-auto-load.c: Likewise.
1777 * guile/scm-breakpoint.c: Likewise.
1778 * guile/scm-cmd.c: Likewise.
1779 * guile/scm-frame.c: Likewise.
1780 * guile/scm-lazy-string.c: Likewise.
1781 * guile/scm-param.c: Likewise.
1782 * guile/scm-symbol.c: Likewise.
1783 * guile/scm-type.c: Likewise.
1784 * hppa-hpux-tdep.c: Likewise.
1785 * i386-tdep.c: Likewise.
1786 * inf-loop.c: Likewise.
1787 * infcall.c: Likewise.
1788 * infcmd.c: Likewise.
1789 * infrun.c: Likewise.
1790 * interps.c: Likewise.
1791 * interps.h: Likewise.
1792 * jit.c: Likewise.
1793 * linespec.c: Likewise.
1794 * linux-nat.c: Likewise.
1795 * linux-thread-db.c: Likewise.
1796 * m32r-rom.c: Likewise.
1797 * main.c: Likewise.
1798 * memory-map.c: Likewise.
1799 * mi/mi-cmd-break.c: Likewise.
1800 * mi/mi-cmd-stack.c: Likewise.
1801 * mi/mi-interp.c: Likewise.
1802 * mi/mi-main.c: Likewise.
1803 * monitor.c: Likewise.
1804 * nto-procfs.c: Likewise.
1805 * objc-lang.c: Likewise.
1806 * p-valprint.c: Likewise.
1807 * parse.c: Likewise.
1808 * ppc-linux-tdep.c: Likewise.
1809 * printcmd.c: Likewise.
1810 * probe.c: Likewise.
1811 * python/py-auto-load.c: Likewise.
1812 * python/py-breakpoint.c: Likewise.
1813 * python/py-cmd.c: Likewise.
1814 * python/py-finishbreakpoint.c: Likewise.
1815 * python/py-frame.c: Likewise.
1816 * python/py-framefilter.c: Likewise.
1817 * python/py-function.c: Likewise.
1818 * python/py-gdb-readline.c: Likewise.
1819 * python/py-inferior.c: Likewise.
1820 * python/py-infthread.c: Likewise.
1821 * python/py-lazy-string.c: Likewise.
1822 * python/py-linetable.c: Likewise.
1823 * python/py-param.c: Likewise.
1824 * python/py-prettyprint.c: Likewise.
1825 * python/py-symbol.c: Likewise.
1826 * python/py-type.c: Likewise.
1827 * python/py-value.c: Likewise.
1828 * python/python-internal.h: Likewise.
1829 * python/python.c: Likewise.
1830 * record-btrace.c: Likewise.
1831 * record-full.c: Likewise.
1832 * regcache.c: Likewise.
1833 * remote-fileio.c: Likewise.
1834 * remote-mips.c: Likewise.
1835 * remote.c: Likewise.
1836 * rs6000-aix-tdep.c: Likewise.
1837 * rs6000-nat.c: Likewise.
1838 * skip.c: Likewise.
1839 * solib-darwin.c: Likewise.
1840 * solib-dsbt.c: Likewise.
1841 * solib-frv.c: Likewise.
1842 * solib-ia64-hpux.c: Likewise.
1843 * solib-spu.c: Likewise.
1844 * solib-svr4.c: Likewise.
1845 * solib.c: Likewise.
1846 * spu-tdep.c: Likewise.
1847 * stack.c: Likewise.
1848 * stap-probe.c: Likewise.
1849 * symfile-mem.c: Likewise.
1850 * symmisc.c: Likewise.
1851 * target.c: Likewise.
1852 * thread.c: Likewise.
1853 * top.c: Likewise.
1854 * tracepoint.c: Likewise.
1855 * tui/tui-interp.c: Likewise.
1856 * typeprint.c: Likewise.
1857 * utils.c: Likewise.
1858 * valarith.c: Likewise.
1859 * valops.c: Likewise.
1860 * valprint.c: Likewise.
1861 * value.c: Likewise.
1862 * varobj.c: Likewise.
1863 * windows-nat.c: Likewise.
1864 * xml-support.c: Likewise.
1865
1866 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1867
1868 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1869 name implies.
1870 (extended_mips16_next_pc): Update accordingly.
1871
1872 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1873
1874 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1875 function.
1876 (micromips_instruction_is_compact_branch): Likewise.
1877 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1878 or a compact jump, reaching a jump delay slot, or seeing a
1879 second non-prologue instruction.
1880 (micromips_scan_prologue): Also terminate scanning upon seeing a
1881 compact branch or jump, or reaching a branch or jump delay slot.
1882 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1883 or jump delay slot, or seeing a second non-prologue instruction.
1884 (mips32_instruction_has_delay_slot): Retain instruction
1885 examination code only, update arguments accordingly and move
1886 instruction fetch pieces to...
1887 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1888 (micromips_instruction_has_delay_slot): Likewise and to...
1889 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1890 (mips16_instruction_has_delay_slot): Likewise and to...
1891 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1892 (mips_single_step_through_delay): Update accordingly.
1893 (mips_adjust_breakpoint_address): Likewise.
1894
1895 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1896
1897 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1898 !mustbe32 also return 1 for 32-bit instructions.
1899 (mips16_instruction_has_delay_slot): Likewise. Add an
1900 explanatory comment.
1901
1902 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1903
1904 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1905 symbols special.
1906
1907 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1908
1909 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1910 update comments.
1911 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1912 for the breakpoint's address. Don't preinitialize `placed_size'.
1913 (insert_bp_location): Set `reqstd_address' rather than
1914 `placed_address'.
1915 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1916 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1917 address.
1918 (bkpt_remove_location): Likewise.
1919 (deprecated_insert_raw_breakpoint): Likewise.
1920 (deprecated_remove_raw_breakpoint): Likewise.
1921 (find_single_step_breakpoint): Likewise.
1922 * mem-break.c (default_memory_insert_breakpoint): Use
1923 `reqstd_address' for the breakpoint's address. Don't set
1924 `placed_address' or `placed_size' if breakpoint contents couldn't
1925 have been determined.
1926 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1927 the breakpoint's address.
1928 (remote_insert_hw_breakpoint): Likewise. Don't set
1929 `placed_address' or `placed_size' if breakpoint couldn't have been
1930 set.
1931 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1932 `reqstd_address' for the breakpoint's address.
1933 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1934 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1935 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1936 * microblaze-linux-tdep.c
1937 (microblaze_linux_memory_remove_breakpoint): Likewise.
1938 * monitor.c (monitor_insert_breakpoint): Likewise.
1939 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1940 (procfs_insert_hw_breakpoint): Likewise.
1941 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1942 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1943 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1944 * remote-mips.c (mips_insert_breakpoint): Likewise.
1945 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1946
1947 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1948
1949 * valops.c (value_assign): Check for bit field assignments
1950 before calling architecture-specific register value
1951 conversion functions.
1952
1953 2014-10-03 Pierre Muller <muller@sourceware.org>
1954
1955 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1956
1957 2014-10-02 Pedro Alves <palves@redhat.com>
1958
1959 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1960 threads_are_executing.
1961 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1962 describing comment.
1963 * gdbthread.h (threads_are_executing): Declare.
1964 (handle_signal_stop) <random signals>: Don't print about the
1965 signal here if stopping.
1966 (end_stepping_range): Don't notify observers here.
1967 (normal_stop): Update the thread list. If stopped by a random
1968 signal or a stepping range ended, notify observers.
1969 * thread.c (threads_executing): New global.
1970 (init_thread_list): Clear 'threads_executing'.
1971 (set_executing): Set or clear 'threads_executing'.
1972 (threads_are_executing): New function.
1973 (update_threads_executing): New function.
1974 (update_thread_list): Use it.
1975
1976 2014-10-02 Pedro Alves <palves@redhat.com>
1977
1978 PR breakpoints/17431
1979 * breakpoint.c (update_breakpoints_after_exec): Don't create
1980 overlay, longjmp, std terminate nor exception breakpoints here.
1981
1982 2014-10-02 Pedro Alves <palves@redhat.com>
1983
1984 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1985 Adjust comments.
1986 * inferior.c (find_inferior_for_program_space): Give preference to
1987 the current inferior.
1988 * inferior.h (find_inferior_for_program_space): Update comment.
1989 * progspace.c (switch_to_program_space_and_thread): Prefer the
1990 current inferior if it's bound to the program space requested. If
1991 the inferior found doesn't have a PID yet, don't bother looking up
1992 a thread.
1993 * progspace.h (switch_to_program_space_and_thread): Adjust
1994 comment.
1995 * thread.c (any_thread_of_process, any_live_thread_of_process):
1996 Give preference to the current thread.
1997
1998 2014-10-01 Pedro Alves <palves@redhat.com>
1999
2000 * breakpoint.c (insert_bp_location): Error out if inserting a
2001 software breakpoint at a read-only address.
2002 * target.c (memory_xfer_check_region): New function, factored out
2003 from ...
2004 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2005 ULONGEST.
2006 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2007 against the memory region attributes.
2008
2009 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2010
2011 * NEWS: Announce new exit-code field in -list-thread-groups
2012 output.
2013 * inferior.c (exit_inferior_1): Don't clear exit code.
2014 (inferior_appeared): Clear exit code.
2015 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2016 code.
2017
2018 2014-10-01 Pedro Alves <palves@redhat.com>
2019
2020 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2021 GENERATED" along with emacs/vi read-only markers.
2022 * regformats/aarch64.dat: Regenerate.
2023 * regformats/arm-with-iwmmxt.dat: Regenerate.
2024 * regformats/arm-with-neon.dat: Regenerate.
2025 * regformats/arm-with-vfpv2.dat: Regenerate.
2026 * regformats/arm-with-vfpv3.dat: Regenerate.
2027 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2028 * regformats/i386/amd64-avx.dat: Regenerate.
2029 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2030 * regformats/i386/amd64-avx512.dat: Regenerate.
2031 * regformats/i386/amd64-linux.dat: Regenerate.
2032 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2033 * regformats/i386/amd64-mpx.dat: Regenerate.
2034 * regformats/i386/amd64.dat: Regenerate.
2035 * regformats/i386/i386-avx-linux.dat: Regenerate.
2036 * regformats/i386/i386-avx.dat: Regenerate.
2037 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2038 * regformats/i386/i386-avx512.dat: Regenerate.
2039 * regformats/i386/i386-linux.dat: Regenerate.
2040 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2041 * regformats/i386/i386-mmx.dat: Regenerate.
2042 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2043 * regformats/i386/i386-mpx.dat: Regenerate.
2044 * regformats/i386/i386.dat: Regenerate.
2045 * regformats/i386/x32-avx-linux.dat: Regenerate.
2046 * regformats/i386/x32-avx.dat: Regenerate.
2047 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2048 * regformats/i386/x32-avx512.dat: Regenerate.
2049 * regformats/i386/x32-linux.dat: Regenerate.
2050 * regformats/i386/x32.dat: Regenerate.
2051 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2052 * regformats/mips-dsp-linux.dat: Regenerate.
2053 * regformats/mips-linux.dat: Regenerate.
2054 * regformats/mips64-dsp-linux.dat: Regenerate.
2055 * regformats/mips64-linux.dat: Regenerate.
2056 * regformats/nios2-linux.dat: Regenerate.
2057 * regformats/rs6000/powerpc-32.dat: Regenerate.
2058 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2059 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2060 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2061 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2062 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2063 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2064 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2065 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2066 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2067 * regformats/s390-linux32.dat: Regenerate.
2068 * regformats/s390-linux32v1.dat: Regenerate.
2069 * regformats/s390-linux32v2.dat: Regenerate.
2070 * regformats/s390-linux64.dat: Regenerate.
2071 * regformats/s390-linux64v1.dat: Regenerate.
2072 * regformats/s390-linux64v2.dat: Regenerate.
2073 * regformats/s390-te-linux64.dat: Regenerate.
2074 * regformats/s390x-linux64.dat: Regenerate.
2075 * regformats/s390x-linux64v1.dat: Regenerate.
2076 * regformats/s390x-linux64v2.dat: Regenerate.
2077 * regformats/s390x-te-linux64.dat: Regenerate.
2078 * regformats/tic6x-c62x-linux.dat: Regenerate.
2079 * regformats/tic6x-c62x.dat: Regenerate.
2080 * regformats/tic6x-c64x-linux.dat: Regenerate.
2081 * regformats/tic6x-c64x.dat: Regenerate.
2082 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2083 * regformats/tic6x-c64xp.dat: Regenerate.
2084
2085 2014-10-01 Pedro Alves <palves@redhat.com>
2086
2087 * features/Makefile: Update comments.
2088 (XMLTOC): List all xml files we build C files from.
2089 (clean-cfiles): New rule.
2090
2091 2014-10-01 Pedro Alves <palves@redhat.com>
2092
2093 * features/i386/amd64-avx512-linux.c: Regenerate.
2094 * features/i386/amd64-avx512.c: Regenerate.
2095 * features/i386/x32-avx512-linux.c: Regenerate.
2096 * features/i386/x32-avx512.c: Regenerate.
2097
2098 2014-10-01 Pedro Alves <palves@redhat.com>
2099
2100 * features/Makefile (WHICH): Remove arm-with-m,
2101 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2102
2103 2014-10-01 Pedro Alves <palves@redhat.com>
2104
2105 * features/Makefile (clean): New rule.
2106
2107 2014-10-01 Pedro Alves <palves@redhat.com>
2108
2109 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2110 (zmm14h): Add missing end quotes.
2111
2112 2014-10-01 Pedro Alves <palves@redhat.com>
2113
2114 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2115 * features/aarch64.c: Regenerate.
2116
2117 2014-09-30 Don Breazeal <donb@codesourcery.com>
2118
2119 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2120 code so as to work with follow_fork_inferior.
2121 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2122 (inf_ttrace_create_inferior): Remove reference to
2123 inf_ttrace_vfork_ppid.
2124 (inf_ttrace_attach): Ditto.
2125 (inf_ttrace_detach): Ditto.
2126 (inf_ttrace_kill): Use current_inferior instead of
2127 inf_ttrace_vfork_ppid.
2128 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2129 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2130 inferior away from the parent.
2131 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2132 target_follow_fork.
2133 (follow_fork_inferior): New function.
2134 (follow_inferior_reset_breakpoints): Make function static.
2135 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2136 * linux-nat.c (linux_child_follow_fork): Move target-independent
2137 code to infrun.c:follow_fork_inferior.
2138
2139 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2140
2141 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2142 * gdbarch.c: Regenerate.
2143 * gdbarch.h: Likewise.
2144 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2145 gdbarch method 'regset_from_core_section'.
2146 (get_core_register_section): Remove handling for the case that
2147 regset == NULL and regset_from_core_section is defined.
2148 (get_core_registers): Drop check for deleted method.
2149 * procfs.c (procfs_do_thread_registers): Adjust comment.
2150
2151 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2152
2153 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2154 (linux_nat_make_corefile_notes): Remove.
2155 (linux_target_install_ops): Do not set target method
2156 'make_corefile_notes'.
2157 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2158 Remove field.
2159 (linux_corefile_thread_callback): Instead of args->collect, call
2160 linux_collect_thread_registers.
2161 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2162 NULL unless there is a regset iterator.
2163 (linux_make_corefile_notes_1): Remove.
2164 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2165 by linux_make_corefile_notes.
2166 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2167
2168 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2169
2170 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2171 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2172 Remove.
2173 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2174
2175 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2176
2177 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2178 (xtensa_iterate_over_regset_sections): New.
2179 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2180
2181 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2182
2183 * vax-tdep.c (vax_regset_from_core_section): Remove.
2184 (vax_iterate_over_regset_sections): New.
2185 (vax_gdbarch_init): Adjust gdbarch initialization.
2186
2187 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2188
2189 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2190 (tilegx_regset_from_core_section): Remove.
2191 (tilegx_iterate_over_regset_sections): New.
2192 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2193
2194 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2195
2196 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2197 (sparc_iterate_over_regset_sections): New.
2198 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2199 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2200 targets.
2201 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2202 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2203 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2204 target method 'make_corefile_notes'.
2205
2206 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2207
2208 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2209 'sizeof_gregset' and 'sizeof_fpregset'.
2210 * sh-tdep.c (sh_regset_from_core_section): Remove.
2211 (sh_iterate_over_regset_sections): New.
2212 (sh_gdbarch_init): Adjust gdbarch initialization.
2213 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2214 sizeof_fpregset.
2215 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2216 'sizeof_gregset'.
2217
2218 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2219
2220 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2221 (score7_linux_iterate_over_regset_sections): New.
2222 (score_gdbarch_init): Adjust gdbarch initialization.
2223
2224 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2225
2226 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2227 FreeBSD targets.
2228 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2229 method 'make_corefile_notes'.
2230 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2231 (ppcfbsd_regset_from_core_section): Remove.
2232 (ppcfbsd_iterate_over_regset_sections): New.
2233 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2234 initialization.
2235 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2236 (ppcnbsd_iterate_over_regset_sections): New.
2237 (ppcnbsd_init_abi): Adjust.
2238 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2239 (ppcobsd_iterate_over_regset_sections): New.
2240 (ppcobsd_init_abi): Adjust.
2241 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2242 (rs6000_aix_iterate_over_regset_sections): New.
2243 (rs6000_aix_init_osabi): Adjust.
2244
2245 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2246
2247 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2248 (nios2_regset_from_core_section): Remove.
2249 (nios2_iterate_over_regset_sections): New.
2250 (nios2_linux_init_abi): Adjust gdbarch initialization.
2251
2252 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2253
2254 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2255 (am33_iterate_over_regset_sections): New.
2256 (am33_linux_init_osabi): Adjust gdbarch initialization.
2257
2258 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2259
2260 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2261 (mips_linux_iterate_over_regset_sections): New.
2262 (mips_linux_init_abi): Adjust gdbarch initialization.
2263 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2264 (mips64obsd_iterate_over_regset_sections): New.
2265 (mips64obsd_init_abi): Adjust.
2266 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2267 (mipsnbsd_iterate_over_regset_sections): New.
2268 (mipsnbsd_init_abi): Adjust.
2269
2270 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2271
2272 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2273 (m88k_iterate_over_regset_sections): New.
2274 (m88k_gdbarch_init): Adjust gdbarch initialization.
2275
2276 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2277
2278 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2279 (ia64_linux_iterate_over_regset_sections): New.
2280 (ia64_linux_init_abi): Adjust gdbarch initialization.
2281
2282 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2283
2284 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2285 (m68kbsd_iterate_over_regset_sections): New.
2286 (m68kbsd_init_abi): Adjust gdbarch initialization.
2287 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2288 (m68k_linux_iterate_over_regset_sections): New.
2289 (m68k_linux_init_abi): Adjust gdbarch initialization.
2290
2291 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2292
2293 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2294 (m32r_linux_regset_from_core_section): Remove.
2295 (m32r_linux_iterate_over_regset_sections): New.
2296 (m32r_linux_init_abi): Adjust gdbarch initialization.
2297
2298 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2299
2300 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2301 (amd64obsd_iterate_over_regset_sections): New.
2302 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2303 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2304 Remove.
2305 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2306 regset_from_core_section initialization.
2307 * i386-tdep.c (i386_regset_from_core_section): Remove.
2308 (i386_iterate_over_regset_sections): New.
2309 (i386_gdbarch_init): Adjust gdbarch initialization.
2310 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2311 (i386_iterate_over_regset_sections): New prototype.
2312 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2313 Remove.
2314 (i386obsd_aout_iterate_over_regset_sections): New.
2315 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2316 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2317 targets.
2318 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2319 (amd64fbsd_init_abi): Call fbsd_init_abi.
2320 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2321 (i386fbsd4_init_abi): Call fbsd_init_abi.
2322 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2323 target method 'make_corefile_notes'.
2324 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2325
2326 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2327
2328 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2329 (hppa_hpux_iterate_over_regset_sections): New.
2330 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2331 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2332 (hppa_linux_iterate_over_regset_sections): New.
2333 (hppa_linux_init_abi): Adjust.
2334 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2335 (hppanbsd_iterate_over_regset_sections): New.
2336 (hppanbsd_init_abi): Adjust.
2337 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2338 (hppaobsd_iterate_over_regset_sections): New.
2339 (hppaobsd_init_abi): Adjust.
2340
2341 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2342
2343 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2344 (frv_linux_iterate_over_regset_sections): New.
2345 (frv_linux_init_abi): Adjust gdbarch initialization.
2346
2347 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2348
2349 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2350 (armbsd_iterate_over_regset_sections): New prototype.
2351 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2352 (armbsd_iterate_over_regset_sections): New.
2353 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2354 initialization.
2355
2356 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2357
2358 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2359 (alpha_linux_iterate_over_regset_sections): New.
2360 (alpha_linux_init_abi): Adjust gdbarch initialization.
2361 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2362 prototype.
2363 (alphanbsd_iterate_over_regset_sections): New prototype.
2364
2365 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2366
2367 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2368 Remove.
2369 (aarch64_linux_iterate_over_regset_sections): New.
2370 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2371
2372 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2373
2374 * fbsd-tdep.c: New file.
2375 * fbsd-tdep.h: New file.
2376 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2377 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2378 (ALLDEPFILES): Add fbsd-tdep.c.
2379
2380 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2381
2382 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2383 parameter.
2384 * gdbarch.h: Regenerate.
2385 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2386 iterator.
2387 (get_core_register_section): Add parameter 'regset' and use it, if
2388 set. Add parameter 'min_size' and verify the bfd section size
2389 against it.
2390 (get_core_registers_cb): Add parameter 'regset' and pass it to
2391 get_core_register section. For the "standard" register sections
2392 ".reg" and ".reg2", set an appropriate default for human_name.
2393 (get_core_registers): Don't abort when the gdbarch has an iterator
2394 but no regset_from_core_section. Add NULL/0 for parameters
2395 'regset'/'min_size' in calls to get_core_register_section.
2396 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2397 'regset' and use it instead of calling the
2398 regset_from_core_section gdbarch method.
2399 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2400 * i386-tdep.c (i386_supply_xstateregset)
2401 (i386_collect_xstateregset, i386_xstateregset): Moved to
2402 i386-linux-tdep.c.
2403 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2404 .reg-xstate.
2405 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2406 core file support only if the regset iterator hasn't been set.
2407 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2408 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2409 Moved from i386-tdep.c and renamed to *_linux*.
2410 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2411 each callback invocation. Allow any .reg-xstate size when reading
2412 from a core file.
2413 * amd64-tdep.c (amd64_supply_xstateregset)
2414 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2415 amd64-linux-tdep.c.
2416 (amd64_regset_from_core_section): Remove.
2417 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2418 install an amd64-specific regset_from_core_section gdbarch method.
2419 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2420 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2421 Moved from amd64-tdep.c and renamed to *_linux*.
2422 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2423 to each callback invocation. Allow any .reg-xstate size when
2424 reading from a core file.
2425 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2426 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2427 each callback invocation.
2428 (arm_linux_init_abi): No longer set the regset_from_core_section
2429 gdbarch method.
2430 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2431 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2432 each callback invocation.
2433 (ppc_linux_init_abi): No longer set the regset_from_core_section
2434 gdbarch method.
2435 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2436 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2437 (s390_regset_from_core_section): Remove.
2438 (s390_iterate_over_regset_sections): Add regset parameter to each
2439 callback invocation.
2440 (s390_gdbarch_init): No longer set the regset_from_core_section
2441 gdbarch method. Drop initialization of deleted tdep fields.
2442
2443 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2444
2445 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2446 (amd64_linux_iterate_over_regset_sections): New.
2447 (amd64_linux_init_abi_common): Don't install the regset section
2448 list, but the new iterator in gdbarch.
2449 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2450 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2451 (arm_linux_iterate_over_regset_sections): ...here. New function.
2452 (arm_linux_init_abi): Set iterator instead of section list.
2453 * corelow.c (get_core_registers_cb): New function, logic moved
2454 from...
2455 (get_core_registers): ...loop body here. Use new iterator method
2456 instead of walking through the regset section list.
2457 * gdbarch.sh: Remove 'core_regset_sections'. New method
2458 'iterate_over_regset_sections'. New typedef
2459 'iterate_over_regset_sections_cb'.
2460 * gdbarch.c: Regenerate.
2461 * gdbarch.h: Likewise.
2462 * i386-linux-tdep.c (i386_linux_regset_sections)
2463 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2464 Remove.
2465 (i386_linux_iterate_over_regset_sections): New.
2466 (i386_linux_init_abi): Don't choose a regset section list, but
2467 install new iterator in gdbarch.
2468 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2469 (linux_collect_regset_section_cb): New function, logic moved
2470 from...
2471 (linux_collect_thread_registers): ...loop body here. Use iterator
2472 method instead of walking through list.
2473 (linux_make_corefile_notes_1): Check for presence of iterator
2474 method instead of regset section list.
2475 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2476 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2477 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2478 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2479 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2480 (ppc_linux_init_abi): Don't choose from above regset section
2481 lists, but install new iterator in gdbarch.
2482 * regset.h (struct core_regset_section): Remove.
2483 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2484 have_linux_v1, have_linux_v2, and have_tdb.
2485 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2486 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2487 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2488 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2489 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2490 (s390_iterate_over_regset_sections): ...here. New function. Use
2491 new tdep fields.
2492 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2493 regset section lists, but install new iterator.
2494
2495 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2496
2497 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2498
2499 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2500
2501 * progspace.c (print_program_space): Don't prune program spaces
2502 before printing them.
2503
2504 2014-09-25 Pedro Alves <palves@redhat.com>
2505
2506 * infrun.c (user_visible_resume_ptid): Don't check
2507 singlestep_breakpoints_inserted_p.
2508
2509 2014-09-25 Pedro Alves <palves@redhat.com>
2510
2511 * breakpoint.c (should_be_inserted): Add debug output.
2512
2513 2014-09-25 Pedro Alves <palves@redhat.com>
2514
2515 * infrun.c (stepping_past_instruction_at)
2516 (clear_exit_convenience_vars): Point at infrun.h instead of
2517 inferior.h.
2518 (handle_signal_stop): Fix typo.
2519
2520 2014-09-24 Yao Qi <yao@codesourcery.com>
2521
2522 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2523 bitmask.
2524
2525 2014-09-22 Gary Benson <gbenson@redhat.com>
2526
2527 * target.c (target_stop): Updated comment.
2528
2529 2014-09-22 Gary Benson <gbenson@redhat.com>
2530
2531 * target/target.h (target_stop_ptid): Renamed as...
2532 (target_stop_and_wait): New function. Updated comment.
2533 All uses updated.
2534 (target_continue_ptid): Renamed as...
2535 (target_continue_no_signal): New function. Updated comment.
2536 All uses updated.
2537
2538 2014-09-22 Pedro Alves <palves@redhat.com>
2539
2540 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2541 and "auto" merged.
2542 * breakpoint.c (enum ugll_insert_mode): New enum.
2543 (always_inserted_mode): Now a plain boolean.
2544 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2545 (breakpoints_always_inserted_mode): Delete.
2546 (breakpoints_should_be_inserted_now): New function.
2547 (insert_breakpoints): Pass UGLL_INSERT to
2548 update_global_location_list instead of calling
2549 insert_breakpoint_locations manually.
2550 (create_solib_event_breakpoint_1): New, factored out from ...
2551 (create_solib_event_breakpoint): ... this.
2552 (create_and_insert_solib_event_breakpoint): Use
2553 create_solib_event_breakpoint_1 instead of calling
2554 insert_breakpoint_locations manually.
2555 (update_global_location_list): Change parameter type from boolean
2556 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2557 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2558 (update_global_location_list_nothrow): Change parameter type from
2559 boolean to enum ugll_insert_mode.
2560 (_initialize_breakpoint): "breakpoint always-inserted" option is
2561 now a boolean command. Update help text.
2562 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2563 (breakpoints_should_be_inserted_now): New declaration.
2564 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2565 Remove breakpoints_always_inserted_mode check.
2566 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2567 * remote.c (remote_start_remote): Likewise.
2568
2569 2014-09-22 Pedro Alves <palves@redhat.com>
2570
2571 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2572 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2573 Instead, pass UGLL_INSERT to update_global_location_list.
2574 (update_global_location_list): Change parameter type from boolean
2575 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2576 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2577 (create_solib_event_breakpoint_1): New, factored out from ...
2578 (create_solib_event_breakpoint): ... this.
2579 (create_and_insert_solib_event_breakpoint): Use
2580 create_solib_event_breakpoint_1 instead of calling
2581 insert_breakpoint_locations manually.
2582 (update_global_location_list): Handle UGLL_INSERT.
2583
2584 2014-09-22 Pedro Alves <palves@redhat.com>
2585
2586 * breakpoint.c (enum ugll_insert_mode): New enum.
2587 (update_global_location_list)
2588 (update_global_location_list_nothrow): Change parameter type from
2589 boolean to enum ugll_insert_mode. All callers adjusted.
2590
2591 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2592
2593 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2594 SystemTap support in GDB.
2595
2596 2014-09-19 Don Breazeal <donb@codesourcery.com>
2597
2598 * linux-nat.c (linux_handle_extended_wait): Call
2599 linux_ptrace_get_extended_event.
2600 (wait_lwp): Call linux_is_extended_waitstatus.
2601 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2602 and linux_is_extended_waitstatus.
2603 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2604 linux_ptrace_get_extended_event.
2605 (linux_ptrace_get_extended_event): New function.
2606 (linux_is_extended_waitstatus): New function.
2607 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2608 (linux_is_extended_waitstatus): New declarations.
2609
2610 2014-09-19 Yao Qi <yao@codesourcery.com>
2611
2612 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2613 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2614 comments. Callers update.
2615 (dwarf_decode_lines): Likewise.
2616 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2617 comments. Skip the line table if 'lowpc' is greater than
2618 'address'. Don't check
2619 dwarf2_per_objfile->has_section_at_zero.
2620
2621 2014-09-18 Doug Evans <dje@google.com>
2622
2623 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2624 * python/py-symtab.c (stpy_get_producer): New function.
2625 (symtab_object_getset): Add "producer" attribute.
2626
2627 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2628
2629 PR gdb/17384
2630 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2631 (do_captured_read_memory_integer): Remove.
2632 (safe_read_memory_integer): Use target_read_memory directly instead
2633 of catching errors in do_captured_read_memory_integer.
2634
2635 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2636
2637 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2638 not gdb/doc.
2639
2640 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2641
2642 * objc-lang.c (find_implementation_from_class): Remove dead code.
2643
2644 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2645
2646 PR cli/7233
2647 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2648 "fprintf_unfiltered (gdb_stdlog...)".
2649
2650 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2651
2652 PR breakpoints/12526
2653 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2654 val_bitsize.
2655 * breakpoint.c (watch_command_1): Use these fields to retain
2656 bitfield information.
2657 (extract_bitfield_from_watchpoint_value): New function.
2658 (watchpoint_check): Use it.
2659 (update_watchpoint): Use it. Optimize the address and length of a
2660 HW watchpoint pointing to a bitfield.
2661 * value.h (unpack_value_bitfield): New prototype.
2662 * value.c (unpack_value_bitfield): Make extern.
2663
2664 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2665
2666 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2667 x86-dregs.o.
2668 * gnu-nat.c (inf_threads): New function.
2669 * gnu-nat.h (inf_threads_ftype): New typedef.
2670 (inf_threads): New declaration.
2671 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2672 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2673 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2674 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2675 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2676 (i386_gnu_dr_get_control): New functions.
2677 (reg_addr): New structure.
2678 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2679 i386 debugging register hooks.
2680 * NEWS: Mention this.
2681
2682 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2683
2684 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2685 vector data transfer instructions.
2686 (arm_record_coproc_data_proc): Updated.
2687
2688 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2689
2690 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2691 arm_record_exreg_ld_st_insn.
2692 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2693 load/store insns.
2694
2695 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2696
2697 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2698 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2699 processing instructions.
2700
2701 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2702
2703 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2704 for advance SIMD struct ld/st insn.
2705 (thumb2_record_decode_insn_handler): Replace stub handler with
2706 thumb2_record_asimd_struct_ld_st.
2707
2708 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2709
2710 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2711 for asimd, vfp and coprocessor insns.
2712 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2713 and coprocessor insns.
2714 (thumb2_record_coproc_insn): New function.
2715 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2716 handlers.
2717 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2718 opcode 110 insns.
2719
2720 2014-09-13 Doug Evans <xdje42@gmail.com>
2721
2722 * NEWS: Mention new "queue-signal" command.
2723 * infcmd.c (queue_signal_command): New function.
2724 (_initialize_infcmd): Add new queue-signal command.
2725
2726 2014-09-13 Doug Evans <xdje42@gmail.com>
2727
2728 * linux-nat.c (wait_lwp): Add debugging printf.
2729 (linux_nat_wait_1): Ditto.
2730
2731 2014-09-12 Pedro Alves <palves@redhat.com>
2732
2733 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2734 (create_and_insert_solib_event_breakpoint): New functions.
2735 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2736 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2737 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2738 (remove_dbx_link_breakpoint): Delete function.
2739 (insert_dbx_link_bpt_in_file): Use
2740 create_and_insert_solib_event_breakpoint instead of
2741 deprecated_insert_raw_breakpoint.
2742 (procfs_wait): Don't check whether we hit __dbx_link here.
2743 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2744 here.
2745 * solib-irix.c (base_breakpoint): Delete global.
2746 (disable_break): Delete function.
2747 (enable_break): Use create_solib_event_breakpoint
2748 instead of deprecated_insert_raw_breakpoint.
2749 (irix_solib_handle_event): New function.
2750 (irix_solib_create_inferior_hook): Don't run the target or disable
2751 the mapping-complete breakpoint here.
2752 (_initialize_irix_solib): Install irix_solib_handle_event as
2753 so_ops->handle_event hook.
2754
2755 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2756 Ulrich Weigand  <uweigand@de.ibm.com>
2757
2758 PR tdep/17379
2759 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2760 instead of read_memory_unsigned_integer.
2761
2762 2014-09-12 Gary Benson <gbenson@redhat.com>
2763
2764 * nat/linux-waitpid.c: Include common-defs.h.
2765 [GDBSERVER]: Add FIXME comment.
2766 [!GDBSERVER]: Don't include defs.h or signal.h.
2767 (linux_debug) [!GDBSERVER]: Remove empty block.
2768
2769 2014-09-12 Gary Benson <gbenson@redhat.com>
2770
2771 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2772 Don't include defs.h or server.h.
2773
2774 2014-09-12 Gary Benson <gbenson@redhat.com>
2775
2776 * nat/linux-btrace.c: Include common-defs.h.
2777 Don't include defs.h, server.h or gdbthread.h.
2778 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2779
2780 2014-09-12 Gary Benson <gbenson@redhat.com>
2781
2782 * common/agent.c: Include common-defs.h.
2783 Don't include defs.h or server.h.
2784 * common/buffer.c: Likewise.
2785 * common/common-debug.c: Likewise.
2786 * common/common-utils.c: Likewise.
2787 * common/errors.c: Likewise.
2788 * common/filestuff.c: Likewise.
2789 * common/format.c: Likewise.
2790 * common/gdb_vecs.c: Likewise.
2791 * common/print-utils.c: Likewise.
2792 * common/ptid.c: Likewise.
2793 * common/rsp-low.c: Likewise.
2794 * common/signals.c: Likewise.
2795 * common/vec.c: Likewise.
2796 * common/xml-utils.c: Likewise.
2797 * nat/linux-osdata.c: Likewise.
2798 * nat/linux-procfs.c: Likewise.
2799 * nat/linux-ptrace.c: Likewise.
2800 * nat/mips-linux-watch.c: Likewise.
2801 * target/waitstatus.c: Likewise.
2802
2803 2014-09-12 Tom Tromey <tromey@redhat.com>
2804 Gary Benson <gbenson@redhat.com>
2805
2806 * common/common-regcache.h: New file.
2807 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2808 * regcache.h: Include common-regcache.h.
2809 (regcache_read_pc): Don't declare.
2810 * regcache.c (get_thread_regcache_for_ptid): New function.
2811 * nat/linux-btrace.c: Don't include regcache.h.
2812 Include common-regcache.h.
2813 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2814
2815 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2816
2817 * regcache.h (struct regset): Declare.
2818
2819 2014-09-11 Pedro Alves <palves@redhat.com>
2820
2821 PR gdb/17347
2822 * main.c: Include "infrun.h".
2823 (catch_command_errors, catch_command_errors_const): Wait for the
2824 foreground command to complete.
2825 * top.c (maybe_wait_sync_command_done): New function, factored out
2826 from ...
2827 (maybe_wait_sync_command_done): ... here.
2828 * top.h (maybe_wait_sync_command_done): New declaration.
2829
2830 2014-09-11 Tom Tromey <tromey@redhat.com>
2831 Gary Benson <gbenson@redhat.com>
2832
2833 * common/symbol.h: New file.
2834 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2835 * minsyms.c (find_minimal_symbol_address): New function.
2836 * common/agent.c: Include common/symbol.h.
2837 [!GDBSERVER]: Don't include objfiles.h.
2838 (agent_look_up_symbols): Use find_minimal_symbol_address.
2839
2840 2014-09-11 Gary Benson <gbenson@redhat.com>
2841
2842 * target/target.h (target_stop_ptid, target_continue_ptid):
2843 Declare.
2844 * target.c (target_stop_ptid, target_continue_ptid): New
2845 functions.
2846 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2847 (agent_run_command): Always use target_stop_ptid and
2848 target_continue_ptid.
2849
2850 2014-09-11 Tom Tromey <tromey@redhat.com>
2851 Gary Benson <gbenson@redhat.com>
2852
2853 * target/target.h: New file.
2854 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2855 * target.h: Include target/target.h.
2856 (target_read_memory, target_write_memory): Don't declare.
2857 * target.c (target_read_uint32): New function.
2858 * common/agent.c: Include target/target.h.
2859 [!GDBSERVER]: Don't include target.h.
2860 (helper_thread_id): Type changed to uint32_t.
2861 (agent_get_helper_thread_id): Use target_read_uint32.
2862 (agent_run_command): Always use target_read_memory and
2863 target_write_memory.
2864 (agent_capability): Type changed to uint32_t.
2865 (agent_capability_check): Use target_read_uint32.
2866
2867 2014-09-11 Gary Benson <gbenson@redhat.com>
2868
2869 * common/common-debug.h (show_debug_regs): Declare.
2870 * common/common-debug.c (show_debug_regs): Define.
2871 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2872 all uses with show_debug_regs. Replace all uses that considered
2873 debug_hw_points as a multi-value integer with straight boolean
2874 uses.
2875 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2876 with show_debug_regs.
2877 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2878 all uses with show_debug_regs.
2879 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2880 uses with show_debug_regs.
2881
2882 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2883
2884 * findvar.c (address_from_register): Handle targets requiring
2885 a special conversion routine even for plain pointer types.
2886
2887 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2888
2889 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2890 (store_register): Do not call exec_one_dummy_insn.
2891
2892 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2893
2894 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2895 dereference it first. Use value_enclosing_type instead of
2896 value_type.
2897 (ada_array_length): Likewise.
2898
2899 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2900
2901 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2902 Adjust function implementation and documentation accordingly.
2903 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2904 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2905 Update call to ada_value_ptr_subscript.
2906
2907 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2908
2909 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2910 instead of VAL's type.
2911
2912 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2913
2914 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2915
2916 2014-09-09 Doug Evans <xdje42@gmail.com>
2917
2918 PR guile/17367
2919 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2920 last parameter to pkg-config, not first.
2921 * configure.ac: Pass --with-guile provided pkg-config path to
2922 GDB_GUILE_PROGRAM_NAMES.
2923 * configure: Regenerate.
2924
2925 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2926
2927 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2928 Bertazi".
2929
2930 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2931
2932 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2933 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2934 the list of sections determining GDB_OSABI_IRIX.
2935
2936 2014-09-09 James Hogan <james.hogan@imgtec.com>
2937
2938 * MAINTAINERS (Write After Approval): Add "James Hogan".
2939
2940 2014-09-09 James Hogan <james.hogan@imgtec.com>
2941
2942 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2943
2944 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2945
2946 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2947
2948 2014-09-08 Doug Evans <xdje42@gmail.com>
2949
2950 PR 17247
2951 * guile.c: #include <signal.h>.
2952 (_initialize_guile): Block SIGCHLD while initializing Guile.
2953
2954 Replaces the following, which is reverted.
2955
2956 2014-07-26 Doug Evans <xdje42@gmail.com>
2957
2958 PR 17185
2959 * configure.ac: Add check for header gc/gc.h.
2960 Add check for function setenv.
2961 * configure: Regenerate.
2962 * config.in: Regenerate.
2963 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2964
2965 2014-09-08 Doug Evans <xdje42@gmail.com>
2966
2967 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2968 with named constant. Fix style of pointer comparison.
2969 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2970
2971 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2972
2973 PR gdb/17035
2974 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2975 decide whether we display the command on "show user".
2976 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2977 printing command name.
2978 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2979 * cli/cli-decode.c (cli_user_command_p): Create helper function
2980 to verify whether cmd_list_element is a user-defined command.
2981
2982 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2983
2984 PR python/17355
2985 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2986 Fix goto out of TRY_CATCH.
2987
2988 2014-09-06 Doug Evans <xdje42@gmail.com>
2989 Tom Tromey <tromey@redhat.com>
2990
2991 PR 15276
2992 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2993 $_any_caller_matches.
2994 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2995 * python/lib/gdb/function/caller_is.py: New file.
2996
2997 2014-09-06 Doug Evans <xdje42@gmail.com>
2998
2999 * infcmd.c (program_info): Fix typo.
3000
3001 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3002
3003 PR gdb/17235
3004 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3005 'number'. New variable 'has_digit'. Rewrite code to deal with
3006 subexpressions on SDT probes.
3007
3008 2014-09-04 Pedro Alves <palves@redhat.com>
3009
3010 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3011 the input is only one character long.
3012
3013 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3014
3015 PR fortran/17237
3016 * f-valprint.c (f_val_print): Specify the correct print option to
3017 use when printing integer values.
3018
3019 2014-09-04 Gary Benson <gbenson@redhat.com>
3020
3021 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3022 Remove code to cope with LWPs wrapped as PIDs.
3023 Add assertions to ensure no wrapped LWPs are passed.
3024
3025 2014-09-04 Pedro Alves <palves@redhat.com>
3026
3027 * value.c (value_ranges_copy_adjusted): New function, factored out
3028 from ...
3029 (value_contents_copy_raw): ... here.
3030 (unpack_value_bits_as_long_1): Rename back to ...
3031 (unpack_bits_as_long): ... this. Remove 'original_value' and
3032 'result' parameters. Change return type to LONGEST.
3033 (unpack_value_bits_as_long): Delete.
3034 (unpack_value_field_as_long_1): Delete.
3035 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3036 (unpack_value_bitfield): New function.
3037 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3038 (value_fetch_lazy): Use unpack_value_bitfield.
3039 * value.h (unpack_value_bits_as_long): Delete declaration.
3040
3041 2014-09-03 Sasha Smundak <asmundak@google.com>
3042
3043 * python/py-frame.c (frapy_read_register): New function.
3044
3045 2014-09-03 James Hogan <james.hogan@imgtec.com>
3046
3047 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3048 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3049
3050 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3051
3052 PR python/16699
3053 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3054 function.
3055 (add_cmd): Set "completer_handle_brkchars" to NULL.
3056 * cli/cli-decode.h (struct cmd_list_element)
3057 <completer_handle_brkchars>: New field.
3058 * command.h (completer_ftype_void): New typedef.
3059 (set_cmd_completer_handle_brkchars): New prototype.
3060 * completer.c (set_gdb_completion_word_break_characters): New
3061 function.
3062 (complete_line_internal): Call "completer_handle_brkchars"
3063 callback from command.
3064 * completer.h: Include "command.h".
3065 (set_gdb_completion_word_break_characters): New prototype.
3066 * python/py-cmd.c (cmdpy_completer_helper): New function.
3067 (cmdpy_completer_handle_brkchars): New function.
3068 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3069 (cmdpy_init): Set completer_handle_brkchars to
3070 cmdpy_completer_handle_brkchars.
3071
3072 2014-09-03 Gary Benson <gbenson@redhat.com>
3073
3074 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3075 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3076 Loop conditions changed to equivalent form.
3077 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3078 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3079 ALL_DEBUG_ADDRESS_REGISTERS.
3080
3081 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3082
3083 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3084 description fix.
3085
3086 2014-09-02 Doug Evans <dje@google.com>
3087
3088 * typeprint.c (find_global_typedef): Fix comment.
3089
3090 2014-09-02 Gary Benson <gbenson@redhat.com>
3091
3092 * i386-nat.h: Renamed as...
3093 * x86-nat.h: New file. All type, function and variable name
3094 prefixes changed from "i386_" to "x86_". All references updated.
3095 * i386-nat.c: Renamed as...
3096 * x86-nat.c: New file. All type, function and variable name
3097 prefixes changed from "i386_" to "x86_". All references updated.
3098 * common/i386-xstate.h: Renamed as...
3099 * common/x86-xstate.h: New file. All type, function and variable
3100 name prefixes changed from "i386_" to "x86_". All references
3101 updated.
3102 * nat/i386-cpuid.h: Renamed as...
3103 * nat/x86-cpuid.h: New file. All type, function and variable name
3104 prefixes changed from "i386_" to "x86_". All references updated.
3105 * nat/i386-gcc-cpuid.h: Renamed as...
3106 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3107 name prefixes changed from "i386_" to "x86_". All references
3108 updated.
3109 * nat/i386-dregs.h: Renamed as...
3110 * nat/x86-dregs.h: New file. All type, function and variable name
3111 prefixes changed from "i386_" to "x86_". All references updated.
3112 * nat/i386-dregs.c: Renamed as...
3113 * nat/x86-dregs.c: New file. All type, function and variable name
3114 prefixes changed from "i386_" to "x86_". All references updated.
3115
3116 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3117
3118 * varobj.c (_initialize_varobj): Move to the end of file.
3119
3120 2014-08-29 Gary Benson <gbenson@redhat.com>
3121
3122 * common/common-exceptions.h: New file.
3123 * common/common-exceptions.c: Likewise.
3124 * Makefile.in (SFILES): Add common/common-exceptions.c.
3125 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3126 (COMMON_OBS): Add common-exceptions.o.
3127 (common-exceptions.o): New rule.
3128 * exceptions.h (common-exceptions.h): Include.
3129 (gdb_setjmp.h): Do not include.
3130 (return_reason): Moved to common-exceptions.h.
3131 (enum return_reason): Likewise.
3132 (RETURN_MASK): Likewise.
3133 (typedef return_mask): Likewise.
3134 (enum errors): Likewise.
3135 (struct gdb_exception): Likewise.
3136 (exceptions_state_mc_init): Likewise.
3137 (exceptions_state_mc_action_iter): Likewise.
3138 (exceptions_state_mc_action_iter_1): Likewise.
3139 (TRY_CATCH): Likewise.
3140 (throw_exception): Likewise.
3141 (throw_verror): Likewise.
3142 (throw_vquit): Likewise.
3143 (throw_error): Likewise.
3144 (throw_quit): Likewise.
3145 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3146 (enum catcher_action): Likewise.
3147 (struct catcher): Likewise.
3148 (current_catcher): Likewise.
3149 (catcher_list_size): Likewise.
3150 (exceptions_state_mc_init): Likewise.
3151 (catcher_pop): Likewise.
3152 (exceptions_state_mc): Likewise.
3153 (exceptions_state_mc_action_iter): Likewise.
3154 (exceptions_state_mc_action_iter_1): Likewise.
3155 (throw_exception): Likewise.
3156 (exception_messages): Likewise.
3157 (exception_messages_size): Likewise.
3158 (throw_it): Likewise.
3159 (throw_verror): Likewise.
3160 (throw_vquit): Likewise.
3161 (throw_error): Likewise.
3162 (throw_quit): Likewise.
3163 (prepare_to_throw_exception): New function.
3164
3165 2014-08-29 Gary Benson <gbenson@redhat.com>
3166
3167 * common/gdb_setjmp.h: New file.
3168 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3169 * configure.ac: Move sigsetjmp check...
3170 * common/common.m4: ...here.
3171 * configure: Regenerate.
3172 * cp-support.c (SIGJMP_BUF): Delete.
3173 (SIGSETJMP): Likewise.
3174 (SIGLONGJMP): Likewise.
3175 * exceptions.h (gdb_setjmp.h): Include.
3176 (setjmp.h): Do not include.
3177 (EXCEPTIONS_SIGJMP_BUF): Delete.
3178 (EXCEPTIONS_SIGSETJMP): Likewise.
3179 (EXCEPTIONS_SIGLONGJMP): Likewise.
3180 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3181 from gdb_setjmp.h.
3182 * exceptions.c: Likewise.
3183
3184 2014-08-29 Gary Benson <gbenson@redhat.com>
3185
3186 * cleanups.h: Moved to...
3187 * common/cleanups.h: New file.
3188 * cleanups.c: Moved to...
3189 * common/cleanups.c: New file. Include common-defs.h and
3190 cleanups.h. Do not include defs.h.
3191 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3192 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3193 (cleanups.o): New rule.
3194
3195 2014-08-29 Gary Benson <gbenson@redhat.com>
3196
3197 * common/errors.h (internal_warning): New declaration.
3198 (internal_vwarning): Likewise.
3199 * common/errors.c (internal_warning): New function.
3200 * utils.h (internal_warning): Don't declare.
3201 (internal_vwarning): Likewise.
3202 * utils.c (internal_warning): Removed.
3203
3204 2014-08-29 Gary Benson <gbenson@redhat.com>
3205
3206 * main.c (captured_main): Use warning during startup.
3207 Prefix startup warning messages with command name.
3208
3209 2014-08-29 Gary Benson <gbenson@redhat.com>
3210
3211 * main.c (captured_main): Handle usage errors with error.
3212
3213 2014-08-29 Gary Benson <gbenson@redhat.com>
3214
3215 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3216 exit pair with a call to error. Wrap the message with _().
3217
3218 2014-08-29 Gary Benson <gbenson@redhat.com>
3219
3220 * main.c (captured_main): Replace a fprintf/exit
3221 pair with a call to error. Wrap the message with _().
3222
3223 2014-08-29 Gary Benson <gbenson@redhat.com>
3224
3225 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3226 pairs with calls to error. Wrap the message with _().
3227
3228 2014-08-29 Gary Benson <gbenson@redhat.com>
3229
3230 * utils.c (vwarning): Protect calls to target_terminal_ours
3231 and wrap_here.
3232
3233 2014-08-29 Gary Benson <gbenson@redhat.com>
3234
3235 * exceptions.c (print_flush): Protect calls to
3236 target_terminal_ours and wrap_here.
3237
3238 2014-08-29 Gary Benson <gbenson@redhat.com>
3239
3240 * utils.h (filtered_printing_initialized): New declaration.
3241 * utils.c (abort_with_message): New function.
3242 (internal_vproblem): Use abort_with_message for first level
3243 recursive internal problems, and if gdb_stderr is not set up.
3244 Protect calls to target_terminal_ours, begin_line and query.
3245
3246 2014-08-28 Doug Evans <dje@google.com>
3247
3248 * symtab.c (in_prologue): Move definition to better spot.
3249 (skip_prologue_using_sal): Ditto.
3250
3251 2014-08-28 Doug Evans <dje@google.com>
3252
3253 * symtab.c (find_function_start_sal): Move definition to better spot.
3254
3255 2014-08-28 Yao Qi <yao@codesourcery.com>
3256
3257 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3258 found_stack_adjust in forward scan. Remove condition check
3259 on found_stack_adjust which is always true. Indent the code.
3260
3261 2014-08-28 Yao Qi <yao@codesourcery.com>
3262
3263 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3264 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3265 (dwarf_decode_lines): Remove argument
3266 want_line_info. Remove condition check on want_line_info.
3267 Callers update.
3268
3269 2014-08-27 Doug Evans <dje@google.com>
3270
3271 * dwarf2read.c (dwarf_record_line): Fix typo.
3272
3273 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3274
3275 * target.h (struct target_ops::to_terminal_save_ours): Remove
3276 declaration.
3277 (target_terminal_save_ours): Remove macro.
3278 * target-delegates.c: Regenerate.
3279 * inf-child.c (inf_child_target): Don't set the nonexistent
3280 field to_terminal_save_ours.
3281 * inferior.h (child_terminal_save_ours): Remove declaration.
3282 * terminal.h (gdb_save_tty_state): New declaration.
3283 * inflow.c (child_terminal_save_ours): Rename to ...
3284 (gdb_save_tty_state): ... this.
3285 * tui/tui.c: Include terminal.h.
3286 (tui_enable): Use gdb_save_tty_state instead of
3287 target_terminal_save_ours.
3288 (tui_disable): Likewise.
3289
3290 2014-08-25 Doug Evans <dje@google.com>
3291
3292 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3293 Pass NULL instead of 0 for context pointer.
3294
3295 2014-08-25 Yao Qi <yao@codesourcery.com>
3296
3297 * dwarf2read.c: Fix grammatical error.
3298
3299 2014-08-24 Yao Qi <yao@codesourcery.com>
3300
3301 * dwarf2read.c (scan_partial_symbols): Update comments.
3302 Rename argument 'need_pc' with 'set_addrmap'.
3303 (add_partial_namespace): Rename argument 'need_pc' with
3304 'set_addrmap'.
3305 (add_partial_module): Likewise.
3306 (add_partial_subprogram): Likewise. Update comments.
3307 (dwarf2_name): Fix typo.
3308
3309 2014-08-22 Doug Evans <dje@google.com>
3310
3311 PR 17276
3312 * dwarf2read.c (dwarf_record_line_p): New function.
3313 (dwarf_decode_lines_1): Ignore subsequent line number entries
3314 for the same line if any entry had a non-zero discriminator.
3315
3316 2014-08-22 Doug Evans <dje@google.com>
3317
3318 * buildsym.h (record_line_ftype): New typedef.
3319 (record_line): Use it.
3320 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3321 (dwarf_decode_lines_1): Call them.
3322
3323 2014-08-22 Yao Qi <yao@codesourcery.com>
3324
3325 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3326 (ctf_end): Remove code.
3327
3328 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3329
3330 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3331 (linux_make_corefile_notes): call update_thread_list, protected against
3332 exceptions.
3333
3334 2014-08-21 Pedro Alves <palves@redhat.com>
3335
3336 * infcmd.c (attach_command): Remove comment.
3337
3338 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3339
3340 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3341 unsigned LONGEST to ULONGEST.
3342
3343 2014-08-20 Pedro Alves <palves@redhat.com>
3344
3345 * Makefile.in (check-read1): New rule.
3346
3347 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3348
3349 * value.c (value_from_contents_and_address): Strip resolved_type's
3350 typedef layers before checking its TYPE_DATA_LOCATION.
3351
3352 2014-08-20 Pedro Alves <palves@redhat.com>
3353
3354 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3355
3356 2014-08-20 Yao Qi <yao@codesourcery.com>
3357
3358 * amd64-tdep.c (amd64_classify): Add a blank line after the
3359 example. Move "*/" to a new line.
3360 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3361 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3362 * dwarf2read.c (psymtab_include_file_name): Likewise.
3363
3364 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3365 Pedro Alves <palves@redhat.com>
3366
3367 PR symtab/14604
3368 PR symtab/14605
3369 * ada-lang.c (coerce_unspec_val_to_type): Use
3370 value_contents_copy_raw.
3371 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3372 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3373 * cp-valprint.c (cp_print_value_fields): Let the common printing
3374 code handle optimized out values.
3375 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3376 * d-valprint.c (dynamic_array_type): Use
3377 value_bits_any_optimized_out.
3378 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3379 check_any_valid fields.
3380 (check_pieced_value_bits): Delete and inline ...
3381 (check_pieced_synthetic_pointer): ... here.
3382 (check_pieced_value_validity): Delete.
3383 (check_pieced_value_invalid): Delete.
3384 (pieced_value_funcs): Remove check_validity and check_any_valid
3385 fields.
3386 (read_pieced_value): Use mark_value_bits_optimized_out.
3387 (write_pieced_value): Switch to use
3388 mark_value_bytes_optimized_out.
3389 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3390 of assuming the whole value is optimized out.
3391 * findvar.c (read_frame_register_value): Remove special handling
3392 of optimized out registers.
3393 (value_from_register): Use mark_value_bytes_optimized_out.
3394 * frame-unwind.c (frame_unwind_got_optimized): Use
3395 mark_value_bytes_optimized_out.
3396 * jv-valprint.c (java_value_print): Adjust.
3397 (java_print_value_fields): Let the common printing code handle
3398 optimized out values.
3399 * mips-tdep.c (mips_print_register): Remove special handling of
3400 optimized out registers.
3401 * opencl-lang.c (lval_func_check_validity): Delete.
3402 (lval_func_check_any_valid): Delete.
3403 (opencl_value_funcs): Remove check_validity and check_any_valid
3404 fields.
3405 * p-valprint.c (pascal_object_print_value_fields): Let the common
3406 printing code handle optimized out values.
3407 * stack.c (read_frame_arg): Remove special handling of optimized
3408 out values. Fetch both VAL and ENTRYVAL before comparing
3409 contents. Adjust to value_available_contents_eq rename.
3410 * valprint.c (valprint_check_validity)
3411 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3412 (val_print_array_elements): Adjust.
3413 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3414 (value_bits_any_optimized_out): New function.
3415 (value_entirely_covered_by_range_vector): New function, factored
3416 out from value_entirely_unavailable.
3417 (value_entirely_unavailable): Reimplement.
3418 (value_entirely_optimized_out): New function.
3419 (insert_into_bit_range_vector): New function, factored out from
3420 mark_value_bits_unavailable.
3421 (mark_value_bits_unavailable): Reimplement.
3422 (struct ranges_and_idx): New struct.
3423 (find_first_range_overlap_and_match): New function, factored out
3424 from value_available_contents_bits_eq.
3425 (value_available_contents_bits_eq): Rename to ...
3426 (value_contents_bits_eq): ... this. Check both unavailable
3427 contents and optimized out contents.
3428 (value_available_contents_eq): Rename to ...
3429 (value_contents_eq): ... this.
3430 (allocate_value_lazy): Remove reference to the old optimized_out
3431 boolean.
3432 (allocate_optimized_out_value): Use
3433 mark_value_bytes_optimized_out.
3434 (require_not_optimized_out): Adjust to check whether the
3435 optimized_out vec is empty.
3436 (ranges_copy_adjusted): New function, factored out from
3437 value_contents_copy_raw.
3438 (value_contents_copy_raw): Also copy the optimized out ranges.
3439 Assert the destination ranges aren't optimized out.
3440 (value_contents_copy): Update comment, remove call to
3441 require_not_optimized_out.
3442 (value_contents_equal): Adjust to check whether the optimized_out
3443 vec is empty.
3444 (set_value_optimized_out, value_optimized_out_const): Delete.
3445 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3446 New functions.
3447 (value_entirely_optimized_out, value_bits_valid): Delete.
3448 (value_copy): Take a VEC copy of the 'optimized_out' field.
3449 (value_primitive_field): Remove special handling of optimized out.
3450 (value_fetch_lazy): Assert that lazy values have no unavailable
3451 regions. Use value_bits_any_optimized_out. Remove some special
3452 handling for optimized out values.
3453 * value.h: Add intro comment about <optimized out> and
3454 <unavailable>.
3455 (struct lval_funcs): Remove check_validity and check_any_valid
3456 fields.
3457 (set_value_optimized_out, value_optimized_out_const): Remove.
3458 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3459 New declarations.
3460 (value_bits_any_optimized_out): New declaration.
3461 (value_bits_valid): Delete declaration.
3462 (value_available_contents_eq): Rename to ...
3463 (value_contents_eq): ... this, and extend comments.
3464
3465 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3466
3467 Fix -fsanitize=address on unreadable inferior strings.
3468 * valprint.c (val_print_string): Fix access before BUFFER.
3469
3470 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3471
3472 * target.c (target_struct_size): Remove.
3473 (target_struct_allocsize): Remove.
3474 (DEFAULT_ALLOCSIZE): Remove.
3475 (target_ops_p): New typedef.
3476 (DEF_VEC_P (target_ops_p)): New vector type.
3477 (target_structs): Change type to VEC (target_ops_p).
3478 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3479 (find_default_run_target): Rewrite for loop following changes to
3480 target_structs.
3481
3482 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3483
3484 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3485 Adjust code accordingly. Adjust function description comment.
3486
3487 2014-08-19 Yao Qi <yao@codesourcery.com>
3488
3489 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3490 types.
3491
3492 2014-08-19 Alan Modra <amodra@gmail.com>
3493
3494 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3495 * config.in: Regenerate.
3496 * configure: Regenerate.
3497
3498 2014-08-19 Tom Tromey <tromey@redhat.com>
3499 Gary Benson <gbenson@redhat.com>
3500
3501 * common/common-debug.h: New file.
3502 * common/common-debug.c: Likewise.
3503 * debug.c: Likewise.
3504 * Makefile.in (SFILES): Add common/common-debug.c.
3505 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3506 (COMMON_OBS): Add common-debug.o and debug.o.
3507 (common-debug.o): New rule.
3508 * common/common-defs.h: Include common-debug.h.
3509 * common/agent.c (debug_agent_printf): New function.
3510 (DEBUG_AGENT): Redefine.
3511 * nat/i386-dregs.c (debug_printf): Undefine.
3512
3513 2014-08-19 Gary Benson <gbenson@redhat.com>
3514
3515 * common/common-defs.h: Include print-utils.h.
3516 * utils.h: Do not include print-utils.h.
3517
3518 2014-08-19 Tom Tromey <tromey@redhat.com>
3519 Gary Benson <gbenson@redhat.com>
3520
3521 * common/common-types.h: New file.
3522 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3523 * common/common-defs.h: Include common-types.h.
3524 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3525 (ULONGEST): Remove.
3526
3527 2014-08-19 Tom Tromey <tromey@redhat.com>
3528 Gary Benson <gbenson@redhat.com>
3529
3530 * common/errors.h: New file.
3531 * common/errors.c: Likewise.
3532 * Makefile.in (SFILES): Add common/errors.c.
3533 (HFILES_NO_SRCDIR): Add common/errors.h.
3534 (COMMON_OBS): Add errors.o.
3535 (errors.o): New rule.
3536 * common/common-defs.h: Include errors.h.
3537 * utils.h (perror_with_name, error, verror, warning, vwarning):
3538 Don't declare.
3539 * common/common-utils.h: (malloc_failure, internal_error):
3540 Likewise.
3541
3542 2014-08-19 Gary Benson <gbenson@redhat.com>
3543
3544 * utils.c (internal_vproblem): Always print the message.
3545
3546 2014-08-18 Doug Evans <dje@google.com>
3547
3548 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3549
3550 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3551
3552 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3553 Return 0 if TYPE is dynamic.
3554 (print_range): Add handling of dynamic ranges.
3555
3556 2014-08-18 Keven Boell <keven.boell@intel.com>
3557 Joel Brobecker <brobecker@adacore.com>
3558
3559 * gdbtypes.h (struct main_type): Add field "data_location".
3560 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3561 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3562 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3563 a dynamic data location.
3564 (resolve_dynamic_type): Add DW_AT_data_location handling.
3565 (copy_recursive, copy_type): Copy the data_location information
3566 when present.
3567 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3568 * value.c (value_from_contents_and_address): Add
3569 DW_AT_data_location handling.
3570
3571 2014-08-18 Keven Boell <keven.boell@intel.com>
3572 Joel Brobecker <brobecker@adacore.com>
3573
3574 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3575 field "get_object_address".
3576 * dwarf2expr.c (execute_stack_op): Add handling for
3577 DW_OP_push_object_address.
3578 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3579 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3580 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3581 (dwarf_expr_get_obj_addr): New function.
3582 (dwarf_expr_ctx_funcs): Add get_object_address field.
3583 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3584 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3585 (dwarf2_evaluate_property): Add parameter "address". Use it.
3586 (needs_get_obj_addr): New function.
3587 (needs_frame_ctx_funcs): Add get_object_address field.
3588 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3589 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3590 (resolve_dynamic_array): Likewise.
3591
3592 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3593
3594 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3595 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3596 fixed value for records and unions for which some GNAT encodings
3597 are present.
3598
3599 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3600
3601 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3602 rewrite to avoid "else if" and "else" constructs. Should be
3603 a no-op in practice.
3604
3605 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3606
3607 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3608 of lexical block.
3609
3610 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3611
3612 PR c++/17132
3613 * eval.c: Update all calls to find_overload_match.
3614 * valarith.c: Likewise.
3615 (value_user_defined_cpp_op, value_user_defined_op): New
3616 argument NOSIDE. Update all callers.
3617 * valops.c (find_overload_match): New argument NOSIDE.
3618 * value.h (find_overload_match): Update signature.
3619
3620 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3621
3622 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3623 'items' methods instead of 'iteritems' method on dictionaries.
3624
3625 2014-08-15 Doug Evans <dje@google.com>
3626
3627 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3628 closer to use.
3629
3630 2014-08-15 Doug Evans <dje@google.com>
3631
3632 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3633
3634 2014-08-15 Doug Evans <dje@google.com>
3635
3636 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3637
3638 2014-08-15 Doug Evans <dje@google.com>
3639
3640 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3641 unused.
3642
3643 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3644
3645 * dcache.h: Include target.h, to avoid compile time warnings.
3646
3647 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3648
3649 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3650 frame_info" partial declaration.
3651 * gdbarch.h: Regenerate.
3652
3653 2014-08-15 Yao Qi <yao@codesourcery.com>
3654
3655 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3656 Add parameter 'decode_for_pst_p'. Callers update.
3657
3658 2014-08-13 Yao Qi <yao@codesourcery.com>
3659
3660 PR build/17104
3661 * configure.ac: Use local variable 'pos'.
3662 * configure: Regenerated.
3663
3664 2014-08-11 Doug Evans <dje@google.com>
3665
3666 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3667 message, it is redundant with "Reading symbols from ..." message.
3668
3669 2014-08-10 Doug Evans <xdje42@gmail.com>
3670
3671 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3672
3673 2014-08-09 Yao Qi <yao@codesourcery.com>
3674
3675 PR remote/9053
3676 * remote.c (remote_xfer_partial): Remove dead code.
3677
3678 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3679
3680 * ia64-linux-tdep.c: Include "regset.h".
3681 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3682 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3683 (ia64_linux_supply_fpregset): New function.
3684 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3685 (ia64_linux_regset_from_core_section): New function.
3686 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3687 method.
3688
3689 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3690
3691 * m68klinux-tdep.c: Include "regset.h".
3692 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3693 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3694 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3695 (m68k_linux_regset_from_core_section): New function.
3696 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3697 method.
3698
3699 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3700
3701 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3702 function. Move logic to...
3703 (tilegx_linux_regmap): ... this new register map.
3704 (tilegx_linux_regset): Refer to register map, replace supply
3705 method by regcache_supply_regset, and add collect method.
3706 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3707 TILEGX_FIRST_EASY_REGNUM.
3708
3709 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3710
3711 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3712 that calls regcache_supply_regset and handles the EPC register
3713 separately. Move main logic to...
3714 (score7_linux_gregmap): ... this new register map.
3715 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3716 (score7_linux_gregset): Refer to register map. Add collect method.
3717 (score7_linux_regset_from_core_section): Replace
3718 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3719 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3720 (struct regset): Delete unused forward declaraction.
3721 (struct pt_regs): Delete structure definition.
3722 (elf_gregset_t): Delete typedef.
3723
3724 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3725
3726 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3727 (nios2_core_regset): Add collect method.
3728
3729 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3730
3731 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3732 platform-independent and don't write to read-only input buffer.
3733 (m32r_linux_collect_gregset): New function.
3734 (m32r_linux_gregset): Add collect method.
3735
3736 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3737
3738 * hppa-linux-tdep.c (greg_map): Rename to...
3739 (hppa_linux_gregmap): ... this. Also convert to
3740 regcache_map_entry format.
3741 (hppa_linux_supply_regset): Delete function.
3742 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3743 (hppa_linux_fpregmap): ... this new register map.
3744 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3745 register map, replace supply method by regcache_supply_regset, and
3746 add collect method regcache_collect_regset.
3747
3748 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3749
3750 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3751 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3752 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3753 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3754 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3755 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3756 (frv_linux_supply_gregset): Replace main logic by call to
3757 regcache_supply_regset, but keep clearing gr32-gr63.
3758 (frv_linux_supply_fpregset): Delete function.
3759 (frv_linux_gregset): Refer to appropriate register map and add
3760 regcache_collect_regset as the collect method.
3761 (frv_linux_fpregset): Likewise. Also exchange the supply method
3762 by regcache_supply_regset.
3763
3764 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3765
3766 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3767 by call to alpha_supply_int_regs.
3768 (alpha_linux_collect_gregset): New function.
3769 (alpha_linux_supply_fpregset): Replace logic by call to
3770 alpha_supply_fp_regs.
3771 (alpha_linux_collect_fpregset): New function.
3772 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3773
3774 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3775
3776 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3777 by call to regcache_collect_regset.
3778 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3779 instead of aarch64_linux_supply_gregset/_fpregset.
3780 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3781 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3782 header file instead.
3783 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3784 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3785 functions. Move logic to ...
3786 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3787 register maps.
3788 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3789 refer to new register maps, replace *_regset_from_core by
3790 regcache_supply_regset, and also use regcache_collect_regset.
3791 * aarch64-linux-tdep.h: Include "regset.h".
3792 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3793 Delete prototypes.
3794 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3795 macros, moved from C source file.
3796 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3797 variable declarations.
3798
3799 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3800
3801 * s390-linux-nat.c: Include "regset.h".
3802 (regmap_gregset): Delete macro.
3803 (s390_64_regmap_gregset): New register map for
3804 regcache_supply/_collect_regset.
3805 (s390_64_gregset): New regset.
3806 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3807 (regmap_fpregset): Delete macro.
3808 (s390_native_supply, s390_native_collect): Delete functions.
3809 (supply_gregset, fill_gregset): Replace s390-specific regmap
3810 handling by a call to regcache_supply/_collect_regset.
3811 (supply_fpregset, fill_fpregset): Call regcache_supply/
3812 _collect_regset instead of s390_native_supply/_collect.
3813 (fetch_regset, store_regset): Likewise. Also change the last
3814 parameter to a regset instead of a regmap.
3815 (s390_linux_fetch_inferior_registers)
3816 (390_linux_store_inferior_registers): Adjust last parameter in
3817 calls to fetch_regset and store_regset.
3818 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3819 (s390_gregmap): ... this. Also make static const and convert to
3820 regcache_map_entry format.
3821 (s390x_regmap_gregset): Delete.
3822 (s390_regmap_fpregset): Rename to...
3823 (s390_fpregmap): ... this. Make static const and convert to
3824 regcache_map_entry format.
3825 (s390_regmap_upper, s390_regmap_last_break)
3826 (s390x_regmap_last_break, s390_regmap_system_call)
3827 (s390_regmap_tdb): Likewise.
3828 (s390_supply_regset, s390_collect_regset): Remove functions.
3829 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3830 s390_supply_regset.
3831 (s390_gregset, s390_fpregset, s390_upper_regset)
3832 (s390_last_break_regset, s390x_last_break_regset)
3833 (s390_system_call_regset, s390_tdb_regset): Make global and
3834 replace s390_supply/_collect_regset by regcache_supply/
3835 _collect_regset.
3836 (s390x_gregset): Delete.
3837 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3838 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3839 (s390_regmap_fpregset, s390_regmap_last_break)
3840 (s390x_regmap_last_break, s390_regmap_system_call)
3841 (s390_regmap_tdb): Delete global variable declarations.
3842 (s390_gregset, s390_fpregset, s390_last_break_regset)
3843 (s390x_last_break_regset, s390_system_call_regset)
3844 (s390_tdb_regset): New global variable declarations.
3845
3846 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3847
3848 * regcache.c: Include "regset.h".
3849 (regcache_transfer_regset): New local function.
3850 (regcache_supply_regset, regcache_collect_regset): New functions.
3851 * regcache.h (struct regcache_map_entry): New structure.
3852 (REGCACHE_MAP_SKIP): New enum value.
3853 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3854
3855 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3856
3857 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3858 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3859 (ppc_linux_collect_gregset ): Likewise.
3860 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3861 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3862 (ppc_collect_vrregset): Likewise.
3863 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3864 Likewise.
3865
3866 2014-08-07 Yao Qi <yao@codesourcery.com>
3867
3868 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3869 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3870 * remote.c (remote_read_bytes): Likewise.
3871
3872 2014-08-07 Yao Qi <yao@codesourcery.com>
3873
3874 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3875
3876 2014-08-07 Yao Qi <yao@codesourcery.com>
3877
3878 PR remote/17230
3879 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3880 TARGET_XFER_OK instead of 0.
3881
3882 2014-08-07 Gary Benson <gbenson@redhat.com>
3883
3884 * common/common-defs.h: Include errno.h.
3885 * defs.h: Do not include errno.h.
3886 * ada-typeprint.c: Likewise.
3887 * c-typeprint.c: Likewise.
3888 * core-regset.c: Likewise.
3889 * corefile.c: Likewise.
3890 * corelow.c: Likewise.
3891 * event-loop.c: Likewise.
3892 * f-typeprint.c: Likewise.
3893 * gnu-nat.c: Likewise.
3894 * go32-nat.c: Likewise.
3895 * i386gnu-nat.c: Likewise.
3896 * m2-typeprint.c: Likewise.
3897 * nat/linux-btrace.c: Likewise.
3898 * p-typeprint.c: Likewise.
3899 * procfs.c: Likewise.
3900 * remote-sim.c: Likewise.
3901 * rs6000-nat.c: Likewise.
3902 * target.c: Likewise.
3903 * typeprint.c: Likewise.
3904 * ui-file.c: Likewise.
3905 * valops.c: Likewise.
3906 * valprint.c: Likewise.
3907
3908 2014-08-07 Gary Benson <gbenson@redhat.com>
3909
3910 * common/common-defs.h: Include string.h.
3911 * aarch64-tdep.c: Do not include string.h.
3912 * ada-exp.y: Likewise.
3913 * ada-lang.c: Likewise.
3914 * ada-lex.l: Likewise.
3915 * ada-typeprint.c: Likewise.
3916 * ada-valprint.c: Likewise.
3917 * aix-thread.c: Likewise.
3918 * alpha-linux-tdep.c: Likewise.
3919 * alpha-mdebug-tdep.c: Likewise.
3920 * alpha-nat.c: Likewise.
3921 * alpha-osf1-tdep.c: Likewise.
3922 * alpha-tdep.c: Likewise.
3923 * alphanbsd-tdep.c: Likewise.
3924 * amd64-dicos-tdep.c: Likewise.
3925 * amd64-linux-tdep.c: Likewise.
3926 * amd64-nat.c: Likewise.
3927 * amd64-sol2-tdep.c: Likewise.
3928 * amd64fbsd-tdep.c: Likewise.
3929 * amd64obsd-tdep.c: Likewise.
3930 * arch-utils.c: Likewise.
3931 * arm-linux-nat.c: Likewise.
3932 * arm-linux-tdep.c: Likewise.
3933 * arm-tdep.c: Likewise.
3934 * arm-wince-tdep.c: Likewise.
3935 * armbsd-tdep.c: Likewise.
3936 * armnbsd-nat.c: Likewise.
3937 * armnbsd-tdep.c: Likewise.
3938 * armobsd-tdep.c: Likewise.
3939 * avr-tdep.c: Likewise.
3940 * ax-gdb.c: Likewise.
3941 * ax-general.c: Likewise.
3942 * bcache.c: Likewise.
3943 * bfin-tdep.c: Likewise.
3944 * breakpoint.c: Likewise.
3945 * build-id.c: Likewise.
3946 * buildsym.c: Likewise.
3947 * c-exp.y: Likewise.
3948 * c-lang.c: Likewise.
3949 * c-typeprint.c: Likewise.
3950 * c-valprint.c: Likewise.
3951 * charset.c: Likewise.
3952 * cli-out.c: Likewise.
3953 * cli/cli-cmds.c: Likewise.
3954 * cli/cli-decode.c: Likewise.
3955 * cli/cli-dump.c: Likewise.
3956 * cli/cli-interp.c: Likewise.
3957 * cli/cli-logging.c: Likewise.
3958 * cli/cli-script.c: Likewise.
3959 * cli/cli-setshow.c: Likewise.
3960 * cli/cli-utils.c: Likewise.
3961 * coffread.c: Likewise.
3962 * common/agent.c: Likewise.
3963 * common/buffer.c: Likewise.
3964 * common/buffer.h: Likewise.
3965 * common/common-utils.c: Likewise.
3966 * common/filestuff.c: Likewise.
3967 * common/filestuff.c: Likewise.
3968 * common/format.c: Likewise.
3969 * common/print-utils.c: Likewise.
3970 * common/rsp-low.c: Likewise.
3971 * common/signals.c: Likewise.
3972 * common/vec.h: Likewise.
3973 * common/xml-utils.c: Likewise.
3974 * core-regset.c: Likewise.
3975 * corefile.c: Likewise.
3976 * corelow.c: Likewise.
3977 * cp-abi.c: Likewise.
3978 * cp-name-parser.y: Likewise.
3979 * cp-support.c: Likewise.
3980 * cp-valprint.c: Likewise.
3981 * cris-tdep.c: Likewise.
3982 * d-exp.y: Likewise.
3983 * darwin-nat.c: Likewise.
3984 * dbxread.c: Likewise.
3985 * dcache.c: Likewise.
3986 * demangle.c: Likewise.
3987 * dicos-tdep.c: Likewise.
3988 * disasm.c: Likewise.
3989 * doublest.c: Likewise.
3990 * dsrec.c: Likewise.
3991 * dummy-frame.c: Likewise.
3992 * dwarf2-frame.c: Likewise.
3993 * dwarf2loc.c: Likewise.
3994 * dwarf2read.c: Likewise.
3995 * elfread.c: Likewise.
3996 * environ.c: Likewise.
3997 * eval.c: Likewise.
3998 * event-loop.c: Likewise.
3999 * exceptions.c: Likewise.
4000 * exec.c: Likewise.
4001 * expprint.c: Likewise.
4002 * f-exp.y: Likewise.
4003 * f-lang.c: Likewise.
4004 * f-typeprint.c: Likewise.
4005 * f-valprint.c: Likewise.
4006 * fbsd-nat.c: Likewise.
4007 * findcmd.c: Likewise.
4008 * findvar.c: Likewise.
4009 * fork-child.c: Likewise.
4010 * frame.c: Likewise.
4011 * frv-linux-tdep.c: Likewise.
4012 * frv-tdep.c: Likewise.
4013 * gdb.c: Likewise.
4014 * gdb_bfd.c: Likewise.
4015 * gdbarch.c: Likewise.
4016 * gdbarch.sh: Likewise.
4017 * gdbtypes.c: Likewise.
4018 * gnu-nat.c: Likewise.
4019 * gnu-v2-abi.c: Likewise.
4020 * gnu-v3-abi.c: Likewise.
4021 * go-exp.y: Likewise.
4022 * go-lang.c: Likewise.
4023 * go32-nat.c: Likewise.
4024 * guile/guile.c: Likewise.
4025 * guile/scm-auto-load.c: Likewise.
4026 * hppa-hpux-tdep.c: Likewise.
4027 * hppa-linux-nat.c: Likewise.
4028 * hppanbsd-tdep.c: Likewise.
4029 * hppaobsd-tdep.c: Likewise.
4030 * i386-cygwin-tdep.c: Likewise.
4031 * i386-dicos-tdep.c: Likewise.
4032 * i386-linux-tdep.c: Likewise.
4033 * i386-nto-tdep.c: Likewise.
4034 * i386-sol2-tdep.c: Likewise.
4035 * i386-tdep.c: Likewise.
4036 * i386bsd-tdep.c: Likewise.
4037 * i386gnu-nat.c: Likewise.
4038 * i386nbsd-tdep.c: Likewise.
4039 * i386obsd-tdep.c: Likewise.
4040 * i387-tdep.c: Likewise.
4041 * ia64-libunwind-tdep.c: Likewise.
4042 * ia64-linux-nat.c: Likewise.
4043 * inf-child.c: Likewise.
4044 * inf-ptrace.c: Likewise.
4045 * inf-ttrace.c: Likewise.
4046 * infcall.c: Likewise.
4047 * infcmd.c: Likewise.
4048 * inflow.c: Likewise.
4049 * infrun.c: Likewise.
4050 * interps.c: Likewise.
4051 * iq2000-tdep.c: Likewise.
4052 * irix5-nat.c: Likewise.
4053 * jv-exp.y: Likewise.
4054 * jv-lang.c: Likewise.
4055 * jv-typeprint.c: Likewise.
4056 * jv-valprint.c: Likewise.
4057 * language.c: Likewise.
4058 * linux-fork.c: Likewise.
4059 * linux-nat.c: Likewise.
4060 * lm32-tdep.c: Likewise.
4061 * m2-exp.y: Likewise.
4062 * m2-typeprint.c: Likewise.
4063 * m32c-tdep.c: Likewise.
4064 * m32r-linux-nat.c: Likewise.
4065 * m32r-linux-tdep.c: Likewise.
4066 * m32r-rom.c: Likewise.
4067 * m32r-tdep.c: Likewise.
4068 * m68hc11-tdep.c: Likewise.
4069 * m68k-tdep.c: Likewise.
4070 * m68kbsd-tdep.c: Likewise.
4071 * m68klinux-nat.c: Likewise.
4072 * m68klinux-tdep.c: Likewise.
4073 * m88k-tdep.c: Likewise.
4074 * machoread.c: Likewise.
4075 * macrocmd.c: Likewise.
4076 * main.c: Likewise.
4077 * mdebugread.c: Likewise.
4078 * mem-break.c: Likewise.
4079 * memattr.c: Likewise.
4080 * memory-map.c: Likewise.
4081 * mep-tdep.c: Likewise.
4082 * mi/mi-cmd-break.c: Likewise.
4083 * mi/mi-cmd-disas.c: Likewise.
4084 * mi/mi-cmd-env.c: Likewise.
4085 * mi/mi-cmd-stack.c: Likewise.
4086 * mi/mi-cmd-var.c: Likewise.
4087 * mi/mi-cmds.c: Likewise.
4088 * mi/mi-console.c: Likewise.
4089 * mi/mi-getopt.c: Likewise.
4090 * mi/mi-interp.c: Likewise.
4091 * mi/mi-main.c: Likewise.
4092 * mi/mi-parse.c: Likewise.
4093 * microblaze-rom.c: Likewise.
4094 * microblaze-tdep.c: Likewise.
4095 * mingw-hdep.c: Likewise.
4096 * minidebug.c: Likewise.
4097 * minsyms.c: Likewise.
4098 * mips-irix-tdep.c: Likewise.
4099 * mips-linux-tdep.c: Likewise.
4100 * mips-tdep.c: Likewise.
4101 * mips64obsd-tdep.c: Likewise.
4102 * mipsnbsd-tdep.c: Likewise.
4103 * mipsread.c: Likewise.
4104 * mn10300-linux-tdep.c: Likewise.
4105 * mn10300-tdep.c: Likewise.
4106 * monitor.c: Likewise.
4107 * moxie-tdep.c: Likewise.
4108 * mt-tdep.c: Likewise.
4109 * nat/linux-btrace.c: Likewise.
4110 * nat/linux-osdata.c: Likewise.
4111 * nat/linux-procfs.c: Likewise.
4112 * nat/linux-ptrace.c: Likewise.
4113 * nat/linux-waitpid.c: Likewise.
4114 * nbsd-tdep.c: Likewise.
4115 * nios2-linux-tdep.c: Likewise.
4116 * nto-procfs.c: Likewise.
4117 * nto-tdep.c: Likewise.
4118 * objc-lang.c: Likewise.
4119 * objfiles.c: Likewise.
4120 * opencl-lang.c: Likewise.
4121 * osabi.c: Likewise.
4122 * osdata.c: Likewise.
4123 * p-exp.y: Likewise.
4124 * p-lang.c: Likewise.
4125 * p-typeprint.c: Likewise.
4126 * parse.c: Likewise.
4127 * posix-hdep.c: Likewise.
4128 * ppc-linux-nat.c: Likewise.
4129 * ppc-sysv-tdep.c: Likewise.
4130 * ppcfbsd-tdep.c: Likewise.
4131 * ppcnbsd-tdep.c: Likewise.
4132 * ppcobsd-tdep.c: Likewise.
4133 * printcmd.c: Likewise.
4134 * procfs.c: Likewise.
4135 * prologue-value.c: Likewise.
4136 * python/py-auto-load.c: Likewise.
4137 * python/py-gdb-readline.c: Likewise.
4138 * ravenscar-thread.c: Likewise.
4139 * regcache.c: Likewise.
4140 * registry.c: Likewise.
4141 * remote-fileio.c: Likewise.
4142 * remote-m32r-sdi.c: Likewise.
4143 * remote-mips.c: Likewise.
4144 * remote-notif.c: Likewise.
4145 * remote-sim.c: Likewise.
4146 * remote.c: Likewise.
4147 * reverse.c: Likewise.
4148 * rs6000-aix-tdep.c: Likewise.
4149 * ser-base.c: Likewise.
4150 * ser-go32.c: Likewise.
4151 * ser-mingw.c: Likewise.
4152 * ser-pipe.c: Likewise.
4153 * ser-tcp.c: Likewise.
4154 * ser-unix.c: Likewise.
4155 * serial.c: Likewise.
4156 * sh-tdep.c: Likewise.
4157 * sh64-tdep.c: Likewise.
4158 * shnbsd-tdep.c: Likewise.
4159 * skip.c: Likewise.
4160 * sol-thread.c: Likewise.
4161 * solib-dsbt.c: Likewise.
4162 * solib-frv.c: Likewise.
4163 * solib-osf.c: Likewise.
4164 * solib-som.c: Likewise.
4165 * solib-spu.c: Likewise.
4166 * solib-target.c: Likewise.
4167 * solib.c: Likewise.
4168 * somread.c: Likewise.
4169 * source.c: Likewise.
4170 * sparc-nat.c: Likewise.
4171 * sparc-sol2-tdep.c: Likewise.
4172 * sparc-tdep.c: Likewise.
4173 * sparc64-tdep.c: Likewise.
4174 * sparc64fbsd-tdep.c: Likewise.
4175 * sparc64nbsd-tdep.c: Likewise.
4176 * sparcnbsd-tdep.c: Likewise.
4177 * spu-linux-nat.c: Likewise.
4178 * spu-multiarch.c: Likewise.
4179 * spu-tdep.c: Likewise.
4180 * stabsread.c: Likewise.
4181 * stack.c: Likewise.
4182 * std-regs.c: Likewise.
4183 * symfile.c: Likewise.
4184 * symmisc.c: Likewise.
4185 * symtab.c: Likewise.
4186 * target.c: Likewise.
4187 * thread.c: Likewise.
4188 * tilegx-linux-nat.c: Likewise.
4189 * tilegx-tdep.c: Likewise.
4190 * top.c: Likewise.
4191 * tracepoint.c: Likewise.
4192 * tui/tui-command.c: Likewise.
4193 * tui/tui-data.c: Likewise.
4194 * tui/tui-disasm.c: Likewise.
4195 * tui/tui-file.c: Likewise.
4196 * tui/tui-layout.c: Likewise.
4197 * tui/tui-out.c: Likewise.
4198 * tui/tui-regs.c: Likewise.
4199 * tui/tui-source.c: Likewise.
4200 * tui/tui-stack.c: Likewise.
4201 * tui/tui-win.c: Likewise.
4202 * tui/tui-windata.c: Likewise.
4203 * tui/tui-winsource.c: Likewise.
4204 * typeprint.c: Likewise.
4205 * ui-file.c: Likewise.
4206 * ui-out.c: Likewise.
4207 * user-regs.c: Likewise.
4208 * utils.c: Likewise.
4209 * v850-tdep.c: Likewise.
4210 * valarith.c: Likewise.
4211 * valops.c: Likewise.
4212 * valprint.c: Likewise.
4213 * value.c: Likewise.
4214 * varobj.c: Likewise.
4215 * vax-tdep.c: Likewise.
4216 * vaxnbsd-tdep.c: Likewise.
4217 * vaxobsd-tdep.c: Likewise.
4218 * windows-nat.c: Likewise.
4219 * xcoffread.c: Likewise.
4220 * xml-support.c: Likewise.
4221 * xstormy16-tdep.c: Likewise.
4222 * xtensa-linux-nat.c: Likewise.
4223
4224 2014-08-07 Gary Benson <gbenson@redhat.com>
4225
4226 * common/common-defs.h: Include gdb_assert.h.
4227 * aarch64-tdep.c: Do not include gdb_assert.h.
4228 * addrmap.c: Likewise.
4229 * aix-thread.c: Likewise.
4230 * alpha-linux-tdep.c: Likewise.
4231 * alpha-mdebug-tdep.c: Likewise.
4232 * alphanbsd-tdep.c: Likewise.
4233 * amd64-nat.c: Likewise.
4234 * amd64-tdep.c: Likewise.
4235 * amd64bsd-nat.c: Likewise.
4236 * amd64fbsd-nat.c: Likewise.
4237 * amd64fbsd-tdep.c: Likewise.
4238 * amd64nbsd-nat.c: Likewise.
4239 * amd64nbsd-tdep.c: Likewise.
4240 * amd64obsd-nat.c: Likewise.
4241 * amd64obsd-tdep.c: Likewise.
4242 * arch-utils.c: Likewise.
4243 * arm-tdep.c: Likewise.
4244 * armbsd-tdep.c: Likewise.
4245 * auxv.c: Likewise.
4246 * bcache.c: Likewise.
4247 * bfin-tdep.c: Likewise.
4248 * blockframe.c: Likewise.
4249 * breakpoint.c: Likewise.
4250 * bsd-kvm.c: Likewise.
4251 * bsd-uthread.c: Likewise.
4252 * buildsym.c: Likewise.
4253 * c-exp.y: Likewise.
4254 * c-lang.c: Likewise.
4255 * charset.c: Likewise.
4256 * cleanups.c: Likewise.
4257 * cli-out.c: Likewise.
4258 * cli/cli-decode.c: Likewise.
4259 * cli/cli-dump.c: Likewise.
4260 * cli/cli-logging.c: Likewise.
4261 * cli/cli-script.c: Likewise.
4262 * cli/cli-utils.c: Likewise.
4263 * coffread.c: Likewise.
4264 * common/common-utils.c: Likewise.
4265 * common/queue.h: Likewise.
4266 * common/signals.c: Likewise.
4267 * common/vec.h: Likewise.
4268 * complaints.c: Likewise.
4269 * completer.c: Likewise.
4270 * corelow.c: Likewise.
4271 * cp-abi.c: Likewise.
4272 * cp-name-parser.y: Likewise.
4273 * cp-namespace.c: Likewise.
4274 * cp-support.c: Likewise.
4275 * cris-tdep.c: Likewise.
4276 * dbxread.c: Likewise.
4277 * dictionary.c: Likewise.
4278 * doublest.c: Likewise.
4279 * dsrec.c: Likewise.
4280 * dummy-frame.c: Likewise.
4281 * dwarf2-frame-tailcall.c: Likewise.
4282 * dwarf2-frame.c: Likewise.
4283 * dwarf2expr.c: Likewise.
4284 * dwarf2loc.c: Likewise.
4285 * dwarf2read.c: Likewise.
4286 * eval.c: Likewise.
4287 * event-loop.c: Likewise.
4288 * exceptions.c: Likewise.
4289 * expprint.c: Likewise.
4290 * f-valprint.c: Likewise.
4291 * fbsd-nat.c: Likewise.
4292 * findvar.c: Likewise.
4293 * frame-unwind.c: Likewise.
4294 * frame.c: Likewise.
4295 * frv-tdep.c: Likewise.
4296 * gcore.c: Likewise.
4297 * gdb-dlfcn.c: Likewise.
4298 * gdb_bfd.c: Likewise.
4299 * gdbarch.c: Likewise.
4300 * gdbarch.sh: Likewise.
4301 * gdbtypes.c: Likewise.
4302 * gnu-nat.c: Likewise.
4303 * gnu-v3-abi.c: Likewise.
4304 * go-lang.c: Likewise.
4305 * guile/scm-exception.c: Likewise.
4306 * guile/scm-gsmob.c: Likewise.
4307 * guile/scm-lazy-string.c: Likewise.
4308 * guile/scm-math.c: Likewise.
4309 * guile/scm-pretty-print.c: Likewise.
4310 * guile/scm-safe-call.c: Likewise.
4311 * guile/scm-utils.c: Likewise.
4312 * guile/scm-value.c: Likewise.
4313 * h8300-tdep.c: Likewise.
4314 * hppa-hpux-nat.c: Likewise.
4315 * hppa-tdep.c: Likewise.
4316 * hppanbsd-tdep.c: Likewise.
4317 * hppaobsd-tdep.c: Likewise.
4318 * i386-darwin-nat.c: Likewise.
4319 * i386-darwin-tdep.c: Likewise.
4320 * i386-nto-tdep.c: Likewise.
4321 * i386-tdep.c: Likewise.
4322 * i386bsd-nat.c: Likewise.
4323 * i386fbsd-tdep.c: Likewise.
4324 * i386gnu-nat.c: Likewise.
4325 * i386nbsd-tdep.c: Likewise.
4326 * i386obsd-tdep.c: Likewise.
4327 * i387-tdep.c: Likewise.
4328 * ia64-libunwind-tdep.c: Likewise.
4329 * ia64-tdep.c: Likewise.
4330 * inf-ptrace.c: Likewise.
4331 * inf-ttrace.c: Likewise.
4332 * infcall.c: Likewise.
4333 * infcmd.c: Likewise.
4334 * infrun.c: Likewise.
4335 * inline-frame.c: Likewise.
4336 * interps.c: Likewise.
4337 * jv-lang.c: Likewise.
4338 * jv-typeprint.c: Likewise.
4339 * linux-fork.c: Likewise.
4340 * linux-nat.c: Likewise.
4341 * linux-thread-db.c: Likewise.
4342 * m32c-tdep.c: Likewise.
4343 * m32r-linux-nat.c: Likewise.
4344 * m32r-tdep.c: Likewise.
4345 * m68k-tdep.c: Likewise.
4346 * m68kbsd-nat.c: Likewise.
4347 * m68kbsd-tdep.c: Likewise.
4348 * m88k-tdep.c: Likewise.
4349 * machoread.c: Likewise.
4350 * macroexp.c: Likewise.
4351 * macrotab.c: Likewise.
4352 * maint.c: Likewise.
4353 * mdebugread.c: Likewise.
4354 * memory-map.c: Likewise.
4355 * mep-tdep.c: Likewise.
4356 * mi/mi-common.c: Likewise.
4357 * microblaze-tdep.c: Likewise.
4358 * mingw-hdep.c: Likewise.
4359 * mips-linux-nat.c: Likewise.
4360 * mips-linux-tdep.c: Likewise.
4361 * mips-tdep.c: Likewise.
4362 * mips64obsd-tdep.c: Likewise.
4363 * mipsnbsd-tdep.c: Likewise.
4364 * mn10300-linux-tdep.c: Likewise.
4365 * mn10300-tdep.c: Likewise.
4366 * moxie-tdep.c: Likewise.
4367 * mt-tdep.c: Likewise.
4368 * nat/linux-btrace.c: Likewise.
4369 * nat/linux-osdata.c: Likewise.
4370 * nat/linux-ptrace.c: Likewise.
4371 * nat/mips-linux-watch.c: Likewise.
4372 * nios2-linux-tdep.c: Likewise.
4373 * nios2-tdep.c: Likewise.
4374 * objc-lang.c: Likewise.
4375 * objfiles.c: Likewise.
4376 * obsd-nat.c: Likewise.
4377 * opencl-lang.c: Likewise.
4378 * osabi.c: Likewise.
4379 * parse.c: Likewise.
4380 * ppc-linux-nat.c: Likewise.
4381 * ppc-sysv-tdep.c: Likewise.
4382 * ppcfbsd-nat.c: Likewise.
4383 * ppcfbsd-tdep.c: Likewise.
4384 * ppcnbsd-nat.c: Likewise.
4385 * ppcnbsd-tdep.c: Likewise.
4386 * ppcobsd-nat.c: Likewise.
4387 * ppcobsd-tdep.c: Likewise.
4388 * printcmd.c: Likewise.
4389 * procfs.c: Likewise.
4390 * prologue-value.c: Likewise.
4391 * psymtab.c: Likewise.
4392 * python/py-lazy-string.c: Likewise.
4393 * python/py-value.c: Likewise.
4394 * regcache.c: Likewise.
4395 * reggroups.c: Likewise.
4396 * registry.c: Likewise.
4397 * remote-sim.c: Likewise.
4398 * remote.c: Likewise.
4399 * rs6000-aix-tdep.c: Likewise.
4400 * rs6000-tdep.c: Likewise.
4401 * s390-linux-tdep.c: Likewise.
4402 * score-tdep.c: Likewise.
4403 * ser-base.c: Likewise.
4404 * ser-mingw.c: Likewise.
4405 * sh-tdep.c: Likewise.
4406 * sh64-tdep.c: Likewise.
4407 * solib-darwin.c: Likewise.
4408 * solib-spu.c: Likewise.
4409 * solib-svr4.c: Likewise.
4410 * source.c: Likewise.
4411 * sparc-nat.c: Likewise.
4412 * sparc-sol2-tdep.c: Likewise.
4413 * sparc-tdep.c: Likewise.
4414 * sparc64-sol2-tdep.c: Likewise.
4415 * sparc64-tdep.c: Likewise.
4416 * sparc64fbsd-tdep.c: Likewise.
4417 * sparc64nbsd-tdep.c: Likewise.
4418 * sparc64obsd-tdep.c: Likewise.
4419 * sparcnbsd-tdep.c: Likewise.
4420 * sparcobsd-tdep.c: Likewise.
4421 * spu-multiarch.c: Likewise.
4422 * spu-tdep.c: Likewise.
4423 * stabsread.c: Likewise.
4424 * stack.c: Likewise.
4425 * symfile.c: Likewise.
4426 * symtab.c: Likewise.
4427 * target-descriptions.c: Likewise.
4428 * target-memory.c: Likewise.
4429 * target.c: Likewise.
4430 * tic6x-linux-tdep.c: Likewise.
4431 * tic6x-tdep.c: Likewise.
4432 * tilegx-linux-nat.c: Likewise.
4433 * tilegx-tdep.c: Likewise.
4434 * top.c: Likewise.
4435 * tramp-frame.c: Likewise.
4436 * tui/tui-out.c: Likewise.
4437 * tui/tui-winsource.c: Likewise.
4438 * ui-out.c: Likewise.
4439 * user-regs.c: Likewise.
4440 * utils.c: Likewise.
4441 * v850-tdep.c: Likewise.
4442 * valops.c: Likewise.
4443 * value.c: Likewise.
4444 * varobj.c: Likewise.
4445 * vax-nat.c: Likewise.
4446 * xml-syscall.c: Likewise.
4447 * xml-tdesc.c: Likewise.
4448 * xstormy16-tdep.c: Likewise.
4449 * xtensa-linux-nat.c: Likewise.
4450 * xtensa-tdep.c: Likewise.
4451
4452 2014-08-07 Gary Benson <gbenson@redhat.com>
4453
4454 * common/common-defs.h: Include common-utils.h.
4455 * defs.h: Do not include common-utils.h.
4456 * common/gdb_assert.h: Likewise.
4457 * darwin-nat.h: Likewise.
4458 * nat/linux-btrace.c: Likewise.
4459 * target/waitstatus.h: Likewise.
4460
4461 2014-08-07 Gary Benson <gbenson@redhat.com>
4462
4463 * common/common-defs.h: Include ptid.h.
4464 * defs.h: Do not include ptid.h.
4465 * inferior.h: Likewise.
4466 * infrun.h: Likewise.
4467 * nat/linux-btrace.h: Likewise.
4468 * nat/linux-osdata.h: Likewise.
4469 * target/waitstatus.h: Likewise.
4470
4471 2014-08-07 Gary Benson <gbenson@redhat.com>
4472
4473 * common/common-defs.h: Include gdb_locale.h.
4474 * defs.h: Do not include gdb_locale.h.
4475
4476 2014-08-07 Gary Benson <gbenson@redhat.com>
4477
4478 * common/common-defs.h: Include gdb/signals.h.
4479 * defs.h: Do not include gdb/signals.h.
4480
4481 2014-08-07 Gary Benson <gbenson@redhat.com>
4482
4483 * common/common-defs.h: Include pathmax.h.
4484 * defs.h: Do not include pathmax.h.
4485
4486 2014-08-07 Gary Benson <gbenson@redhat.com>
4487
4488 * common/common-defs.h: Include libiberty.h.
4489 * defs.h: Do not include libiberty.h.
4490 * common/queue.h: Likewise.
4491 * cp-name-parser.y: Likewise.
4492 * mi/mi-cmd-catch.c: Likewise.
4493 * python/python.c: Likewise.
4494
4495 2014-08-07 Gary Benson <gbenson@redhat.com>
4496
4497 * common/common-defs.h: Include ansidecl.h.
4498 * defs.h: Do not include ansidecl.h.
4499 * common/buffer.h: Likewise.
4500 * common/common-utils.h: Likewise.
4501
4502 2014-08-07 Gary Benson <gbenson@redhat.com>
4503
4504 * common/common-defs.h: Include stddef.h.
4505 * defs.h: Do not include stddef.h.
4506 * common/common-utils.h: Likewise.
4507 * amd64fbsd-nat.c: Likewise.
4508 * bcache.c: Likewise.
4509 * charset.c: Likewise.
4510 * common/buffer.h: Likewise.
4511 * common/vec.h: Likewise.
4512 * i386bsd-nat.c: Likewise.
4513 * nat/linux-btrace.h: Likewise.
4514 * ppcfbsd-nat.c: Likewise.
4515 * ppcnbsd-tdep.h: Likewise.
4516 * ppcobsd-nat.c: Likewise.
4517 * ppcobsd-tdep.h: Likewise.
4518 * python/py-gdb-readline.c: Likewise.
4519
4520 2014-08-07 Gary Benson <gbenson@redhat.com>
4521
4522 * common/common-defs.h: Include stdarg.h.
4523 * defs.h: Do not include stdarg.h.
4524 * ada-lang.c: Likewise.
4525 * common/common-utils.h: Likewise.
4526 * guile/scm-string.c: Likewise.
4527 * guile/scm-utils.c: Likewise.
4528 * m32c-tdep.c: Likewise.
4529
4530 2014-08-07 Gary Benson <gbenson@redhat.com>
4531
4532 * common/common-defs.h: Include stdlib.h.
4533 * defs.h: Do not include stdlib.h.
4534 * addrmap.c: Likewise.
4535 * bcache.c: Likewise.
4536 * common/buffer.c: Likewise.
4537 * common/common-utils.c: Likewise.
4538 * cp-name-parser.y: Likewise.
4539 * go32-nat.c: Likewise.
4540 * mn10300-linux-tdep.c: Likewise.
4541 * nat/linux-osdata.c: Likewise.
4542 * tui/tui.c: Likewise.
4543 * windows-nat.c: Likewise.
4544
4545 2014-08-07 Gary Benson <gbenson@redhat.com>
4546
4547 * common/common-defs.h: Include stdio.h.
4548 * defs.h: Do not include stdio.h.
4549 * ada-lang.c: Likewise.
4550 * common/buffer.c: Likewise.
4551 * common/common-utils.c: Likewise.
4552 * cp-name-parser.y: Likewise.
4553 * gnu-nat.c: Likewise.
4554 * go32-nat.c: Likewise.
4555 * i386gnu-nat.c: Likewise.
4556 * proc-api.c: Likewise.
4557 * proc-events.c: Likewise.
4558 * proc-flags.c: Likewise.
4559 * proc-why.c: Likewise.
4560 * python/python-internal.h: Likewise.
4561 * target-memory.c: Likewise.
4562 * tui/tui-io.c: Likewise.
4563 * tui/tui.c: Likewise.
4564
4565 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4566
4567 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4568 (scan_dyntag_auxv): Same.
4569
4570 2014-08-06 Yao Qi <yao@codesourcery.com>
4571
4572 * amd64-linux-nat.c: Remove duplicated include
4573 "x86-linux-nat.h".
4574 * i386-linux-nat.c: Likewise.
4575
4576 2014-08-06 Yao Qi <yao@codesourcery.com>
4577
4578 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4579 operand" with "Special opcode" in comments.
4580
4581 2014-08-05 Gary Benson <gbenson@redhat.com>
4582
4583 * interps.c (initialize_interps): Remove prototype.
4584 (interpreter_initialized): Remove static global.
4585 (interp_add): Do not call initialize_interps.
4586 (initialize_interps): Remove function.
4587
4588 2014-08-05 Gary Benson <gbenson@redhat.com>
4589
4590 * utils.c (vwarning): Remove spurious va_end.
4591
4592 2014-08-05 Alan Modra <amodra@gmail.com>
4593
4594 * charset.c (convert_between_encodings): Cast result of obstack_base.
4595 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4596 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4597 (read_unwind_info): Use size_t for some locals.
4598 * jit.c (finalize_symtab): Likewise.
4599 * utils.c (hashtab_obstack_allocate): Likewise.
4600 * symmisc.c (print_objfile_statistics): Update format strings.
4601
4602 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4603
4604 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4605 (Changes in GDB 7.8): ... here.
4606
4607 2014-08-04 Tom Tromey <tromey@redhat.com>
4608
4609 * target.c (set_targetdebug): New function.
4610 (initialize_targets): Pass set_targetdebug when creating "set
4611 debug target".
4612
4613 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4614
4615 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4616 if detecting a variable-sized field that is not the last field.
4617 Fix struct type length computation.
4618
4619 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4620
4621 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4622 Add debug trace.
4623
4624 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4625
4626 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4627 Remove "+ 8" offset in computation of CHAIN_VMA.
4628
4629 2014-07-31 Doug Evans <dje@google.com>
4630
4631 * inflow.c (child_terminal_inferior): Add comment.
4632 (child_terminal_ours_for_output): Add comment.
4633 (child_terminal_ours): Add comment.
4634 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4635 (linux_nat_terminal_ours): Add comment.
4636
4637 2014-07-31 Gary Benson <gbenson@redhat.com>
4638
4639 * common/btrace-common.h: Do not include defs.h or server.h.
4640 * nat/mips-linux-watch.h: Likewise.
4641 * gdb-dlfcn.h: Do not include defs.h.
4642 * tracefile.h: Likewise.
4643
4644 2014-07-30 Roland McGrath <mcgrathr@google.com>
4645
4646 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4647
4648 2014-07-30 Tom Tromey <tromey@redhat.com>
4649
4650 * bsd-kvm.c (bsd_kvm_open): Constify.
4651 * corelow.c (core_open): Constify.
4652 * ctf.c (ctf_open): Constify.
4653 * dbug-rom.c (dbug_open): Constify.
4654 * exec.c (exec_open): Constify.
4655 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4656 * microblaze-rom.c (picobug_open): Constify.
4657 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4658 Constify.
4659 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4660 * record-btrace.c (record_btrace_open): Constify.
4661 * record-full.c (record_full_core_open_1, record_full_open_1)
4662 (record_full_open): Constify.
4663 * remote-m32r-sdi.c (m32r_open): Constify.
4664 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4665 (rockhopper_open, lsi_open): Constify.
4666 * remote-sim.c (gdbsim_open): Constify.
4667 * remote.c (remote_open, extended_remote_open, remote_open_1):
4668 Constify.
4669 * target.h (struct target_ops) <to_open>: Make "arg" const.
4670 * tracefile-tfile.c (tfile_open): Constify.
4671
4672 2014-07-30 Tom Tromey <tromey@redhat.com>
4673
4674 * breakpoint.c (map_breakpoint_numbers): Update.
4675 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4676 (get_number_const): New function.
4677 (get_number): Rewrite using get_number_const.
4678 (init_number_or_range): Make "string" const.
4679 (number_is_in_list): Make "list" const.
4680 * cli/cli-utils.h (get_number_const): Declare.
4681 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4682 (init_number_or_range, number_is_in_list): Update.
4683 * printcmd.c (map_display_numbers): Update.
4684 * value.c (value_from_history_ref): Constify.
4685 * value.h (value_from_history_ref): Update.
4686
4687 2014-07-30 Tom Tromey <tromey@redhat.com>
4688
4689 * corefile.c (hook_type, call_extra_exec_file_hooks)
4690 (specify_exec_file_hook): Constify.
4691 * exec.c (exec_file_attach): Make "filename" const.
4692 * gdbcore.h (deprecated_exec_file_display_hook)
4693 (specify_exec_file_hook, exec_file_attach): Constify.
4694 * main.c (captured_main): Use catch_command_errors_const.
4695
4696 2014-07-30 Tom Tromey <tromey@redhat.com>
4697
4698 * target.c (open_target): New function.
4699 (add_target_with_completer, add_deprecated_target_alias): Use
4700 set_cmd_sfunc, set_cmd_context.
4701 (debug_to_open): Remove.
4702 (setup_target_debug): Update.
4703
4704 2014-07-30 Yao Qi <yao@codesourcery.com>
4705
4706 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4707 comments.
4708 * parse.c (exp_iterate): Update comments.
4709
4710 2014-07-30 Gary Benson <gbenson@redhat.com>
4711
4712 * common/common-defs.h: New file.
4713 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4714 * defs.h: Include common-defs.h.
4715 Do not include config.h or build-gnulib/config.h.
4716
4717 2014-07-30 Gary Benson <gbenson@redhat.com>
4718
4719 * common/common-utils.h: Do not include config.h.
4720 * nat/linux-btrace.h: Likewise.
4721
4722 2014-07-30 Gary Benson <gbenson@redhat.com>
4723
4724 * btrace.c: Include defs.h.
4725 * common/ptid.c: Include defs.h or server.h as appropriate.
4726 * nat/mips-linux-watch.c: Likewise.
4727
4728 2014-07-29 Tom Tromey <tromey@redhat.com>
4729
4730 * target.c (target_is_pushed): Simplify.
4731
4732 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4733
4734 GDB 7.8 released.
4735
4736 2014-07-29 Yao Qi <yao@codesourcery.com>
4737
4738 PR gdb/17206
4739 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4740
4741 2014-07-28 Doug Evans <xdje42@gmail.com>
4742
4743 PR guile/17203
4744 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4745 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4746 parameters.
4747
4748 2014-07-28 Will Newton <will.newton@linaro.org>
4749
4750 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4751 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4752 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4753 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4754 (THUMB2_EABI_SYSCALL): Likewise.
4755 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4756 struct tramp_frame.
4757 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4758 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4759
4760 2014-07-27 Doug Evans <xdje42@gmail.com>
4761
4762 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4763
4764 2014-07-27 Doug Evans <xdje42@gmail.com>
4765
4766 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4767
4768 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4769 Doug Evans <xdje42@gmail.com>
4770
4771 PR guile/17146
4772 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4773 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4774 * configure.ac: Try to use guild to compile an scm file, if it fails
4775 then disable guile support.
4776 * configure: Regenerate.
4777 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4778 GUILE_FILE_LIST.
4779 (GUILE_COMPILED_FILES): New variable.
4780 (GUILE_FILES) Update.
4781 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4782 (stamp-guile): Compile scm files.
4783 * guile/guile.c (boot_guile_support): New function.
4784 (standard_throw_args_p): New function.
4785 (print_standard_throw_error, print_throw_error): New functions.
4786 (handle_boot_error): New function.
4787 (initialize_scheme_side): Rewrite to call boot_guile_support.
4788 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4789 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4790
4791 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4792 Doug Evans <xdje42@gmail.com>
4793
4794 PR guile/17146
4795 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4796 * guile/lib/gdb/support.scm: New file.
4797 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4798 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4799 All uses updated.
4800 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4801 All uses updated.
4802 (%assert-type): Ditto, and renamed to assert-type.
4803 (%exception-print-style): Delete.
4804
4805 2014-07-26 Doug Evans <xdje42@gmail.com>
4806
4807 PR build/17105
4808 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4809 * configure: Regenerate.
4810 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4811 PYTHON_FILES.
4812 (PYTHON_FILES): New variable.
4813 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4814 (GUILE_FILES): New variable.
4815 (stamp-python, install-python, uninstall-python): Handle empty
4816 file list.
4817 (stamp-guile, install-guile, uninstall-guile): Ditto.
4818
4819 2014-07-26 Doug Evans <xdje42@gmail.com>
4820
4821 PR guile/17177
4822 * guile/lib/gdb.scm (pretty-printers): Export.
4823 (set-pretty-printers!): Export.
4824 * guile/lib/gdb/printing.scm (gdb module): Update.
4825 (prepend-pretty-printer!, append-pretty-printer!): Update.
4826 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4827 (pretty_printer_list_var): Delete.
4828 (pretty_printer_list): New static global.
4829 (gdbscm_pretty_printers): New function.
4830 (gdbscm_set_pretty_printers_x): New function.
4831 (ppscm_find_pretty_printer_from_gdb): Update.
4832 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4833 (gdbscm_initialize_pretty_printers): Update.
4834
4835 2014-07-26 Doug Evans <xdje42@gmail.com>
4836
4837 PR 17185
4838 * configure.ac: Add check for header gc/gc.h.
4839 Add check for function setenv.
4840 * configure: Regenerate.
4841 * config.in: Regenerate.
4842 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4843
4844 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4845
4846 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4847 variation in gdbarch matching.
4848
4849 2014-07-25 Tom Tromey <tromey@redhat.com>
4850
4851 * exec.c (using_exec_ops): Remove.
4852 (exec_close_1): Update. Remove extraneous block, reindent.
4853 (add_target_sections): Use target_is_pushed.
4854
4855 2014-07-25 Pedro Alves <palves@redhat.com>
4856
4857 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4858 * monitor.c (monitor_create_inferior): Likewise.
4859 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4860 * remote-sim.c (gdbsim_create_inferior): Likewise.
4861 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4862 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4863 * windows-nat.c (do_initial_windows_stuff): Likewise.
4864
4865 2014-07-25 Pedro Alves <palves@redhat.com>
4866
4867 * NEWS: Mention signal passing and "signal" command changes.
4868 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4869 comment.
4870 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4871 call.
4872 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4873 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4874 (jump_command): Adjust clear_proceed_status call.
4875 (signal_command): Warn if other thread that are resumed have
4876 signals that will be delivered. Adjust clear_proceed_status call.
4877 (until_next_command, finish_command)
4878 (proceed_after_attach_callback, attach_command_post_wait)
4879 (attach_command): Adjust clear_proceed_status call.
4880 * infrun.c (proceed_after_vfork_done): Likewise.
4881 (proceed_after_attach_callback): Adjust comment.
4882 (clear_proceed_status_thread): Clear stop_signal if not in pass
4883 state.
4884 (clear_proceed_status_callback): Delete.
4885 (clear_proceed_status): New 'step' parameter. Only clear the
4886 proceed status of threads the command being prepared is about to
4887 resume.
4888 (proceed): If passed in an explicit signal, override stop_signal
4889 with it. Don't pass the last stop signal to the thread we're
4890 resuming.
4891 (init_wait_for_inferior): Adjust clear_proceed_status call.
4892 (switch_back_to_stepped_thread): Clear the signal if it should not
4893 be passed.
4894 * infrun.h (clear_proceed_status): New 'step' parameter.
4895 (user_visible_resume_ptid): Add comment.
4896 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4897 signal is in pass state.
4898 * remote.c (append_pending_thread_resumptions): Likewise.
4899 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4900
4901 2014-07-25 Tom Tromey <tromey@redhat.com>
4902
4903 * target.h (target_stopped_data_address)
4904 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4905 parentheses.
4906
4907 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4908
4909 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4910 comments.
4911 (avr_pointer_to_address): Likewise.
4912
4913 2014-07-24 Tom Tromey <tromey@redhat.com>
4914
4915 * monitor.c (compile_pattern): Update.
4916 * target.h (struct target_ops) <to_shortname, to_longname,
4917 to_doc>: Now const.
4918
4919 2014-07-24 Tom Tromey <tromey@redhat.com>
4920
4921 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4922 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4923 (add_info_alias, add_com): Make "doc" const.
4924 (print_doc_line): Make "str" const.
4925 (delete_cmd): Update.
4926 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4927 (print_doc_line): Update.
4928 * cli/cli-script.c (document_command): Update.
4929 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4930 (add_com, add_info, add_info_alias): Update.
4931 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4932 * python/py-cmd.c (cmdpy_destroyer): Update.
4933
4934 2014-07-24 Tom Tromey <tromey@redhat.com>
4935
4936 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4937 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4938 (help_cmd_list): Constify.
4939 (lookup_cmd): Update.
4940 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4941 const.
4942 (help_cmd_list, apropos_cmd): Update.
4943 * cli/cli-script.c (show_user): Update.
4944 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4945 * cli/cli-setshow.h (cmd_show_list): Update.
4946 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4947 (cmd_show_list): Update.
4948 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4949 * python/py-cmd.c (cmdpy_destroyer): Update.
4950
4951 2014-07-24 Tom Tromey <tromey@redhat.com>
4952
4953 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4954 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4955 const.
4956 * command.h (deprecate_cmd): Update.
4957 * maint.c (maintenance_do_deprecate): Add casts.
4958
4959 2014-07-24 Tom Tromey <tromey@redhat.com>
4960
4961 * cli/cli-decode.c (help_cmd): Make parameter "const".
4962 * cli/cli-decode.h (help_cmd): Update.
4963
4964 2014-07-24 Tom Tromey <tromey@redhat.com>
4965
4966 * stack.c (up_silently_base, down_silently_base): Make argument
4967 const.
4968
4969 2014-07-24 Tom Tromey <tromey@redhat.com>
4970
4971 * solib.c (solib_add): Make "pattern" const.
4972 * solib.h (solib_add): Update.
4973
4974 2014-07-24 Tom Tromey <tromey@redhat.com>
4975
4976 * remote.c (remote_serial_open, print_packet, putpkt)
4977 (putpkt_binary): Constify.
4978 * remote.h (putpkt): Update.
4979
4980 2014-07-24 Tom Tromey <tromey@redhat.com>
4981
4982 * monitor.c (monitor_open): Make "args" const.
4983 * monitor.h (monitor_open): Update.
4984
4985 2014-07-24 Tom Tromey <tromey@redhat.com>
4986
4987 * maint.c (match_bfd_flags): Make "string" const.
4988 (print_bfd_section_info): Remove casts.
4989 (print_objfile_section_info): Make "string" const.
4990
4991 2014-07-24 Tom Tromey <tromey@redhat.com>
4992
4993 * inf-child.c (inf_child_open_target): Make "arg" const.
4994 * inf-child.h (inf_child_open_target): Update.
4995
4996 2014-07-24 Tom Tromey <tromey@redhat.com>
4997
4998 * environ.c (unset_in_environ): Make "var" const.
4999 * environ.h (unset_in_environ): Update.
5000
5001 2014-07-24 Tom Tromey <tromey@redhat.com>
5002
5003 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5004 Make "cmd" const.
5005 (scan_filename_with_cleanup): Likewise.
5006 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5007 Make arguments const.
5008 (restore_command): Update.
5009
5010 2014-07-24 Pedro Alves <palves@redhat.com>
5011
5012 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5013
5014 2014-07-24 Tom Tromey <tromey@redhat.com>
5015 Gary Benson <gbenson@redhat.com>
5016
5017 * nat/linux-ptrace.c (additional_flags): New global.
5018 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5019 additional_flags; don't check GDBSERVER.
5020 (linux_ptrace_set_additional_flags): New function.
5021 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5022 Declare.
5023 * linux-nat.c (_initialize_linux_nat): Call
5024 linux_ptrace_set_additional_flags.
5025
5026 2014-07-24 Tom Tromey <tromey@redhat.com>
5027
5028 * make-target-delegates (munge_type, write_debugmethod): New
5029 functions.
5030 (debug_names): New global.
5031 ($TARGET_DEBUG_PRINTER): New global.
5032 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5033 name.
5034 Write debug methods. Generate init_debug_target.
5035 * target-debug.h: New file.
5036 * target-delegates.c: Rebuild.
5037 * target.c: Include target-debug.h.
5038 (debug_target): Hoist definition.
5039 (target_kill, target_get_section_table, target_memory_map)
5040 (target_flash_erase, target_flash_done, target_detach)
5041 (target_disconnect, target_wait, target_resume)
5042 (target_pass_signals, target_program_signals, target_follow_fork)
5043 (target_mourn_inferior, target_search_memory)
5044 (target_thread_address_space, target_close)
5045 (target_find_new_threads, target_core_of_thread)
5046 (target_verify_memory, target_insert_mask_watchpoint)
5047 (target_remove_mask_watchpoint): Remove targetdebug code.
5048 (debug_to_post_attach, debug_to_prepare_to_store)
5049 (debug_to_files_info, debug_to_insert_breakpoint)
5050 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5051 (debug_to_region_ok_for_hw_watchpoint)
5052 (debug_to_can_accel_watchpoint_condition)
5053 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5054 (debug_to_watchpoint_addr_within_range)
5055 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5056 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5057 (debug_to_terminal_init, debug_to_terminal_inferior)
5058 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5059 (debug_to_terminal_save_ours, debug_to_terminal_info)
5060 (debug_to_load, debug_to_post_startup_inferior)
5061 (debug_to_insert_fork_catchpoint)
5062 (debug_to_remove_fork_catchpoint)
5063 (debug_to_insert_vfork_catchpoint)
5064 (debug_to_remove_vfork_catchpoint)
5065 (debug_to_insert_exec_catchpoint)
5066 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5067 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5068 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5069 (setup_target_debug): Call init_debug_target.
5070 * target.h (TARGET_DEBUG_PRINTER): New macro.
5071 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5072 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5073
5074 2014-07-24 Gary Benson <gbenson@redhat.com>
5075
5076 * exceptions.h (throw_vfatal): Renamed to...
5077 (throw_vquit): New declaration.
5078 (throw_quit): Likewise.
5079 * exceptions.c (throw_vfatal): Renamed to...
5080 (throw_vquit): New function.
5081 (throw_quit): Likewise.
5082 (throw_error): Call throw_verror rather than throw_it.
5083 * utils.h (vfatal): Removed.
5084 (fatal): Likewise.
5085 * utils.c (vfatal): Removed.
5086 (fatal): Likewise.
5087 (internal_verror): Replaced call to fatal with call to throw_quit.
5088 (quit): Replaced calls to fatal with calls to throw_quit.
5089
5090 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5091
5092 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5093 target_read_code.
5094
5095 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5096
5097 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5098 less than zero in conditional expression.
5099
5100 2014-07-23 Tom Tromey <tromey@redhat.com>
5101
5102 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5103 ($INTRO_PART): Don't match whitespace.
5104 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5105 argument matching.
5106 ($METHOD): Add $METHOD_TRAILER.
5107 (trim): Rewrite.
5108 (scan_target_h): New sub.
5109 Change main loop not to collect state.
5110 * target-delegates.c: Rebuild.
5111
5112 2014-07-23 Gary Benson <gbenson@redhat.com>
5113
5114 * cp-support.c (gdb_demangle): Fix build on systems without
5115 sigaltstack.
5116
5117 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5118
5119 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5120 for reference entry value target data value.
5121
5122 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5123
5124 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5125 value_available_contents_eq.
5126
5127 2014-07-22 Pedro Alves <palves@redhat.com>
5128
5129 * value.c (allocate_optimized_out_value): Don't mark value as
5130 non-lazy.
5131
5132 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5133
5134 * MAINTAINERS (Write After Approval): Update my email address.
5135
5136 2014-07-20 Doug Evans <dje@google.com>
5137
5138 PR server/17147
5139 * remote.c (putpkt_binary): Add text to error message.
5140
5141 2014-07-20 Yao Qi <yao@codesourcery.com>
5142
5143 * eval.c: Remove "Chill" from comments.
5144 * gdbtypes.h: Likewise.
5145 * symtab.h: Likewise.
5146
5147 2014-07-20 Yao Qi <yao@codesourcery.com>
5148
5149 * std-operator.def: Update comments to TERNOP_SLICE.
5150
5151 2014-07-20 Yao Qi <yao@codesourcery.com>
5152
5153 * std-operator.def: Remove BINOP_RANGE.
5154 * breakpoint.c (watchpoint_exp_is_const): Update.
5155 * expprint.c (dump_subexp_body_standard): Likewise.
5156 * eval.c (init_array_element): Remove dead code.
5157 (evaluate_subexp_standard): Likewise.
5158
5159 2014-07-20 Yao Qi <yao@codesourcery.com>
5160
5161 * std-operator.def: Remove BINOP_IN.
5162 * breakpoint.c (watchpoint_exp_is_const): Update.
5163 * eval.c (evaluate_subexp_standard): Likewise.
5164 * expprint.c (dump_subexp_body_standard): Likewise.
5165
5166 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5167
5168 * microblaze-tdep.c (microblaze_register_names): Add
5169 the rshr and rslr register names.
5170 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5171 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5172 Use of tdesc_numbered_register. Use of
5173 microblaze_register_g_packet_guesses. Use of
5174 tdesc_use_registers. Use of set_gdbarch_register_type.
5175 (microblaze_register_g_packet_guesses): New.
5176 * microblaze-tdep.h (microblaze_reg_num): Add
5177 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5178 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5179 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5180 * features/microblaze-core.xml: New file.
5181 * features/microblaze-stack-protect.xml: New file.
5182 * features/microblaze-with-stack-protect.c: New file.
5183 * features/microblaze-with-stack-protect.xml: New file.
5184 * features/microblaze.xml: New file.
5185 * features/microblaze.c: New file.
5186 * features/Makefile (microblaze-with-stack-protect): Add
5187 microblaze-with-stack-protect microblaze and microblaze-expedite.
5188 * regformats/microblaze-with-stack-protect.dat: New file.
5189 * regformats/microblaze.dat: New file.
5190 * doc/gdb.texinfo (MicroBlaze Features): Added.
5191
5192 2014-07-18 Tom Tromey <tromey@redhat.com>
5193
5194 * exec.c (exec_ops): Now static.
5195 * exec.h (exec_ops): Don't declare.
5196
5197 2014-07-18 Tom Tromey <tromey@redhat.com>
5198
5199 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5200 to find_target_beneath.
5201 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5202 find_target_beneath.
5203 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5204
5205 2014-07-18 Tom Tromey <tromey@redhat.com>
5206
5207 PR gdb/17130:
5208 * utils.c (quit): Use target_supports_terminal_ours.
5209 * target.h (target_supports_terminal_ours): Declare.
5210 * target.c (target_supports_delete_record): Don't check
5211 to_delete_record against NULL.
5212 (target_supports_terminal_ours): New function.
5213
5214 2014-07-18 Tom Tromey <tromey@redhat.com>
5215
5216 PR gdb/17130:
5217 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5218 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5219 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5220 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5221 * windows-nat.c (windows_xfer_partial): Always delegate.
5222 * record-btrace.c (record_btrace_xfer_partial): Simplify
5223 delegation.
5224 (record_btrace_fetch_registers, record_btrace_store_registers)
5225 (record_btrace_prepare_to_store, record_btrace_resume)
5226 (record_btrace_wait, record_btrace_find_new_threads)
5227 (record_btrace_thread_alive): Likewise.
5228 * procfs.c (procfs_xfer_partial): Always delegate.
5229 * corelow.c (core_xfer_partial): Always delegate.
5230 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5231
5232 2014-07-18 Tom Tromey <tromey@redhat.com>
5233
5234 * exec.c (exec_make_note_section): Move earlier.
5235
5236 2014-07-17 Doug Evans <dje@google.com>
5237
5238 PR gdb/17170
5239 * maint.c (count_symtabs_and_blocks): Handle NULL
5240 current_program_space.
5241 (report_command_stats): Check global enabled flag in addition to
5242 recorded enabled flag.
5243 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5244
5245 2014-07-16 Pedro Alves <palves@redhat.com>
5246
5247 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5248
5249 2014-07-16 Tom Tromey <tromey@redhat.com>
5250
5251 * target.h (struct target_ops) <to_delete_record>: Reformat
5252 comment.
5253
5254 2014-07-16 Tom Tromey <tromey@redhat.com>
5255
5256 * target-delegates.c: Rebuild.
5257
5258 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5259
5260 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5261 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5262 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5263 (avr_pointer_to_address): Likewise.
5264 (avr_address_class_type_flags): New function.
5265 (avr_address_class_type_flags_to_name): Likewise.
5266 (avr_address_class_name_to_type_flags): Likewise.
5267 (avr_gdbarch_init): Set address_class_type_flags,
5268 address_class_type_flags_to_name and
5269 address_class_name_to_type_flags.
5270
5271 2014-07-15 Pedro Alves <palves@redhat.com>
5272
5273 * linux-nat.c (kill_callback): Save errno and work with saved
5274 copy.
5275
5276 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5277
5278 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5279
5280 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5281
5282 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5283 breakpoint support correctly.
5284
5285 2014-07-14 Pedro Alves <palves@redhat.com>
5286
5287 * utils.c (prompt_for_continue): Call target_terminal_ours.
5288
5289 2014-07-14 Pedro Alves <palves@redhat.com>
5290
5291 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5292 catch_errors. Don't re-enable stdin or notify observers where,
5293 and rethrow error.
5294 (fetch_inferior_event_wrapper): Delete.
5295
5296 2014-07-14 Pedro Alves <palves@redhat.com>
5297
5298 PR gdb/17072
5299 * top.c: Include "inf-loop.h".
5300 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5301 field.
5302 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5303 was async before.
5304 (gdb_readline_wrapper): Store whether the target is async, and
5305 make it sync.
5306
5307 2014-07-14 Pedro Alves <palves@redhat.com>
5308
5309 PR gdb/17072
5310 * top.c (gdb_readline_wrapper_line): Tweak comment.
5311 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5312 the input handler callback.
5313
5314 2014-07-14 Pedro Alves <palves@redhat.com>
5315
5316 PR gdb/17072
5317 * main.c: Include event-top.h.
5318 (handle_command_errors): New function.
5319 (catch_command_errors, catch_command_errors_const): Use it.
5320
5321 2014-07-14 Pedro Alves <palves@redhat.com>
5322
5323 * exceptions.c (catch_command_errors, catch_command_errors_const):
5324 Moved to main.c.
5325 * exceptions.h (catch_command_errors_ftype)
5326 (catch_command_errors_const_ftype): Moved to main.c.
5327 (catch_command_errors, catch_command_errors_const): Delete
5328 declarations.
5329 * main.c (catch_command_errors_ftype)
5330 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5331 (catch_command_errors, catch_command_errors_const)): Moved here
5332 from exceptions.c and make static.
5333
5334 2014-07-14 Pedro Alves <palves@redhat.com>
5335
5336 * exceptions.c (print_any_exception): Delete.
5337 (catch_exceptions_with_msg): Use exception_print instead of
5338 print_any_exception.
5339 (catch_errors): Use exception_fprintf instead of
5340 print_any_exception.
5341 (catch_command_errors, catch_command_errors_const): Use
5342 exception_print instead of print_any_exception.
5343
5344 2014-07-14 Pedro Alves <palves@redhat.com>
5345
5346 * infcall.c (run_inferior_call): Set 'sync_execution' while
5347 running the inferior call.
5348
5349 2014-07-14 Pedro Alves <palves@redhat.com>
5350
5351 * value.c (value_contents_equal): Delete function.
5352 * value.h (value_contents_equal): Delete declaration.
5353
5354 2014-07-14 Tom Tromey <tromey@redhat.com>
5355
5356 PR exp/17106:
5357 * gdbtypes.c (is_dynamic_type_internal): New function, from
5358 is_dynamic_type.
5359 (is_dynamic_type): Rewrite.
5360 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5361 (resolve_dynamic_struct): Likewise.
5362 (resolve_dynamic_type_internal): New function, from
5363 resolve_dynamic_type.
5364 (resolve_dynamic_type): Rewrite.
5365
5366 2014-07-14 Tom Tromey <tromey@redhat.com>
5367
5368 * target.c (target_require_runnable): Also check record_stratum.
5369 Update comment.
5370
5371 2014-07-11 Yao Qi <yao@codesourcery.com>
5372
5373 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5374 thumb_instruction_restores_sp return true.
5375
5376 2014-07-11 Yao Qi <yao@codesourcery.com>
5377
5378 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5379 (thumb_in_function_epilogue_p): Call
5380 thumb_instruction_restores_sp.
5381
5382 2014-07-11 Yao Qi <yao@codesourcery.com>
5383
5384 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5385 'add sp, #imm'.
5386 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5387
5388 2014-07-11 Gary Benson <gbenson@redhat.com>
5389
5390 * amd64-linux-nat.c (gdbcore.h): Remove include.
5391 (regset.h): Likewise.
5392 (nat/linux-btrace.h): Likewise.
5393 (btrace.h): Likewise.
5394 (gdb_assert.h): Likewise.
5395 (string.h): Likewise.
5396 (sys/uio.h): Likewise.
5397 (sys/debugreg.h): Likewise.
5398 (sys/syscall.h): Likewise.
5399 (sys/procfs.h): Likewise.
5400 (sys/user.h): Likewise.
5401 (asm/ptrace.h): Likewise.
5402 (i386-nat.h): Likewise.
5403 * i386-linux-nat.c (i386-nat.h): Likewise.
5404 (regset.h): Likewise.
5405 (target.h): Likewise.
5406 (linux-nat.h): Likewise.
5407 (nat/linux-btrace.h): Likewise.
5408 (btrace.h): Likewise.
5409 (gdb_assert.h): Likewise.
5410 (string.h): Likewise.
5411 (sys/uio.h): Likewise.
5412 (sys/user.h): Likewise.
5413 (sys/procfs.h): Likewise.
5414 (sys/reg.h): Likewise.
5415 (sys/debugreg.h): Likewise.
5416 (ORIG_EAX): Remove definition.
5417
5418 2014-07-11 Gary Benson <gbenson@redhat.com>
5419
5420 * i386-linux-nat.h: New file.
5421 * x86-linux-nat.h: Likewise.
5422 * x86-linux-nat.c: Likewise.
5423 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5424 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5425 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5426 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5427 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5428 (PTRACE_SETREGSET): Likewise.
5429 (arch_lwp_info): Now in x86-linux-nat.c.
5430 (have_ptrace_getregset): Now in x86-linux-nat.h.
5431 (x86_linux_dr_get): Now in x86-linux-nat.c.
5432 (x86_linux_dr_set): Likewise.
5433 (x86_linux_dr_get_addr): Likewise.
5434 (x86_linux_dr_get_control): Likewise.
5435 (x86_linux_dr_get_status): Likewise.
5436 (update_debug_registers_callback): Likewise.
5437 (x86_linux_dr_set_control): Likewise.
5438 (x86_linux_dr_set_addr): Likewise.
5439 (x86_linux_prepare_to_resume): Likewise.
5440 (x86_linux_new_thread): Likewise.
5441 (x86_linux_new_fork): Likewise.
5442 (x86_linux_get_thread_area): Likewise.
5443 (super_post_startup_inferior): Likewise.
5444 (x86_linux_child_post_startup_inferior): Likewise.
5445 (AMD64_LINUX_USER64_CS): Likewise.
5446 (AMD64_LINUX_X32_DS): Likewise.
5447 (x86_linux_read_description): Likewise.
5448 (x86_linux_enable_btrace): Likewise.
5449 (x86_linux_disable_btrace): Likewise.
5450 (x86_linux_teardown_btrace): Likewise.
5451 (x86_linux_read_btrace): Likewise.
5452 (x86_linux_create_target): Likewise.
5453 (x86_linux_add_target): Likewise.
5454 * i386-linux-nat.c (x86-linux-nat.h): New include.
5455 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5456 (PTRACE_SETREGSET): Likewise.
5457 (arch_lwp_info): Now in x86-linux-nat.c.
5458 (have_ptrace_getregset): Now in x86-linux-nat.h.
5459 (x86_linux_dr_get): Now in x86-linux-nat.c.
5460 (x86_linux_dr_set): Likewise.
5461 (x86_linux_dr_get_addr): Likewise.
5462 (x86_linux_dr_get_control): Likewise.
5463 (x86_linux_dr_get_status): Likewise.
5464 (update_debug_registers_callback): Likewise.
5465 (x86_linux_dr_set_control): Likewise.
5466 (x86_linux_dr_set_addr): Likewise.
5467 (x86_linux_prepare_to_resume): Likewise.
5468 (x86_linux_new_thread): Likewise.
5469 (x86_linux_new_fork): Likewise.
5470 (x86_linux_get_thread_area): Likewise.
5471 (super_post_startup_inferior): Likewise.
5472 (x86_linux_child_post_startup_inferior): Likewise.
5473 (AMD64_LINUX_USER64_CS): Likewise.
5474 (AMD64_LINUX_X32_DS): Likewise.
5475 (x86_linux_read_description): Likewise.
5476 (x86_linux_enable_btrace): Likewise.
5477 (x86_linux_disable_btrace): Likewise.
5478 (x86_linux_teardown_btrace): Likewise.
5479 (x86_linux_read_btrace): Likewise.
5480 (x86_linux_create_target): Likewise.
5481 (x86_linux_add_target): Likewise.
5482
5483 2014-07-11 Gary Benson <gbenson@redhat.com>
5484
5485 * amd64-linux-nat.c: Comment and whitespace changes.
5486 * i386-linux-nat.c: Comment and whitespace changes.
5487
5488 2014-07-11 Gary Benson <gbenson@redhat.com>
5489
5490 * amd64-linux-nat.c (x86_linux_create_target): New function.
5491 (x86_linux_add_target): Likewise.
5492 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5493 * i386-linux-nat.c (x86_linux_create_target): New function.
5494 (x86_linux_add_target): Likewise.
5495 (_initialize_i386_linux_nat): Delegate to the above new functions.
5496
5497 2014-07-11 Gary Benson <gbenson@redhat.com>
5498
5499 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5500 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5501 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5502 (ps_get_thread_area): Delegate to the above.
5503
5504 2014-07-11 Gary Benson <gbenson@redhat.com>
5505
5506 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5507 x86_linux_read_description. All uses updated. amd64-specific
5508 code conditionalized. Conditionalized i386-specific code added.
5509 Redundant cast removed.
5510 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5511 x86_linux_read_description. All uses updated. i386-specific
5512 code conditionalized. Conditionalized amd64-specific code added.
5513 One sizeof replaced with the actual type it is describing.
5514
5515 2014-07-11 Gary Benson <gbenson@redhat.com>
5516
5517 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5518 x86_linux_dr_get. All uses updated.
5519 (amd64_linux_dr_set): Renamed to
5520 x86_linux_dr_set. All uses updated.
5521 (amd64_linux_dr_get_addr): Renamed to
5522 x86_linux_dr_get_addr. All uses updated.
5523 (amd64_linux_dr_get_control): Renamed to
5524 x86_linux_dr_get_control. All uses updated.
5525 (amd64_linux_dr_get_status): Renamed to
5526 x86_linux_dr_get_status. All uses updated.
5527 (amd64_linux_dr_set_control): Renamed to
5528 x86_linux_dr_set_control. All uses updated.
5529 (amd64_linux_dr_set_addr): Renamed to
5530 x86_linux_dr_set_addr. All uses updated.
5531 (amd64_linux_prepare_to_resume): Renamed to
5532 x86_linux_prepare_to_resume. All uses updated.
5533 (amd64_linux_new_thread): Renamed to
5534 x86_linux_new_thread. All uses updated.
5535 (amd64_linux_new_fork): Renamed to
5536 x86_linux_new_fork. All uses updated.
5537 (amd64_linux_child_post_startup_inferior): Renamed to
5538 x86_linux_child_post_startup_inferior. All uses updated.
5539 (amd64_linux_enable_btrace): Renamed to
5540 x86_linux_enable_btrace. All uses updated.
5541 (amd64_linux_disable_btrace): Renamed to
5542 x86_linux_disable_btrace. All uses updated.
5543 (amd64_linux_teardown_btrace): Renamed to
5544 x86_linux_teardown_btrace. All uses updated.
5545 (amd64_linux_read_btrace): Renamed to
5546 x86_linux_read_btrace. All uses updated.
5547 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5548 x86_linux_dr_get. All uses updated.
5549 (i386_linux_dr_set): Renamed to
5550 x86_linux_dr_set. All uses updated.
5551 (i386_linux_dr_get_addr): Renamed to
5552 x86_linux_dr_get_addr. All uses updated.
5553 (i386_linux_dr_get_control): Renamed to
5554 x86_linux_dr_get_control. All uses updated.
5555 (i386_linux_dr_get_status): Renamed to
5556 x86_linux_dr_get_status. All uses updated.
5557 (i386_linux_dr_set_control): Renamed to
5558 x86_linux_dr_set_control. All uses updated.
5559 (i386_linux_dr_set_addr): Renamed to
5560 x86_linux_dr_set_addr. All uses updated.
5561 (i386_linux_prepare_to_resume): Renamed to
5562 x86_linux_prepare_to_resume. All uses updated.
5563 (i386_linux_new_thread): Renamed to
5564 x86_linux_new_thread. All uses updated.
5565 (i386_linux_new_fork): Renamed to
5566 x86_linux_new_fork. All uses updated.
5567 (i386_linux_child_post_startup_inferior): Renamed to
5568 x86_linux_child_post_startup_inferior. All uses updated.
5569 (i386_linux_enable_btrace): Renamed to
5570 x86_linux_enable_btrace. All uses updated.
5571 (i386_linux_disable_btrace): Renamed to
5572 x86_linux_disable_btrace. All uses updated.
5573 (i386_linux_teardown_btrace): Renamed to
5574 x86_linux_teardown_btrace. All uses updated.
5575 (i386_linux_read_btrace): Renamed to
5576 x86_linux_read_btrace. All uses updated.
5577
5578 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5579
5580 * remote.c (extended_remote_post_attach): New function.
5581 (init_extended_remote_ops): Install it as to_post_attach method.
5582
5583 2014-07-09 Pedro Alves <palves@redhat.com>
5584
5585 * infcmd.c (attach_command_post_wait): Don't call
5586 target_terminal_inferior here.
5587 (attach_command): Call it here instead.
5588
5589 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5590
5591 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5592 field.
5593 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5594 from varobj.c, with additional checks.
5595 (c_varobj_ops): Fill in is_path_expr_parent field.
5596 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5597 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5598 field.
5599 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5600 ops method.
5601 (varobj_default_is_path_expr_parent): New function.
5602 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5603 (varobj_default_is_path_expr_parent): Declare new function.
5604
5605 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5606
5607 * infcmd.c (finish_backward): Turn internal error into normal error.
5608
5609 2014-07-07 Pedro Alves <palves@redhat.com>
5610
5611 PR gdb/17096
5612 * remote.c (async_handle_remote_sigint)
5613 (async_handle_remote_sigint_twice): Call
5614 gdb_call_async_signal_handler instead of
5615 mark_async_signal_handler.
5616
5617 2014-07-07 Tom Tromey <tromey@redhat.com>
5618
5619 * target-delegates.c: Rebuild.
5620 * target.c (target_info_record): Remove.
5621 * record.c (info_record_command): Unconditionally call
5622 to_info_record.
5623 * target.h (struct target_ops) <to_info_record>: Use
5624 TARGET_DEFAULT_IGNORE.
5625 (target_info_record): Remove.
5626
5627 2014-07-07 Tom Tromey <tromey@redhat.com>
5628
5629 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5630 TARGET_DEFAULT_NORETURN.
5631 * target.c (generic_tls_error): New function.
5632 (target_translate_tls_address): Don't search target stack.
5633 * target-delegates.c: Rebuild.
5634 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5635 stack.
5636 * linux-thread-db.c (thread_db_get_thread_local_address):
5637 Unconditionally call beneath target.
5638
5639 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5640
5641 * cli/cli-logging.c (pop_output_files): Assign targerr to
5642 gdb_stdtargerr.
5643
5644 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5645
5646 * MAINTAINERS (Write After Approval): Update my email address.
5647
5648 2014-07-02 Gary Benson <gbenson@redhat.com>
5649
5650 * proc-service.c (ps_xfer_memory): Update comment.
5651 (ps_pstop): Remove unused function.
5652 (ps_pcontinue): Likewise.
5653 (ps_lstop): Likewise.
5654 (ps_lcontinue): Likewise.
5655 (ps_lgetxregsize): Likewise.
5656 (ps_lgetxregs): Likewise.
5657 (ps_lsetxregs): Likewise.
5658 (ps_plog): Likewise.
5659 (ps_ptread): Likewise.
5660 (ps_ptwrite): Likewise.
5661
5662 2014-07-01 Mark Wielaard <mjw@redhat.com>
5663
5664 * dwarf2read.c (add_array_cv_type): New function.
5665 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5666 (read_tag_volatile_type): Likewise.
5667
5668 2014-07-01 Tom Tromey <tromey@redhat.com>
5669
5670 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5671 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5672 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5673 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5674 * command.h (cmd_cfunc_ftype): Move earlier.
5675 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5676 (add_com, add_info): Use cmd_cfunc_ftype.
5677
5678 2014-06-30 Tom Tromey <tromey@redhat.com>
5679
5680 * symtab.c (operator_chars): Make parameters and return type
5681 const.
5682 (file_matches): Make "files" const.
5683 (struct search_symbols_data) <files>: Now const.
5684 (search_symbols): Make "regexp" and "files" parameters const.
5685 Update.
5686 (symtab_symbol_info): Remove cast.
5687 (rbreak_command): Update.
5688 * symtab.h (search_symbols): Update.
5689
5690 2014-06-27 Yao Qi <yao@codesourcery.com>
5691
5692 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5693 Change parameter type to 'struct thread_info *'. Caller
5694 updated.
5695 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5696 Update declaration.
5697 * dummy-frame.c (struct dummy_frame_id): New.
5698 (dummy_frame_id_eq): New function.
5699 (struct dummy_frame) <id>: Change its type to 'struct
5700 dummy_frame_id'.
5701 (dummy_frame_push): Add parameter ptid and save it in
5702 dummy_frame_id.
5703 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5704 inferior_ptid.
5705 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5706 to inferior_ptid.
5707 (lookup_dummy_frame): Change parameter type to 'struct
5708 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5709 instead of frame_id_eq.
5710 (dummy_frame_pop): Add parameter ptid. Callers updated.
5711 Update comments. Compose dummy_frame_id and pass it to
5712 lookup_dummy_frame.
5713 (dummy_frame_discard): Add parameter ptid.
5714 (dummy_frame_sniffer): Compose dummy_frame_id and call
5715 dummy_frame_id_eq instead of frame_id_eq.
5716 (fprint_dummy_frames): Print ptid.
5717 * dummy-frame.h: Remove comments.
5718 (dummy_frame_push): Add ptid in declaration.
5719 (dummy_frame_pop, dummy_frame_discard): Likewise.
5720
5721 2014-06-26 Tom Tromey <tromey@redhat.com>
5722
5723 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5724 * command.h (error_no_arg): Update.
5725
5726 2014-06-26 Tom Tromey <tromey@redhat.com>
5727
5728 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5729 (do_show_command): Make "arg" const.
5730 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5731
5732 2014-06-26 Tom Tromey <tromey@redhat.com>
5733
5734 * record-full.c (record_full_get_bookmark): Make "args" const.
5735 (record_full_goto_bookmark): Make "raw_bookmark" const.
5736 * record.c (record_goto): New function.
5737 (cmd_record_goto): Use it. Now static.
5738 * record.h (record_goto): Declare.
5739 (cmd_record_goto): Remove declaration.
5740 * target-delegates.c: Rebuild.
5741 * target.h (struct target_ops) <to_get_bookmark,
5742 to_goto_bookmark>: Make parameter const.
5743
5744 2014-06-26 Tom Tromey <tromey@redhat.com>
5745
5746 * defs.h (generic_load): Update.
5747 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5748 * monitor.c (monitor_load): Make "args" const.
5749 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5750 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5751 const.
5752 (mips_load): Make "file" const.
5753 * remote-sim.c (gdbsim_load): Make "args" const.
5754 * remote.c (remote_load): Make "name" const.
5755 * symfile.c (generic_load): Make "args" const.
5756 * target-delegates.c: Rebuild.
5757 * target.c (target_load): Make "arg" const.
5758 (debug_to_load): Make "args" const.
5759 * target.h (struct target_ops) <to_load>: Make parameter const.
5760 (target_load): Update.
5761
5762 2014-06-26 Tom Tromey <tromey@redhat.com>
5763
5764 PR symtab/16902:
5765 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5766 (dwarf2_physname, read_partial_die)
5767 (guess_partial_die_structure_name, fixup_partial_die)
5768 (guess_full_die_structure_name, anonymous_struct_prefix)
5769 (dwarf2_name): Use per-BFD obstack.
5770
5771 2014-06-26 Yao Qi <yao@codesourcery.com>
5772
5773 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5774 dummyframe and this_id into inner block below.
5775
5776 2014-06-26 Yao Qi <yao@codesourcery.com>
5777
5778 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5779 with "signal_pass[0]" in the initialization of signal_pass.
5780
5781 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5782
5783 * record-btrace.c (record_btrace_generating_corefile)
5784 (record_btrace_prepare_to_generate_core)
5785 (record_btrace_done_generating_core): New.
5786 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5787 (record_btrace_store_registers, record_btrace_prepare_to_store):
5788 Forward request when generating a core file.
5789 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5790 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5791 to_done_generating_core.
5792
5793 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5794
5795 * target.h (target_ops) <to_prepare_to_generate_core>
5796 <to_done_generating_core>: New.
5797 (target_prepare_to_generate_core, target_done_generating_core): New.
5798 * target.c (target_prepare_to_generate_core)
5799 (target_done_generating_core): New.
5800 * target-delegates.c: Regenerate.
5801 * gcore.c: (write_gcore_file): Rename to ...
5802 (write_gcore_file_1): ...this.
5803 (write_gcore_file): Call target_prepare_to_generate_core
5804 and target_done_generating_core.
5805
5806 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5807
5808 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5809 * gcore.c (write_gcore_file): Free memory returned from
5810 make_corefile_notes.
5811 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5812 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5813
5814 2014-06-24 Yao Qi <yao@codesourcery.com>
5815
5816 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5817 (arm_linux_init_abi): Set skip_trampoline_code with
5818 gdbarch_skip_trampoline_code instead of
5819 find_solib_trampoline_target.
5820
5821 2014-06-24 Yao Qi <yao@codesourcery.com>
5822
5823 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5824 arm_skip_bx_reg returns non-zero.
5825
5826 2014-06-24 Yao Qi <yao@codesourcery.com>
5827
5828 * arm-tdep.c (arm_skip_bx_reg): New function.
5829 (arm_skip_stub): Call arm_skip_bx_reg.
5830
5831 2014-06-23 Don Breazeal <donb@codesourcery.com>
5832
5833 * MAINTAINERS: Add myself as write-after-approval maintainer.
5834
5835 2014-06-23 Pedro Alves <palves@redhat.com>
5836
5837 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5838 DR_CONTROL before setting DR0..DR3.
5839 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5840 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5841 bits of DR_CONTROL related to the debug register slot being
5842 disabled. If all slots are vacant, clear local slowdown as well,
5843 and assert DR_CONTROL is 0.
5844
5845 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5846
5847 * python/lib/gdb/command/xmethods.py
5848 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5849 current progspace only if the string "progspace" matches LOCUS_RE.
5850
5851 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5852
5853 Fix --with-system-readline with readline-6.3 patch 5.
5854 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5855 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5856 types.
5857
5858 2014-06-20 Tom Tromey <tromey@redhat.com>
5859
5860 * dwarf2read.c (dw2_get_real_path): Use correct type in
5861 OBSTACK_CALLOC.
5862 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5863
5864 2014-06-20 Gary Benson <gbenson@redhat.com>
5865
5866 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5867 * common/glibc_thread_db.h: Likewise.
5868 * common/i386-cpuid.h: Likewise.
5869 * common/i386-gcc-cpuid.h: Likewise.
5870 * common/linux-btrace.h: Likewise.
5871 * common/linux-osdata.h: Likewise.
5872 * common/linux-procfs.h: Likewise.
5873 * common/linux-ptrace.h: Likewise.
5874 * common/mips-linux-watch.h: Likewise.
5875 * common/linux-btrace.c: Moved to nat.
5876 * common/linux-osdata.c: Likewise.
5877 * common/linux-procfs.c: Likewise.
5878 * common/linux-ptrace.c: Likewise.
5879 * common/mips-linux-watch.c: Likewise.
5880 * nat/gdb_thread_db.h: Moved from common.
5881 * nat/glibc_thread_db.h: Likewise.
5882 * nat/i386-cpuid.h: Likewise.
5883 * nat/i386-gcc-cpuid.h: Likewise.
5884 * nat/linux-btrace.c: Likewise.
5885 * nat/linux-btrace.h: Likewise.
5886 * nat/linux-osdata.c: Likewise.
5887 * nat/linux-osdata.h: Likewise.
5888 * nat/linux-procfs.c: Likewise.
5889 * nat/linux-procfs.h: Likewise.
5890 * nat/linux-ptrace.c: Likewise.
5891 * nat/linux-ptrace.h: Likewise.
5892 * nat/mips-linux-watch.c: Likewise.
5893 * nat/mips-linux-watch.h: Likewise.
5894 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5895 (object file files): Reordered.
5896 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5897 of glibc_thread_db.h.
5898
5899 2014-06-20 Gary Benson <gbenson@redhat.com>
5900
5901 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5902 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5903 (i386_dr_low): Likewise.
5904 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5905 (i386_dr_low_set_addr): Likewise.
5906 (i386_dr_low_get_addr): Likewise.
5907 (i386_dr_low_can_set_control): Likewise.
5908 (i386_dr_low_set_control): Likewise.
5909 (i386_dr_low_get_control): Likewise.
5910 (i386_dr_low_get_status): Likewise.
5911 (i386_get_debug_register_length): Likewise.
5912 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5913 (i386_dr_low): Likewise.
5914 * nat/i386-dregs.c (i386-low.h): Remove include.
5915 (i386-nat.h): Likewise.
5916 (nat/i386-dregs.h): New include.
5917 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5918 (i386_dr_low_set_addr): Likewise.
5919 (i386_dr_low_get_addr): Likewise.
5920 (i386_dr_low_can_set_control): Likewise.
5921 (i386_dr_low_set_control): Likewise.
5922 (i386_dr_low_get_control): Likewise.
5923 (i386_dr_low_get_status): Likewise.
5924 (i386_get_debug_register_length): Likewise.
5925 (debug_hw_points): Likewise.
5926
5927 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5928
5929 * Makefile.in (SFILES): Add d-exp.y.
5930 (YYFILES): Add d-exp.c.
5931 (YYOBJ): Add d-exp.o.
5932 (local-maintainer-clean): Delete d-exp.c.
5933 * d-exp.y: New file.
5934 * d-lang.h (d_parse): New declaration.
5935 (d_error): New declaration.
5936 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5937 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5938 PREC_ORDER operators.
5939 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5940
5941 2014-06-19 Yao Qi <yao@codesourcery.com>
5942
5943 * gdbthread.h (any_running): Remove the declaration.
5944 * thread.c (any_running): Remove.
5945
5946 2014-06-19 Yao Qi <yao@codesourcery.com>
5947
5948 * gdbthread.h (struct thread_info) <state>: Change its type to
5949 'enum thread_state'. Update comments.
5950
5951 2014-06-19 Pedro Alves <palves@redhat.com>
5952
5953 * gdbthread.h (ALL_THREADS): Delete.
5954 (ALL_NON_EXITED_THREADS): New macro.
5955 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5956 instead of ALL_THREADS.
5957 * infrun.c (find_thread_needs_step_over)
5958 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5959 instead of ALL_THREADS.
5960 * record-btrace.c (record_btrace_open)
5961 (record_btrace_stop_recording, record_btrace_close)
5962 (record_btrace_is_replaying, record_btrace_resume)
5963 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5964 * remote.c (append_pending_thread_resumptions): Likewise.
5965 * thread.c (thread_apply_all_command): Likewise.
5966
5967 2014-06-19 Gary Benson <gbenson@redhat.com>
5968
5969 * i386-nat.c (i386_stopped_by_watchpoint):
5970 Use i386_dr_stopped_by_watchpoint.
5971 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5972 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5973
5974 2014-06-19 Gary Benson <gbenson@redhat.com>
5975
5976 * nat/i386-dregs.c: New file.
5977 * Makefile.in (i386-dregs.o): New rule.
5978 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5979 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5980 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5981 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5982 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5983 * config/i386/go32.mh (NATDEPFILES): Likewise.
5984 * config/i386/linux.mh (NATDEPFILES): Likewise.
5985 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5986 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5987 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5988 * i386-nat.h (debug_hw_points): New declaration.
5989 * i386-nat.c (breakpoint.h): Remove include.
5990 (command.h): Likewise.
5991 (target.h): Likewise.
5992 (gdb_assert.h): Likewise.
5993 (debug_hw_points): Made nonstatic.
5994 (debug_printf): Now in i386-dregs.c.
5995 (TARGET_HAS_DR_LEN_8): Likewise.
5996 (DR_CONTROL_SHIFT): Likewise.
5997 (DR_CONTROL_SIZE): Likewise.
5998 (DR_RW_EXECUTE): Likewise.
5999 (DR_RW_WRITE): Likewise.
6000 (DR_RW_READ): Likewise.
6001 (DR_RW_IORW): Likewise.
6002 (DR_LEN_1): Likewise.
6003 (DR_LEN_2): Likewise.
6004 (DR_LEN_4): Likewise.
6005 (DR_LEN_8): Likewise.
6006 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6007 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6008 (DR_ENABLE_SIZE): Likewise.
6009 (DR_LOCAL_SLOWDOWN): Likewise.
6010 (DR_GLOBAL_SLOWDOWN): Likewise.
6011 (DR_CONTROL_RESERVED): Likewise.
6012 (I386_DR_CONTROL_MASK): Likewise.
6013 (I386_DR_VACANT): Likewise.
6014 (I386_DR_LOCAL_ENABLE): Likewise.
6015 (I386_DR_GLOBAL_ENABLE): Likewise.
6016 (I386_DR_DISABLE): Likewise.
6017 (I386_DR_SET_RW_LEN): Likewise.
6018 (I386_DR_GET_RW_LEN): Likewise.
6019 (I386_DR_WATCH_HIT): Likewise.
6020 (i386_wp_op_t): Likewise.
6021 (i386_show_dr): Likewise.
6022 (i386_length_and_rw_bits): Likewise.
6023 (i386_insert_aligned_watchpoint): Likewise.
6024 (i386_remove_aligned_watchpoint): Likewise.
6025 (i386_handle_nonaligned_watchpoint): Likewise.
6026 (i386_update_inferior_debug_regs): Likewise.
6027 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6028 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6029 (i386_region_ok_for_watchpoint):
6030 Use i386_dr_region_ok_for_watchpoint.
6031 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6032
6033 2014-06-19 Gary Benson <gbenson@redhat.com>
6034
6035 * i386-nat.c (i386_insert_hw_breakpoint): Use
6036 i386_insert_watchpoint.
6037 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6038
6039 2014-06-19 Gary Benson <gbenson@redhat.com>
6040
6041 * i386-nat.c (i386_dr_show): Renamed to
6042 i386_show_dr and made static. All uses updated.
6043 (i386_dr_length_and_rw_bits): Renamed to
6044 i386_length_and_rw_bits and made static.
6045 All uses updated.
6046 (i386_dr_insert_aligned_watchpoint): Renamed to
6047 i386_insert_aligned_watchpoint and made static.
6048 All uses updated.
6049 (i386_dr_remove_aligned_watchpoint): Renamed to
6050 i386_remove_aligned_watchpoint and made static.
6051 All uses updated.
6052 (i386_dr_update_inferior_debug_regs): Renamed to
6053 i386_update_inferior_debug_regs and made static.
6054 All uses updated.
6055 * nat/i386-dregs.h (i386_dr_show): Removed.
6056 (i386_dr_length_and_rw_bits): Likewise.
6057 (i386_dr_insert_aligned_watchpoint): Likewise.
6058 (i386_dr_remove_aligned_watchpoint): Likewise.
6059 (i386_dr_update_inferior_debug_regs): Likewise.
6060
6061 2014-06-19 Gary Benson <gbenson@redhat.com>
6062
6063 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6064 * configure: Regenerate.
6065 * config.in: Likewise.
6066 * main.c (signal.h): New include.
6067 (setup_alternate_signal_stack): New function.
6068 (captured_main): Call the above.
6069 * cp-support.c (signal.h): New include.
6070 (catch_demangler_crashes): New flag.
6071 (SIGJMP_BUF): New define.
6072 (SIGSETJMP): Likewise.
6073 (SIGLONGJMP): Likewise.
6074 (gdb_demangle_jmp_buf): New static global.
6075 (gdb_demangle_attempt_core_dump): Likewise.
6076 (gdb_demangle_signal_handler): New function.
6077 (gdb_demangle): If catch_demangler_crashes is set, install the
6078 above signal handler before calling bfd_demangle, and restore
6079 the original signal handler afterwards. Display the offending
6080 symbol and call demangler_warning the first time a segmentation
6081 fault is caught.
6082 (_initialize_cp_support): New maint set/show command.
6083
6084 2014-06-19 Gary Benson <gbenson@redhat.com>
6085
6086 * utils.h (resource_limit_kind): New enum.
6087 (can_dump_core): New declaration.
6088 (warn_cant_dump_core): Likewise.
6089 (dump_core): Likewise.
6090 * utils.c (dump_core): Made nonstatic. Added new
6091 parameter "limit_kind".
6092 (can_dump_core): Made nonstatic. Moved printing code to...
6093 (warn_cant_dump_core): New function.
6094 (can_dump_core_warn): Likewise.
6095 (internal_vproblem): Replace calls to can_dump_core with
6096 calls to can_dump_core_warn. Supply new argument to each.
6097
6098 2014-06-19 Gary Benson <gbenson@redhat.com>
6099
6100 * utils.h (demangler_vwarning): New declaration.
6101 (demangler_warning): Likewise.
6102 * utils.c (struct internal_problem)
6103 <user_settable_should_quit>: New field.
6104 <user_settable_should_dump_core>: Likewise
6105 (internal_error_problem): Add values for above new fields.
6106 (internal_warning_problem): Likewise.
6107 (demangler_warning_problem): New static global.
6108 (demangler_vwarning): New function.
6109 (demangler_warning): Likewise.
6110 (add_internal_problem_command): Selectively add commands.
6111 (_initialize_utils): New internal problem command.
6112 * maint.c (maintenance_demangler_warning): New function.
6113 (_initialize_maint_cmds): New command.
6114
6115 2014-06-18 Tom Tromey <tromey@redhat.com>
6116
6117 * f-valprint.c (info_common_command_for_block): Update.
6118 * symtab.h (struct general_symbol_info) <common_block>: Now
6119 const.
6120
6121 2014-06-18 Tom Tromey <tromey@redhat.com>
6122
6123 * symtab.h (struct symtab) <blockvector>: Now const.
6124 * ada-lang.c (ada_add_global_exceptions): Update.
6125 * buildsym.c (augment_type_symtab): Update.
6126 * dwarf2read.c (dw2_lookup_symbol): Update.
6127 * jit.c (finalize_symtab): Update.
6128 * jv-lang.c (add_class_symtab_symbol): Update.
6129 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6130 Update.
6131 * objfiles.c (objfile_relocate1): Update.
6132 * psymtab.c (lookup_symbol_aux_psymtabs)
6133 (maintenance_check_psymtabs): Update.
6134 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6135 Update.
6136 * spu-tdep.c (spu_catch_start): Update.
6137 * symmisc.c (dump_symtab_1): Update.
6138 * symtab.c (lookup_global_symbol_from_objfile)
6139 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6140 (basic_lookup_transparent_type_quick)
6141 (basic_lookup_transparent_type, find_pc_sect_symtab)
6142 (find_pc_sect_line, search_symbols): Update.
6143 * block.c (find_block_in_blockvector): Make "bl" const.
6144 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6145 const.
6146 (blockvector_contains_pc): Make "bv" const.
6147 (block_for_pc_sect): Update.
6148 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6149 (blockvector_contains_pc): Update.
6150 * breakpoint.c (resolve_sal_pc): Update.
6151 * inline-frame.c (block_starting_point_at): Update.
6152
6153 2014-06-18 Tom Tromey <tromey@redhat.com>
6154
6155 * completer.c (complete_line): Make "line_buffer" const.
6156 * completer.h (complete_line): Update.
6157
6158 2014-06-18 Tom Tromey <tromey@redhat.com>
6159
6160 * symtab.c (add_macro_name): Remove unneeded cast.
6161
6162 2014-06-18 Tom Tromey <tromey@redhat.com>
6163
6164 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6165 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6166
6167 2014-06-18 Tom Tromey <tromey@redhat.com>
6168
6169 * probe.c (info_probes_for_ops): Make "arg" const.
6170 * probe.h (info_probes_for_ops): Update.
6171
6172 2014-06-18 Tom Tromey <tromey@redhat.com>
6173
6174 * varobj.c (varobj_create): Update.
6175 * valops.c (value_of_this): Update.
6176 * tracepoint.c (add_local_symbols, scope_info): Update.
6177 * symtab.h (struct general_symbol_info) <block>: Now const.
6178 * symtab.c (skip_prologue_sal)
6179 (default_make_symbol_completion_list_break_on)
6180 (skip_prologue_using_sal): Update.
6181 * stack.h (iterate_over_block_locals)
6182 (iterate_over_block_local_vars): Update.
6183 * stack.c (print_frame_args): Update.
6184 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6185 parameter const.
6186 (get_selected_block): Make return type const.
6187 * python/py-frame.c (frapy_block): Update.
6188 * python/py-block.c (gdbpy_block_for_pc): Update.
6189 * p-exp.y (%union) <bval>: Now const.
6190 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6191 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6192 * m2-exp.y (%union) <bval>: Now const.
6193 * linespec.c (get_current_search_block): Make return type const.
6194 (create_sals_line_offset, find_label_symbols): Update.
6195 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6196 Update.
6197 (block_starting_point_at): Make "block" const.
6198 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6199 (check_exception_resume): Update.
6200 * guile/scm-frame.c (gdbscm_frame_block): Update.
6201 * guile/scm-block.c (gdbscm_lookup_block): Update.
6202 * frame.h (get_frame_block): Update.
6203 (get_selected_block): Make return type const.
6204 * frame.c (frame_id_inner): Update.
6205 * f-valprint.c (info_common_command_for_block)
6206 (info_common_command): Update.
6207 * dwarf2loc.c (dwarf2_find_location_expression)
6208 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6209 (locexpr_describe_location_piece): Update.
6210 * c-exp.y (%union) <bval>: Now const.
6211 * breakpoint.c (resolve_sal_pc): Update.
6212 * blockframe.c (get_frame_block):Make return type const.
6213 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6214 (block_innermost_frame): Update.
6215 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6216 (block_for_pc, block_for_pc_sect): Update.
6217 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6218 'pblock' const.
6219 (block_for_pc_sect, block_for_pc): Make return type const.
6220 * ax-gdb.c (gen_expr): Update.
6221 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6222 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6223 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6224 (ada_read_var_value): Update.
6225 * ada-exp.y (struct name_info) <block>: Now const.
6226 (%union): Likewise.
6227 (block_lookup): Constify.
6228
6229 2014-06-18 Gary Benson <gbenson@redhat.com>
6230
6231 * nat/i386-dregs.h: New file.
6232 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6233 * i386-nat.h (i386-dregs.h): New include.
6234 (DR_FIRSTADDR): Now in i386-dregs.h.
6235 (DR_LASTADDR): Likewise.
6236 (DR_NADDR): Likewise.
6237 (DR_STATUS): Likewise.
6238 (DR_CONTROL): Likewise.
6239 (i386_debug_reg_state): Likewise.
6240 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6241
6242 2014-06-18 Don Breazeal <donb@codesourcery.com>
6243
6244 * breakpoint.c (set_longjmp_breakpoint): Call
6245 momentary_breakpoint_from_master with additional argument.
6246 (set_longjmp_breakpoint_for_call_dummy): Call
6247 momentary_breakpoint_from_master with additional argument.
6248 (set_std_terminate_breakpoint): Call
6249 momentary_breakpoint_from_master with additional argument.
6250 (momentary_breakpoint_from_master): Add argument to function
6251 definition and use it to initialize structure member flag.
6252 (clone_momentary_breakpoint): Call
6253 momentary_breakpoint_from_master with additional argument.
6254 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6255 member flags set in momentary_breakpoint_from_master.
6256
6257 2014-06-18 Gary Benson <gbenson@redhat.com>
6258
6259 * i386-nat.c (i386_show_dr): Renamed to
6260 i386_dr_show and made nonstatic. All uses updated.
6261 (i386_length_and_rw_bits): Renamed to
6262 i386_dr_length_and_rw_bits and made nonstatic.
6263 All uses updated.
6264 (i386_insert_aligned_watchpoint): Renamed to
6265 i386_dr_insert_aligned_watchpoint and made nonstatic.
6266 All uses updated.
6267 (i386_remove_aligned_watchpoint): Renamed to
6268 i386_dr_remove_aligned_watchpoint and made nonstatic.
6269 All uses updated.
6270 (i386_update_inferior_debug_regs): Renamed to
6271 i386_dr_update_inferior_debug_regs and made nonstatic.
6272 All uses updated.
6273
6274 2014-06-18 Gary Benson <gbenson@redhat.com>
6275
6276 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6277 (i386_dr_low_can_set_control): Likewise.
6278 (i386_dr_low_set_addr): Likewise.
6279 (i386_dr_low_set_control): Likewise.
6280 (i386_dr_low_get_addr): Likewise.
6281 (i386_dr_low_get_status): Likewise.
6282 (i386_dr_low_get_control): Likewise.
6283 (i386_insert_aligned_watchpoint): Use new macros.
6284 (i386_update_inferior_debug_regs): Likewise.
6285 (i386_stopped_data_address): Likewise.
6286
6287 2014-06-18 Gary Benson <gbenson@redhat.com>
6288
6289 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6290 New parameter. All uses updated.
6291
6292 2014-06-18 Gary Benson <gbenson@redhat.com>
6293
6294 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6295 All uses updated.
6296
6297 2014-06-18 Gary Benson <gbenson@redhat.com>
6298
6299 * i386-nat.c (debug_printf): New macro.
6300 (i386_get_debug_register_length): Likewise.
6301 (TARGET_HAS_DR_LEN_8): Use above macro.
6302 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6303 and printf_unfiltered. Use phex to format values.
6304
6305 2014-06-18 Gary Benson <gbenson@redhat.com>
6306
6307 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6308 Make const.
6309
6310 2014-06-18 Gary Benson <gbenson@redhat.com>
6311
6312 * i386-nat.c: Comment changes.
6313
6314 2014-06-18 Gary Benson <gbenson@redhat.com>
6315
6316 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6317
6318 2014-06-18 Gary Benson <gbenson@redhat.com>
6319
6320 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6321 (i386_insert_aligned_watchpoint): Likewise.
6322 (i386_remove_aligned_watchpoint): Likewise.
6323 (i386_handle_nonaligned_watchpoint): Likewise.
6324
6325 2014-06-18 Gary Benson <gbenson@redhat.com>
6326
6327 * i386-nat.c: Whitespace changes.
6328
6329 2014-06-17 Samuel Bronson <naesten@gmail.com>
6330
6331 * MAINTAINERS: Update Roland McGrath's email address.
6332 Thanks to Sergio Durigan Junior for pointing out that he left
6333 Red Hat a while ago, and giving me a current address.
6334
6335 2014-06-17 Tom Tromey <tromey@redhat.com>
6336
6337 * utils.h (savestring): Remove declaration.
6338
6339 2014-06-17 Tom Tromey <tromey@redhat.com>
6340
6341 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6342
6343 2014-06-16 Keith Seitz <keiths@redhat.com>
6344
6345 PR mi/15863
6346 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6347 to update the varobj if inferior_ptid is null_ptid.
6348
6349 2014-06-16 Tom Tromey <tromey@redhat.com>
6350
6351 * target.h (struct target_ops) <to_info_proc>: Make parameter
6352 const.
6353 (target_info_proc): Update.
6354 * target.c (target_info_proc): Make "args" const.
6355 * procfs.c (procfs_info_proc): Update.
6356 * linux-tdep.c (linux_info_proc): Update.
6357 (linux_core_info_proc_mappings): Make "args" const.
6358 (linux_core_info_proc): Update.
6359 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6360 * gdbarch.c: Rebuild.
6361 * gdbarch.h: Rebuild.
6362 * corelow.c (core_info_proc): Update.
6363
6364 2014-06-16 Tom Tromey <tromey@redhat.com>
6365
6366 * target.h (struct target_ops) <to_disconnect>: Make parameter
6367 const.
6368 (target_disconnect): Update.
6369 * target.c (target_disconnect): Make "args" const.
6370 * target-delegates.c: Rebuild.
6371 * remote.c (remote_disconnect): Update.
6372 * record.h (record_disconnect): Update.
6373 * record.c (record_disconnect): Update.
6374 * inf-child.c (inf_child_disconnect): Update.
6375
6376 2014-06-16 Tom Tromey <tromey@redhat.com>
6377
6378 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6379 * target.c (debug_to_rcmd, default_rcmd): Update.
6380 * target-delegates.c: Rebuild.
6381 * remote.c (remote_rcmd): Update.
6382 * monitor.c (monitor_rcmd): Update.
6383
6384 2014-06-16 Pedro Alves <palves@redhat.com>
6385
6386 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6387 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6388 have OBJF_SHARED set.
6389 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6390 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6391 instead of OBJF_USERLOADED.
6392 * objfiles.h (OBJF_SHARED): Update comment.
6393 (userloaded_objfile_contains_address_p): Rename to ...
6394 (shared_objfile_contains_address_p): ... this, and update
6395 comments.
6396 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6397 new objfile.
6398 (remove_symbol_file_command): Skip objfiles that don't have
6399 OBJF_SHARED set.
6400
6401 2014-06-16 Tom Tromey <tromey@redhat.com>
6402
6403 * minsyms.h (prim_record_minimal_symbol)
6404 (prim_record_minimal_symbol_and_info): Update comments.
6405
6406 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6407
6408 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6409 or --without-guile, according to how GDB was built.
6410
6411 2014-06-13 Tom Tromey <tromey@redhat.com>
6412
6413 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6414 to help_list.
6415 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6416 to help_list.
6417 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6418 help_list.
6419 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6420 help_list.Pass all_commands, not -1, to help_list.
6421 * cli/cli-dump.c (dump_command, append_command)
6422 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6423 (binary_dump_command, binary_append_command): Pass all_commands,
6424 not -1, to help_list.
6425 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6426 -1, to help_list.
6427 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6428 -1, to help_list.
6429 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6430 help_list.
6431 * top.c (set_history): Pass all_commands, not -1, to help_list.
6432 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6433 all_commands, not -1, to help_list.
6434 * symfile.c (overlay_command): Pass all_commands, not -1, to
6435 help_list.
6436 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6437 help_list.
6438 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6439 help_list.
6440 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6441 -1, to help_list.
6442 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6443 not -1, to help_list.
6444 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6445 not -1, to help_list.
6446 * maint.c (maintenance_command, maintenance_info_command)
6447 (maintenance_print_command, maintenance_set_cmd): Pass
6448 all_commands, not -1, to help_list.
6449 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6450 help_list.
6451 * language.c (set_check): Pass all_commands, not -1, to help_list.
6452 * infcmd.c (unset_command): Pass all_commands, not -1, to
6453 help_list.
6454 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6455 help_list.
6456 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6457 help_list.
6458 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6459 help_list.
6460 * breakpoint.c (save_command): Pass all_commands, not -1, to
6461 help_list.
6462 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6463 all_commands, not -1, to help_list.
6464
6465 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6466
6467 * regcache.c (struct register_to_invalidate): New structure.
6468 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6469 functions.
6470 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6471
6472 2014-06-12 Yao Qi <yao@codesourcery.com>
6473
6474 * varobj.c (varobj_get_num_children): Call
6475 varobj_is_dynamic_p.
6476 (varobj_list_children): Likewise.
6477 (varobj_update): Likewise. Update comments.
6478
6479 2014-06-12 Yao Qi <yao@codesourcery.com>
6480
6481 * varobj.c (varobj_pretty_printed_p): Rename to ...
6482 (varobj_is_dynamic_p): ... this. New function.
6483 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6484 (varobj_is_dynamic_p): Declare.
6485 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6486 (mi_print_value_p, varobj_update_one): Likewise.
6487
6488 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6489 Yao Qi <yao@codesourcery.com>
6490
6491 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6492 (varobj_get_iterator): Wrap up code for pretty-printer by
6493 "#if HAVE_PYTHON" and "#endif".
6494 (update_dynamic_varobj_children): Likewise.
6495
6496 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6497 Yao Qi <yao@codesourcery.com>
6498
6499 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6500 gdb_python_initialized is false. Move some code from varobj.c.
6501 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6502 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6503 (struct varobj_item): Moved to varobj-iter.h".
6504 (varobj_clear_saved_item): New function.
6505 (update_dynamic_varobj_children): Move python-related code to
6506 py-varobj.c.
6507 (free_variable): Call varobj_clear_saved_item and
6508 varobj_iter_delete.
6509
6510 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6511 Yao Qi <yao@codesourcery.com>
6512
6513 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6514 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6515 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6516 (py-varobj.o): New rule.
6517 * python/py-varobj.c: New file.
6518 * python/python-internal.h (py_varobj_get_iterator): Declare.
6519 * varobj-iter.h: New file.
6520 * varobj.c: Include "varobj-iter.h"
6521 (struct varobj) <child_iter>: Change its type from "PyObject *"
6522 to "struct varobj_iter *".
6523 <saved_item>: Likewise.
6524 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6525 [HAVE_PYTHON] (varobj_get_iterator): New function.
6526 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6527 python-specific code to python/py-varobj.c.
6528 (install_visualizer): Call varobj_iter_delete instead of
6529 Py_XDECREF.
6530 * varobj.h (varobj_ensure_python_env): Declare.
6531
6532 2014-06-12 Yao Qi <yao@codesourcery.com>
6533
6534 * varobj.c (struct varobj_item): New structure.
6535 (create_child_with_value): Update declaration.
6536 (varobj_add_child): Replace arguments 'name' and 'value' with
6537 'item'. All callers updated.
6538 (install_dynamic_child): Likewise.
6539 (update_dynamic_varobj_children): Likewise.
6540 (varobj_add_child): Likewise.
6541 (create_child_with_value): Likewise.
6542
6543 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6544
6545 * NEWS: Create a new section for the next release branch.
6546 Rename the section of the current branch, now that it has
6547 been cut.
6548
6549 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6550
6551 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6552 * version.in: Bump version to 7.8.50.DATE-cvs.
6553
6554 2014-06-11 Pedro Alves <palves@redhat.com>
6555
6556 PR remote/17028
6557 * ser-mingw.c (net_windows_socket_check_pending): New function.
6558 (net_windows_select_thread): Ignore spurious wakeups. Use
6559 net_windows_socket_check_pending.
6560 (net_windows_wait_handle): Check for pending events with
6561 ioctlsocket, through net_windows_socket_check_pending, instead of
6562 checking the socket's event.
6563
6564 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6565
6566 * python/python-internal.h (gdb_PyObject_GetAttrString)
6567 (gdb_PyObject_HasAttrString): New inline function definitions.
6568 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6569 char * of the second argument to PyObject_GetAttrString.
6570
6571 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6572
6573 * serial.c (serial_write): Fix index of character to be printed
6574 in call to serial_logchar when serial debug traces are enabled.
6575
6576 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6577
6578 * gdbtypes (resolve_dynamic_range): Add function description.
6579
6580 2014-06-09 Pedro Alves <palves@redhat.com>
6581
6582 * linux-nat.c (linux_child_follow_fork): Initialize status with
6583 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6584 inner block. Only pass the signal to PTRACE_DETACH if in pass
6585 state.
6586
6587 2014-06-09 Gary Benson <gbenson@redhat.com>
6588
6589 * common/signals.c (gdb_signal_from_host): Reorder to separate
6590 the always-available ANSI-standard signals from the signals that
6591 require checking.
6592 (do_gdb_signal_to_host): Likewise.
6593 * proc-events.c (signal_table): Likewise.
6594
6595 2014-06-08 Hui Zhu <hui@codesourcery.com>
6596
6597 * common/linux-ptrace.c (linux_disable_event_reporting): New
6598 function.
6599 * common/linux-ptrace.h (linux_disable_event_reporting): New
6600 declaration.
6601 * linux-nat.c (linux_child_follow_fork): Do a single step before
6602 detach.
6603
6604 2014-06-07 Keith Seitz <keiths@redhat.com>
6605
6606 Revert:
6607 PR c++/16253
6608 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6609 from symbol_matches_domain in symtab.c. All local callers
6610 of symbol_matches_domain updated.
6611 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6612 search STRUCT_DOMAIN.
6613 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6614 independently. standard_lookup will do that automatically.
6615 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6616 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6617 (cp_lookup_symbol_in_namespace): Likewise.
6618 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6619 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6620 may return a STRUCT_DOMAIN match.
6621 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6622 * cp-support.c: Include language.h.
6623 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6624 VAR_DOMAIN.
6625 * psymtab.c (match_partial_symbol): Compare the requested
6626 domain with the symbol's domain directly.
6627 (lookup_partial_symbol): Likewise.
6628 * symtab.c (lookup_symbol_in_language): Explain when/why
6629 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6630 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6631 appropriate languages.
6632 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6633 and moved to ada-lang.c
6634 (lookup_block_symbol): Explain that this function only returns
6635 symbol matching the requested DOMAIN.
6636 Compare the requested domain with the symbol's domain directly.
6637 (iterate_over_symbols): Compare the requested domain with the
6638 symbol's domain directly.
6639 * symtab.h (symbol_matches_domain): Remove.
6640
6641 2014-06-06 Doug Evans <xdje42@gmail.com>
6642
6643 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6644 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6645 (gdbscm_guile_version_is_at_least): Declare.
6646 (gdbscm_scm_string_to_int): Declare.
6647 * guile/guile.c (gdbscm_guile_major_version): New global.
6648 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6649 (guile_datadir): New static global.
6650 (gdbscm_guile_data_directory): New function.
6651 (initialize_scheme_side): Update.
6652 (misc_guile_functions): Add guile-data-directory.
6653 (initialize_gdb_module): Fetch guile version number.
6654 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6655 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6656 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6657 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6658 comments.
6659 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6660 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6661 * guile/scm-value.c (gdbscm_value_to_string): Only call
6662 scm_port_conversion_strategy if Guile version >= 2.0.6.
6663
6664 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6665
6666 * main.c (print_gdb_help): Add -q and --silent.
6667
6668 2014-06-06 Gary Benson <gbenson@redhat.com>
6669
6670 * common/signals.c: Remove preprocessor conditionals for
6671 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6672 SIGSEGV and SIGTERM.
6673 * proc-events.c: Likewise.
6674
6675 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6676
6677 * symfile.c (symfile_free_objfile): Remove restriction to
6678 OBJF_USERLOADED.
6679 * symfile-mem.c (symbol_file_add_from_memory): Call
6680 add_target_sections_of_objfile.
6681
6682 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6683
6684 * guile/scm-value.c (gdbscm_history_append_x): Use
6685 'vlscm_get_value_smob_arg_unsafe' instead of
6686 'vlscm_scm_to_value'.
6687
6688 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6689
6690 PR mi/15806
6691 * utils.c (printchar): Don't escape at all if quoter is NUL.
6692 Update function documentation to clarify effect of parameter
6693 QUOTER.
6694 * remote.c (escape_buffer): Pass '\\' as the quoter to
6695 fputstrn_unfiltered.
6696 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6697 generate the output.
6698 (mi_solib_unloaded): Same.
6699
6700 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6701
6702 * development.sh: Delete.
6703 * Makefile.in (config.status): Adjust dependency on development.sh.
6704 * configure.ac: Adjust development.sh source call.
6705 * configure: Regenerate.
6706
6707 2014-06-04 Doug Evans <xdje42@gmail.com>
6708
6709 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6710 is_scheme_bkpt, spec.
6711 (bpscm_make_breakpoint_smob): Initialize new members.
6712 (gdbscm_create_breakpoint_x): Split into two ...
6713 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6714 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6715 (scheme_function breakpoint_functions): Update.
6716 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6717 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6718 register-breakpoint!.
6719
6720 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6721
6722 PR server/17023
6723 * mem-break.c (z_type_supported): Return zero if
6724 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6725
6726 2014-06-04 Tom Tromey <tromey@redhat.com>
6727
6728 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6729 value_from_contents_and_address_unresolved.
6730 (ada_template_to_fixed_record_type_1): Likewise.
6731 (ada_which_variant_applies): Likewise.
6732 * value.h (value_from_contents_and_address_unresolved): Declare.
6733 * value.c (value_from_contents_and_address_unresolved): New
6734 function.
6735 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6736 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6737 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6738
6739 2014-06-04 Tom Tromey <tromey@redhat.com>
6740
6741 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6742
6743 2014-06-04 Tom Tromey <tromey@redhat.com>
6744
6745 * procfs.c (procfs_attach): Make "args" const.
6746 * windows-nat.c (windows_attach): Make "args" const.
6747 * nto-procfs.c (procfs_attach): Make "args" const.
6748 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6749 * go32-nat.c (go32_attach): Make "args" const.
6750 * gnu-nat.c (gnu_attach): Make "args" const.
6751 * darwin-nat.c (darwin_attach): Make "args" const.
6752 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6753 * linux-nat.c (linux_nat_attach): Make "args" const.
6754 * remote.c (extended_remote_attach_1, extended_remote_attach):
6755 Make "args" const.
6756 * target.h (struct target_ops) <to_attach>: Make "args" const.
6757 (find_default_attach): Likewise.
6758 * utils.c (parse_pid_to_attach): Make "args" const.
6759 * utils.h (parse_pid_to_attach): Update.
6760
6761 2014-06-04 Tom Tromey <tromey@redhat.com>
6762
6763 * target-delegates.c: Rebuild.
6764 * target.c (default_thread_address_space): New function.
6765 (target_thread_address_space): Simplify.
6766 * target.h (struct target_ops) <to_thread_address_space>: Add
6767 TARGET_DEFAULT_FUNC.
6768
6769 2014-06-04 Doug Evans <xdje42@gmail.com>
6770
6771 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6772
6773 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6774
6775 * record-btrace.c: Include event-loop.h and inf-loop.h.
6776 (record_btrace_resume_exec_dir)
6777 (record_btrace_async_inferior_event_handler)
6778 (record_btrace_handle_async_inferior_event): New.
6779 (record_btrace_open): Create async event handler.
6780 (record_btrace_close): Delete async event handler.
6781 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6782 Mark async event handler.
6783 (record_btrace_execution_direction): New.
6784 (init_record_btrace_ops): Initialize to_execution_direction.
6785
6786 2014-06-03 Doug Evans <xdje42@gmail.com>
6787
6788 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6789 (gdbscm_make_parameter): Ditto.
6790
6791 2014-06-03 Doug Evans <dje@google.com>
6792
6793 * exec.c (exec_close_1): Call clear_section_table instead of
6794 resize_section_table.
6795 (clear_section_table): New function.
6796 (resize_section_table): Make static. Rename arg num_added to
6797 adjustment.
6798 * exec.h (clear_section_table): Declare.
6799 (resize_section_table): Delete.
6800 * progspace.c (release_program_space): Call clear_section_table
6801 instead of resize_section_table.
6802
6803 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6804
6805 * NEWS (Python Scripting): Add entry about the new xmethods
6806 feature.
6807
6808 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6809
6810 * python/py-xmethods.c: New file.
6811 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6812 (objfpy_dealloc): XDECREF on the new xmethods field.
6813 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6814 field.
6815 (objfpy_get_xmethods): New function.
6816 (objfile_getset): New entry 'xmethods'.
6817 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6818 (pspy_dealloc): XDECREF on the new xmethods field.
6819 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6820 field.
6821 (pspy_get_xmethods): New function.
6822 (pspace_getset): New entry 'xmethods'.
6823 * python/python-internal.h: Add declarations for new functions.
6824 * python/python.c (_initialize_python): Invoke
6825 gdbpy_initialize_xmethods.
6826 * python/lib/gdb/__init__.py (xmethods): New
6827 attribute.
6828 * python/lib/gdb/xmethod.py: New file.
6829 * python/lib/gdb/command/xmethods.py: New file.
6830
6831 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6832
6833 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6834 best match method returned by find_overload_match is an xmethod.
6835 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6836 the best matching operator returned by find_overload_match is an
6837 xmethod.
6838 * valops.c: #include "extension.h".
6839 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6840 Return void. The list of matching source methods is returned in
6841 "fn_list" and a vector of matching debug method workers is
6842 returned in "xm_worker_vec". Update all callers.
6843 (value_find_oload_method_list): Likewise.
6844 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6845 non-NULL, then the index of the best matching method in this
6846 vector is returned. Update all callers.
6847 (find_overload_match): Include xmethods while performing overload
6848 resolution.
6849
6850 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6851
6852 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6853 * extension-priv.h (struct extension_language_ops): Add the
6854 xmethod interface.
6855 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6856 get_matching_xmethod_workers, get_xmethod_argtypes,
6857 invoke_xmethod, free_xmethod_worker,
6858 free_xmethod_worker_vec): New functions.
6859 * extension.h: #include "common/vec.h".
6860 New function declarations.
6861 (struct xmethod_worker): New struct.
6862 (VEC (xmethod_worker_ptr)): New vector type.
6863 (xmethod_worker_ptr): New typedef.
6864 (xmethod_worker_vec): Likewise.
6865 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6866 builtin_type.
6867 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6868 (struct builtin_type): New field "xmethod".
6869 * valarith.c (value_ptradd): Assert that the value argument is not
6870 lval_xcallable.
6871 * valops.c (value_must_coerce_to_target): Return 0 for
6872 lval_xcallable values.
6873 * value.c (struct value): New field XM_WORKER in the field
6874 LOCATION.
6875 (value_address, value_raw_address): Return 0 for lval_xcallable
6876 values.
6877 (set_value_address): Assert that the value is not an
6878 lval_xcallable.
6879 (value_free): Free the associated xmethod worker when freeing
6880 lval_xcallable values.
6881 (set_value_component_location): Assert that the WHOLE value is not
6882 lval_xcallable.
6883 (value_of_xmethod, call_xmethod): New functions.
6884 * value.h: Declare "struct xmethod_worker".
6885 Declare new functions value_of_xmethod, call_xmethod.
6886
6887 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6888 Pedro Alves <palves@redhat.com>
6889
6890 PR breakpoints/17000
6891 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6892 New function, extracted from software_breakpoint_inserted_here_p.
6893 (software_breakpoint_inserted_here_p): Replace factored out code
6894 by call to find_non_raw_software_breakpoint_inserted_here.
6895 (bp_target_info_copy_insertion_state): New function.
6896 (bkpt_insert_location): Handle the case of a single-step
6897 breakpoint already inserted at the same address.
6898 (bkpt_remove_location): Handle the case of a single-step
6899 breakpoint still inserted at the same address.
6900 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6901 breakpoint already inserted at the same address.
6902 (deprecated_remove_raw_breakpoint): Handle the case of a
6903 non-raw breakpoint still inserted at the same address.
6904 (find_single_step_breakpoint): New function, extracted from
6905 single_step_breakpoint_inserted_here_p.
6906 (find_single_step_breakpoint): New function,
6907 factored out from single_step_breakpoint_inserted_here_p.
6908 (single_step_breakpoint_inserted_here_p): Reimplement.
6909
6910 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6911
6912 Pushed by Joel Brobecker <brobecker@adacore.com>
6913 * source.c (show_substitute_path_command): Fix display of matching
6914 substitution rules.
6915
6916 2014-06-03 Gary Benson <gbenson@redhat.com>
6917
6918 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6919
6920 2014-06-02 Doug Evans <xdje42@gmail.com>
6921
6922 Add parameter support for Guile.
6923 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6924 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6925 (scm-param.o): New rule.
6926 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6927 (gdbscm_misc_error): Declare.
6928 (gdbscm_canonicalize_command_name): Declare.
6929 (gdbscm_scm_to_host_string): Declare.
6930 (gdbscm_scm_from_host_string): Declare.
6931 (gdbscm_initialize_parameters): Declare.
6932 * guile/guile.c (initialize_gdb_module): Call
6933 gdbscm_initialize_parameters.
6934 * guile/lib/gdb.scm: Export parameter symbols.
6935 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6936 cmdscm_canonicalize_name and made public. All callers updated.
6937 * guile/scm-exception.c (gdbscm_misc_error): New function.
6938 * guile/scm-param.c: New file.
6939 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6940 (gdbscm_scm_to_host_string): New function.
6941 (gdbscm_scm_from_host_string): New function.
6942 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6943
6944 2014-06-02 Doug Evans <xdje42@gmail.com>
6945
6946 Add command support for Guile.
6947 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6948 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6949 (scm-cmd.o): New rule.
6950 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6951 (gdbscm_user_error_p): Declare.
6952 (gdbscm_parse_command_name): Declare.
6953 (gdbscm_valid_command_class_p): Declare.
6954 (gdbscm_initialize_commands): Declare.
6955 * guile/guile.c (initialize_gdb_module): Call
6956 gdbscm_initialize_commands.
6957 * guile/lib/gdb.scm: Export command symbols.
6958 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6959 (throw-user-error): New function.
6960 * guile/scm-cmd.c: New file.
6961 * guile/scm-exception.c (user_error_symbol): New static global.
6962 (gdbscm_user_error_p): New function.
6963 (gdbscm_initialize_exceptions): Set user_error_symbol.
6964 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6965
6966 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6967
6968 * top.c (command_loop): Handle comments here...
6969 (command_line_input): ... not here.
6970
6971 2014-06-02 Doug Evans <xdje42@gmail.com>
6972
6973 Add progspace support for Guile.
6974 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6975 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6976 (scm-progspace.o): New rule.
6977 * guile/guile-internal.h (pspace_smob): New typedef.
6978 (psscm_pspace_smob_pretty_printers): Declare.
6979 (psscm_pspace_smob_from_pspace): Declare.
6980 (psscm_scm_from_pspace): Declare.
6981 * guile/guile.c (initialize_gdb_module): Call
6982 gdbscm_initialize_pspaces.
6983 * guile/lib/gdb.scm: Export progspace symbols.
6984 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6985 support.
6986 (append-pretty-printer!): Ditto.
6987 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6988 Implement.
6989 * guile/scm-progspace.c: New file.
6990
6991 2014-06-03 Alan Modra <amodra@gmail.com>
6992
6993 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6994 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6995
6996 2014-06-02 Doug Evans <dje@google.com>
6997
6998 Add support for skeletonless type units.
6999 * dwarf2read.c (struct dwarf2_per_objfile): New member
7000 n_allocated_type_units.
7001 (struct dwarf2_per_objfile) <tu_stats>: New member
7002 nr_all_type_units_reallocs.
7003 (create_signatured_type_table_from_index): Initialize
7004 n_allocated_type_units
7005 (create_all_type_units): Ditto.
7006 (add_type_unit): Move up in file. New arg slot.
7007 All callers updated. Increase space for all_type_units more
7008 efficiently.
7009 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7010 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7011 (lookup_dwp_signatured_type): Ditto.
7012 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7013 All callers updated.
7014 (build_type_psymtabs_1): Leave type_unit_groups as
7015 NULL if no TUs present.
7016 (print_tu_stats): New function.
7017 (process_skeletonless_type_unit): New function.
7018 (process_dwo_file_for_skeletonless_type_units): New
7019 function.
7020 (process_skeletonless_type_units): New function.
7021 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7022 Call print tu_stats if debugging enabled.
7023
7024 2014-06-02 Pedro Alves <palves@redhat.com>
7025
7026 * breakpoint.c (build_target_command_list): Don't build a command
7027 list if we have any duplicate location that isn't a dprintf.
7028
7029 2014-06-02 Pedro Alves <palves@redhat.com>
7030
7031 * breakpoint.c (dprintf_breakpoint_hit): New function.
7032 (initialize_breakpoint_ops): Install it as dprintf's
7033 breakpoint_hit method.
7034
7035 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7036
7037 * source.c (substitute_path_rule_matches): Simplify using
7038 filename_ncmp instead of FILENAME_CMP.
7039
7040 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7041
7042 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7043
7044 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7045
7046 * configure.ac: When Guile is available, check for the
7047 availability of 'scm_new_smob'.
7048 * configure, config.h.in: Regenerate.
7049 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7050 function.
7051
7052 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7053
7054 * frame.c (struct frame_info): Add stop_string field.
7055 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7056 (get_prev_frame_always): Old content moved into
7057 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7058 TRY_CATCH, handle MEMORY_ERROR exceptions.
7059 (frame_stop_reason_string): New function definition.
7060 * frame.h (unwind_stop_reason_to_string): Extend comment to
7061 mention frame_stop_reason_string.
7062 (frame_stop_reason_string): New function declaration.
7063 * stack.c (frame_info): Switch to frame_stop_reason_string.
7064 (backtrace_command_1): Switch to frame_stop_reason_string.
7065 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7066 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7067 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7068
7069 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7070
7071 * frame.c (frame_stop_reason_string): Rename to ...
7072 (unwind_stop_reason_to_string): this.
7073 * frame.h (frame_stop_reason_string): Rename to ...
7074 (unwind_stop_reason_to_string): this.
7075 * stack.c (frame_info): Update call to frame_stop_reason_string.
7076 (backtrace_command_1): Likewise.
7077 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7078 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7079
7080 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7081
7082 * frame.c (remove_prev_frame): New function.
7083 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7084 remove_prev_frame.
7085
7086 2014-05-29 Pedro Alves <palves@redhat.com>
7087
7088 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7089 and make it const. When a single-step decays to a continue,
7090 clear 'step', not 'hw_step'. Pass whether the caller wanted
7091 to step to user_visible_resume_ptid, not what we ask the
7092 target to do.
7093
7094 2014-05-29 Pedro Alves <palves@redhat.com>
7095
7096 * infrun.c (process_event_stop_test, handle_step_into_function)
7097 (handle_step_into_function_backward): Adjust.
7098 Don't set the even thread's stop_step and call stop_waiting before
7099 calling end_stepping_range. Instead do that ...
7100 (end_stepping_range): ... here. Take an ecs pointer parameter.
7101
7102 2014-05-29 Pedro Alves <palves@redhat.com>
7103
7104 * infrun.c (stop_stepping): Rename to ...
7105 (stop_waiting): ... this.
7106 (proceed): Update comment.
7107 (process_event_stop_test, handle_inferior_event)
7108 (handle_signal_stop, handle_step_into_function)
7109 (handle_step_into_function_backward): Update.
7110
7111 2014-05-29 Pedro Alves <palves@redhat.com>
7112
7113 * infcall.c (run_inferior_call): Don't check whether the current
7114 thread is running after the proceed call.
7115
7116 2014-05-29 Pedro Alves <palves@redhat.com>
7117 Tom Tromey <tromey@redhat.com>
7118
7119 * NEWS: Mention "maint set target-async", "set mi-async", and that
7120 background execution commands are now always available.
7121 * target.h (target_async_permitted): Update comment.
7122 * target.c (target_async_permitted, target_async_permitted_1):
7123 Default to 1.
7124 (set_target_async_command): Rename to ...
7125 (maint_set_target_async_command): ... this.
7126 (show_target_async_command): Rename to ...
7127 (maint_show_target_async_command): ... this.
7128 (_initialize_target): Adjust.
7129 * infcmd.c (prepare_execution_command): Make extern.
7130 * inferior.h (prepare_execution_command): Declare.
7131 * infrun.c (set_observer_mode): Leave target async alone.
7132 * mi/mi-interp.c (mi_interpreter_init): Install
7133 mi_on_sync_execution_done as sync_execution_done observer.
7134 (mi_on_sync_execution_done): New function.
7135 (mi_execute_command_input_handler): Don't print the prompt if we
7136 just started a synchronous command with an async target.
7137 (mi_on_resume): Check sync_execution before printing prompt.
7138 * mi/mi-main.h (mi_async_p): Declare.
7139 * mi/mi-main.c: Include gdbcmd.h.
7140 (mi_async_p): New function.
7141 (mi_async, mi_async_1): New globals.
7142 (set_mi_async_command, show_mi_async_command, mi_async): New
7143 functions.
7144 (exec_continue): Call prepare_execution_command.
7145 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7146 (mi_execute_async_cli_command): Use mi_async_p.
7147 (_initialize_mi_main): Install "set mi-async". Make
7148 "target-async" a deprecated alias.
7149
7150 2014-05-29 Pedro Alves <palves@redhat.com>
7151
7152 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7153 (_initialize_cli_interp): Adjust.
7154 * event-loop.c: Include "observer.h".
7155 (start_event_loop): Notify 'command_error' observers instead of
7156 calling display_gdb_prompt. Remove FIXME comment.
7157 * event-top.c (display_gdb_prompt): Remove call into the
7158 interpreters.
7159 * inf-loop.c: Include "observer.h".
7160 (inferior_event_handler): Notify 'command_error' observers instead
7161 of calling display_gdb_prompt.
7162 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7163 observers instead of calling display_gdb_prompt.
7164 * interps.c (interp_set): Don't call display_gdb_prompt.
7165 (current_interp_display_prompt_p): Delete.
7166 * interps.h (interp_prompt_p): Delete declaration.
7167 (interp_prompt_p_ftype): Delete.
7168 (struct interp_procs) <prompt_proc_p>: Delete field.
7169 (current_interp_display_prompt_p): Delete declaration.
7170 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7171 (_initialize_mi_interp): Adjust.
7172 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7173 'command_error' observers.
7174 (tui_on_sync_execution_done, tui_on_command_error): New
7175 functions.
7176 (tui_display_prompt_p): Delete.
7177 (_initialize_tui_interp): Adjust.
7178
7179 2014-05-29 Pedro Alves <palves@redhat.com>
7180
7181 PR gdb/13860
7182 * cli/cli-interp.c: Include infrun.h and observer.h.
7183 (cli_uiout, cli_interp): New globals.
7184 (cli_on_signal_received, cli_on_end_stepping_range)
7185 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7186 functions.
7187 (cli_interpreter_init): Install them as 'end_stepping_range',
7188 'signal_received' 'signal_exited', 'exited' and 'no_history'
7189 observers.
7190 (_initialize_cli_interp): Remove cli_interp local.
7191 * infrun.c (handle_inferior_event): Call the several stop reason
7192 observers instead of printing the stop reason directly.
7193 (end_stepping_range): New function.
7194 (print_end_stepping_range_reason, print_signal_exited_reason)
7195 (print_exited_reason, print_signal_received_reason)
7196 (print_no_history_reason): Make static, and add an uiout
7197 parameter. Print to that instead of to CURRENT_UIOUT.
7198 * infrun.h (print_end_stepping_range_reason)
7199 (print_signal_exited_reason, print_exited_reason)
7200 (print_signal_received_reason print_no_history_reason): New
7201 declarations.
7202 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7203 'mi_uiout'.
7204 <cli_uiout>: New field.
7205 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7206 uiout for CLI output. Install 'signal_received',
7207 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7208 observers.
7209 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7210 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7211 (mi_on_no_history): New functions.
7212 (ui_out_free_cleanup): Delete function.
7213 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7214 instead use the one already stored in the MI interpreter data.
7215 (mi_ui_out): Adjust.
7216 * tui/tui-interp.c: Include infrun.h and observer.h.
7217 (tui_interp): New global.
7218 (tui_on_signal_received, tui_on_end_stepping_range)
7219 (tui_on_signal_exited, tui_on_exited)
7220 (tui_on_no_history): New functions.
7221 (tui_init): Install them as 'end_stepping_range',
7222 'signal_received' 'signal_exited', 'exited' and 'no_history'
7223 observers.
7224 (_initialize_tui_interp): Delete tui_interp local.
7225
7226 2014-05-29 Pedro Alves <palves@redhat.com>
7227
7228 PR gdb/15713
7229 * linux-nat.c (linux_nat_resume_callback): Rename the second
7230 parameter to 'except'. Skip LP if it points to EXCEPT.
7231 (linux_nat_resume): Don't mark the event lwp as not stopped
7232 before resuming sibling lwps. Instead ask
7233 linux_nat_resume_callback to skip the event lwp. Mark it as not
7234 stopped after actually resuming it.
7235 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7236 resuming it.
7237 (wait_lwp): Mark the lwp as stopped here.
7238 (stop_wait_callback): Mark the lwp as not stopped right after
7239 resuming it. Don't mark lwps as stopped here.
7240 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7241 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7242
7243 2014-05-29 Pedro Alves <palves@redhat.com>
7244
7245 PR PR15693
7246 * infrun.c (resume): Determine how much to resume depending on
7247 whether the caller wanted a step, not whether we can hardware step
7248 the target. Mark all threads that we intend to run as running,
7249 unless we're calling an inferior function.
7250 (normal_stop): If the thread is running an infcall, don't finish
7251 thread state.
7252 * target.c (target_resume): Don't mark threads as running here.
7253
7254 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7255
7256 * serial.c (_initialize_serial): Remove support for
7257 the "set remotebaud" and "show remotebaud" commands.
7258 * NEWS: Add entry documenting the removal of that command.
7259
7260 2014-05-28 Yao Qi <yao@codesourcery.com>
7261
7262 * charset.c: Fix typo in comments.
7263
7264 2014-05-27 Gary Benson <gbenson@redhat.com>
7265
7266 * utils.c (internal_vproblem): Prompt for a bug report.
7267
7268 2014-05-26 Andy Wingo <wingo@igalia.com>
7269
7270 * guile/scm-arch.c (arscm_mark_arch_smob):
7271 * guile/scm-block.c (bkscm_mark_block_smob)
7272 (bkscm_mark_block_syms_progress_smob):
7273 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7274 * guile/scm-exception.c (exscm_mark_exception_smob):
7275 * guile/scm-frame.c (frscm_mark_frame_smob):
7276 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7277 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7278 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7279 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7280 (ppscm_mark_pretty_printer_worker_smob):
7281 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7282 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7283 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7284 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7285 mark functions.
7286 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7287 function.
7288
7289 2014-05-26 Andy Wingo <wingo@igalia.com>
7290 Doug Evans <xdje42@gmail.com>
7291
7292 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7293 empty_base_class. All uses updated.
7294 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7295 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7296 Adapt all callers.
7297 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7298 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7299 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7300 (gdbscm_gsmob_has_property_p, add_property_name)
7301 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7302 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7303 (gdb-object-has-property?, gdb-object-properties): Remove.
7304 (gdb-object-kind): Renamed from gsmob-kind.
7305
7306 2014-05-26 Andy Wingo <wingo@igalia.com>
7307
7308 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7309 * configure: Regenerate.
7310
7311 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7312
7313 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7314
7315 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7316
7317 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7318 (replay_memory_access_read_only, replay_memory_access_read_write)
7319 (replay_memory_access_types, replay_memory_access)
7320 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7321 (cmd_set_record_btrace, cmd_show_record_btrace)
7322 (cmd_show_replay_memory_access): New.
7323 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7324 (record_btrace_remove_breakpoint): Replace
7325 record_btrace_allow_memory_access with replay_memory_access.
7326 (_initialize_record_btrace): Add commands.
7327 * NEWS: Announce it.
7328
7329 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7330
7331 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7332
7333 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7334
7335 * MAINTAINERS (Write After Approval): Move self back from
7336 paper trail.
7337
7338 2014-05-22 Pedro Alves <palves@redhat.com>
7339
7340 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7341 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7342 (disable_randomization, enum exec_direction_kind)
7343 (execution_direction, stop_registers, start_remote)
7344 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7345 (wait_for_inferior, normal_stop, get_last_target_status)
7346 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7347 (insert_step_resume_breakpoint_at_sal)
7348 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7349 (set_step_info, print_stop_event, signal_stop_state)
7350 (signal_print_state, signal_pass_state, signal_stop_update)
7351 (signal_print_update, signal_pass_update)
7352 (update_signals_program_target, clear_exit_convenience_vars)
7353 (displaced_step_dump_bytes, update_observer_mode)
7354 (signal_catch_update, gdb_signal_from_command): Move
7355 declarations ...
7356 * infrun.h: ... to this new file.
7357 * amd64-tdep.c: Include infrun.h.
7358 * annotate.c: Include infrun.h.
7359 * arch-utils.c: Include infrun.h.
7360 * arm-linux-tdep.c: Include infrun.h.
7361 * arm-tdep.c: Include infrun.h.
7362 * break-catch-sig.c: Include infrun.h.
7363 * breakpoint.c: Include infrun.h.
7364 * common/agent.c: Include infrun.h instead of inferior.h.
7365 * corelow.c: Include infrun.h.
7366 * event-top.c: Include infrun.h.
7367 * go32-nat.c: Include infrun.h.
7368 * i386-tdep.c: Include infrun.h.
7369 * inf-loop.c: Include infrun.h.
7370 * infcall.c: Include infrun.h.
7371 * infcmd.c: Include infrun.h.
7372 * infrun.c: Include infrun.h.
7373 * linux-fork.c: Include infrun.h.
7374 * linux-nat.c: Include infrun.h.
7375 * linux-thread-db.c: Include infrun.h.
7376 * monitor.c: Include infrun.h.
7377 * nto-tdep.c: Include infrun.h.
7378 * procfs.c: Include infrun.h.
7379 * record-btrace.c: Include infrun.h.
7380 * record-full.c: Include infrun.h.
7381 * remote-m32r-sdi.c: Include infrun.h.
7382 * remote-mips.c: Include infrun.h.
7383 * remote-notif.c: Include infrun.h.
7384 * remote-sim.c: Include infrun.h.
7385 * remote.c: Include infrun.h.
7386 * reverse.c: Include infrun.h.
7387 * rs6000-tdep.c: Include infrun.h.
7388 * s390-linux-tdep.c: Include infrun.h.
7389 * solib-irix.c: Include infrun.h.
7390 * solib-osf.c: Include infrun.h.
7391 * solib-svr4.c: Include infrun.h.
7392 * target.c: Include infrun.h.
7393 * top.c: Include infrun.h.
7394 * windows-nat.c: Include infrun.h.
7395 * mi/mi-interp.c: Include infrun.h.
7396 * mi/mi-main.c: Include infrun.h.
7397 * python/py-threadevent.c: Include infrun.h.
7398
7399 2014-05-22 Pedro Alves <palves@redhat.com>
7400
7401 * infrun.c (handle_inferior_event): Store the exit code for
7402 --return-child-result here, instead of ...
7403 (print_exited_reason): ... here.
7404
7405 2014-05-21 Pedro Alves <palves@redhat.com>
7406
7407 PR gdb/13860
7408 * gdbthread.h (struct thread_control_state): New field
7409 `command_interp'.
7410 * infrun.c (follow_fork): Copy the new thread control field to the
7411 child fork thread.
7412 (clear_proceed_status_thread): Clear the new thread control field.
7413 (proceed): Set the new thread control field.
7414 * interps.h (command_interp): Declare.
7415 * interps.c (command_interpreter): New global.
7416 (command_interp): New function.
7417 (interp_exec): Set `command_interpreter' while here.
7418 * cli-out.c (cli_uiout_dtor): New function.
7419 (cli_ui_out_impl): Install it.
7420 * mi/mi-interp.c: Include cli-out.h.
7421 (mi_cmd_interpreter_exec): Add comment.
7422 (restore_current_uiout_cleanup): New function.
7423 (ui_out_free_cleanup): New function.
7424 (mi_on_normal_stop): If finishing an execution command started by
7425 a CLI command, or any kind of breakpoint-like event triggered,
7426 print the stop event to the output (CLI) stream.
7427 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7428
7429 2014-05-21 Pedro Alves <palves@redhat.com>
7430
7431 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7432 current source line having changed.
7433 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7434 * infrun.c (normal_stop): Adjust call to
7435 set_current_sal_from_frame.
7436 * source.c (clear_lines_listed_range): New function.
7437 (set_current_source_symtab_and_line, identify_source_line): Clear
7438 the lines listed range.
7439 (line_info): Handle the first "info line" after the current source
7440 line having changed.
7441 * stack.c (print_stack_frame): Remove center handling.
7442 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7443 center sal.line.
7444
7445 2014-05-21 Pedro Alves <palves@redhat.com>
7446
7447 * inf-child.c (inf_child_mourn_inferior): New function.
7448 * inf-child.h (inf_child_mourn_inferior): New declaration.
7449 * darwin-nat.c (darwin_mourn_inferior): Use
7450 inf_child_mourn_inferior.
7451 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7452 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7453 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7454 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7455 * windows-nat.c (windows_mourn_inferior): Likewise.
7456
7457 2014-05-21 Doug Evans <xdje42@gmail.com>
7458
7459 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7460
7461 2014-05-21 Doug Evans <xdje42@gmail.com>
7462
7463 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7464 (gdbscm_out_of_range_error): Ditto.
7465 (gdbscm_memory_error): Ditto.
7466 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7467 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7468 (gdbscm_out_of_range_error): Update.
7469 (gdbscm_memory_error): Update.
7470 (gdbscm_scm_to_target_string_unsafe): Delete.
7471
7472 2014-05-21 Pedro Alves <palves@redhat.com>
7473
7474 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7475 globals.
7476 (inf_child_open_target): New function.
7477 (inf_child_open): Use inf_child_open_target to push the target
7478 instead of erroring out.
7479 (inf_child_disconnect, inf_child_close)
7480 (inf_child_maybe_unpush_target): New functions.
7481 (inf_child_target): Install inf_child_disconnect and
7482 inf_child_close. Store a pointer to the returned object.
7483 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7484 declarations.
7485 * target.c (auto_connect_native_target): New global.
7486 (show_default_run_target): New function.
7487 (find_default_run_target): Return NULL if automatically connecting
7488 to the native target is disabled.
7489 (_initialize_target): Install set/show auto-connect-native-target.
7490 * NEWS: Mention "set auto-connect-native-target", and "target
7491 native".
7492 * linux-nat.c (super_close): New global.
7493 (linux_nat_close): Call super_close.
7494 (linux_nat_add_target): Store a pointer to the base class's
7495 to_close method.
7496 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7497 inf_child_maybe_unpush.
7498 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7499 already pushed.
7500 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7501 the inferior. Use inf_child_maybe_unpush_target.
7502 (inf_ttrace_attach): Don't push the target if it is already
7503 pushed.
7504 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7505 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7506 after mourning the inferior. Use inf_child_maybe_unpush_target.
7507 (darwin_attach_pid): Don't push the target if it is already
7508 pushed.
7509 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7510 mourning the inferior. Use inf_child_maybe_unpush_target.
7511 (gnu_detach): Use inf_child_maybe_unpush_target.
7512 * go32-nat.c (go32_create_inferior): Don't push the target if it
7513 is already pushed.
7514 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7515 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7516 (procfs_open): Rename to ...
7517 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7518 comments. Can target_preopen before changing node. Call
7519 inf_child_open_target to push the target explicitly.
7520 (procfs_attach): Don't push the target if it is already pushed.
7521 (procfs_detach): Use inf_child_maybe_unpush_target.
7522 (procfs_create_inferior): Don't push the target if it is already
7523 pushed.
7524 (nto_native_ops): New global.
7525 (procfs_open): Reimplement.
7526 (procfs_native_open): New function.
7527 (init_procfs_targets): Install procfs_native_open as to_open of
7528 "target native". Store a pointer to the "native" target in
7529 nto_native_ops.
7530 * procfs.c (procfs_attach): Don't push the target if it is already
7531 pushed.
7532 (procfs_detach): Use inf_child_maybe_unpush_target.
7533 (procfs_mourn_inferior): Only unpush the target after mourning the
7534 inferior. Use inf_child_maybe_unpush_target.
7535 (procfs_init_inferior): Don't push the target if it is already
7536 pushed.
7537 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7538 if it is already pushed.
7539
7540 2014-05-21 Pedro Alves <palves@redhat.com>
7541
7542 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7543 and "procfs" targets are now called "native" instead.
7544
7545 2014-05-21 Pedro Alves <palves@redhat.com>
7546
7547 * go32-nat.c (go32_open): Delete.
7548 (go32_target): Don't override the to_open method.
7549
7550 2014-05-21 Pedro Alves <palves@redhat.com>
7551
7552 * nto-procfs.c (procfs_can_run): New function.
7553 (nto_procfs_ops): New global.
7554 (init_procfs_targets): New, based on procfs_target. Install
7555 "target native" in addition to "target procfs".
7556 (_initialize_procfs): Call init_procfs_targets instead of adding
7557 the target here.
7558
7559 2014-05-21 Pedro Alves <palves@redhat.com>
7560
7561 * windows-nat.c (windows_target): Don't override to_shortname,
7562 to_longname or to_doc.
7563
7564 2014-05-21 Pedro Alves <palves@redhat.com>
7565
7566 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7567 to_doc.
7568
7569 2014-05-21 Pedro Alves <palves@redhat.com>
7570
7571 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7572 to_shortname, to_longname or to_doc.
7573
7574 2014-05-21 Pedro Alves <palves@redhat.com>
7575
7576 * go32-nat.c (go32_target): Don't override to_shortname,
7577 to_longname or to_doc.
7578
7579 2014-05-21 Pedro Alves <palves@redhat.com>
7580
7581 * inf-child.c (inf_child_open): Remove mention of "child".
7582 (inf_child_target): Rename target to "native" instead of "child".
7583
7584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7585
7586 * Makefile.in (SFILES): Delete "regset.c".
7587 (COMMON_OBS): Delete "regset.o".
7588 * regset.c: Remove.
7589 * regset.h (regset_alloc): Delete prototype.
7590
7591 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7592
7593 * sparc-linux-tdep.c (sparc32_linux_gregset)
7594 (sparc32_linux_fpregset): New static regset structures.
7595 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7596 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7597 'fpregset' fields.
7598 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7599 (sparc64_linux_fpregset): New static regset structures.
7600 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7601 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7602 New static regset structures.
7603 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7604 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7605 New static regset structures.
7606 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7607 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7608 New static regset structures.
7609 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7610 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7611 New static regset structures.
7612 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7613
7614 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7615
7616 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7617 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7618 register maps ("regmaps") from "*regset" to "*regmap". Do this
7619 for all regmap types and variables.
7620 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7621 (sparc32_linux_supply_core_gregset)
7622 (sparc32_linux_collect_core_gregset)
7623 (sparc32_linux_supply_core_fpregset)
7624 (sparc32_linux_collect_core_fpregset): Likewise.
7625 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7626 (sparc_gregmap, sparc_fpregmap): ... these.
7627 (sparc_supply_gregset, sparc_collect_gregset)
7628 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7629 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7630 (_initialize_sparc_nat): Rename regmaps.
7631 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7632 (sparc_gregmap, sparc_fpregmap): ... these.
7633 (sparc_supply_gregset, sparc_collect_gregset)
7634 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7635 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7636 Rename macros to...
7637 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7638 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7639 Likewise.
7640 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7641 Rename to...
7642 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7643 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7644 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7645 regmaps.
7646 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7647 (sparc32_bsd_fpregset): Rename to...
7648 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7649 (sparc32_bsd_fpregmap): ... these.
7650 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7651 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7652 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7653 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7654 (struct sparc_gregmap, struct sparc_fpregmap)
7655 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7656 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7657 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7658 (sparc32_supply_regset, sparc32_collect_gregset)
7659 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7660 prototypes.
7661 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7662 (sparc64_linux_ptrace_gregmap): ... this.
7663 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7664 (_initialize_sparc64_linux_nat): Rename regmaps.
7665 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7666 (sparc64_linux_core_gregmap): ... this.
7667 (sparc64_linux_supply_core_gregset)
7668 (sparc64_linux_collect_core_gregset)
7669 (sparc64_linux_supply_core_fpregset)
7670 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7671 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7672 (sparc64_sol2_fpregset): Rename to...
7673 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7674 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7675 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7676 regmaps.
7677 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7678 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7679 (sparc64_bsd_fpregset): Rename to...
7680 (struct sparc_gregmap, sparc64_sol2_gregmap)
7681 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7682 (sparc64_bsd_fpregmap): ... these.
7683 (sparc64_supply_gregset, sparc64_collect_gregset)
7684 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7685 prototypes.
7686 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7687 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7688 (sparc64fbsd_gregmap): ... this.
7689 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7690 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7691 Rename regmaps.
7692 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7693 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7694 (sparc64nbsd_collect_fpregset): Likewise.
7695 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7696 (sparc64nbsd_gregmap): ... this.
7697 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7698 regmaps.
7699 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7700 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7701 (sparc64obsd_gregmap): ... this.
7702 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7703 regmaps.
7704 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7705 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7706 (sparc32nbsd_gregmap): ... this.
7707 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7708 regmaps.
7709
7710 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7711
7712 * score-tdep.c (score7_linux_gregset): New static regset
7713 structure.
7714 (score7_linux_regset_from_core_section): Remove dynamic regset
7715 allocation.
7716 (score_gdbarch_init): Drop allocation of tdep structure.
7717 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7718
7719 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7720
7721 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7722 regset structures.
7723 (am33_regset_from_core_section): Remove dynamic regset
7724 allocations.
7725
7726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7727
7728 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7729 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7730 structures.
7731 (mips_linux_regset_from_core_section): Remove dynamic regset
7732 allocations.
7733 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7734 'gregset64', 'fpregset', and 'fpregset64'.
7735 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7736 deleted tdep fields.
7737
7738 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7739
7740 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7741 regset structures.
7742 (amd64_regset_from_core_section): Remove dynamic regset
7743 allocations.
7744 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7745 structure.
7746 (amd64obsd_regset_from_core_section): Remove dynamic regset
7747 allocation.
7748 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7749 Likewise.
7750 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7751 x86-common regset supply function.
7752 * i386-tdep.c (i386_collect_gregset): Make static.
7753 (i386_gregset): New global regset structure.
7754 (i386_fpregset, i386_xstateregset): New static regset structures.
7755 (i386_regset_from_core_section): Remove dynamic regset
7756 allocations.
7757 (i386_gdbarch_init): Remove initialization of tdep fields
7758 'gregset', 'fpregset', and 'xstateregset'.
7759 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7760 'fpregset', and 'xstateregset'.
7761 (i386_collect_gregset): Remove prototype.
7762 (i386_gregset): New declaration.
7763 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7764 structure.
7765 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7766 allocation.
7767
7768 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7769
7770 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7771 (arm_linux_vfpregset): New static regset structures.
7772 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7773 regset structures.
7774 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7775 and 'vfpregset' fields.
7776
7777 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7778
7779 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7780 (aarch64_linux_fpregset): New static regset structures.
7781 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7782 of regset structures.
7783 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7784 'fpregset' fields.
7785
7786 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7787
7788 * regset.h (struct regset): Remove gdbarch field.
7789 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7790 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7791 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7792 Likewise.
7793 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7794 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7795 (ppc32_linux_vsxregset): Likewise.
7796 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7797 via the regcache instead of the regset.
7798 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7799 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7800 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7801 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7802 Likewise.
7803
7804 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7805
7806 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7807 Constify structures.
7808 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7809 (alphanbsd_aout_gregset): Likewise.
7810 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7811 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7812 Likewise.
7813 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7814 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7815 Likewise.
7816 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7817 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7818 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7819 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7820 * m88k-tdep.c (m88k_gregset): Likewise.
7821 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7822 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7823 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7824 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7825 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7826 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7827 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7828 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7829 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7830 Likewise.
7831 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7832 * sh-tdep.h (sh_corefile_gregset): Likewise.
7833 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7834 * vax-tdep.c (vax_gregset): Likewise.
7835
7836 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7837
7838 Fix TLS access for -static -pthread.
7839 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7840 (try_thread_db_load_1): Initialize it.
7841 (thread_db_get_thread_local_address): Call it if LM is zero.
7842 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7843 * target.h (struct target_ops) (to_get_thread_local_address): Add
7844 load_module_addr comment.
7845
7846 2014-05-21 Pedro Alves <palves@redhat.com>
7847
7848 * dcache.c (dcache_read_memory_partial): If reading the cache line
7849 fails, fallback to reading just the memory the caller wanted.
7850
7851 2014-05-20 Doug Evans <dje@google.com>
7852
7853 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7854 instead of get_current_arch.
7855
7856 2014-05-20 Pedro Alves <palves@redhat.com>
7857
7858 * NEWS: Mention that compare-sections now works with all targets.
7859
7860 * remote.c (PACKET_qCRC): New enum value.
7861 (remote_verify_memory): Don't send qCRC if the target has no
7862 execution. Use packet_support/packet_ok. If the target doesn't
7863 support the qCRC packet, fallback to a deep memory copy.
7864 (compare_sections_command): Say "target image" instead of "remote
7865 executable".
7866 (_initialize_remote): Add PACKET_qCRC to the list of config
7867 packets that have no associated command. Extend comment.
7868 * target.c (simple_verify_memory, default_verify_memory): New
7869 function.
7870 * target.h (struct target_ops) <to_verify_memory>: Default to
7871 default_verify_memory.
7872 (simple_verify_memory): New declaration.
7873 * target-delegates.c: Regenerate.
7874
7875 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7876
7877 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7878
7879 2014-05-20 Hui Zhu <hui@codesourcery.com>
7880 Yao Qi <yao@codesourcery.com>
7881
7882 PR backtrace/16558
7883 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7884 and change address of sp and pc.
7885
7886 2014-05-19 Tom Tromey <tromey@redhat.com>
7887
7888 * gdbtypes.c (rank_function): Use XNEWVEC.
7889 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7890
7891 2014-05-19 Doug Evans <dje@google.com>
7892
7893 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7894 build_type_unit_groups and moved closer to only caller. Remove
7895 arguments. All references updated. Remove outdated .gdb_index
7896 comment.
7897 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7898 build_type_psymtabs_1.
7899
7900 2014-05-19 Doug Evans <dje@google.com>
7901
7902 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7903 n_type_unit_groups, all_type_unit_groups. All uses removed.
7904 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7905 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7906 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7907 (add_type_unit_group_to_table): Delete.
7908
7909 2014-05-19 Doug Evans <dje@google.com>
7910
7911 * eval.c (evaluate_subexp_standard): Add some comments.
7912
7913 2014-05-17 Doug Evans <xdje42@gmail.com>
7914
7915 * progspace.c (remove_program_space): Delete, unused.
7916 * progspace.h (remove_program_space): Ditto.
7917
7918 2014-05-17 Doug Evans <xdje42@gmail.com>
7919
7920 * inferior.c (prune_inferiors): Fix comment.
7921 (remove_inferior_command): Call prune_program_spaces.
7922
7923 2014-05-16 Doug Evans <dje@google.com>
7924
7925 New command line option -D.
7926 * NEWS: Mention it.
7927 * main.c (set_gdb_data_directory): New function.
7928 (captured_main): Recognize -D. Flag error for --data-directory "".
7929 Call set_gdb_data_directory.
7930 (print_gdb_help): Print --data-directory, -D.
7931 * main.h (set_gdb_data_directory): Declare.
7932 * top.c (staged_gdb_datadir): New static global.
7933 (set_gdb_datadir): Call set_gdb_data_directory
7934 (show_gdb_datadir): New function.
7935 (init_main): Update init of data-directory parameter.
7936
7937 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7938
7939 Import the "dirfd" gnulib module.
7940 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7941 * gnulib/aclocal.m4: Update.
7942 * gnulib/config.in: Update.
7943 * gnulib/configure: Update.
7944 * gnulib/import/Makefile.am: Update.
7945 * gnulib/import/Makefile.in: Update.
7946 * gnulib/import/dirfd.c: New.
7947 * gnulib/import/m4/dirfd.m4: New.
7948 * gnulib/import/m4/gnulib-cache.m4: Update.
7949 * gnulib/import/m4/gnulib-comp.m4: Update.
7950
7951 2014-05-16 Pierre Muller <muller@sourceware.org>
7952 Yao Qi <yao@codesourcery.com>
7953
7954 * valprint.c (print_wchar): Move the code on checking whether
7955 W is a printable wide char to the default branch of switch
7956 statement below. Call wchar_printable instead of gdb_iswprint.
7957
7958 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7959
7960 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7961 ldr.w and ldrd instructions.
7962
7963 2014-05-15 Doug Evans <dje@google.com>
7964
7965 * dwarf2read.c (read_structure_type): Delete outdated comments.
7966
7967 2014-05-14 Tom Tromey <tromey@redhat.com>
7968
7969 * macrocmd.c (print_macro_definition): Reindent.
7970
7971 2014-05-13 Doug Evans <xdje42@gmail.com>
7972
7973 * python/py-cmd.c (cmdpy_completer): Add comment.
7974 (completers): Make const.
7975
7976 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7977
7978 * infrun.c (resume): Remove should_resume (unused). Move up
7979 declaration of resume_ptid.
7980
7981 2014-05-13 Tom Tromey <tromey@redhat.com>
7982
7983 * language.h (unop_type_check): Remove.
7984 (binop_type_check): Don't declare.
7985
7986 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7987
7988 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7989 call to regcache_raw_collect.
7990
7991 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7992
7993 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7994 mi_console->quote as the quoting character.
7995
7996 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7997
7998 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7999
8000 2014-04-29 Tom Tromey <tromey@redhat.com>
8001
8002 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8003 "show debug varobj".
8004
8005 2014-05-07 Kyle McMartin <kyle@redhat.com>
8006
8007 Pushed by Joel Brobecker <brobecker@adacore.com>.
8008 * aarch64-tdep.c (aarch64_software_single_step): New function.
8009 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8010 with aarch64_software_single_step.
8011
8012 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8013
8014 GDB 7.7.1 released.
8015
8016 2014-05-05 Keith Seitz <keiths@redhat.com>
8017
8018 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8019 variable or history value is successfully parsed.
8020
8021 2014-05-05 Yao Qi <yao@codesourcery.com>
8022 Pedro Alves <palves@redhat.com>
8023
8024 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8025 address of blocks that intersects the requested range. Trim
8026 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8027 sections.
8028 * ctf.c (ctf_xfer_partial): Likewise.
8029
8030 2014-05-05 Yao Qi <yao@codesourcery.com>
8031
8032 * printcmd.c (display_command): Remove the check to
8033 target_has_execution.
8034
8035 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8036
8037 * ppcobsd-nat.c: Include "obsd-nat.h".
8038 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8039 add_target.
8040 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8041
8042 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8043
8044 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8045 and 16-bit signed and unsigned arguments. Update comment.
8046 (stap_parse_probe_arguments): Extend code to handle such
8047 arguments. Use warning instead of complaint to notify about
8048 unrecognized bitness.
8049
8050 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8051
8052 PR breakpoints/16889
8053 * stap-probe.c (stap_parse_probe_arguments): Simplify
8054 check for non-prefixed probes (i.e., probes whose
8055 arguments do not start with "N@"). Always set the
8056 argument type to a sane value.
8057
8058 2014-05-01 David Taylor <dtaylor@emc.com>
8059
8060 * remote.c (compare_sections_command): Add -r option to compare
8061 all loadable read-only sections.
8062
8063 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8064
8065 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8066 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8067 Update all callers.
8068 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8069 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8070 Remove unused CORE_ADDR argument. Update all callers.
8071
8072 2014-04-29 Pedro Alves <palves@redhat.com>
8073
8074 * remote.c (struct packet_config) <detect>: Extend comment.
8075 (add_packet_config_cmd): Don't set the config's detect or support
8076 fields here.
8077 (init_all_packet_configs): Also initialize the config's 'detect'
8078 field.
8079 (reset_all_packet_configs_support): New function.
8080 (remote_open_1): Call reset_all_packet_configs_support instead of
8081 init_all_packet_configs.
8082 (_initialize_remote): Initialize all packet configs. Assert that
8083 all packets have an associated command, except a few known
8084 outliers.
8085
8086 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8087
8088 * dwarf2read.c (read_subrange_type): Handle dynamic
8089 DW_AT_lower_bound attributes.
8090
8091 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8092
8093 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8094 dynamic bounds before computing its upper bound.
8095 (ada_discrete_type_low_bound): Same as above with the lower bound.
8096
8097 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8098
8099 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8100 range types. Adjust the array handling implementation to
8101 take advantage of this change.
8102 (resolve_dynamic_range): New function, mostly extracted from
8103 resolve_dynamic_bounds.
8104 (resolve_dynamic_array): New function, mostly extracted from
8105 resolve_dynamic_bounds.
8106 (resolve_dynamic_bounds): Delete.
8107 (resolve_dynamic_type): Reimplement. Add handling of
8108 TYPE_CODE_RANGE types.
8109
8110 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8111
8112 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8113 handling of parallel ___XA types.
8114
8115 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8116
8117 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8118 unnecessary second call to static_unwrap_type.
8119
8120 2014-04-27 Hui Zhu <hui@codesourcery.com>
8121
8122 * stack.c (print_frame_info): Call do_gdb_disassembly with
8123 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8124
8125 2014-04-26 Doug Evans <xdje42@gmail.com>
8126
8127 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8128
8129 2014-04-25 Pedro Alves <palves@redhat.com>
8130
8131 PR server/16255
8132 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8133 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8134 and newline from built string.
8135 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8136 (linux_ptrace_attach_fail_reason): ... this.
8137 * linux-nat.c (linux_nat_attach): Adjust to use
8138 linux_ptrace_attach_fail_reason.
8139
8140 2014-04-25 Pedro Alves <palves@redhat.com>
8141
8142 * remote.c (struct remote_state): Remove multi_process_aware,
8143 non_stop_aware, cond_tracepoints, cond_breakpoints,
8144 breakpoint_commands, fast_tracepoints, static_tracepoints,
8145 install_in_trace, disconnected_tracing,
8146 enable_disable_tracepoints, string_tracing, and
8147 augmented_libraries_svr4_read fields.
8148 (remote_multi_process_p): Move further below in the file.
8149 (struct packet_config): Add comments.
8150 (update_packet_config): Delete function.
8151 (show_packet_config_cmd): Use packet_config_support.
8152 (add_packet_config_cmd): Use NULL as set callback.
8153 (packet_ok): "set remote foo-packet"-style commands no longer
8154 change config->supported -- adjust.
8155 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8156 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8157 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8158 (PACKET_QNonStop, PACKET_multiprocess_feature)
8159 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8160 (PACKET_DisconnectedTracing_feature)
8161 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8162 (set_remote_protocol_packet_cmd): Delete function.
8163 (packet_config_support, packet_support): New functions.
8164 (set_remote_protocol_Z_packet_cmd): Don't call
8165 update_packet_config.
8166 (remote_query_attached, remote_pass_signals)
8167 (remote_program_signals, remote_threads_info)
8168 (remote_threads_extra_info, remote_start_remote): Use
8169 packet_support.
8170 (remote_start_remote): Use packet_config_support and
8171 packet_support.
8172 (init_all_packet_configs): Set all packets to unknown support,
8173 instead of calling update_packet_config.
8174 (remote_check_symbols): Use packet_support.
8175 (remote_supported_packet): Unconditionally set the packet config's
8176 support status.
8177 (remote_multi_process_feature, remote_non_stop_feature)
8178 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8179 (remote_breakpoint_commands_feature)
8180 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8181 (remote_install_in_trace_feature)
8182 (remote_disconnected_tracing_feature)
8183 (remote_enable_disable_tracepoint_feature)
8184 (remote_string_tracing_feature)
8185 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8186 (remote_protocol_features): Adjust to use remote_supported_packet
8187 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8188 "ConditionalTracepoints", "ConditionalBreakpoints",
8189 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8190 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8191 "EnableDisableTracepoints", and "tracenz".
8192 (remote_query_supported): Use packet_support.
8193 (remote_open_1): Adjust.
8194 (extended_remote_attach_1): Use packet_support. Switch on the
8195 result of packet_ok instead of checking whether the packet ended
8196 up disabled.
8197 (remote_vcont_resume): Use packet_support.
8198 (remote_resume, remote_stop_ns, fetch_register_using_p)
8199 (remote_prepare_to_store, store_register_using_P)
8200 (check_binary_download, remote_write_bytes): Use packet_support.
8201 (remote_vkill): Use packet_support. Switch on the result of
8202 packet_ok instead of checking whether the packet ended up
8203 disabled.
8204 (extended_remote_supports_disable_randomization): Use
8205 packet_support.
8206 (extended_remote_run): Switch on the result of packet_ok instead
8207 of checking whether the packet ended up disabled.
8208 (remote_insert_breakpoint, remote_remove_breakpoint)
8209 (remote_insert_watchpoint, remote_remove_watchpoint)
8210 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8211 packet_support.
8212 (remote_search_memory): Use packet_config_support.
8213 (remote_get_thread_local_address, remote_get_tib_address)
8214 (remote_hostio_send_command, remote_can_execute_reverse): Use
8215 packet_support.
8216 (remote_supports_cond_tracepoints)
8217 (remote_supports_cond_breakpoints)
8218 (remote_supports_fast_tracepoints)
8219 (remote_supports_static_tracepoints)
8220 (remote_supports_install_in_trace)
8221 (remote_supports_enable_disable_tracepoint)
8222 (remote_supports_string_tracing)
8223 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8224 the packet config says the feature is enabled or disabled.
8225 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8226 (remote_get_trace_status): Use packet_support.
8227 (remote_set_disconnected_tracing): Adjust to check whether the
8228 feature is enabled with packet_support.
8229 (remote_set_trace_buffer_size, remote_use_agent)
8230 (remote_can_use_agent, remote_supports_btrace): Use
8231 packet_support.
8232 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8233 Use packet_config_support.
8234 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8235 the packet config says the feature is enabled or disabled.
8236 (set_range_stepping): Use packet_support.
8237
8238 2014-04-25 Tom Tromey <tromey@redhat.com>
8239
8240 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8241 argument.
8242
8243 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8244
8245 * NEWS: Mention support for C99 variable length arrays.
8246
8247 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8248
8249 * ada-lang.c (standard_exc): Expand introductory comment.
8250
8251 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8252 Walfred Tedeschi <walfred.tedeschi@intel.com>
8253
8254 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8255 AVX512 registers.
8256 (amd64_linux_read_description): Add code to handle AVX512 xstate
8257 mask and return respective tdesc.
8258 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8259 and features/i386/x32-avx512-linux.c.
8260 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8261 (amd64_linux_core_read_description): Add code to handle AVX512
8262 xstate mask and return respective tdesc.
8263 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8264 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8265 calculation.
8266 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8267 (tdesc_amd64_avx512_linux): New prototype.
8268 (tdesc_x32_avx512_linux): Likewise.
8269 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8270 features/i386/x32-avx512.c.
8271 (amd64_ymm_avx512_names): New register names for pseudo
8272 registers YMM16-31.
8273 (amd64_ymmh_avx512_names): New register names for raw registers
8274 YMMH16-31.
8275 (amd64_k_names): New register names for K registers.
8276 (amd64_zmmh_names): New register names for ZMM raw registers.
8277 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8278 (amd64_xmm_avx512_names): New register names for XMM16-31
8279 registers.
8280 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8281 registers.
8282 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8283 if feature is present.
8284 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8285 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8286 (AMD64_NUM_REGS): Adjust to new number of registers.
8287 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8288 registers supplied via XSTATE by AVX512 registers.
8289 (i386_linux_read_description): Add case for AVX512.
8290 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8291 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8292 (i386_linux_core_read_description): Add case for AVX512.
8293 (i386_linux_init_abi): Install supported register note section
8294 for AVX512.
8295 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8296 AVX512.
8297 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8298 registers to be number of zmm7h + 1.
8299 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8300 * i386-tdep.c: Include features/i386/i386-avx512.c.
8301 (i386_zmm_names): Add ZMM pseudo register names array.
8302 (i386_zmmh_names): Add ZMM raw register names array.
8303 (i386_k_names): Add K raw register names array.
8304 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8305 registers. AVX512 has 16 more ZMM registers than there are YMM
8306 registers.
8307 (i386_zmmh_regnum_p): Add function to look up register number of
8308 ZMM raw registers.
8309 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8310 (i386_k_regnum_p): Likewise for K raw registers.
8311 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8312 registers added by AVX512.
8313 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8314 registers added by AVX512.
8315 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8316 added by AVX512.
8317 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8318 (i386_pseudo_register_name): Add ZMM pseudo registers.
8319 (i386_zmm_type): Construct and return vector registers type for ZMM
8320 registers.
8321 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8322 ZMM0-31 pseudo registers and K registers.
8323 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8324 and YMM16-31 registers from register cache.
8325 (i386_pseudo_register_write): Add code to write K, ZMM and
8326 YMM16-31 registers.
8327 (i386_register_reggroup_p): Add code to include/exclude AVX512
8328 registers in/from respective register groups.
8329 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8330 registers if feature is present in xcr0.
8331 (i386_gdbarch_init): Add code to initialize AVX512 feature
8332 variables in tdep structure, wire in pseudo registers and call
8333 initialize_tdesc_i386_avx512.
8334 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8335 variables.
8336 (i386_regnum): Add AVX512 registers.
8337 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8338 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8339 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8340 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8341 512 bits wide.
8342 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8343 (i386_ymm_avx512_regnum_p): Likewise.
8344 (i386_k_regnum_p): Likewise.
8345 (i386_zmm_regnum_p): Likewise.
8346 (i386_zmmh_regnum_p): Likewise.
8347 * i387-tdep.c : Update year in copyright notice.
8348 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8349 XSAVE buffer.
8350 (XSAVE_YMM_AVX512_ADDR): New macro.
8351 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8352 XSAVE buffer.
8353 (XSAVE_XMM_AVX512_ADDR): New macro.
8354 (xsave_avx512_k_offset): New table for K register offsets in
8355 XSAVE buffer.
8356 (XSAVE_AVX512_K_ADDR): New macro.
8357 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8358 in XSAVE buffer.
8359 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8360 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8361 buffer.
8362 (i387_collect_xsave): Add code to collect AVX512 registers from
8363 XSAVE buffer.
8364 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8365 of XMM16-31 registers.
8366 (I387_NUM_K_REGS): New define for number of K registers.
8367 (I387_K0_REGNUM): New define for K0 register number.
8368 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8369 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8370 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8371 registers.
8372 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8373 (I387_XMM16_REGNUM): New define for XMM16 register number.
8374 (I387_YMM0_REGNUM): New define for YMM0 register number.
8375 (I387_KEND_REGNUM): New define for last K register number.
8376 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8377 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8378 number.
8379 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8380 number.
8381 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8382 size.
8383 * features/Makefile: Add AVX512 related files.
8384 * features/i386/32bit-avx512.xml: New file.
8385 * features/i386/64bit-avx512.xml: Likewise.
8386 * features/i386/amd64-avx512-linux.c: Likewise.
8387 * features/i386/amd64-avx512-linux.xml: Likewise.
8388 * features/i386/amd64-avx512.c: Likewise.
8389 * features/i386/amd64-avx512.xml: Likewise.
8390 * features/i386/i386-avx512-linux.c: Likewise.
8391 * features/i386/i386-avx512-linux.xml: Likewise.
8392 * features/i386/i386-avx512.c: Likewise.
8393 * features/i386/i386-avx512.xml: Likewise.
8394 * features/i386/x32-avx512-linux.c: Likewise.
8395 * features/i386/x32-avx512-linux.xml: Likewise.
8396 * features/i386/x32-avx512.c: Likewise.
8397 * features/i386/x32-avx512.xml: Likewise.
8398 * regformats/i386/amd64-avx512-linux.dat: New file.
8399 * regformats/i386/amd64-avx512.dat: Likewise.
8400 * regformats/i386/i386-avx512-linux.dat: Likewise.
8401 * regformats/i386/i386-avx512.dat: Likewise.
8402 * regformats/i386/x32-avx512-linux.dat: Likewise.
8403 * regformats/i386/x32-avx512.dat: Likewise.
8404 * NEWS: Add note about new support for AVX512.
8405
8406
8407 2014-04-23 Pedro Alves <palves@redhat.com>
8408
8409 * breakpoint.c (insert_bp_location): Tolerate errors if the
8410 breakpoint is set in a user-loaded objfile.
8411 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8412 location is marked shlib_disabled. If the breakpoint is set in a
8413 user-loaded objfile is a GDB-side memory breakpoint, validate it
8414 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8415 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8416 flag.
8417 * mem-break.c (memory_validate_breakpoint): New function.
8418 * objfiles.c (userloaded_objfile_contains_address_p): New
8419 function.
8420 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8421 * target.h (memory_validate_breakpoint): New declaration.
8422
8423 2014-04-23 Pedro Alves <palves@redhat.com>
8424
8425 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8426 the breakpoint is set in a shared library, only suppress
8427 errors for software breakpoints, not hardware breakpoints.
8428
8429 2014-04-22 Pedro Alves <palves@redhat.com>
8430
8431 * infrun.c (schedlock_applies): New function, factored out from
8432 find_thread_needs_step_over.
8433 (find_thread_needs_step_over): Use it.
8434 (switch_back_to_stepped_thread): Always clear trap_expected if the
8435 step over is finished. Return early if scheduler locking applies.
8436 Look for the stepping thread and a potential step-over thread with
8437 a single loop.
8438 (currently_stepping_or_nexting_callback): Delete.
8439
8440 2014-04-22 Nick Clifton <nickc@redhat.com>
8441
8442 * NEWS: Mention that ARM sim now supports tracing.
8443
8444 2014-04-22 Yao Qi <yao@codesourcery.com>
8445
8446 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8447 to ...
8448 * tracefile.c (tracefile_fetch_registers): ... it. New
8449 function.
8450 * tracefile.h (tracefile_fetch_registers): Declare.
8451 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8452 tracefile_fetch_registers.
8453
8454 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8455
8456 PR gdb/14018
8457 * windows-nat.c (thread_rec): Don't display a warning when
8458 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8459 fails for any reason, set th->suspended to -1, so that we don't
8460 try to resume such a thread. Also, don't return NULL in these
8461 cases, to avoid completely ruin the session due to "PC register is
8462 not available" error.
8463 (do_windows_fetch_inferior_registers): Check errors in
8464 GetThreadContext call.
8465 (windows_continue): Accept an additional argument KILLED; if not
8466 zero, ignore errors in the SetThreadContext call, since the
8467 inferior was killed and is shutting down.
8468 (windows_resume, get_windows_debug_event)
8469 (windows_create_inferior, windows_mourn_inferior)
8470 (windows_kill_inferior): All callers of windows_continue changed
8471 to adjust to its new calling sequence.
8472
8473 2014-04-19 Yao Qi <yao@codesourcery.com>
8474
8475 * ctf.c (ctf_open): Call post_create_inferior.
8476
8477 2014-04-19 Yao Qi <yao@codesourcery.com>
8478
8479 * ctf.c (handle_id): New static variable.
8480 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8481 value. Get the declaration of event "register" and get length
8482 of field "contents".
8483
8484 2014-04-19 Yao Qi <yao@codesourcery.com>
8485
8486 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8487
8488 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8489
8490 * valops.c (oload_method_static): Remove unnecessary argument
8491 METHOD. Update all callers.
8492
8493 2014-04-18 Pedro alves <palves@redhat.com>
8494 Tom Tromey <tromey@redhat.com>
8495
8496 PR backtrace/15558
8497 * frame.c (get_prev_frame_1): Rename to ...
8498 (get_prev_frame_always): ... this, and make extern. Adjust.
8499 (skip_artificial_frames): Use get_prev_frame_always.
8500 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8501 (get_frame_unwind_stop_reason): Adjust to rename.
8502 * frame.h (get_prev_frame_always): Declare.
8503 * inline-frame.c: Include frame.h.
8504 (inline_frame_this_id): Use get_prev_frame_always.
8505
8506 2014-04-18 Tristan Gingold <gingold@adacore.com>
8507
8508 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8509 code by using bfd_mach_o_get_base_address.
8510
8511 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8512
8513 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8514 (spu_ax_pseudo_register_collect): New function.
8515 (spu_ax_pseudo_register_push_stack): Likewise.
8516 (spu_dwarf_reg_to_regnum): Likewise.
8517 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8518
8519 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8520
8521 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8522 Replace FRAME argument with FRAME_ID.
8523 * gdbarch.c, gdbarch.h: Regenerate.
8524 * findvar.c (default_value_from_register): Add GDBARCH argument;
8525 replace FRAME by FRAME_ID. No longer call get_frame_id.
8526 (value_from_register): Update call to gdbarch_value_from_register.
8527 * value.h (default_value_from_register): Update prototype.
8528 * s390-linux-tdep.c (s390_value_from_register): Update interface
8529 and call to default_value_from_register.
8530 * spu-tdep.c (spu_value_from_register): Likewise.
8531
8532 * findvar.c (address_from_register): Remove TYPE argument.
8533 Do not call value_from_register; use gdbarch_value_from_register
8534 with null_frame_id instead.
8535 * value.h (address_from_register): Update prototype.
8536 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8537 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8538 address_from_register interface change.
8539
8540 2014-04-17 Yao Qi <yao@codesourcery.com>
8541
8542 * gdbtypes.h: Update comments to link to types and macros'
8543 definitions.
8544
8545 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8546
8547 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8548
8549 2014-04-16 Keith Seitz <keiths@redhat.com>
8550
8551 PR gdb/15827
8552 * dwarf2read.c (skip_one_die): Check that all relative-offset
8553 sibling DIEs fall within range of the current reader's buffer.
8554 (read_partial_die): Likewise.
8555
8556 2014-04-16 Keith Seitz <keiths@redhat.com>
8557
8558 PR c++/16597
8559 * cp-namespace.c (lookup_symbol_file): If the type name of
8560 `this' is NULL, return immediately.
8561
8562 2014-04-14 Keith Seitz <keiths@redhat.com>
8563
8564 PR c++/16253
8565 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8566 from symbol_matches_domain in symtab.c. All local callers
8567 of symbol_matches_domain updated.
8568 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8569 search STRUCT_DOMAIN.
8570 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8571 independently. standard_lookup will do that automatically.
8572 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8573 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8574 (cp_lookup_symbol_in_namespace): Likewise.
8575 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8576 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8577 may return a STRUCT_DOMAIN match.
8578 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8579 * cp-support.c: Include language.h.
8580 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8581 VAR_DOMAIN.
8582 * psymtab.c (match_partial_symbol): Compare the requested
8583 domain with the symbol's domain directly.
8584 (lookup_partial_symbol): Likewise.
8585 * symtab.c (lookup_symbol_in_language): Explain when/why
8586 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8587 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8588 appropriate languages.
8589 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8590 and moved to ada-lang.c
8591 (lookup_block_symbol): Explain that this function only returns
8592 symbol matching the requested DOMAIN.
8593 Compare the requested domain with the symbol's domain directly.
8594 (iterate_over_symbols): Compare the requested domain with the
8595 symbol's domain directly.
8596 * symtab.h (symbol_matches_domain): Remove.
8597
8598 2014-04-14 Tom Tromey <tromey@redhat.com>
8599
8600 PR c++/15246:
8601 * c-exp.y (type_aggregate_p): New function.
8602 (qualified_name, classify_inner_name): Use it.
8603 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8604 and TYPE_TARGET_TYPE of an enum type.
8605 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8606 an enum type.
8607 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8608 handle TYPE_DECLARED_CLASS.
8609 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8610 types.
8611 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8612 * valops.c (enum_constant_from_type): New function.
8613 (value_aggregate_elt): Use it.
8614 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8615 TYPE_CODE_ENUM.
8616
8617 2014-04-14 Tom Tromey <tromey@redhat.com>
8618
8619 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8620 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8621 const.
8622 * value.h (value_aggregate_elt): Update.
8623
8624 2014-04-14 Tom Tromey <tromey@redhat.com>
8625
8626 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8627
8628 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8629
8630 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8631 (evaluate_subexp_standard): Pass noside argument.
8632 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8633 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8634 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8635 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8636 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8637
8638 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8639
8640 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8641 points to a constant blob.
8642
8643 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8644
8645 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8646 property and store it as the high bound and flag the range accordingly.
8647 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8648 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8649 * gdbtypes.h (enum range_flags): New enum.
8650 (struct range_bounds): Add flags member.
8651
8652 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8653
8654 * c-typeprint.c (c_type_print_varspec_suffix): Added
8655 check for not yet resolved high bound. If unresolved, print
8656 "variable length" string to the console instead of random
8657 length.
8658
8659 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8660
8661 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8662 value.
8663 (ada_template_to_fixed_record_type_1): Likewise.
8664 (ada_to_fixed_type_1): Likewise.
8665 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8666 (cp_print_value): Likewise.
8667 * d-valprint.c (dynamic_array_type): Likewise.
8668 * findvar.c (address_of_variable): Likewise.
8669 * jv-valprint.c (java_value_print): Likewise.
8670 * valops.c (value_ind): Likewise.
8671 * value.c (coerce_ref): Likewise.
8672
8673 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8674
8675 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8676 value and retrieve the dynamic type size.
8677
8678 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8679
8680 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8681 passed to sizeof is dynamic evaluate the argument to compute the length.
8682
8683 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8684 Joel Brobecker <brobecker@adacore.com>
8685
8686 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8687 (dwarf2_evaluate_property): New function.
8688 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8689 * dwarf2read.c (attr_to_dynamic_prop): New function.
8690 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8691 attribute.
8692 * gdbtypes.c: Include dwarf2loc.h.
8693 (is_dynamic_type): New function.
8694 (resolve_dynamic_type): New function.
8695 (resolve_dynamic_bounds): New function.
8696 (get_type_length): New function.
8697 (check_typedef): Use get_type_length to compute type length.
8698 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8699 (TYPE_LOW_BOUND_KIND): New macro.
8700 (is_dynamic_type): New function prototype.
8701 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8702 to resolve dynamic properties of the type. Update comment.
8703 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8704
8705 2014-04-14 Richard Henderson <rth@redhat.com>
8706
8707 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8708
8709 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8710 Doug Evans <xdje42@gmail.com>
8711
8712 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8713 dereference TYPE_CODE_REF values.
8714
8715 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8716
8717 Revert the following changes due to regressions:
8718
8719 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8720 (dwarf2_evaluate_property): New function.
8721 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8722 * dwarf2read.c (attr_to_dynamic_prop): New function.
8723 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8724 attribute.
8725 * gdbtypes.c: Include dwarf2loc.h.
8726 (is_dynamic_type): New function.
8727 (resolve_dynamic_type): New function.
8728 (resolve_dynamic_bounds): New function.
8729 (get_type_length): New function.
8730 (check_typedef): Use get_type_length to compute type length.
8731 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8732 (TYPE_LOW_BOUND_KIND): New macro.
8733 (is_dynamic_type): New function prototype.
8734 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8735 to resolve dynamic properties of the type. Update comment.
8736 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8737
8738 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8739 passed to sizeof is dynamic evaluate the argument to compute the length.
8740
8741 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8742 value and retrieve the dynamic type size.
8743
8744 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8745 (ada_template_to_fixed_record_type_1): Likewise.
8746 (ada_to_fixed_type_1): Likewise.
8747 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8748 (cp_print_value): Likewise.
8749 * d-valprint.c (dynamic_array_type): Likewise.
8750 * eval.c (evaluate_subexp_with_coercion): Likewise.
8751 * findvar.c (address_of_variable): Likewise.
8752 * jv-valprint.c (java_value_print): Likewise.
8753 * valops.c (value_ind): Likewise.
8754 * value.c (coerce_ref): Likewise.
8755
8756 * c-typeprint.c (c_type_print_varspec_suffix): Added
8757 check for not yet resolved high bound. If unresolved, print
8758 "variable length" string to the console instead of random
8759 length.
8760
8761 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8762 property and store it as the high bound and flag the range accordingly.
8763 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8764 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8765 * gdbtypes.h (enum range_flags): New enum.
8766 (struct range_bounds): Add flags member.
8767
8768 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8769 points to a constant blob.
8770
8771 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8772 (evaluate_subexp_standard): Pass noside argument.
8773 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8774 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8775 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8776 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8777 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8778
8779 2014-04-11 Keith Seitz <keiths@redhat.com>
8780
8781 PR c++/16675
8782 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8783 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8784 reference types.
8785
8786 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8787
8788 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8789 (evaluate_subexp_standard): Pass noside argument.
8790 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8791 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8792 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8793 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8794 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8795
8796 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8797
8798 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8799 points to a constant blob.
8800
8801 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8802
8803 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8804 property and store it as the high bound and flag the range accordingly.
8805 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8806 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8807 * gdbtypes.h (enum range_flags): New enum.
8808 (struct range_bounds): Add flags member.
8809
8810 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8811
8812 * c-typeprint.c (c_type_print_varspec_suffix): Added
8813 check for not yet resolved high bound. If unresolved, print
8814 "variable length" string to the console instead of random
8815 length.
8816
8817 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8818
8819 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8820 (ada_template_to_fixed_record_type_1): Likewise.
8821 (ada_to_fixed_type_1): Likewise.
8822 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8823 (cp_print_value): Likewise.
8824 * d-valprint.c (dynamic_array_type): Likewise.
8825 * eval.c (evaluate_subexp_with_coercion): Likewise.
8826 * findvar.c (address_of_variable): Likewise.
8827 * jv-valprint.c (java_value_print): Likewise.
8828 * valops.c (value_ind): Likewise.
8829 * value.c (coerce_ref): Likewise.
8830
8831 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8832
8833 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8834 value and retrieve the dynamic type size.
8835
8836 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8837
8838 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8839 passed to sizeof is dynamic evaluate the argument to compute the length.
8840
8841 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8842
8843 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8844 (dwarf2_evaluate_property): New function.
8845 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8846 * dwarf2read.c (attr_to_dynamic_prop): New function.
8847 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8848 attribute.
8849 * gdbtypes.c: Include dwarf2loc.h.
8850 (is_dynamic_type): New function.
8851 (resolve_dynamic_type): New function.
8852 (resolve_dynamic_bounds): New function.
8853 (get_type_length): New function.
8854 (check_typedef): Use get_type_length to compute type length.
8855 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8856 (TYPE_LOW_BOUND_KIND): New macro.
8857 (is_dynamic_type): New function prototype.
8858 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8859 to resolve dynamic properties of the type. Update comment.
8860 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8861
8862 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8863
8864 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8865 declaring high/low bounds and change uses accordingly. Call
8866 create_range_type instead of create_static_range_type.
8867 * gdbtypes.c (create_range_type): New function.
8868 (create_range_type): Convert bounds into struct bound_prop and pass
8869 them to create_range_type.
8870 * gdbtypes.h (struct bound_prop): New struct.
8871 (create_range_type): New function prototype.
8872 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8873 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8874 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8875 part of the bound.
8876 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8877
8878 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8879
8880 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8881 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8882 * ada-lang.c: All uses of create_range_type updated.
8883 * coffread.c: All uses of create_range_type updated.
8884 * dwarf2read.c: All uses of create_range_type updated.
8885 * f-exp.y: All uses of create_range_type updated.
8886 * m2-valprint.c: All uses of create_range_type updated.
8887 * mdebugread.c: All uses of create_range_type updated.
8888 * stabsread.c: All uses of create_range_type updated.
8889 * valops.c: All uses of create_range_type updated.
8890 * valprint.c: All uses of create_range_type updated.
8891
8892 2014-04-10 Pedro Alves <palves@redhat.com>
8893
8894 * breakpoint.c (single_step_breakpoints)
8895 (single_step_gdbarch): Move up in the file.
8896 (one_breakpoint_xfer_memory): New function, factored out from ...
8897 (breakpoint_xfer_memory): ... here. Also process single-step
8898 breakpoints.
8899
8900 2014-04-09 Tristan Gingold <gingold@adacore.com>
8901
8902 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8903 comments.
8904 (darwin_decode_exception_message): Free port only after use.
8905
8906 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8907
8908 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8909 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8910 when setting the size of call_length.
8911
8912 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8913
8914 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8915 dereference TYPE_CODE_REF values.
8916
8917 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8918
8919 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8920 end of warning message.
8921
8922 2014-04-03 Doug Evans <dje@google.com>
8923
8924 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8925 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8926
8927 2014-04-02 Alan Modra <amodra@gmail.com>
8928
8929 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8930 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8931 (struct symbol_file_add_from_memory_args): Add size field.
8932 (find_vdso_size): New function.
8933 (add_vsyscall_page): Attempt to find vdso size.
8934
8935 2014-04-01 Doug Evans <dje@google.com>
8936
8937 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8938
8939 2014-04-01 Tristan Gingold <gingold@adacore.com>
8940
8941 * darwin-nat.c (darwin_encode_reply): Add prototype.
8942 (darwin_decode_exception_message): Reply to unknown inferiors.
8943 (darwin_decode_message): Handle message by id. Ignore message
8944 to unknown inferior.
8945 (darwin_wait): Discard unknown messages, add debug trace.
8946
8947 2014-03-31 Doug Evans <dje@google.com>
8948
8949 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8950 comp_dir_string.
8951
8952 2014-03-31 Doug Evans <dje@google.com>
8953
8954 New option "set print symbol-loading".
8955 * NEWS: Mention it.
8956 * solib.c (solib_read_symbols): Only print symbol loading messages
8957 if requested.
8958 (solib_add): If symbol loading is in "brief" mode, notify user
8959 symbols are being loaded.
8960 (reload_shared_libraries_1): Ditto.
8961 * symfile.c (print_symbol_loading_off): New static global.
8962 (print_symbol_loading_brief): New static global.
8963 (print_symbol_loading_full): New static global.
8964 (print_symbol_loading_enums): New static global.
8965 (print_symbol_loading): New static global.
8966 (print_symbol_loading_p): New function.
8967 (symbol_file_add_with_addrs): Only print symbol loading messages
8968 if requested.
8969 (_initialize_symfile): Register "print symbol-loading" set/show
8970 command.
8971 * symfile.h (print_symbol_loading_p): Declare.
8972
8973 2014-03-30 Doug Evans <xdje42@gmail.com>
8974
8975 * infrun.c (set_last_target_status): New function.
8976 (handle_inferior_event): Call it.
8977
8978 2014-03-30 Doug Evans <xdje42@gmail.com>
8979
8980 * inferior.h (enum stop_kind): Improve comment.
8981
8982 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8983
8984 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8985 a reference, strip the reference layer before calling
8986 the lang_ops value_has_mutated callback.
8987
8988 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8989
8990 Remove some globals from our parser.
8991 * language.c (unk_lang_parser): Add "struct parser_state"
8992 argument.
8993 * language.h (struct language_defn) <la_parser>: Likewise.
8994 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8995 (initialize_expout): Add "struct parser_state" argument.
8996 Rewrite function to use the parser state.
8997 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8998 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8999 write_exp_elt_longcst, write_exp_elt_dblcst,
9000 write_exp_elt_decfloatcst, write_exp_elt_type,
9001 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9002 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9003 write_dollar_variable): Likewise.
9004 (parse_exp_in_context_1): Use parser state.
9005 (insert_type_address_space): Add "struct parser_state" argument.
9006 Use parser state.
9007 (increase_expout_size): New function.
9008 * parser-defs.h: Forward declare "struct language_defn" and
9009 "struct parser_state".
9010 (expout, expout_size, expout_ptr): Remove extern declarations.
9011 (parse_gdbarch, parse_language): Rewrite macro declarations to
9012 accept the parser state.
9013 (struct parser_state): New struct.
9014 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9015 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9016 write_exp_elt_decfloatcst, write_exp_elt_type,
9017 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9018 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9019 write_exp_msymbol, write_dollar_variable,
9020 mark_struct_expression, insert_type_address_space): Add "struct
9021 parser_state" argument.
9022 (increase_expout_size): New function.
9023 * utils.c (do_clear_parser_state): New function.
9024 (make_cleanup_clear_parser_state): Likewise.
9025 * utils.h (make_cleanup_clear_parser_state): New function
9026 prototype.
9027 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9028 Update calls to write_exp* in order to pass the parser state.
9029 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9030 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9031 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9032 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9033 * stap-probe.c (stap_parse_register_operand): Likewise.
9034 (stap_parse_single_operand): Likewise.
9035 (stap_parse_argument_1): Likewise.
9036 (stap_parse_argument): Use parser state.
9037 * stap-probe.h: Include "parser-defs.h".
9038 (struct stap_parse_info) <pstate>: New field.
9039 * c-exp.y (parse_type): Rewrite to use parser state.
9040 (yyparse): Redefine to c_parse_internal.
9041 (pstate): New global variable.
9042 (parse_number): Add "struct parser_state" argument.
9043 (write_destructor_name): Likewise.
9044 (type_exp): Update calls to write_exp* and similars in order to
9045 use parser state.
9046 (exp1, exp, variable, qualified_name, space_identifier,
9047 typename, typebase): Likewise.
9048 (write_destructor_name, parse_number, lex_one_token,
9049 classify_name, classify_inner_name, c_parse): Add "struct
9050 parser_state" argument. Update function to use parser state.
9051 * c-lang.h: Forward declare "struct parser_state".
9052 (c_parse): Add "struct parser_state" argument.
9053 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9054 (yyparse): Redefine macro to ada_parse_internal.
9055 (pstate): New variable.
9056 (write_int, write_object_renaming, write_var_or_type,
9057 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9058 type_int, type_long, type_long_long, type_float, type_double,
9059 type_long_double, type_char, type_boolean, type_system_address):
9060 Add "struct parser_state" argument.
9061 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9062 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9063 var_or_type, aggregate, aggregate_component_list,
9064 positional_list, others, component_group,
9065 component_associations): Update calls to write_exp* and similar
9066 functions in order to use parser state.
9067 (ada_parse, write_var_from_sym, write_int,
9068 write_exp_op_with_string, write_object_renaming,
9069 find_primitive_type, write_selectors, write_ambiguous_var,
9070 write_var_or_type, write_name_assoc, type_int, type_long,
9071 type_long_long, type_float, type_double, type_long_double,
9072 type_char, type_boolean, type_system_address): Add "struct
9073 parser_state" argument. Adjust function to use parser state.
9074 * ada-lang.c (parse): Likewise.
9075 * ada-lang.h: Forward declare "struct parser_state".
9076 (ada_parse): Add "struct parser_state" argument.
9077 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9078 calls to both functions.
9079 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9080 parser state.
9081 (yyparse): Redefine macro to f_parse_internal.
9082 (pstate): New variable.
9083 (parse_number): Add "struct parser_state" argument.
9084 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9085 and similars in order to use parser state.
9086 (parse_number): Adjust code to use parser state.
9087 (yylex): Likewise.
9088 (f_parse): New function.
9089 * f-lang.h: Forward declare "struct parser_state".
9090 (f_parse): Add "struct parser_state" argument.
9091 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9092 parser state.
9093 (yyparse): Redefine macro for java_parse_internal.
9094 (pstate): New variable.
9095 (push_expression_name, push_expression_name, insert_exp): Add
9096 "struct parser_state" argument.
9097 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9098 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9099 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9100 PostIncrementExpression, PostDecrementExpression,
9101 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9102 UnaryExpressionNotPlusMinus, CastExpression,
9103 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9104 RelationalExpression, EqualityExpression, AndExpression,
9105 ExclusiveOrExpression, InclusiveOrExpression,
9106 ConditionalAndExpression, ConditionalOrExpression,
9107 ConditionalExpression, Assignment, LeftHandSide): Update
9108 calls to write_exp* and similars in order to use parser state.
9109 (parse_number): Ajust code to use parser state.
9110 (yylex): Likewise.
9111 (java_parse): New function.
9112 (push_variable): Add "struct parser_state" argument. Adjust
9113 code to user parser state.
9114 (push_fieldnames, push_qualified_expression_name,
9115 push_expression_name, insert_exp): Likewise.
9116 * jv-lang.h: Forward declare "struct parser_state".
9117 (java_parse): Add "struct parser_state" argument.
9118 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9119 parser state.
9120 (yyparse): Redefine macro to m2_parse_internal.
9121 (pstate): New variable.
9122 (type_exp, exp, fblock, variable, type): Update calls to
9123 write_exp* and similars to use parser state.
9124 (yylex): Likewise.
9125 (m2_parse): New function.
9126 * m2-lang.h: Forward declare "struct parser_state".
9127 (m2_parse): Add "struct parser_state" argument.
9128 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9129 * objc-lang.h: Forward declare "struct parser_state".
9130 (end_msglist): Add "struct parser_state" argument.
9131 * p-exp.y (parse_type): Rewrite macro to use parser state.
9132 (yyparse): Redefine macro to pascal_parse_internal.
9133 (pstate): New variable.
9134 (parse_number): Add "struct parser_state" argument.
9135 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9136 write_exp* and similars in order to use parser state.
9137 (parse_number, yylex): Adjust code to use parser state.
9138 (pascal_parse): New function.
9139 * p-lang.h: Forward declare "struct parser_state".
9140 (pascal_parse): Add "struct parser_state" argument.
9141 * go-exp.y (parse_type): Rewrite macro to use parser state.
9142 (yyparse): Redefine macro to go_parse_internal.
9143 (pstate): New variable.
9144 (parse_number): Add "struct parser_state" argument.
9145 (type_exp, exp1, exp, variable, type): Update calls to
9146 write_exp* and similars in order to use parser state.
9147 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9148 to use parser state.
9149 (go_parse): Likewise.
9150 * go-lang.h: Forward declare "struct parser_state".
9151 (go_parse): Add "struct parser_state" argument.
9152
9153 2014-03-27 Doug Evans <dje@google.com>
9154
9155 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9156
9157 2014-03-27 Doug Evans <dje@google.com>
9158
9159 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9160 Remove argument abbrev_section. All callers updated.
9161
9162 2014-03-27 Doug Evans <dje@google.com>
9163
9164 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9165 addr_base, ranges_base.
9166
9167 2014-03-26 Keith Seitz <keiths@redhat.com>
9168
9169 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9170 types, not VAR_DOMAIN.
9171
9172 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9173
9174 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9175 "ra" registers.
9176 * features/nios2-linux.c: Regenerated.
9177 * features/nios2.c: Regenerated.
9178
9179 2014-03-25 Pedro Alves <palves@redhat.com>
9180
9181 * cli/cli-script.c (script_from_file): Force the interpreter to
9182 sync mode.
9183
9184 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9185
9186 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9187 small stack allocation.
9188
9189 2014-03-24 Tristan Gingold <gingold@adacore.com>
9190
9191 * darwin-nat.c (exc_server): Remove unused prototype.
9192 (darwin_dump_message): Correctly display data on x86_64.
9193 (darwin_encode_reply): Fix style.
9194 Add comments and fix indentation.
9195
9196 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9197
9198 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9199
9200 2014-03-22 Doug Evans <xdje42@gmail.com>
9201
9202 * infcmd.c: Whitespace fixes.
9203 (interrupt_command): Merge two function comments into one.
9204
9205 2014-03-22 Doug Evans <xdje42@gmail.com>
9206
9207 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9208 All uses updated.
9209
9210 2014-03-22 Yao Qi <yao@codesourcery.com>
9211
9212 * remote.c (target_read_live_memory): Remove.
9213 (memory_xfer_live_readonly_partial): Rename it to
9214 remote_xfer_live_readonly_partial. Remove argument 'object'.
9215 All callers updated. Call remote_read_bytes_1
9216 instead of target_read_live_memory.
9217 * tracepoint.c (set_traceframe_number): Remove.
9218 (make_cleanup_restore_traceframe_number): Likewise .
9219 * tracepoint.h (set_traceframe_number): Remove declaration.
9220 (make_cleanup_restore_traceframe_number): Likewise.
9221
9222 2014-03-22 Yao Qi <yao@codesourcery.com>
9223
9224 * remote.c (remote_read_bytes): Move code on reading from the
9225 remote stub to ...
9226 (remote_read_bytes_1): ... here. New function.
9227
9228 2014-03-22 Yao Qi <yao@codesourcery.com>
9229
9230 * ctf.c (ctf_xfer_partial): Check the return value of
9231 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9232 return TARGET_XFER_UNAVAILABLE.
9233 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9234 * target.c (target_read_live_memory): Move it to remote.c.
9235 (memory_xfer_live_readonly_partial): Likewise.
9236 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9237 * remote.c (target_read_live_memory): Moved from target.c.
9238 (memory_xfer_live_readonly_partial): Likewise.
9239 (remote_read_bytes): Factored out from
9240 memory_xfer_partial_1.
9241
9242 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9243
9244 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9245 NULL pointer.
9246
9247 2014-03-21 Pedro Alves <palves@redhat.com>
9248
9249 * infrun.c (normal_stop): Extend comment.
9250
9251 2014-03-21 Hui Zhu <hui@codesourcery.com>
9252 Pedro Alves <palves@redhat.com>
9253
9254 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9255 static buffer.
9256 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9257 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9258 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9259
9260 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9261
9262 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9263 `z' formatted output modifier.
9264
9265 2014-03-20 Tom Tromey <tromey@redhat.com>
9266 Sergio Durigan Junior <sergiodj@redhat.com>
9267
9268 * probe.c (parse_probes): Turn assert into an ordinary error.
9269 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9270 exceptions when parsing probes. Rearrange the code for clarity.
9271
9272 2014-03-20 Tom Tromey <tromey@redhat.com>
9273
9274 PR gdb/14135
9275 * top.c (execute_command): Only dispatch events if the command
9276 started the target.
9277
9278 2014-03-20 Tom Tromey <tromey@redhat.com>
9279
9280 PR cli/15718
9281 * infcall.c: Include event-top.h.
9282 (run_inferior_call): Call async_disable_stdin if needed.
9283
9284 2014-03-20 Pedro Alves <palves@redhat.com>
9285
9286 * infrun.c (prepare_to_proceed): Delete.
9287 (thread_still_needs_step_over): New function.
9288 (find_thread_needs_step_over): New function.
9289 (proceed): If the current thread needs a step-over, set its
9290 steping_over_breakpoint flag. Adjust to use
9291 find_thread_needs_step_over instead of prepare_to_proceed.
9292 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9293 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9294 breakpoint.
9295 (switch_back_to_stepped_thread): Step over breakpoints of all
9296 threads not the stepping thread, before switching back to the
9297 stepping thread.
9298
9299 2014-03-20 Pedro Alves <palves@redhat.com>
9300
9301 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9302 extern.
9303 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9304 * infrun.c (saved_singlestep_ptid)
9305 (stepping_past_singlestep_breakpoint): Delete.
9306 (resume): Remove stepping_past_singlestep_breakpoint handling.
9307 (proceed): Store the prev_pc of the stepping thread too.
9308 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9309 singlestep_pc.
9310 (enum infwait_states): Delete infwait_thread_hop_state.
9311 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9312 field.
9313 (handle_inferior_event): Adjust.
9314 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9315 handling and the thread-hop code. Before removing single-step
9316 breakpoints, check whether the thread hit a single-step breakpoint
9317 of another thread. If it did, the trap is not a random signal.
9318 (switch_back_to_stepped_thread): If the event thread hit a
9319 single-step breakpoint, unblock it before switching to the
9320 stepping thread. Handle the case of the stepped thread having
9321 advanced already.
9322 (keep_going): Handle the case of the current thread moving past a
9323 single-step breakpoint.
9324
9325 2014-03-20 Pedro Alves <palves@redhat.com>
9326
9327 PR breakpoints/7143
9328 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9329 are being stepped over.
9330 (breakpoint_address_match): Make extern.
9331 * breakpoint.h (breakpoint_address_match): New declaration.
9332 * inferior.h (stepping_past_instruction_at): New declaration.
9333 * infrun.c (struct step_over_info): New type.
9334 (step_over_info): New global.
9335 (set_step_over_info, clear_step_over_info)
9336 (stepping_past_instruction_at): New functions.
9337 (handle_inferior_event): Clear the step-over info when
9338 trap_expected is cleared.
9339 (resume): Remove now stale comment.
9340 (clear_proceed_status): Clear step-over info.
9341 (proceed): Adjust step-over handling to set or clear the step-over
9342 info instead of removing all breakpoints.
9343 (handle_signal_stop): When setting up a thread-hop, don't remove
9344 breakpoints here.
9345 (stop_stepping): Clear step-over info.
9346 (keep_going): Adjust step-over handling to set or clear step-over
9347 info and then always inserting breakpoints, instead of removing
9348 all breakpoints when stepping over one.
9349
9350 2014-03-20 Pedro Alves <palves@redhat.com>
9351
9352 * infrun.c (previous_inferior_ptid): Adjust comment.
9353 (deferred_step_ptid): Delete.
9354 (infrun_thread_ptid_changed, prepare_to_proceed)
9355 (init_wait_for_inferior): Adjust.
9356 (handle_signal_stop): Delete deferred_step_ptid handling.
9357
9358 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9359
9360 PR gdb/15358
9361 * defs.h (sync_quit_force_run): New declaration.
9362 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9363 * event-top.c (async_sigterm_handler): New declaration.
9364 (async_sigterm_token): New variable.
9365 (async_init_signals): Create also async_sigterm_token.
9366 (async_sigterm_handler): New function.
9367 (sync_quit_force_run): New variable.
9368 (handle_sigterm): Replace quit_force call by other calls.
9369 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9370
9371 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9372
9373 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9374 offset into SPE pseudo registers.
9375
9376 2014-03-18 Pedro Alves <palves@redhat.com>
9377
9378 PR gdb/13860
9379 * inferior.h (print_stop_event): Declare.
9380 * infrun.c (print_stop_event): New, factored out from ...
9381 (normal_stop): ... this.
9382 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9383 of bpstat_print/print_stack_frame.
9384
9385 2014-03-17 Tom Tromey <tromey@redhat.com>
9386
9387 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9388
9389 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9390
9391 * ada-lang.c (decode_constrained_packed_array): Perform a
9392 minimal coercion for reference with coerce_ref instead of
9393 ada_coerce_ref.
9394
9395 2014-03-17 Tristan Gingold <gingold@adacore.com>
9396
9397 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9398 (darwin_solib_create_inferior_hook): Emit a warning if version
9399 is unhandled.
9400
9401 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9402
9403 * python/py-value.c (get_field_flag): Cast flag_name argument to
9404 PyObject_GetAttrString to support Python 2.4.
9405
9406 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9407
9408 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9409 (Global Maintainers): Remove Jan Kratochvil.
9410
9411 2014-03-14 Pedro Alves <palves@redhat.com>
9412
9413 * inferior.h (terminal_ours_for_output): Rename to ...
9414 (child_terminal_ours_for_output): ... this.
9415 (terminal_save_ours): Rename to ...
9416 (child_terminal_save_ours): ... this.
9417 (terminal_ours): Rename to ...
9418 (child_terminal_ours): ... this.
9419 (terminal_inferior): Rename to ...
9420 (child_terminal_inferior): ... this.
9421 (terminal_init_inferior): Rename to ...
9422 (child_terminal_init_inferior): ... this.
9423 (terminal_init_inferior_with_pgrp): Rename to ...
9424 (child_terminal_init_inferior_with_pgrp): ... this.
9425 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9426 (child_terminal_init_with_pgrp): ... this.
9427 (terminal_save_ours): Rename to ...
9428 (child_terminal_save_ours): ... this.
9429 (terminal_init_inferior): Rename to ...
9430 (child_terminal_init): ... this. Adjust.
9431 (terminal_inferior): Rename to ...
9432 (child_terminal_inferior): ... this.
9433 (terminal_ours_for_output): Rename to ...
9434 (child_terminal_ours_for_output): ... this. Adjust.
9435 (terminal_ours): Rename to ...
9436 (child_terminal_ours): ... this.
9437 (terminal_ours_1): Rename to ...
9438 (child_terminal_ours_1): ... this. Adjust.
9439 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9440 * windows-nat.c (do_initial_windows_stuff): Adjust.
9441 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9442 (gnu_terminal_init): ... this. Adjust.
9443 (gnu_target): Adjust.
9444 * inf-child.c (inf_child_target): Adjust.
9445
9446 2014-03-13 Doug Evans <xdje42@gmail.com>
9447
9448 PR guile/16612
9449 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9450 new eq?-hashtab.
9451
9452 2014-03-13 Doug Evans <xdje42@gmail.com>
9453
9454 * value.c (record_latest_value): Call release_value_or_incref
9455 instead of release_value.
9456
9457 2014-03-13 Pedro Alves <palves@redhat.com>
9458
9459 * procfs.c (procfs_target): Don't override to_shortname,
9460 to_longname or to_doc.
9461
9462 2014-03-13 Pedro Alves <palves@redhat.com>
9463
9464 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9465 Unix in user visible strings.
9466
9467 2014-03-12 Stan Shebs <stan@codesourcery.com>
9468
9469 * gdbtypes.h: Annotate comments for Doxygen, add a page
9470 block comment with some general info.
9471
9472 2014-03-12 Pedro Alves <palves@redhat.com>
9473
9474 * infcmd.c (prepare_execution_command): New function, factored out
9475 from several execution commands.
9476 (run_command_1, continue_command, step_1, jump_command)
9477 (signal_command, until_command, advance_command, finish_command)
9478 (attach_command): Use prepare_execution_command.
9479
9480 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9481
9482 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9483 (MAX_BPTS): Define.
9484 (MAX_WPTS): Define.
9485 (struct arm_linux_thread_points): Removed.
9486 (struct arm_linux_process_info): New.
9487 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9488 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9489 (arm_linux_find_breakpoints_by_tid): Removed.
9490 (struct arch_lwp_info): New.
9491 (arm_linux_find_process_pid): New functions.
9492 (arm_linux_add_process): New functions.
9493 (arm_linux_process_info_get): New functions.
9494 (arm_linux_forget_process): New function.
9495 (arm_linux_get_debug_reg_state): New function.
9496 (struct update_registers_data): New.
9497 (update_registers_callback): New function.
9498 (arm_linux_insert_hw_breakpoint1): Updated.
9499 (arm_linux_remove_hw_breakpoint1): Updated.
9500 (arm_linux_insert_hw_breakpoint): Updated.
9501 (arm_linux_remove_hw_breakpoint): Updated.
9502 (arm_linux_insert_watchpoint): Updated.
9503 (arm_linux_remove_watchpoint): Updated.
9504 (arm_linux_new_thread): Updated.
9505 (arm_linux_prepare_to_resume): New function.
9506 (arm_linux_new_fork): New function.
9507 (_initialize_arm_linux_nat): Updated.
9508
9509 2014-03-12 Pedro Alves <palves@redhat.com>
9510
9511 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9512
9513 2014-03-12 Tom Tromey <tromey@redhat.com>
9514
9515 * inf-child.c (return_zero): New function.
9516 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9517 * aix-thread.c (aix_thread_inferior_created): New function.
9518 (aix_thread_attach): Remove.
9519 (init_aix_thread_ops): Don't set to_attach.
9520 (_initialize_aix_thread): Register inferior_created observer.
9521 * corelow.c (init_core_ops): Don't set to_attach or
9522 to_create_inferior.
9523 * exec.c (init_exec_ops): Don't set to_attach or
9524 to_create_inferior.
9525 * infcmd.c (run_command_1): Use find_run_target. Make direct
9526 target calls.
9527 (attach_command): Use find_attach_target. Make direct target
9528 calls.
9529 * record-btrace.c (init_record_btrace_ops): Don't set
9530 to_create_inferior.
9531 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9532 Remove.
9533 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9534 set to_create_inferior.
9535 * target.c (complete_target_initialization): Add assertion.
9536 (target_create_inferior): Remove.
9537 (find_default_attach, find_default_create_inferior): Remove.
9538 (find_attach_target, find_run_target): New functions.
9539 (find_default_is_async_p, find_default_can_async_p)
9540 (target_supports_non_stop, target_attach): Remove.
9541 (init_dummy_target): Don't set to_create_inferior or
9542 to_supports_non_stop.
9543 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9544 TARGET_DEFAULT_FUNC.
9545 <to_create_inferior>: Add comment.
9546 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9547 TARGET_DEFAULT_RETURN.
9548 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9549 (find_attach_target, find_run_target): Declare.
9550 (target_create_inferior): Remove.
9551 (target_has_execution_1): Update comment.
9552 (target_supports_non_stop): Remove.
9553 * target-delegates.c: Rebuild.
9554
9555 2014-03-12 Pedro Alves <palves@redhat.com>
9556
9557 * inf-child.h: Update comment to not mention Unix.
9558
9559 2014-03-12 Pedro Alves <palves@redhat.com>
9560
9561 * inf-child.c: Update top comment to not mention Unix. Add
9562 generic comment describing how this target is meant to be used.
9563 (inf_child_post_attach, inf_child_post_startup_inferior)
9564 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9565 Unix in comment.
9566
9567 2014-03-12 Pedro Alves <palves@redhat.com>
9568
9569 * nto-procfs.c: Include inf-child.h.
9570 (procfs_ops): Delete global.
9571 (procfs_can_run): Delete method.
9572 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9573 target pointer instead of referencing procfs_ops.
9574 (procfs_prepare_to_store): Delete.
9575 (init_procfs_ops): Delete function.
9576 (procfs_target): New function, based on init_procfs_ops, but
9577 inherit inf_child_target.
9578 (_initialize_procfs): Use procfs_target.
9579
9580 2014-03-12 Pedro Alves <palves@redhat.com>
9581
9582 * windows-nat.c: Include inf-child.h.
9583 (windows_ops): Delete global.
9584 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9585 methods.
9586 (init_windows_ops): Delete function.
9587 (windows_target): New function, based on init_windows_ops, but
9588 inherit inf_child_target.
9589 (_initialize_windows_nat): Use windows_target. Install x86
9590 specific target methods here.
9591
9592 2014-03-10 Doug Evans <xdje42@gmail.com>
9593
9594 * guile/guile.c (call_initialize_gdb_module): New function.
9595 (initialize_guile): Replace call to scm_init_guile with call to
9596 scm_with_guile.
9597
9598 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9599
9600 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9601 in call to TYPE_CODE macro.
9602
9603 2014-03-10 Jerome Guitton <guitton@adacore.com>
9604
9605 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9606 Resolve tagged types to full view.
9607
9608 2014-03-10 Hui Zhu <hui@codesourcery.com>
9609
9610 * target.h (target_insert_breakpoint): Remove "hardware" from its
9611 comments.
9612
9613 2014-03-07 Doug Evans <dje@google.com>
9614
9615 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9616
9617 2014-03-07 Doug Evans <dje@google.com>
9618
9619 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9620 Remove unused local comp_dir_attr. Assert exactly one of
9621 stub_comp_unit_die, stub_comp_dir is non-NULL.
9622
9623 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9624
9625 * target.h (complete_target_initialization, add_target):
9626 Add comment.
9627
9628 2014-03-07 Pedro Alves <palves@redhat.com>
9629
9630 * go32-nat.c: Include inf-child.h.
9631 (go32_ops): Delete global.
9632 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9633 Delete methods.
9634 (go32_create_inferior): Push the passed in target pointer instead
9635 of referencing go32_ops.
9636 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9637 (go32_target): New function, based on init_go32_ops, but inherit
9638 inf_child_target.
9639 (_initialize_go32_nat): Use go32_target. Move parts of
9640 init_go32_ops here.
9641
9642 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9643
9644 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9645 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9646 SYMBOL_VALUE_ADDRESS.
9647 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9648
9649 2014-03-06 Yao Qi <yao@codesourcery.com>
9650
9651 * breakpoint.c (get_tracepoint_by_number): Remove argument
9652 optional_p. All callers updated. Adjust comments. Update
9653 output message.
9654 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9655
9656 2014-03-06 Yao Qi <yao@codesourcery.com>
9657
9658 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9659 early if get_number returns zero. Use 'p' instead of 'args'.
9660
9661 2014-03-06 Yao Qi <yao@codesourcery.com>
9662
9663 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9664 message.
9665
9666 2014-03-06 Yao Qi <yao@codesourcery.com>
9667
9668 PR breakpoints/16508
9669 * tracepoint.c (check_trace_running): New function.
9670 (trace_find_command): Move code to check_trace_running and
9671 call check_trace_running.
9672 (trace_find_pc_command): Likewise.
9673 (trace_find_tracepoint_command): Likewise.
9674 (trace_find_line_command): Likewise.
9675 (trace_find_range_command): Likewise.
9676 * tracepoint.h (check_trace_running): Likewise.
9677 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9678
9679 2014-03-06 Yao Qi <yao@codesourcery.com>
9680
9681 * target.h (struct target_ops) <to_traceframe_info>: Use
9682 TARGET_DEFAULT_NORETURN (tcomplain ()).
9683 * target-delegates.c: Regenerated.
9684
9685 2014-03-05 Pedro Alves <palves@redhat.com>
9686
9687 PR gdb/16575
9688 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9689 void. Update comment.
9690 (dcache_xfer_memory): Delete.
9691 (dcache_read_memory_partial): New, based on the read bits of
9692 dcache_xfer_memory.
9693 (dcache_update): Add status parameter. Use ULONGEST for len, and
9694 adjust. Discard cache lines if the reason for the update was
9695 error.
9696 * dcache.h (dcache_xfer_memory): Delete declaration.
9697 (dcache_read_memory_partial): New declaration.
9698 (dcache_update): Update prototype.
9699 * target.c (raw_memory_xfer_partial): Update the dcache here.
9700 (memory_xfer_partial_1): Don't handle dcache writes here.
9701
9702 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9703
9704 * remote-sim.c (gdbsim_load): Add const to prog.
9705
9706 2014-03-03 Tom Tromey <tromey@redhat.com>
9707
9708 * elfread.c (probe_key): Change to bfd_data.
9709 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9710 now per-BFD, not per-objfile.
9711 * stap-probe.c (stap_probe_destroy): Update comment.
9712 (handle_stap_probe): Allocate on the per-BFD obstack.
9713
9714 2014-03-03 Tom Tromey <tromey@redhat.com>
9715
9716 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9717 * breakpoint.c (create_longjmp_master_breakpoint): Use
9718 get_probe_address.
9719 (add_location_to_breakpoint, bkpt_probe_insert_location)
9720 (bkpt_probe_remove_location): Update.
9721 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9722 * elfread.c (elf_symfile_relocate_probe): Remove.
9723 (elf_probe_fns): Update.
9724 (insert_exception_resume_breakpoint): Change type of "probe"
9725 parameter to bound_probe.
9726 (check_exception_resume): Update.
9727 * objfiles.c (objfile_relocate1): Don't relocate probes.
9728 * probe.c (bound_probe_s): New typedef.
9729 (parse_probes): Use get_probe_address. Set sal's objfile.
9730 (find_probe_by_pc): Return a bound_probe.
9731 (collect_probes): Return a VEC(bound_probe_s).
9732 (compare_probes): Update.
9733 (gen_ui_out_table_header_info): Change type of "probes"
9734 parameter. Update.
9735 (info_probes_for_ops): Update.
9736 (get_probe_address): New function.
9737 (probe_safe_evaluate_at_pc): Update.
9738 * probe.h (struct probe_ops) <get_probe_address>: New field.
9739 <set_semaphore, clear_semaphore>: Add objfile parameter.
9740 (struct probe) <objfile>: Remove field.
9741 <arch>: New field.
9742 <address>: Update comment.
9743 (struct bound_probe): New.
9744 (find_probe_by_pc): Return a bound_probe.
9745 (get_probe_address): Declare.
9746 * solib-svr4.c (struct probe_and_action) <address>: New field.
9747 (hash_probe_and_action, equal_probe_and_action): Update.
9748 (register_solib_event_probe): Add address parameter.
9749 (solib_event_probe_at): Update.
9750 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9751 get_probe_address.
9752 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9753 (stap_get_probe_address): New function.
9754 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9755 (compile_probe_arg): Update.
9756 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9757 address.
9758 (handle_stap_probe): Don't relocate the probe.
9759 (stap_relocate): Remove.
9760 (stap_gen_info_probes_table_values): Update.
9761 (stap_probe_ops): Remove stap_relocate.
9762 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9763 (debug_sym_probe_fns): Update.
9764 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9765 * symtab.c (init_sal): Use memset.
9766 * symtab.h (struct symtab_and_line) <objfile>: New field.
9767 * tracepoint.c (start_tracing, stop_tracing): Update.
9768
9769 2014-03-03 Tom Tromey <tromey@redhat.com>
9770
9771 * probe.h (parse_probes, find_probe_by_pc)
9772 (find_probes_in_objfile): Fix comments.
9773
9774 2014-03-02 Doug Evans <xdje42@gmail.com>
9775
9776 * infrun.c (handle_signal_stop): Replace test for
9777 TARGET_WAITKIND_STOPPED with an assert.
9778
9779 2014-03-02 Doug Evans <xdje42@gmail.com>
9780
9781 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9782
9783 2014-03-02 Doug Evans <xdje42@gmail.com>
9784
9785 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9786
9787 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9788
9789 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9790
9791 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9792
9793 * i386obsd-nat.c: Include "obsd-nat.h".
9794 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9795 add_target.
9796 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9797
9798 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9799
9800 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9801
9802 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9803
9804 * mips64obsd-nat.c: Include "obsd-nath".
9805 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9806 add_target
9807 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9808
9809 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9810
9811 * amd64obsd-nat.c: Include "obsd-nat,h.
9812 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9813 add_target.
9814 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9815
9816 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9817
9818 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9819 (find_overload_match): Update call to find_oload_champ.
9820 (find_oload_champ_namespace_loop): Likewise
9821
9822 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9823
9824 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9825
9826 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9827 * config/sparc/obsd64.mh: New file.
9828 * sparc64obsd-nat.c: New file.
9829
9830 * obsd-nat.h: New file.
9831 * obsd-nat.c: New file.
9832 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9833 (ALLDEPFILES): Add obsd-nat.c.
9834
9835 2014-02-28 Tom Tromey <tromey@redhat.com>
9836
9837 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9838 * cli-out.h (cli_ui_out_impl): Now const.
9839 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9840 * ui-out.c (struct ui_out) <impl>: Now const.
9841 (default_ui_out_impl): Now const.
9842 (ui_out_new): Make 'impl' parameter const.
9843 * ui-out.h (ui_out_new): Update.
9844
9845 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9846
9847 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9848
9849 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9850
9851 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9852
9853 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9854
9855 Additional PR 8882 fix.
9856 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9857
9858 2014-02-27 Pedro Alves <palves@redhat.com>
9859
9860 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9861 isn't set.
9862
9863 2014-02-27 Pedro Alves <palves@redhat.com>
9864
9865 PR 12702
9866 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9867 * nat/linux-waitpid.c: Include string.h.
9868 (status_to_str): Moved here and made extern.
9869 * nat/linux-waitpid.h (status_to_str): New declaration.
9870
9871 2014-02-27 Hui Zhu <hui@codesourcery.com>
9872
9873 PR 12702
9874 * infrun.c (ptid_match): Move ...
9875 * common/ptid.c (ptid_match): ... here.
9876 * inferior.h (ptid_match): Move ...
9877 * common/ptid.h (ptid_match): ... here.
9878
9879 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9880
9881 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9882 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9883 gdb_target_obs.
9884
9885 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9886
9887 * obsd-tdep.c (obsd_auxv_parse): New function.
9888 (obsd_init_abi): Set auxv_parse.
9889
9890 * gdbarch.sh (auxv_parse): New.
9891 * gdbarch.h: Regenerated.
9892 * gdbarch.c: Regenerated.
9893 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9894
9895 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9896
9897 * guile/scm-value.c (gdbscm_history_append_x): New function.
9898 (value_functions): Add it.
9899
9900 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9901
9902 * dwarf2read.c (attr_value_as_address): New function.
9903 (dwarf2_find_base_address, read_call_site_scope): Use
9904 attr_value_as_address in place of DW_ADDR.
9905 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9906 the low and high addresses. Slight rework of the handling
9907 of the high pc being a constant form, and limit it to
9908 DWARF verson 4 or higher.
9909 (dwarf2_record_block_ranges): Likewise.
9910 (read_partial_die): Likewise.
9911 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9912
9913 2014-02-26 Tom Tromey <tromey@redhat.com>
9914
9915 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9916
9917 2014-02-26 Tom Tromey <tromey@redhat.com>
9918
9919 * elfread.c (elf_read_minimal_symbols): Return early if
9920 minimal symbols have already been read. Add "ei" parameter.
9921 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9922 * minsyms.c (prim_record_minimal_symbol_full): Update.
9923 * objfiles.h (struct objstats) <n_minsyms>: Move...
9924 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9925 * symmisc.c (print_objfile_statistics): Update.
9926
9927 2014-02-26 Tom Tromey <tromey@redhat.com>
9928
9929 * elfread.c (elf_read_minimal_symbols): New function, from
9930 elf_symfile_read.
9931 (elf_symfile_read): Call it.
9932
9933 2014-02-26 Tom Tromey <tromey@redhat.com>
9934
9935 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9936 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9937 (lookup_minimal_symbol_solib_trampoline)
9938 (lookup_minimal_symbol_by_pc_section_1)
9939 (lookup_minimal_symbol_and_objfile): Update.
9940 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9941 Don't allocate a minimal symbol if minsyms have already been read.
9942 (build_minimal_symbol_hash_tables): Update.
9943 (install_minimal_symbols): Do nothing if minsyms already read.
9944 Use the per-BFD obstack.
9945 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9946 * objfiles.c (allocate_objfile): Call
9947 terminate_minimal_symbol_table later.
9948 (have_minimal_symbols): Update.
9949 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9950 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9951 Move from struct objfile.
9952 <minsyms_read>: New field.
9953 (struct objfile) <msymbols, minimal_symbol_count,
9954 msymbol_hash, msymbol_demangled_hash>: Move.
9955 (ALL_OBJFILE_MSYMBOLS): Update.
9956 * symfile.c (read_symbols): Set minsyms_read.
9957 (reread_symbols): Update.
9958 * symmisc.c (dump_objfile, dump_msymbols): Update.
9959
9960 2014-02-26 Tom Tromey <tromey@redhat.com>
9961
9962 * minsyms.c (msymbols_sort): Remove.
9963 * minsyms.h (msymbols_sort): Remove.
9964 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9965 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9966 * elfread.c (elf_symtab_read): Don't add section offsets.
9967 * xcoffread.c (record_minimal_symbol): Don't add section offset
9968 to minimal symbol address.
9969 * somread.c (text_offset, data_offset): Remove.
9970 (som_symtab_read): Don't add section offsets to minimal symbol
9971 addresses.
9972 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9973 Don't add section offsets to minimal symbols.
9974 * coffread.c (coff_symtab_read): Don't add section offsets
9975 to minimal symbol addresses.
9976 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9977 to minimal symbol addresses.
9978 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9979 section offset to minimal symbol addresses.
9980 * mdebugread.c (parse_partial_symbols): Don't add section
9981 offset to minimal symbol addresses.
9982 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9983 offset to minimal symbol addresses.
9984
9985 2014-02-26 Tom Tromey <tromey@redhat.com>
9986
9987 * ada-lang.c (ada_main_name): Update.
9988 (ada_add_standard_exceptions): Update.
9989 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9990 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9991 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9992 * auxv.c (ld_so_xfer_auxv): Update.
9993 * avr-tdep.c (avr_scan_prologue): Update.
9994 * ax-gdb.c (gen_var_ref): Update.
9995 * blockframe.c (get_pc_function_start)
9996 (find_pc_partial_function_gnu_ifunc): Update.
9997 * breakpoint.c (create_overlay_event_breakpoint)
9998 (create_longjmp_master_breakpoint)
9999 (create_std_terminate_master_breakpoint)
10000 (create_exception_master_breakpoint): Update.
10001 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10002 * c-valprint.c (c_val_print): Update.
10003 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10004 * common/agent.c (agent_look_up_symbols): Update.
10005 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10006 * dwarf2loc.c (call_site_to_target_addr): Update.
10007 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10008 * elfread.c (elf_gnu_ifunc_record_cache)
10009 (elf_gnu_ifunc_resolve_by_got): Update.
10010 * findvar.c (default_read_var_value): Update.
10011 * frame.c (inside_main_func): Update.
10012 * frv-tdep.c (frv_frame_this_id): Update.
10013 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10014 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10015 Update.
10016 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10017 (hppa_hpux_find_dummy_bpaddr): Update.
10018 * hppa-tdep.c (hppa_symbol_address): Update.
10019 * infcmd.c (until_next_command): Update.
10020 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10021 Update.
10022 * linespec.c (minsym_found, add_minsym): Update.
10023 * linux-nat.c (get_signo): Update.
10024 * linux-thread-db.c (inferior_has_bug): Update.
10025 * m32c-tdep.c (m32c_return_value)
10026 (m32c_m16c_address_to_pointer): Update.
10027 * m32r-tdep.c (m32r_frame_this_id): Update.
10028 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10029 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10030 * maint.c (maintenance_translate_address): Update.
10031 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10032 (frob_address): New function.
10033 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10034 frob_address. Rename parameter to "pc_in".
10035 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10036 addresses.
10037 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10038 Update.
10039 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10040 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10041 * objc-lang.c (find_objc_msgsend): Update.
10042 * objfiles.c (objfile_relocate1): Update.
10043 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10044 * p-valprint.c (pascal_val_print): Update.
10045 * parse.c (write_exp_msymbol): Update.
10046 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10047 (ppc_elfv2_skip_entrypoint): Update.
10048 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10049 * printcmd.c (build_address_symbolic, msym_info)
10050 (address_info): Update.
10051 * proc-service.c (ps_pglobal_lookup): Update.
10052 * psymtab.c (find_pc_sect_psymtab_closer)
10053 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10054 Change msymbol parameter to bound_minimal_symbol.
10055 * ravenscar-thread.c (get_running_thread_id): Update.
10056 * remote.c (remote_check_symbols): Update.
10057 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10058 address.
10059 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10060 * solib-dsbt.c (lm_base): Update.
10061 * solib-frv.c (lm_base, main_got): Update.
10062 * solib-irix.c (locate_base): Update.
10063 * solib-som.c (som_solib_create_inferior_hook)
10064 (link_map_start): Update.
10065 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10066 * solib-svr4.c (elf_locate_base, enable_break): Update.
10067 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10068 (flush_ea_cache): Update.
10069 * stabsread.c (define_symbol, scan_file_globals): Update.
10070 * stack.c (find_frame_funname): Update.
10071 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10072 (debug_qf_find_pc_sect_symtab): Update.
10073 * symfile.c (simple_read_overlay_table)
10074 (simple_overlay_update): Update.
10075 * symfile.h (struct quick_symbol_functions)
10076 <find_pc_sect_symtab>: Change type of msymbol to
10077 bound_minimal_symbol.
10078 * symmisc.c (dump_msymbols): Update.
10079 * symtab.c (find_pc_sect_symtab_via_partial)
10080 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10081 (search_symbols, print_msymbol_info): Update.
10082 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10083 (MSYMBOL_VALUE_ADDRESS): Redefine.
10084 (BMSYMBOL_VALUE_ADDRESS): New macro.
10085 * tracepoint.c (scope_info): Update.
10086 * tui/tui-disasm.c (tui_find_disassembly_address)
10087 (tui_get_begin_asm_address): Update.
10088 * valops.c (find_function_in_inferior): Update.
10089 * value.c (value_static_field, value_fn_field): Update.
10090
10091 2014-02-26 Tom Tromey <tromey@redhat.com>
10092
10093 * ada-lang.c (ada_update_initial_language): Update.
10094 (ada_main_name, ada_has_this_exception_support): Update.
10095 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10096 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10097 * arm-tdep.c (arm_skip_stub): Update.
10098 * auxv.c (ld_so_xfer_auxv): Update.
10099 * avr-tdep.c (avr_scan_prologue): Update.
10100 * ax-gdb.c (gen_var_ref): Update.
10101 * breakpoint.c (struct breakpoint_objfile_data)
10102 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10103 type to bound_minimal_symbol.
10104 (create_overlay_event_breakpoint)
10105 (create_longjmp_master_breakpoint)
10106 (create_std_terminate_master_breakpoint)
10107 (create_exception_master_breakpoint): Update.
10108 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10109 * c-exp.y (classify_name): Update.
10110 * coffread.c (coff_symfile_read): Update.
10111 * common/agent.c (agent_look_up_symbols): Update.
10112 * d-lang.c (d_main_name): Update.
10113 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10114 * dec-thread.c (enable_dec_thread): Update.
10115 * dwarf2loc.c (call_site_to_target_addr): Update.
10116 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10117 * eval.c (evaluate_subexp_standard): Update.
10118 * findvar.c (struct minsym_lookup_data) <result>: Change type
10119 to bound_minimal_symbol.
10120 <objfile>: Remove.
10121 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10122 * frame.c (inside_main_func): Update.
10123 * frv-tdep.c (frv_frame_this_id): Update.
10124 * gcore.c (call_target_sbrk): Update.
10125 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10126 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10127 Update.
10128 * go-lang.c (go_main_name): Update.
10129 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10130 (hppa_hpux_find_import_stub_for_addr): Update.
10131 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10132 Update. Change return type.
10133 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10134 type.
10135 * jit.c (jit_breakpoint_re_set_internal): Update.
10136 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10137 Update.
10138 * linux-nat.c (get_signo): Update.
10139 * linux-thread-db.c (inferior_has_bug): Update
10140 * m32c-tdep.c (m32c_return_value)
10141 (m32c_m16c_address_to_pointer): Update.
10142 * m32r-tdep.c (m32r_frame_this_id): Update.
10143 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10144 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10145 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10146 lookup_minimal_symbol. Change return type.
10147 (lookup_minimal_symbol): Remove.
10148 (lookup_bound_minimal_symbol): Update.
10149 (lookup_minimal_symbol_text): Change return type.
10150 (lookup_minimal_symbol_solib_trampoline): Change return type.
10151 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10152 (lookup_minimal_symbol_solib_trampoline): Change return type.
10153 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10154 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10155 (value_nsstring, find_imps): Update.
10156 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10157 * p-lang.c (pascal_main_name): Update.
10158 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10159 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10160 * proc-service.c (ps_pglobal_lookup): Update.
10161 * ravenscar-thread.c (get_running_thread_msymbol): Change
10162 return type.
10163 (has_ravenscar_runtime, get_running_thread_id): Update.
10164 * remote.c (remote_check_symbols): Update.
10165 * sol-thread.c (ps_pglobal_lookup): Update.
10166 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10167 * solib-dsbt.c (lm_base): Update.
10168 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10169 Update.
10170 * solib-irix.c (locate_base): Update.
10171 * solib-som.c (som_solib_create_inferior_hook)
10172 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10173 Update.
10174 * solib-spu.c (spu_enable_break): Update.
10175 * solib-svr4.c (elf_locate_base, enable_break): Update.
10176 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10177 (flush_ea_cache): Update.
10178 * stabsread.c (define_symbol): Update.
10179 * symfile.c (simple_read_overlay_table): Update.
10180 * symtab.c (find_pc_sect_line): Update.
10181 * tracepoint.c (scope_info): Update.
10182 * tui-disasm.c (tui_get_begin_asm_address): Update.
10183 * value.c (value_static_field): Update.
10184
10185 2014-02-26 Tom Tromey <tromey@redhat.com>
10186
10187 * minsyms.c (prim_record_minimal_symbol_full): Use
10188 SET_MSYMBOL_VALUE_ADDRESS.
10189 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10190 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10191 SET_MSYMBOL_VALUE_ADDRESS.
10192 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10193 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10194
10195 2014-02-26 Tom Tromey <tromey@redhat.com>
10196
10197 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10198 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10199 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10200 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10201 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10202 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10203 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10204 * ada-lang.c (ada_main_name): Update.
10205 (ada_lookup_simple_minsym): Update.
10206 (ada_make_symbol_completion_list): Update.
10207 (ada_add_standard_exceptions): Update.
10208 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10209 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10210 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10211 * arm-tdep.c (skip_prologue_function): Update.
10212 (arm_skip_stack_protector, arm_skip_stub): Update.
10213 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10214 (arm_wince_skip_main_prologue): Update.
10215 * auxv.c (ld_so_xfer_auxv): Update.
10216 * avr-tdep.c (avr_scan_prologue): Update.
10217 * ax-gdb.c (gen_var_ref): Update.
10218 * block.c (call_site_for_pc): Update.
10219 * blockframe.c (get_pc_function_start): Update.
10220 (find_pc_partial_function_gnu_ifunc): Update.
10221 * breakpoint.c (create_overlay_event_breakpoint): Update.
10222 (create_longjmp_master_breakpoint): Update.
10223 (create_std_terminate_master_breakpoint): Update.
10224 (create_exception_master_breakpoint): Update.
10225 (resolve_sal_pc): Update.
10226 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10227 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10228 Update.
10229 * c-valprint.c (c_val_print): Update.
10230 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10231 * coffread.c (coff_symfile_read): Update.
10232 * common/agent.c (agent_look_up_symbols): Update.
10233 * dbxread.c (find_stab_function_addr): Update.
10234 (end_psymtab): Update.
10235 * dwarf2loc.c (call_site_to_target_addr): Update.
10236 (func_verify_no_selftailcall): Update.
10237 (tailcall_dump): Update.
10238 (call_site_find_chain_1): Update.
10239 (dwarf_expr_reg_to_entry_parameter): Update.
10240 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10241 (elf_gnu_ifunc_resolve_by_got): Update.
10242 * f-valprint.c (info_common_command): Update.
10243 * findvar.c (read_var_value): Update.
10244 * frame.c (get_prev_frame_1): Update.
10245 (inside_main_func): Update.
10246 * frv-tdep.c (frv_skip_main_prologue): Update.
10247 (frv_frame_this_id): Update.
10248 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10249 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10250 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10251 (gnuv3_skip_trampoline): Update.
10252 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10253 (hppa64_hpux_in_solib_call_trampoline): Update.
10254 (hppa_hpux_skip_trampoline_code): Update.
10255 (hppa64_hpux_search_dummy_call_sequence): Update.
10256 (hppa_hpux_find_import_stub_for_addr): Update.
10257 (hppa_hpux_find_dummy_bpaddr): Update.
10258 * hppa-tdep.c (hppa_symbol_address)
10259 (hppa_lookup_stub_minimal_symbol): Update.
10260 * i386-tdep.c (i386_skip_main_prologue): Update.
10261 (i386_pe_skip_trampoline_code): Update.
10262 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10263 * infcall.c (get_function_name): Update.
10264 * infcmd.c (until_next_command): Update.
10265 * jit.c (jit_breakpoint_re_set_internal): Update.
10266 (jit_inferior_init): Update.
10267 * linespec.c (minsym_found): Update.
10268 (add_minsym): Update.
10269 * linux-fork.c (info_checkpoints_command): Update.
10270 * linux-nat.c (get_signo): Update.
10271 * linux-thread-db.c (inferior_has_bug): Update.
10272 * m32c-tdep.c (m32c_return_value): Update.
10273 (m32c_m16c_address_to_pointer): Update.
10274 (m32c_m16c_pointer_to_address): Update.
10275 * m32r-tdep.c (m32r_frame_this_id): Update.
10276 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10277 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10278 * maint.c (maintenance_translate_address): Update.
10279 * minsyms.c (add_minsym_to_hash_table): Update.
10280 (add_minsym_to_demangled_hash_table): Update.
10281 (msymbol_objfile): Update.
10282 (lookup_minimal_symbol): Update.
10283 (iterate_over_minimal_symbols): Update.
10284 (lookup_minimal_symbol_text): Update.
10285 (lookup_minimal_symbol_by_pc_name): Update.
10286 (lookup_minimal_symbol_solib_trampoline): Update.
10287 (lookup_minimal_symbol_by_pc_section_1): Update.
10288 (lookup_minimal_symbol_and_objfile): Update.
10289 (prim_record_minimal_symbol_full): Update.
10290 (compare_minimal_symbols): Update.
10291 (compact_minimal_symbols): Update.
10292 (build_minimal_symbol_hash_tables): Update.
10293 (install_minimal_symbols): Update.
10294 (terminate_minimal_symbol_table): Update.
10295 (find_solib_trampoline_target): Update.
10296 (minimal_symbol_upper_bound): Update.
10297 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10298 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10299 (mips_skip_pic_trampoline_code): Update.
10300 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10301 * objc-lang.c (selectors_info): Update.
10302 (classes_info): Update.
10303 (find_methods): Update.
10304 (find_imps): Update.
10305 (find_objc_msgsend): Update.
10306 * objfiles.c (objfile_relocate1): Update.
10307 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10308 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10309 * p-valprint.c (pascal_val_print): Update.
10310 * parse.c (write_exp_msymbol): Update.
10311 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10312 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10313 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10314 * printcmd.c (build_address_symbolic): Update.
10315 (sym_info): Update.
10316 (address_info): Update.
10317 * proc-service.c (ps_pglobal_lookup): Update.
10318 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10319 (find_pc_sect_psymtab): Update.
10320 * python/py-framefilter.c (py_print_frame): Update.
10321 * ravenscar-thread.c (get_running_thread_id): Update.
10322 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10323 Update.
10324 * remote.c (remote_check_symbols): Update.
10325 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10326 (rs6000_skip_trampoline_code): Update.
10327 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10328 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10329 * solib-dsbt.c (lm_base): Update.
10330 * solib-frv.c (lm_base): Update.
10331 (main_got): Update.
10332 * solib-irix.c (locate_base): Update.
10333 * solib-som.c (som_solib_create_inferior_hook): Update.
10334 (som_solib_desire_dynamic_linker_symbols): Update.
10335 (link_map_start): Update.
10336 * solib-spu.c (spu_enable_break): Update.
10337 (ocl_enable_break): Update.
10338 * solib-svr4.c (elf_locate_base): Update.
10339 (enable_break): Update.
10340 * spu-tdep.c (spu_get_overlay_table): Update.
10341 (spu_catch_start): Update.
10342 (flush_ea_cache): Update.
10343 * stabsread.c (define_symbol): Update.
10344 (scan_file_globals): Update.
10345 * stack.c (find_frame_funname): Update.
10346 (frame_info): Update.
10347 * symfile.c (simple_read_overlay_table): Update.
10348 (simple_overlay_update): Update.
10349 * symmisc.c (dump_msymbols): Update.
10350 * symtab.c (fixup_section): Update.
10351 (find_pc_sect_line): Update.
10352 (skip_prologue_sal): Update.
10353 (search_symbols): Update.
10354 (print_msymbol_info): Update.
10355 (rbreak_command): Update.
10356 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10357 (completion_list_objc_symbol): Update.
10358 (default_make_symbol_completion_list_break_on): Update.
10359 * tracepoint.c (scope_info): Update.
10360 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10361 (tui_get_begin_asm_address): Update.
10362 * valops.c (find_function_in_inferior): Update.
10363 * value.c (value_static_field): Update.
10364 (value_fn_field): Update.
10365
10366 2014-02-26 Tom Tromey <tromey@redhat.com>
10367
10368 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10369 bound minimal symbols. Move code that knows about minsym
10370 table layout...
10371 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10372 function.
10373 * minsyms.h (minimal_symbol_upper_bound): Declare.
10374 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10375 minimal_symbol_upper_bound.
10376
10377 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10378
10379 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10380 Use the type's name if its basic type does not have a tag.
10381
10382 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10383
10384 * dwarf2read.c (read_subrange_type): Add comment.
10385
10386 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10387
10388 * dwarf2read.c (update_enumeration_type_from_children): New
10389 function, mostly extracted from process_structure_scope.
10390 (read_enumeration_type): Call update_enumeration_type_from_children.
10391 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10392 and flag_flag_enum fields.
10393
10394 2014-02-26 Pedro Alves <palves@redhat.com>
10395
10396 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10397 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10398 to_xfer_partial method.
10399
10400 2014-02-26 Pedro Alves <palves@redhat.com>
10401
10402 * target.c (complete_target_initialization): Don't install
10403 default_xfer_partial as to_xfer_partial hook.
10404 (nomemory): Delete.
10405 (update_current_target): Don't INHERIT nor de_fault
10406 deprecated_xfer_memory. Delete de_fault macro.
10407 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10408 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10409 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10410 field.
10411
10412 2014-02-26 Pedro Alves <palves@redhat.com>
10413
10414 * go32-nat.c (my_write_child): New function.
10415 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10416 (go32_xfer_partial): New function.
10417 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10418 Instead install a to_xfer_partial hook.
10419
10420 2014-02-26 Pedro Alves <palves@redhat.com>
10421
10422 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10423 to_xfer_partial helper. Rewrite.
10424 (procfs_xfer_partial): New function.
10425 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10426 Install a to_xfer_partial hook.
10427
10428 2014-02-26 Pedro Alves <palves@redhat.com>
10429
10430 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10431 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10432 (m32r_xfer_partial): New function.
10433 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10434 Install a to_xfer_partial hook.
10435
10436 2014-02-26 Pedro Alves <palves@redhat.com>
10437
10438 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10439 helper.
10440 (mips_xfer_partial): New function.
10441 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10442 hook. Install a to_xfer_partial hook.
10443
10444 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10445
10446 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10447 * gdbtypes.c (create_array_type_with_stride): New function,
10448 renaming create_array_type, but with an added parameter
10449 called "bit_stride".
10450 (create_array_type): Re-implement using
10451 create_array_type_with_stride.
10452 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10453 and DW_AT_bit_stride attributes.
10454
10455 2014-02-26 Pedro Alves <palves@redhat.com>
10456
10457 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10458 task-specific breakpoints.
10459
10460 2014-02-25 Pedro Alves <palves@redhat.com>
10461
10462 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10463 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10464
10465 2014-02-25 Stan Shebs <stan@codesourcery.com>
10466
10467 * defs.h: Annotate comments for Doxygen.
10468
10469 2014-02-25 Tom Tromey <tromey@redhat.com>
10470
10471 * target.h (target_ignore): Don't declare.
10472 * target.c (target_ignore): Remove.
10473
10474 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10475
10476 PR gdb/16626
10477 * auto-load.c (auto_load_objfile_script_1): Change filename to
10478 debugfile.
10479
10480 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10481
10482 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10483 documentation. Adjust prototype to match the target_ops
10484 to_xfer_partial method. Adjust implementation accordingly.
10485
10486 2014-02-25 Hui Zhu <hui@codesourcery.com>
10487
10488 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10489 to_traceframe_info.
10490
10491 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10492
10493 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10494 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10495 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10496 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10497 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10498 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10499 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10500 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10501 New constants.
10502 (rl78_register_type): Use a data pointer type for SP and
10503 new pseudo registers mentioned above. Use a 16 bit integer
10504 type for all other register pairs.
10505 (rl78_register_name, rl78_g10_register_name): Update for
10506 new pseudo registers.
10507 (rl78_pseudo_register_read): Likewise.
10508 (rl78_pseudo_register_write): Likewise.
10509 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10510 to the newly added pseudo registers.
10511
10512 2014-02-24 Doug Evans <dje@google.com>
10513
10514 * value.c (record_latest_value): Fix comment.
10515 * printcmd.c (print_command_1): Remove code to handle -1 return from
10516 record_latest_value.
10517
10518 2014-02-24 Pedro Alves <palves@redhat.com>
10519
10520 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10521 deprecated_xfer_memory hook.
10522 (procfs_xfer_partial): Call procfs_xfer_memory instead
10523 of the deprecated_xfer_memory target hook.
10524 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10525 helper.
10526
10527 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10528
10529 * windows-nat.c (windows_xfer_shared_libraries): Return
10530 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10531 requested object is TARGET_OBJECT_LIBRARIES.
10532
10533 2014-02-24 Yao Qi <yao@codesourcery.com>
10534
10535 * target.h (enum target_xfer_status)
10536 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10537 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10538 explicitly. New.
10539 * corefile.c (memory_error_message): User updated.
10540 * exec.c (section_table_read_available_memory): Likewise.
10541 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10542 * target.c (target_xfer_status_to_string): Likewise.
10543 (raw_memory_xfer_partial): Likewise.
10544 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10545 * valops.c (read_value_memory): Likewise.
10546 * exec.h: Update comments.
10547
10548 2014-02-24 Yao Qi <yao@codesourcery.com>
10549
10550 * target.c (target_xfer_status_to_string): Rename argument err
10551 to status.
10552 * target.h (target_xfer_status_to_string): Update declaration.
10553 Replace target_xfer_error_to_string with
10554 target_xfer_status_to_string in comment.
10555
10556 2014-02-24 Yao Qi <yao@codesourcery.com>
10557
10558 * mips-linux-nat.c (super_close): Update its type.
10559 (mips_linux_close): Pass 'self' to super_close.
10560
10561 2014-02-24 Yao Qi <yao@codesourcery.com>
10562
10563 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10564 * corefile.c (read_memory): Adjusted.
10565 * target.c (target_write_with_progress): Adjusted.
10566
10567 2014-02-23 Yao Qi <yao@codesourcery.com>
10568
10569 Revert two patches:
10570
10571 2013-10-25 Yao Qi <yao@codesourcery.com>
10572
10573 * remote.c (remote_traceframe_info): Return early if
10574 traceframe is not selected.
10575
10576 2013-07-19 Yao Qi <yao@codesourcery.com>
10577
10578 * target.c (update_current_target): Change the default action
10579 of 'to_traceframe_info' from tcomplain to return_zero.
10580 * target.h (struct target_ops) <to_traceframe_info>: Add more
10581 comments.
10582
10583 2014-02-23 Yao Qi <yao@codesourcery.com>
10584
10585 * valops.c (read_value_memory): Rewrite it. Call
10586 target_xfer_partial in a loop.
10587 * exec.h (section_table_available_memory): Remove declaration.
10588 Move comments to ...
10589 * exec.c (section_table_available_memory): ... here. Make it
10590 static.
10591
10592 2014-02-23 Yao Qi <yao@codesourcery.com>
10593
10594 * exec.c (section_table_read_available_memory): New function.
10595 * exec.h (section_table_read_available_memory): Declare.
10596 * ctf.c (ctf_xfer_partial): Call
10597 section_table_read_available_memory.
10598 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10599
10600 2014-02-23 Yao Qi <yao@codesourcery.com>
10601
10602 * ctf.c (ctf_xfer_partial): Move code to ...
10603 * exec.c (exec_read_partial_read_only): ... it. New function.
10604 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10605 * tracefile.c: Include "exec.h".
10606 * exec.h (exec_read_partial_read_only): Declare.
10607
10608 2014-02-23 Yao Qi <yao@codesourcery.com>
10609
10610 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10611 (tfile_has_memory): Remove.
10612 (init_tfile_ops): Don't set fields to_has_all_memory and
10613 to_has_memory of tfile_ops.
10614 * tracefile.c (tracefile_has_all_memory): New function.
10615 (tracefile_has_memory): New function.
10616 (init_tracefile_ops): Initialize fields to_has_all_memory and
10617 to_has_memory of 'ops'.
10618
10619 2014-02-23 Yao Qi <yao@codesourcery.com>
10620
10621 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10622 (ctf_thread_alive, ctf_get_trace_status): Remove.
10623 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10624 init_tracefile_ops.
10625 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10626 (tfile_has_stack, tfile_has_registers): Remove.
10627 (tfile_thread_alive): Remove.
10628 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10629 init_tracefile_ops.
10630 * tracefile.c (tracefile_has_stack): New function.
10631 (tracefile_has_registers): New function.
10632 (tracefile_thread_alive): New function.
10633 (tracefile_get_trace_status): New function.
10634 (init_tracefile_ops): New function.
10635 * tracefile.h (init_tracefile_ops): Declare.
10636
10637 2014-02-23 Yao Qi <yao@codesourcery.com>
10638
10639 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10640 (O_LARGEFILE): Likewise.
10641 (tfile_ops): Likewise.
10642 (TRACE_HEADER_SIZE): Likewise.
10643 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10644 (cur_data_size): Likewise.
10645 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10646 (tfile_close, tfile_files_info): Likewise.
10647 (tfile_get_trace_status): Likewise.
10648 (tfile_get_tracepoint_status): Likewise.
10649 (tfile_get_traceframe_address): Likewise.
10650 (tfile_trace_find, match_blocktype): Likewise.
10651 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10652 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10653 (tfile_get_trace_state_variable_value): Likewise.
10654 (tfile_has_all_memory, tfile_has_memory): Likewise.
10655 (tfile_has_stack, tfile_has_registers): Likewise.
10656 (tfile_thread_alive, build_traceframe_info): Likewise.
10657 (tfile_traceframe_info, init_tfile_ops): Likewise.
10658 (_initialize_tracepoint): Don't call init_tfile_ops
10659 and add_target_with_completer.
10660 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10661 exec.h, completer.h and filenames.h.
10662 (_initialize_tracefile_tfile): New function.
10663
10664 2014-02-23 Yao Qi <yao@codesourcery.com>
10665
10666 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10667 tracefile-tfile.o.
10668 (HFILES_NO_SRCDIR): Add tracefile.h.
10669 * ctf.c: Include "tracefile.h".
10670 * tracefile.h: New file.
10671 * tracefile.c: New file
10672 * tracefile-tfile.c: New file.
10673 * tracepoint.c: Include "tracefile.h".
10674 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10675 (stop_reason_names): Add const.
10676 (trace_file_writer_xfree): Move it to tracefile.c.
10677 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10678 (trace_save_ctf): Likewise.
10679 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10680 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10681 (tfile_write_header, tfile_write_regblock_type): Likewise.
10682 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10683 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10684 (tfile_write_raw_data, tfile_end): Likewise.
10685 (tfile_trace_file_writer_new): Likewise.
10686 (free_uploaded_tp): Make it extern.
10687 (free_uploaded_tsv): Make it extern.
10688 (_initialize_tracepoint): Move code to register command 'tsave'
10689 to tracefile.c.
10690 * tracepoint.h (stop_reason_names): Declare.
10691 (struct trace_frame_write_ops): Move it to tracefile.h.
10692 (struct trace_file_write_ops): Likewise.
10693 (struct trace_file_writer): Likewise.
10694 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10695
10696 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10697
10698 PR gdb/16594
10699 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10700 process name.
10701 (get_cores_used_by_process): New parameter num_cores, use it.
10702 (linux_xfer_osdata_processes): Pass num_cores to it.
10703 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10704 process name.
10705
10706 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10707
10708 * target.c (memory_xfer_partial): Fix length arg in call to
10709 breakpoint_xfer_memory.
10710
10711 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10712
10713 PR tdep/16397
10714 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10715 number comes after the + or - signs. Adjust length of register
10716 name to be extracted.
10717
10718 2014-02-20 Tom Tromey <tromey@redhat.com>
10719
10720 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10721 (ada_varobj_ops): Mark "extern".
10722
10723 2014-02-20 Tom Tromey <tromey@redhat.com>
10724
10725 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10726
10727 2014-02-20 Doug Evans <xdje42@gmail.com>
10728
10729 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10730 All callers updated.
10731 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10732 All callers updated.
10733 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10734 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10735
10736 2014-02-20 lin zuojian <manjian2006@gmail.com>
10737 Joel Brobecker <brobecker@adacore.com>
10738 Doug Evans <xdje42@gmail.com>
10739
10740 PR symtab/16581
10741 * dwarf2read.c (struct die_info): New member in_process.
10742 (reset_die_in_process): New function.
10743 (process_die): Set it at the start, reset when returning.
10744 (inherit_abstract_dies): Only call process_die if origin_child_die
10745 not already being processed.
10746
10747 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10748
10749 * windows-nat.c (handle_unload_dll): Add function documentation.
10750 (do_initial_windows_stuff): Add comment explaining why we wait
10751 until after inferior initialization has finished before
10752 processing all DLLs.
10753
10754 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10755
10756 * windows-nat.c (get_module_name): Delete.
10757 (windows_get_exec_module_filename): New function, mostly
10758 inspired from get_module_name.
10759 (windows_pid_to_exec_file): Replace call to get_module_name
10760 by call to windows_get_exec_module_filename.
10761
10762 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10763
10764 * windows-nat.c (handle_load_dll): Rewrite this function's
10765 introductory comment. Remove code using get_module_name
10766 to get the DLL's name.
10767
10768 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10769
10770 * windows-nat.c (get_windows_debug_event): Ignore
10771 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10772 if windows_initialization_done == 0.
10773 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10774 Adjust implementation to always load all DLLs.
10775 (do_initial_windows_stuff): Replace call to
10776 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10777
10778 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10779
10780 * windows-nat.c (_initialize_windows_nat): Deprecate the
10781 "dll-symbols" command. Turn the "add-shared-symbol-files"
10782 and "assf" aliases into commands, and deprecate them as well.
10783 * NEWS: Add entry explaining that "dll-symbols" and its two
10784 aliases are now deprecated.
10785
10786 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10787
10788 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10789 new-line in debug string. Remove trailing spaces.
10790
10791 2014-02-19 Stan Shebs <stan@codesourcery.com>
10792
10793 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10794
10795 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10796
10797 * NEWS: Add entry for the new feature
10798 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10799 and class values.
10800
10801 2014-02-19 Stan Shebs <stan@codesourcery.com>
10802
10803 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10804
10805 2014-02-19 Pedro Alves <palves@redhat.com>
10806
10807 * common/ptid.h (struct ptid): Mention that process_stratum
10808 targets should prefer ptid.lwp.
10809
10810 2014-02-19 Pedro Alves <palves@redhat.com>
10811
10812 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10813 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10814 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10815 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10816 store remote thread ids rather than ptid.tid.
10817 (_initialize_remote): Adjust.
10818
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10820
10821 * target.c (target_get_unwinder): Rewrite.
10822 (target_get_tailcall_unwinder): Rewrite.
10823 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10824 (record_btrace_to_get_tailcall_unwinder): New function.
10825 (init_record_btrace_ops): Update.
10826 * target.h (struct target_ops) <to_get_unwinder,
10827 to_get_tailcall_unwinder>: Now function pointers. Use
10828 TARGET_DEFAULT_RETURN.
10829
10830 2014-02-19 Tom Tromey <tromey@redhat.com>
10831
10832 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10833 argument.
10834 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10835
10836 2014-02-19 Tom Tromey <tromey@redhat.com>
10837
10838 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10839 directly.
10840 * target-delegates.c: Rebuild.
10841 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10842 TARGET_DEFAULT_FUNC.
10843 * target.c (default_target_decr_pc_after_break): Rename from
10844 forward_target_decr_pc_after_break. Simplify.
10845 (target_decr_pc_after_break): Rely on delegation.
10846
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10848
10849 * target.c (update_current_target): Do not INHERIT to_doc or
10850 to_magic. Do not de_fault to_open or to_close.
10851
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10853
10854 * gcore.h (objfile_find_memory_regions): Declare.
10855 * gcore.c (objfile_find_memory_regions): No longer static. Add
10856 "self" argument.
10857 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10858 * exec.c: Include gcore.h.
10859 (exec_set_find_memory_regions): Remove.
10860 (exec_find_memory_regions): Remove.
10861 (exec_do_find_memory_regions): Remove.
10862 (init_exec_ops): Update.
10863 * defs.h (exec_set_find_memory_regions): Remove.
10864
10865 2014-02-19 Tom Tromey <tromey@redhat.com>
10866
10867 * target-delegates.c: Rebuild.
10868 * target.h (struct target_ops) <to_extra_thread_info,
10869 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10870 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10871 not 0, in TARGET_DEFAULT_RETURN.
10872
10873 2014-02-19 Tom Tromey <tromey@redhat.com>
10874
10875 * target.c (complete_target_initialization): Remove casts. Use
10876 return_zero_has_execution.
10877 (return_zero): Add "ignore" argument.
10878 (return_zero_has_execution): New function.
10879 (init_dummy_target): Remove casts. Use
10880 return_zero_has_execution.
10881
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * target.c (update_current_target): Update comments. Do not
10885 INHERIT to_stratum.
10886
10887 2014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10890 needed.
10891 * corelow.c (core_read_description): Delegate when needed.
10892 * remote.c (remote_read_description): Delegate when needed.
10893 * target-delegates.c: Rebuild.
10894 * target.c (target_read_description): Rewrite.
10895 * target.h (struct target_ops) <to_read_description>: Update
10896 comment. Use TARGET_DEFAULT_RETURN.
10897
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10899
10900 * target-delegates.c: Rebuild.
10901 * target.c (update_current_target): Don't inherit or default
10902 to_can_run.
10903 (find_default_run_target): Check against delegate_can_run.
10904 * target.h (struct target_ops) <to_can_run>: Use
10905 TARGET_DEFAULT_RETURN.
10906
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10908
10909 * target-delegates.c: Rebuild.
10910 * target.c (target_disconnect): Unconditionally delegate.
10911 * target.h (struct target_ops) <to_disconnect>: Use
10912 TARGET_DEFAULT_NORETURN.
10913
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10915
10916 * record.c (record_stop): Unconditionally delegate.
10917 * target-delegates.c: Rebuild.
10918 * target.c (target_stop_recording): Unconditionally delegate.
10919 * target.h (struct target_ops) <to_stop_recording>: Use
10920 TARGET_DEFAULT_IGNORE.
10921
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10923
10924 * target-delegates.c: Rebuild.
10925 * target.c (target_enable_btrace): Unconditionally delegate.
10926 * target.h (struct target_ops) <to_enable_btrace>: Use
10927 TARGET_DEFAULT_NORETURN.
10928
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10930
10931 * target-delegates.c: Rebuild.
10932 * target.c (target_read_btrace): Unconditionally delegate.
10933 * target.h (struct target_ops) <to_read_btrace>: Use
10934 TARGET_DEFAULT_NORETURN.
10935
10936 2014-02-19 Tom Tromey <tromey@redhat.com>
10937
10938 * target-delegates.c: Rebuild.
10939 * target.c (target_teardown_btrace): Unconditionally delegate.
10940 * target.h (struct target_ops) <to_teardown_btrace>: Use
10941 TARGET_DEFAULT_NORETURN.
10942
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10944
10945 * target-delegates.c: Rebuild.
10946 * target.c (target_disable_btrace): Unconditionally delegate.
10947 * target.h (struct target_ops) <to_disable_btrace>: Use
10948 TARGET_DEFAULT_NORETURN.
10949
10950 2014-02-19 Tom Tromey <tromey@redhat.com>
10951
10952 * target-delegates.c: Rebuild.
10953 * target.c (default_search_memory): New function.
10954 (simple_search_memory): Update comment.
10955 (target_search_memory): Unconditionally delegate.
10956 * target.h (struct target_ops) <to_search_memory>: Use
10957 TARGET_DEFAULT_FUNC.
10958
10959 2014-02-19 Tom Tromey <tromey@redhat.com>
10960
10961 * auxv.c (default_auxv_parse): No longer static.
10962 (target_auxv_parse): Unconditionally delegate.
10963 * auxv.h (default_auxv_parse): Declare.
10964 * target-delegates.c: Rebuild.
10965 * target.c: Include auxv.h.
10966 * target.h (struct target_ops) <to_auxv_parse>: Use
10967 TARGET_DEFAULT_FUNC.
10968
10969 2014-02-19 Tom Tromey <tromey@redhat.com>
10970
10971 * target-delegates.c: Rebuild.
10972 * target.c (target_memory_map): Unconditionally delegate.
10973 * target.h (struct target_ops) <to_memory_map>: Use
10974 TARGET_DEFAULT_RETURN.
10975
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10977
10978 * target-delegates.c: Rebuild.
10979 * target.c (target_thread_alive): Unconditionally delegate.
10980 * target.h (struct target_ops) <to_thread_alive>: Use
10981 TARGET_DEFAULT_RETURN.
10982
10983 2014-02-19 Tom Tromey <tromey@redhat.com>
10984
10985 * target-delegates.c: Rebuild.
10986 * target.c (target_save_record): Unconditionally delegate.
10987 * target.h (struct target_ops) <to_save_record>: Use
10988 TARGET_DEFAULT_NORETURN.
10989
10990 2014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target-delegates.c: Rebuild.
10993 * target.c (target_delete_record): Unconditionally delegate.
10994 * target.h (struct target_ops) <to_delete_record>: Use
10995 TARGET_DEFAULT_NORETURN.
10996
10997 2014-02-19 Tom Tromey <tromey@redhat.com>
10998
10999 * target-delegates.c: Rebuild.
11000 * target.c (target_record_is_replaying): Unconditionally
11001 delegate.
11002 * target.h (struct target_ops) <to_record_is_replaying>: Use
11003 TARGET_DEFAULT_RETURN.
11004
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11006
11007 * target-delegates.c: Rebuild.
11008 * target.c (target_goto_record_begin): Unconditionally delegate.
11009 * target.h (struct target_ops) <to_goto_record_begin>: Use
11010 TARGET_DEFAULT_NORETURN.
11011
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11013
11014 * target-delegates.c: Rebuild.
11015 * target.c (target_goto_record_end): Unconditionally delegate.
11016 * target.h (struct target_ops) <to_goto_record_end>: Use
11017 TARGET_DEFAULT_NORETURN.
11018
11019 2014-02-19 Tom Tromey <tromey@redhat.com>
11020
11021 * target-delegates.c: Rebuild.
11022 * target.c (target_goto_record): Unconditionally delegate.
11023 * target.h (struct target_ops) <to_goto_record>: Use
11024 TARGET_DEFAULT_NORETURN.
11025
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target-delegates.c: Rebuild.
11029 * target.c (target_insn_history): Unconditionally delegate.
11030 * target.h (struct target_ops) <to_insn_history>: Use
11031 TARGET_DEFAULT_NORETURN.
11032
11033 2014-02-19 Tom Tromey <tromey@redhat.com>
11034
11035 * target-delegates.c: Rebuild.
11036 * target.c (target_insn_history_from): Unconditionally delegate.
11037 * target.h (struct target_ops) <to_insn_history_from>: Use
11038 TARGET_DEFAULT_NORETURN.
11039
11040 2014-02-19 Tom Tromey <tromey@redhat.com>
11041
11042 * target-delegates.c: Rebuild.
11043 * target.c (target_insn_history_range): Unconditionally delegate.
11044 * target.h (struct target_ops) <to_insn_history_range>: Use
11045 TARGET_DEFAULT_NORETURN.
11046
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target-delegates.c: Rebuild.
11050 * target.c (target_call_history): Unconditionally delegate.
11051 * target.h (struct target_ops) <to_call_history>: Use
11052 TARGET_DEFAULT_NORETURN.
11053
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11055
11056 * target-delegates.c: Rebuild.
11057 * target.c (target_call_history_from): Unconditionally delegate.
11058 * target.h (struct target_ops) <to_call_history_from>: Use
11059 TARGET_DEFAULT_NORETURN.
11060
11061 2014-02-19 Tom Tromey <tromey@redhat.com>
11062
11063 * target-delegates.c: Rebuild.
11064 * target.c (target_call_history_range): Unconditionally delegate.
11065 * target.h (struct target_ops) <to_call_history_range>: Use
11066 TARGET_DEFAULT_NORETURN.
11067
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11069
11070 * target-delegates.c: Rebuild.
11071 * target.c (target_verify_memory): Unconditionally delegate.
11072 * target.h (struct target_ops) <to_verify_memory>: Use
11073 TARGET_DEFAULT_NORETURN.
11074
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11076
11077 * target-delegates.c: Rebuild.
11078 * target.c (target_core_of_thread): Unconditionally delegate.
11079 * target.h (struct target_ops) <to_core_of_thread>: Use
11080 TARGET_DEFAULT_RETURN.
11081
11082 2014-02-19 Tom Tromey <tromey@redhat.com>
11083
11084 * target-delegates.c: Rebuild.
11085 * target.c (target_flash_done): Unconditionally delegate.
11086 * target.h (struct target_ops) <to_flash_done>: Use
11087 TARGET_DEFAULT_NORETURN.
11088
11089 2014-02-19 Tom Tromey <tromey@redhat.com>
11090
11091 * target-delegates.c: Rebuild.
11092 * target.c (target_flash_erase): Unconditionally delegate.
11093 * target.h (struct target_ops) <to_flash_erase>: Use
11094 TARGET_DEFAULT_NORETURN.
11095
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * target-delegates.c: Rebuild.
11099 * target.c (target_get_section_table): Unconditionally delegate.
11100 * target.h (struct target_ops) <to_get_section_table>: Use
11101 TARGET_DEFAULT_RETURN.
11102
11103 2014-02-19 Tom Tromey <tromey@redhat.com>
11104
11105 * target-delegates.c: Rebuild.
11106 * target.c (target_pid_to_str): Unconditionally delegate.
11107 (init_dummy_target): Don't initialize to_pid_to_str.
11108 (default_pid_to_str): Rename from dummy_pid_to_str.
11109 * target.h (struct target_ops) <to_pid_to_str>: Use
11110 TARGET_DEFAULT_FUNC.
11111
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * target-delegates.c: Rebuild.
11115 * target.c (target_find_new_threads): Unconditionally delegate.
11116 * target.h (struct target_ops) <to_find_new_threads>: Use
11117 TARGET_DEFAULT_RETURN.
11118
11119 2014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * target-delegates.c: Rebuild.
11122 * target.c (target_program_signals): Unconditionally delegate.
11123 * target.h (struct target_ops) <to_program_signals>: Use
11124 TARGET_DEFAULT_IGNORE.
11125
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target-delegates.c: Rebuild.
11129 * target.c (target_pass_signals): Unconditionally delegate.
11130 * target.h (struct target_ops) <to_pass_signals>: Use
11131 TARGET_DEFAULT_IGNORE.
11132
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11134
11135 * target-delegates.c: Rebuild.
11136 * target.c (default_mourn_inferior): New function.
11137 (target_mourn_inferior): Unconditionally delegate.
11138 * target.h (struct target_ops) <to_mourn_inferior>: Use
11139 TARGET_DEFAULT_FUNC.
11140
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11142
11143 * target-delegates.c: Rebuild.
11144 * target.c (default_follow_fork): New function.
11145 (target_follow_fork): Unconditionally delegate.
11146 * target.h (struct target_ops) <to_follow_fork>: Use
11147 TARGET_DEFAULT_FUNC.
11148
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11150
11151 * target-delegates.c: Rebuild.
11152 * target.c (target_kill): Unconditionally delegate.
11153 * target.h (struct target_ops) <to_kill>: Use
11154 TARGET_DEFAULT_NORETURN.
11155
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target-delegates.c: Rebuild.
11159 * target.c (target_masked_watch_num_registers): Unconditionally
11160 delegate.
11161 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11162 Use TARGET_DEFAULT_RETURN.
11163
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target-delegates.c: Rebuild.
11167 * target.c (target_remove_mask_watchpoint): Unconditionally
11168 delegate.
11169 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11170 TARGET_DEFAULT_RETURN.
11171
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target-delegates.c: Rebuild.
11175 * target.c (target_insert_mask_watchpoint): Unconditionally
11176 delegate.
11177 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11178 TARGET_DEFAULT_RETURN.
11179
11180 2014-02-19 Tom Tromey <tromey@redhat.com>
11181
11182 * target-delegates.c: Rebuild.
11183 * target.c (target_ranged_break_num_registers): Unconditionally
11184 delegate.
11185 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11186 Use TARGET_DEFAULT_RETURN.
11187
11188 2014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * target-delegates.c: Rebuild.
11191 * target.c (target_fetch_registers): Unconditionally delegate.
11192 * target.h (struct target_ops) <to_fetch_registers>: Use
11193 TARGET_DEFAULT_NORETURN.
11194
11195 2014-02-19 Tom Tromey <tromey@redhat.com>
11196
11197 * target-delegates.c: Rebuild.
11198 * target.c (update_current_target): Don't inherit or default
11199 to_stop.
11200 * target.h (struct target_ops) <to_stop>: Use
11201 TARGET_DEFAULT_IGNORE.
11202
11203 2014-02-19 Tom Tromey <tromey@redhat.com>
11204
11205 * target-delegates.c: Rebuild.
11206 * target.c (update_current_target): Don't inherit or default
11207 to_can_run_breakpoint_commands.
11208 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11209 Use TARGET_DEFAULT_RETURN.
11210
11211 2014-02-19 Tom Tromey <tromey@redhat.com>
11212
11213 * target-delegates.c: Rebuild.
11214 * target.c (update_current_target): Don't inherit or default
11215 to_supports_evaluation_of_breakpoint_conditions.
11216 * target.h (struct target_ops)
11217 <to_supports_evaluation_of_breakpoint_conditions>: Use
11218 TARGET_DEFAULT_RETURN.
11219
11220 2014-02-19 Tom Tromey <tromey@redhat.com>
11221
11222 * target-delegates.c: Rebuild.
11223 * target.c (update_current_target): Don't inherit or default
11224 to_augmented_libraries_svr4_read.
11225 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11226 Use TARGET_DEFAULT_RETURN.
11227
11228 2014-02-19 Tom Tromey <tromey@redhat.com>
11229
11230 * target-delegates.c: Rebuild.
11231 * target.c (update_current_target): Don't inherit or default
11232 to_can_use_agent.
11233 * target.h (struct target_ops) <to_can_use_agent>: Use
11234 TARGET_DEFAULT_RETURN.
11235
11236 2014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * target-delegates.c: Rebuild.
11239 * target.c (update_current_target): Don't inherit or default
11240 to_use_agent.
11241 * target.h (struct target_ops) <to_use_agent>: Use
11242 TARGET_DEFAULT_NORETURN.
11243
11244 2014-02-19 Tom Tromey <tromey@redhat.com>
11245
11246 * target-delegates.c: Rebuild.
11247 * target.c (update_current_target): Don't inherit or default
11248 to_traceframe_info.
11249 (return_null): Remove.
11250 * target.h (struct target_ops) <to_traceframe_info>: Use
11251 TARGET_DEFAULT_RETURN.
11252
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target-delegates.c: Rebuild.
11256 * target.c (update_current_target): Don't inherit or default
11257 to_static_tracepoint_markers_by_strid.
11258 * target.h (struct target_ops)
11259 <to_static_tracepoint_markers_by_strid>: Use
11260 TARGET_DEFAULT_NORETURN.
11261
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11263
11264 * target-delegates.c: Rebuild.
11265 * target.c (update_current_target): Don't inherit or default
11266 to_static_tracepoint_marker_at.
11267 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11268 Use TARGET_DEFAULT_RETURN.
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_permissions.
11275 * target.h (struct target_ops) <to_set_permissions>: 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_get_tib_address.
11283 * target.h (struct target_ops) <to_get_tib_address>: Use
11284 TARGET_DEFAULT_NORETURN.
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_set_trace_notes.
11291 * target.h (struct target_ops) <to_set_trace_notes>: Use
11292 TARGET_DEFAULT_RETURN.
11293
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11295
11296 * target-delegates.c: Rebuild.
11297 * target.c (update_current_target): Don't initialize
11298 to_set_trace_buffer_size.
11299 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11300 TARGET_DEFAULT_IGNORE.
11301
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11303
11304 * target-delegates.c: Rebuild.
11305 * target.c (update_current_target): Don't inherit or default
11306 to_set_circular_trace_buffer.
11307 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11308 TARGET_DEFAULT_IGNORE.
11309
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target-delegates.c: Rebuild.
11313 * target.c (update_current_target): Don't inherit or default
11314 to_set_disconnected_tracing.
11315 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11316 TARGET_DEFAULT_IGNORE.
11317
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target-delegates.c: Rebuild.
11321 * target.c (update_current_target): Don't inherit or default
11322 to_get_min_fast_tracepoint_insn_len.
11323 (return_minus_one): Remove.
11324 * target.h (struct target_ops)
11325 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_raw_trace_data.
11332 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11333 TARGET_DEFAULT_NORETURN.
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_upload_trace_state_variables.
11340 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11341 Use TARGET_DEFAULT_RETURN.
11342
11343 2014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * target-delegates.c: Rebuild.
11346 * target.c (update_current_target): Don't inherit or default
11347 to_upload_tracepoints.
11348 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11349 TARGET_DEFAULT_RETURN.
11350
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11352
11353 * target-delegates.c: Rebuild.
11354 * target.c (update_current_target): Don't inherit or default
11355 to_save_trace_data.
11356 * target.h (struct target_ops) <to_save_trace_data>: Use
11357 TARGET_DEFAULT_NORETURN.
11358
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * target-delegates.c: Rebuild.
11362 * target.c (update_current_target): Don't inherit or default
11363 to_get_trace_state_variable_value.
11364 * target.h (struct target_ops)
11365 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11366
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target-delegates.c: Rebuild.
11370 * target.c (update_current_target): Don't inherit or default
11371 to_trace_find.
11372 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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_stop.
11379 * target.h (struct target_ops) <to_trace_stop>: Use
11380 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_get_tracepoint_status.
11387 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
11395 * target.h (struct target_ops) <to_get_trace_status>: Use
11396 TARGET_DEFAULT_RETURN.
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_trace_start.
11403 * target.h (struct target_ops) <to_trace_start>: Use
11404 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_trace_set_readonly_regions.
11411 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11412 Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
11419 * target.h (struct target_ops) <to_disable_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_enable_tracepoint.
11427 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11428 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
11435 * target.h (struct target_ops) <to_download_trace_state_variable>:
11436 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
11443 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11444 TARGET_DEFAULT_RETURN.
11445
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target-delegates.c: Rebuild.
11449 * target.c (update_current_target): Don't inherit or default
11450 to_download_tracepoint.
11451 * target.h (struct target_ops) <to_download_tracepoint>: Use
11452 TARGET_DEFAULT_NORETURN.
11453
11454 2014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target-delegates.c: Rebuild.
11457 * target.c (update_current_target): Don't inherit or default
11458 to_trace_init.
11459 * target.h (struct target_ops) <to_trace_init>: Use
11460 TARGET_DEFAULT_RETURN.
11461
11462 2014-02-19 Tom Tromey <tromey@redhat.com>
11463
11464 * target-delegates.c: Rebuild.
11465 * target.c (update_current_target): Don't inherit or default
11466 to_supports_string_tracing.
11467 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11468 TARGET_DEFAULT_RETURN.
11469
11470 2014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target-delegates.c: Rebuild.
11473 * target.c (update_current_target): Don't inherit or default
11474 to_supports_enable_disable_tracepoint.
11475 * target.h (struct target_ops)
11476 <to_supports_enable_disable_tracepoint>: Use
11477 TARGET_DEFAULT_RETURN.
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_supports_multi_process.
11484 * target.h (struct target_ops) <to_supports_multi_process>: Use
11485 TARGET_DEFAULT_RETURN.
11486
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (update_current_target): Don't inherit or default
11491 to_get_ada_task_ptid.
11492 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11493 TARGET_DEFAULT_FUNC.
11494
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11496
11497 * target-delegates.c: Rebuild.
11498 * target.c (update_current_target): Don't inherit or default
11499 to_thread_architecture.
11500 * target.h (struct target_ops) <to_thread_architecture>: Use
11501 TARGET_DEFAULT_FUNC.
11502
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target-delegates.c: Rebuild.
11506 * target.c (update_current_target): Don't inherit or default
11507 to_execution_direction.
11508 * target.h (struct target_ops) <to_execution_direction>: Use
11509 TARGET_DEFAULT_FUNC.
11510
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_can_execute_reverse.
11516 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11517 TARGET_DEFAULT_RETURN.
11518 (target_can_execute_reverse): Unconditionally delegate.
11519
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11524 to_goto_bookmark.
11525 (dummy_goto_bookmark): Remove.
11526 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11527 * target.h (struct target_ops) <to_goto_bookmark>: Use
11528 TARGET_DEFAULT_NORETURN.
11529
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target-delegates.c: Rebuild.
11533 * target.c (update_current_target): Don't inherit or default
11534 to_get_bookmark.
11535 (dummy_get_bookmark): Remove.
11536 (init_dummy_target): Don't inherit or default to_get_bookmark.
11537 * target.h (struct target_ops) <to_get_bookmark>: Use
11538 TARGET_DEFAULT_NORETURN
11539
11540 2014-02-19 Tom Tromey <tromey@redhat.com>
11541
11542 * target-delegates.c: Rebuild.
11543 * target.c (update_current_target): Don't inherit or default
11544 to_make_corefile_notes.
11545 (init_dummy_target): Don't initialize to_make_corefile_notes.
11546 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11547 TARGET_DEFAULT_FUNC.
11548
11549 2014-02-19 Tom Tromey <tromey@redhat.com>
11550
11551 * target-delegates.c: Rebuild.
11552 * target.c (update_current_target): Don't inherit or default
11553 to_find_memory_regions.
11554 (init_dummy_target): Don't initialize to_find_memory_regions.
11555 * target.h (struct target_ops) <to_find_memory_regions>: Use
11556 TARGET_DEFAULT_FUNC.
11557
11558 2014-02-19 Tom Tromey <tromey@redhat.com>
11559
11560 * target-delegates.c: Rebuild.
11561 * target.c (update_current_target): Don't inherit or default
11562 to_log_command.
11563 * target.h (struct target_ops) <to_log_command>: Use
11564 TARGET_DEFAULT_IGNORE.
11565 (target_log_command): Unconditionally delegate.
11566
11567 2014-02-19 Tom Tromey <tromey@redhat.com>
11568
11569 * target-delegates.c: Rebuild.
11570 * target.c (update_current_target): Don't inherit or default
11571 to_pid_to_exec_file.
11572 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11573 TARGET_DEFAULT_RETURN.
11574
11575 2014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * target-delegates.c: Rebuild.
11578 * target.c (update_current_target): Don't inherit or default
11579 to_thread_name.
11580 (target_thread_name): Unconditionally delegate.
11581 * target.h (struct target_ops) <to_thread_name>: Use
11582 TARGET_DEFAULT_RETURN.
11583
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11585
11586 * target-delegates.c: Rebuild.
11587 * target.c (update_current_target): Don't inherit or default
11588 to_extra_thread_info.
11589 * target.h (struct target_ops) <to_extra_thread_info>: Use
11590 TARGET_DEFAULT_RETURN.
11591
11592 2014-02-19 Tom Tromey <tromey@redhat.com>
11593
11594 * target-delegates.c: Rebuild.
11595 * target.c (update_current_target): Don't inherit or default
11596 to_has_exited.
11597 * target.h (struct target_ops) <to_has_exited>: Use
11598 TARGET_DEFAULT_RETURN..
11599
11600 2014-02-19 Tom Tromey <tromey@redhat.com>
11601
11602 * target-delegates.c: Rebuild.
11603 * target.c (update_current_target): Don't inherit or default
11604 to_set_syscall_catchpoint.
11605 (return_one): Remove.
11606 * target.h (struct target_ops) <to_set_syscall_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_insert_exec_catchpoint.
11614 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11615 TARGET_DEFAULT_RETURN.
11616
11617 2014-01-08 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_exec_catchpoint.
11622 * target.h (struct target_ops) <to_insert_exec_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_remove_vfork_catchpoint.
11630 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11631 TARGET_DEFAULT_RETURN.
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_insert_vfork_catchpoint.
11638 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11639 TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
11646 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11647 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
11654 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11655 TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
11662 * target.h (struct target_ops) <to_post_startup_inferior>: 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_load.
11670 * target.h (struct target_ops) <to_load>: Use
11671 TARGET_DEFAULT_NORETURN.
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_info.
11678 * target.h (struct target_ops) <to_terminal_info>: Use
11679 TARGET_DEFAULT_FUNC.
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_save_ours.
11686 * target.h (struct target_ops) <to_terminal_save_ours>: 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_terminal_ours.
11694 * target.h (struct target_ops) <to_terminal_ours>: Use
11695 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
11702 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11703 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
11710 * target.h (struct target_ops) <to_terminal_inferior>: Use
11711 TARGET_DEFAULT_IGNORE.
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_terminal_init.
11718 * target.h (struct target_ops) <to_terminal_init>: Use
11719 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
11726 * target.h (struct target_ops)
11727 <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
11734 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11735 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
11742 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11743 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
11750 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11751 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
11758 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11759 TARGET_DEFAULT_RETURN.
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_remove_hw_breakpoint.
11766 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11767 TARGET_DEFAULT_RETURN.
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_insert_hw_breakpoint.
11774 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11775 TARGET_DEFAULT_RETURN.
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_can_use_hw_breakpoint.
11782 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11783 TARGET_DEFAULT_RETURN.
11784
11785 2014-02-19 Tom Tromey <tromey@redhat.com>
11786
11787 * target-delegates.c: Rebuild.
11788 * target.c (update_current_target): Don't inherit or default
11789 to_files_info.
11790 * target.h (struct target_ops) <to_files_info>: Use
11791 TARGET_DEFAULT_IGNORE.
11792
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11794
11795 * target-delegates.c: Rebuild.
11796 * target.c (update_current_target): Don't inherit or default
11797 to_store.
11798 * target.h (struct target_ops) <to_store>: Use
11799 TARGET_DEFAULT_NORETURN.
11800
11801 2014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target-delegates.c: Rebuild.
11804 * target.c (update_current_target): Don't inherit or default
11805 to_post_attach.
11806 * target.h (struct target_ops) <to_post_attach>: Use
11807 TARGET_DEFAULT_IGNORE.
11808
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target-delegates.c: Rebuild.
11812 * target.c (update_current_target): Don't inherit or default
11813 to_rcmd.
11814 (default_rcmd): New function.
11815 (do_monitor_command): Unconditionally delegate.
11816 * target.h (struct target_ops) <to_rmcd>: Use
11817 TARGET_DEFAULT_FUNC.
11818
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11820
11821 * target-delegates.c: Rebuild.
11822 * target.c (init_dummy_target): Don't initialize to_attach.
11823 (target_attach): Unconditionally delegate.
11824 * target.h (struct target_ops) <to_attach>: Use
11825 TARGET_DEFAULT_FUNC.
11826
11827 2014-02-19 Tom Tromey <tromey@redhat.com>
11828
11829 * target-delegates.c: Rebuild.
11830 * target.c (target_detach): Unconditionally delegate.
11831 (init_dummy_target): Don't initialize to_detach.
11832 * target.h (struct target_ops) <to_detach>: Use
11833 TARGET_DEFAULT_IGNORE.
11834
11835 2014-02-19 Tom Tromey <tromey@redhat.com>
11836
11837 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11838 Add argument.
11839 (target_augmented_libraries_svr4_read): Add argument.
11840 * target.c (update_current_target): Update.
11841 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11842 argument.
11843
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11845
11846 * target.h (struct target_ops) <to_call_history_range>: Add
11847 argument.
11848 * target.c (target_call_history_range): Add argument.
11849 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11850 argument.
11851 (record_btrace_call_history_from): Update.
11852
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11854
11855 * target.h (struct target_ops) <to_call_history_from>: Add
11856 argument.
11857 * target.c (target_call_history_from): Add argument.
11858 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11859 argument.
11860
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11862
11863 * target.h (struct target_ops) <to_call_history>: Add argument.
11864 * target.c (target_call_history): Add argument.
11865 * record-btrace.c (record_btrace_call_history): Add 'self'
11866 argument.
11867
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11869
11870 * target.h (struct target_ops) <to_insn_history_range>: Add
11871 argument.
11872 * target.c (target_insn_history_range): Add argument.
11873 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11874 argument.
11875 (record_btrace_insn_history_from): Update.
11876
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * target.h (struct target_ops) <to_insn_history_from>: Add
11880 argument.
11881 * target.c (target_insn_history_from): Add argument.
11882 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11883 argument.
11884
11885 2014-02-19 Tom Tromey <tromey@redhat.com>
11886
11887 * target.h (struct target_ops) <to_insn_history>: Add argument.
11888 * target.c (target_insn_history): Add argument.
11889 * record-btrace.c (record_btrace_insn_history): Add 'self'
11890 argument.
11891
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target.h (struct target_ops) <to_goto_record>: Add argument.
11895 * target.c (target_goto_record): Add argument.
11896 * record-full.c (record_full_goto): Add 'self' argument.
11897 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11898
11899 2014-02-19 Tom Tromey <tromey@redhat.com>
11900
11901 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11902 * target.c (target_goto_record_end): Add argument.
11903 * record-full.c (record_full_goto_end): Add 'self' argument.
11904 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11905
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11907
11908 * target.h (struct target_ops) <to_goto_record_begin>: Add
11909 argument.
11910 * target.c (target_goto_record_begin): Add argument.
11911 * record-full.c (record_full_goto_begin): Add 'self' argument.
11912 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11913 argument.
11914
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11916
11917 * target.h (struct target_ops) <to_record_is_replaying>: Add
11918 argument.
11919 * target.c (target_record_is_replaying): Add argument.
11920 * record-full.c (record_full_is_replaying): Add 'self' argument.
11921 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11922 argument.
11923 (record_btrace_xfer_partial, record_btrace_store_registers)
11924 (record_btrace_prepare_to_store, record_btrace_resume)
11925 (record_btrace_wait, record_btrace_decr_pc_after_break)
11926 (record_btrace_find_new_threads, record_btrace_thread_alive):
11927 Update.
11928
11929 2014-02-19 Tom Tromey <tromey@redhat.com>
11930
11931 * target.h (struct target_ops) <to_delete_record>: Add argument.
11932 * target.c (target_delete_record): Add argument.
11933 * record-full.c (record_full_delete): Add 'self' argument.
11934
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target.h (struct target_ops) <to_save_record>: Add argument.
11938 * target.c (target_save_record): Add argument.
11939 * record-full.c (record_full_save): Add 'self' argument.
11940 (record_full_save): Add 'self' argument.
11941
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target.h (struct target_ops) <to_info_record>: Add argument.
11945 * target.c (target_info_record): Add argument.
11946 * record.c (info_record_command): Add argument.
11947 * record-full.c (record_full_info): Add 'self' argument.
11948 * record-btrace.c (record_btrace_info): Add 'self' argument.
11949
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11951
11952 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11953 * target.c (target_stop_recording): Add argument.
11954 * record.c (record_stop): Add argument.
11955 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11956 argument.
11957
11958 2014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11961 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11962 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11963 argument.
11964 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11965 (_initialize_amd64_linux_nat): Use it.
11966 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11967 (_initialize_i386_linux_nat): Use it.
11968
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11970
11971 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11972 * target.c (target_teardown_btrace): Add argument.
11973 * remote.c (remote_teardown_btrace): Add 'self' argument.
11974 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11975 argument.
11976 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11977 argument.
11978
11979 2014-02-19 Tom Tromey <tromey@redhat.com>
11980
11981 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11982 * target.c (target_disable_btrace): Add argument.
11983 * remote.c (remote_disable_btrace): Add 'self' argument.
11984 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11985 argument.
11986 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11987 argument.
11988
11989 2014-02-19 Tom Tromey <tromey@redhat.com>
11990
11991 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11992 * target.c (target_enable_btrace): Add argument.
11993 * remote.c (remote_enable_btrace): Add 'self' argument.
11994 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11995 argument.
11996 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11997 argument.
11998
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12002 (target_can_use_agent): Add argument.
12003 * target.c (update_current_target): Update.
12004 * remote.c (remote_can_use_agent): Add 'self' argument.
12005 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12006
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12008
12009 * target.h (struct target_ops) <to_use_agent>: Add argument.
12010 (target_use_agent): Add argument.
12011 * target.c (update_current_target): Update.
12012 * remote.c (remote_use_agent): Add 'self' argument.
12013 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12014
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12018 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12019 (target_traceframe_info): Add argument.
12020 * target.c (update_current_target): Update.
12021 * remote.c (remote_traceframe_info): Add 'self' argument.
12022 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12023
12024 2014-02-19 Tom Tromey <tromey@redhat.com>
12025
12026 * target.h (target_static_tracepoint_markers_by_strid): Add
12027 argument.
12028 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12029 'self' argument.
12030 * target.c (update_current_target): Update.
12031 * remote.c (struct target_ops)
12032 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12033 * linux-nat.c (struct target_ops)
12034 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12035
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12037
12038 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12039 Add argument.
12040 (target_static_tracepoint_marker_at): Add argument.
12041 * target.c (update_current_target): Update.
12042 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12043 argument.
12044
12045 2014-02-19 Tom Tromey <tromey@redhat.com>
12046
12047 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12048 (target_set_permissions): Add argument.
12049 * target.c (update_current_target): Update.
12050 * remote.c (remote_set_permissions): Add 'self' argument.
12051 (remote_start_remote): Update.
12052
12053 2014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12056 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12057 (target_get_tib_address): Add argument.
12058 * target.c (update_current_target): Update.
12059 * remote.c (remote_get_tib_address): Add 'self' argument.
12060
12061 2014-02-19 Tom Tromey <tromey@redhat.com>
12062
12063 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12064 (target_set_trace_notes): Add argument.
12065 * target.c (update_current_target): Update.
12066 * remote.c (remote_set_trace_notes): Add 'self' argument.
12067
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12069
12070 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12071 argument.
12072 (target_set_trace_buffer_size): Add argument.
12073 * target.c (update_current_target): Update.
12074 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12075
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12079 argument.
12080 (target_set_circular_trace_buffer): Add argument.
12081 * target.c (update_current_target): Update.
12082 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12083 argument.
12084
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12086
12087 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12088 argument.
12089 (target_set_disconnected_tracing): Add argument.
12090 * target.c (update_current_target): Update.
12091 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12092
12093 2014-02-19 Tom Tromey <tromey@redhat.com>
12094
12095 * target.h (struct target_ops)
12096 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12097 (target_get_min_fast_tracepoint_insn_len): Add argument.
12098 * target.c (update_current_target): Update.
12099 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12100 argument.
12101
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12103
12104 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12105 argument.
12106 (target_get_raw_trace_data): Add argument.
12107 * target.c (update_current_target): Update.
12108 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12109
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12111
12112 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12113 Add argument.
12114 (target_upload_trace_state_variables): Add argument.
12115 * target.c (update_current_target): Update.
12116 * remote.c (remote_upload_trace_state_variables): Add 'self'
12117 argument.
12118 (remote_start_remote): Update.
12119
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12123 argument.
12124 (target_upload_tracepoints): Add argument.
12125 * target.c (update_current_target): Update.
12126 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12127 (remote_start_remote): Update.
12128
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12130
12131 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12132 (target_save_trace_data): Add argument.
12133 * target.c (update_current_target): Update.
12134 * remote.c (remote_save_trace_data): Add 'self' argument.
12135
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12137
12138 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12139 argument.
12140 * target.h (struct target_ops)
12141 <to_get_trace_state_variable_value>: Add argument.
12142 (target_get_trace_state_variable_value): Add argument.
12143 * target.c (update_current_target): Update.
12144 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12145 argument.
12146 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12147
12148 2014-02-19 Tom Tromey <tromey@redhat.com>
12149
12150 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12151 * target.h (struct target_ops) <to_trace_find>: Add argument.
12152 (target_trace_find): Add argument.
12153 * target.c (update_current_target): Update.
12154 * remote.c (remote_trace_find): Add 'self' argument.
12155 * ctf.c (ctf_trace_find): Add 'self' argument.
12156
12157 2014-02-19 Tom Tromey <tromey@redhat.com>
12158
12159 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12160 (target_trace_stop): Add argument.
12161 * target.c (update_current_target): Update.
12162 * remote.c (remote_trace_stop): Add 'self' argument.
12163
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12165
12166 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12167 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12168 argument.
12169 (target_get_tracepoint_status): Add argument.
12170 * target.c (update_current_target): Update.
12171 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12172
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12174
12175 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12176 * target.h (struct target_ops) <to_get_trace_status>: Add
12177 argument.
12178 (target_get_trace_status): Add argument.
12179 * target.c (update_current_target): Update.
12180 * remote.c (remote_get_trace_status): Add 'self' argument.
12181 (remote_start_remote, remote_can_download_tracepoint): Update.
12182 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12183
12184 2014-02-19 Tom Tromey <tromey@redhat.com>
12185
12186 * target.h (struct target_ops) <to_trace_start>: Add argument.
12187 (target_trace_start): Add argument.
12188 * target.c (update_current_target): Update.
12189 * remote.c (remote_trace_start): Add 'self' argument.
12190
12191 2014-02-19 Tom Tromey <tromey@redhat.com>
12192
12193 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12194 Add argument.
12195 (target_trace_set_readonly_regions): Add argument.
12196 * target.c (update_current_target): Update.
12197 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12198 argument.
12199
12200 2014-02-19 Tom Tromey <tromey@redhat.com>
12201
12202 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12203 argument.
12204 (target_disable_tracepoint): Add argument.
12205 * target.c (update_current_target): Update.
12206 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12207
12208 2014-02-19 Tom Tromey <tromey@redhat.com>
12209
12210 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12211 argument.
12212 (target_enable_tracepoint): Add argument.
12213 * target.c (update_current_target): Update.
12214 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12215
12216 2014-02-19 Tom Tromey <tromey@redhat.com>
12217
12218 * target.h (struct target_ops) <to_download_trace_state_variable>:
12219 Add argument.
12220 (target_download_trace_state_variable): Add argument.
12221 * target.c (update_current_target): Update.
12222 * remote.c (remote_download_trace_state_variable): Add 'self'
12223 argument.
12224
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12228 argument.
12229 (target_can_download_tracepoint): Add argument.
12230 * target.c (update_current_target): Update.
12231 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12232
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target.h (struct target_ops) <to_download_tracepoint>: Add
12236 argument.
12237 (target_download_tracepoint): Add argument.
12238 * target.c (update_current_target): Update.
12239 * remote.c (remote_download_tracepoint): Add 'self' argument.
12240
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12242
12243 * target.h (struct target_ops) <to_trace_init>: Add argument.
12244 (target_trace_init): Add argument.
12245 * target.c (update_current_target): Update.
12246 * remote.c (remote_trace_init): Add 'self' argument.
12247
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12249
12250 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12251 * target.c (target_fileio_readlink): Add argument.
12252 * remote.c (remote_hostio_readlink): Add 'self' argument.
12253 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12254
12255 2014-02-19 Tom Tromey <tromey@redhat.com>
12256
12257 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12258 * target.c (target_fileio_unlink): Add argument.
12259 * remote.c (remote_hostio_unlink): Add 'self' argument.
12260 (remote_file_delete): Update.
12261 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12262
12263 2014-02-19 Tom Tromey <tromey@redhat.com>
12264
12265 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12266 * target.c (target_fileio_close): Add argument.
12267 * remote.c (remote_hostio_close): Add 'self' argument.
12268 (remote_hostio_close_cleanup): Update.
12269 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12270 Update.
12271 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12272
12273 2014-02-19 Tom Tromey <tromey@redhat.com>
12274
12275 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12276 * target.c (target_fileio_pread): Add argument.
12277 * remote.c (remote_hostio_pread): Add 'self' argument.
12278 (remote_bfd_iovec_pread, remote_file_get): Update.
12279 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12280
12281 2014-02-19 Tom Tromey <tromey@redhat.com>
12282
12283 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12284 * target.c (target_fileio_pwrite): Add argument.
12285 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12286 (remote_file_put): Update.
12287 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12288
12289 2014-02-19 Tom Tromey <tromey@redhat.com>
12290
12291 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12292 * target.c (target_fileio_open): Add argument.
12293 * remote.c (remote_hostio_open): Add 'self' argument.
12294 (remote_bfd_iovec_open): Add 'self' argument.
12295 (remote_file_put): Add 'self' argument.
12296 (remote_file_get): Add 'self' argument.
12297 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12298
12299 2014-02-19 Tom Tromey <tromey@redhat.com>
12300
12301 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12302 Add argument.
12303 (target_can_run_breakpoint_commands): Add argument.
12304 * target.c (update_current_target): Update.
12305 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12306 argument.
12307 (remote_insert_breakpoint): Add 'self' argument.
12308 (remote_insert_hw_breakpoint): Add 'self' argument.
12309 (remote_can_run_breakpoint_commands): Add 'self' argument.
12310
12311 2014-02-19 Tom Tromey <tromey@redhat.com>
12312
12313 * target.h (struct target_ops)
12314 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12315 (target_supports_evaluation_of_breakpoint_conditions): Add
12316 argument.
12317 * target.c (update_current_target): Update.
12318 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12319 argument.
12320 (remote_insert_breakpoint): Add 'self' argument.
12321 (remote_insert_hw_breakpoint): Add 'self' argument.
12322 (remote_supports_cond_breakpoints): Add 'self' argument.
12323
12324 2014-02-19 Tom Tromey <tromey@redhat.com>
12325
12326 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12327 argument.
12328 (target_supports_string_tracing): Add argument.
12329 * target.c (update_current_target): Update.
12330 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12331
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target.h (struct target_ops)
12335 <to_supports_disable_randomization>: Add argument.
12336 * target.c (find_default_supports_disable_randomization): Add
12337 argument.
12338 (target_supports_disable_randomization): Add argument.
12339 (find_default_supports_disable_randomization): Add 'self'
12340 argument.
12341 * remote.c (extended_remote_supports_disable_randomization): Add
12342 'self' argument.
12343 (remote_supports_disable_randomization): Add 'self' argument.
12344 (extended_remote_create_inferior): Update.
12345 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12346 'self' argument.
12347
12348 2014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * target.h (struct target_ops)
12351 <to_supports_enable_disable_tracepoint>: Add argument.
12352 (target_supports_enable_disable_tracepoint): Add argument.
12353 * target.c (update_current_target): Update.
12354 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12355 argument.
12356
12357 2014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * target.h (struct target_ops) <to_supports_multi_process>: Add
12360 argument.
12361 (target_supports_multi_process): Add argument.
12362 * target.c (update_current_target): Update.
12363 * remote.c (remote_supports_multi_process): Add 'self' argument.
12364 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12365 argument.
12366 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12367 argument.
12368
12369 2014-02-19 Tom Tromey <tromey@redhat.com>
12370
12371 * target.h (struct target_ops) <to_execution_direction>: Add
12372 argument.
12373 (target_execution_direction): Add argument.
12374 * target.c (default_execution_direction): Add 'self' argument.
12375 * record-full.c (record_full_execution_direction): Add 'self'
12376 argument.
12377
12378 2014-02-19 Tom Tromey <tromey@redhat.com>
12379
12380 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12381 argument.
12382 (target_can_execute_reverse): Add argument.
12383 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12384 * record-full.c (record_full_can_execute_reverse): Add 'self'
12385 argument.
12386 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12387 argument.
12388
12389 2014-02-19 Tom Tromey <tromey@redhat.com>
12390
12391 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12392 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12393 argument.
12394 (target_get_ada_task_ptid): Add argument.
12395 * target.c (update_current_target): Update.
12396 (default_get_ada_task_ptid): Add 'self' argument.
12397 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12398 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12399 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12400 argument.
12401 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12402 argument.
12403 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12404 argument.
12405 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12406 argument.
12407 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12408 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12409 argument.
12410
12411 2014-02-19 Tom Tromey <tromey@redhat.com>
12412
12413 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12414 (target_goto_bookmark): Add argument.
12415 * target.c (dummy_goto_bookmark): Add 'self' argument.
12416 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12417
12418 2014-02-19 Tom Tromey <tromey@redhat.com>
12419
12420 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12421 (target_get_bookmark): Add argument.
12422 * target.c (dummy_get_bookmark): Add 'self' argument.
12423 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12424
12425 2014-02-19 Tom Tromey <tromey@redhat.com>
12426
12427 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12428 argument.
12429 (target_make_corefile_notes): Add argument.
12430 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12431 * procfs.c (procfs_make_note_section): Add 'self' argument.
12432 (procfs_make_note_section): Add 'self' argument.
12433 (procfs_make_note_section): Add 'self' argument.
12434 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12435 argument.
12436 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12437 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12438 * exec.c (exec_make_note_section): Add 'self' argument.
12439 (exec_make_note_section): Add 'self' argument.
12440
12441 2014-02-19 Tom Tromey <tromey@redhat.com>
12442
12443 * target.h (struct target_ops) <to_find_memory_regions>: Add
12444 argument.
12445 (target_find_memory_regions): Add argument.
12446 * target.c (dummy_find_memory_regions): Add 'self' argument.
12447 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12448 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12449 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12450 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12451 * exec. (exec_do_find_memory_regions): New global.
12452 (exec_set_find_memory_regions): Rewrite.
12453 (exec_find_memory_regions): New function.
12454 (init_exec_ops): Use exec_find_memory_regions.
12455
12456 2014-02-19 Tom Tromey <tromey@redhat.com>
12457
12458 * target.h (struct target_ops) <to_supports_non_stop>: Add
12459 argument.
12460 * target.c (find_default_supports_non_stop): Add argument.
12461 (target_supports_non_stop): Add argument.
12462 (find_default_supports_non_stop): Add 'self' argument.
12463 * remote.c (remote_supports_non_stop): Add 'self' argument.
12464 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12465
12466 2014-02-19 Tom Tromey <tromey@redhat.com>
12467
12468 * target.h (struct target_ops) <to_log_command>: Add argument.
12469 (target_log_command): Add argument.
12470 * serial.h (serial_log_command): Add 'self' argument.
12471 * serial.c (serial_log_command): Add 'self' argument.
12472
12473 2014-02-19 Tom Tromey <tromey@redhat.com>
12474
12475 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12476 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12477 argument.
12478 (target_pid_to_exec_file): Add argument.
12479 * target.c (debug_to_pid_to_exec_file): Add argument.
12480 (update_current_target): Update.
12481 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12482 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12483 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12484 (linux_handle_extended_wait): Update.
12485 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12486 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12487 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12488 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12489
12490 2014-02-19 Tom Tromey <tromey@redhat.com>
12491
12492 * target.h (struct target_ops) <to_rcmd>: Add argument.
12493 (target_rcmd): Add argument.
12494 * target.c (debug_to_rcmd): Add argument.
12495 (update_current_target, do_monitor_command): Update.
12496 * remote.c (remote_rcmd): Add 'self' argument.
12497 * monitor.c (monitor_rcmd): Add 'self' argument.
12498
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * windows-nat.c (windows_stop): Add 'self' argument.
12502 * target.h (struct target_ops) <to_stop>: Add argument.
12503 * target.c (target_stop): Add argument.
12504 (debug_to_stop): Add argument.
12505 (update_current_target): Update.
12506 * remote.c (remote_stop): Add 'self' argument.
12507 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12508 (gdbsim_cntrl_c): Update.
12509 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12510 * procfs.c (procfs_stop): Add 'self' argument.
12511 * nto-procfs.c (procfs_stop): Add 'self' argument.
12512 * monitor.c (monitor_stop): Add 'self' argument.
12513 (monitor_open): Update.
12514 * linux-nat.c (linux_nat_stop): Add argument.
12515 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12516 * gnu-nat.c (gnu_stop): Add 'self' argument.
12517 * darwin-nat.c (darwin_stop): Add 'self' argument.
12518
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12520
12521 * target.h (struct target_ops) <to_thread_name>: Add argument.
12522 * target.c (target_thread_name): Add argument.
12523 (update_current_target): Update.
12524 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12525
12526 2014-02-19 Tom Tromey <tromey@redhat.com>
12527
12528 * target.h (struct target_ops) <to_extra_thread_info>: Add
12529 argument.
12530 (target_extra_thread_info): Add argument.
12531 * target.c (update_current_target): Update.
12532 * remote.c (remote_threads_extra_info): Add 'self' argument.
12533 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12534 argument.
12535 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12536 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12537 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12538 argument.
12539 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12540 argument.
12541 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12542 argument.
12543 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12544 argument.
12545
12546 2014-02-19 Tom Tromey <tromey@redhat.com>
12547
12548 * target.h (struct target_ops) <to_program_signals>: Add argument.
12549 * target.c (target_program_signals): Add argument.
12550 * remote.c (remote_program_signals): Add 'self' argument.
12551
12552 2014-02-19 Tom Tromey <tromey@redhat.com>
12553
12554 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12555 * target.c (target_pass_signals): Add argument.
12556 * remote.c (remote_pass_signals): Add 'self' argument.
12557 (remote_start_remote): Update.
12558 * procfs.c (procfs_pass_signals): Add 'self' argument.
12559 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12560 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12561 (linux_nat_create_inferior, linux_nat_attach): Update.
12562
12563 2014-02-19 Tom Tromey <tromey@redhat.com>
12564
12565 * windows-nat.c (windows_can_run): Add 'self' argument.
12566 * target.h (struct target_ops) <to_can_run>: Add argument.
12567 (target_can_run): Add argument.
12568 * target.c (debug_to_can_run): Add argument.
12569 (update_current_target): Update.
12570 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12571 * inf-child.c (inf_child_can_run): Add 'self' argument.
12572 * go32-nat.c (go32_can_run): Add 'self' argument.
12573
12574 2014-02-19 Tom Tromey <tromey@redhat.com>
12575
12576 * target.h (struct target_ops) <to_has_exited>: Add argument.
12577 (target_has_exited): Add argument.
12578 * target.c (debug_to_has_exited): Add argument.
12579 (update_current_target): Update.
12580
12581 2014-02-19 Tom Tromey <tromey@redhat.com>
12582
12583 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12584 argument.
12585 (target_set_syscall_catchpoint): Add argument.
12586 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12587 argument.
12588 * target.c (update_current_target): Update.
12589
12590 2014-02-19 Tom Tromey <tromey@redhat.com>
12591
12592 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12593 argument.
12594 (target_remove_exec_catchpoint): Add argument.
12595 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12596 (update_current_target): Update.
12597 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12598 argument.
12599
12600 2014-02-19 Tom Tromey <tromey@redhat.com>
12601
12602 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12603 argument.
12604 (target_insert_exec_catchpoint): Add argument.
12605 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12606 (update_current_target): Update.
12607 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12608 argument.
12609
12610 2014-02-19 Tom Tromey <tromey@redhat.com>
12611
12612 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12613 argument.
12614 (target_remove_vfork_catchpoint): Add argument.
12615 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12616 (update_current_target): Update.
12617 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12618 argument.
12619
12620 2014-02-19 Tom Tromey <tromey@redhat.com>
12621
12622 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12623 argument.
12624 (target_insert_vfork_catchpoint): Add argument.
12625 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12626 (update_current_target): Update.
12627 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12628 argument.
12629
12630 2014-02-19 Tom Tromey <tromey@redhat.com>
12631
12632 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12633 argument.
12634 (target_remove_fork_catchpoint): Add argument.
12635 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12636 (update_current_target): Update.
12637 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12638 argument.
12639
12640 2014-02-19 Tom Tromey <tromey@redhat.com>
12641
12642 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12643 argument.
12644 (target_insert_fork_catchpoint): Add argument.
12645 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12646 (update_current_target): Update.
12647 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12648 argument.
12649
12650 2014-02-19 Tom Tromey <tromey@redhat.com>
12651
12652 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12653 argument.
12654 (target_post_startup_inferior): Add argument.
12655 * target.c (debug_to_post_startup_inferior): Add argument.
12656 (update_current_target): Update.
12657 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12658 argument.
12659 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12660 argument.
12661 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12662 argument.
12663 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12664 argument.
12665 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12666 'self' argument.
12667 (super_post_startup_inferior): Likewise.
12668 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12669 'self' argument.
12670 (super_post_startup_inferior): Likewise.
12671 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12672 Add 'self' argument.
12673 (super_post_startup_inferior): Likewise.
12674
12675 2014-02-19 Tom Tromey <tromey@redhat.com>
12676
12677 * target.h (struct target_ops) <to_load>: Add argument.
12678 * target.c (target_load): Add argument.
12679 (debug_to_load): Add argument.
12680 (update_current_target): Update.
12681 * remote.c (remote_load): Add 'self' argument.
12682 * remote-sim.c (gdbsim_load): Add 'self' argument.
12683 * remote-mips.c (mips_load): Add 'self' argument.
12684 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12685 * monitor.c (monitor_load): Add 'self' argument.
12686 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12687
12688 2014-02-19 Tom Tromey <tromey@redhat.com>
12689
12690 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12691 (target_terminal_info): Add argument.
12692 * target.c (debug_to_terminal_info): Add argument.
12693 (default_terminal_info): Likewise.
12694 * inflow.c (child_terminal_info): Add 'self' argument.
12695 * inferior.h (child_terminal_info): Add 'self' argument.
12696 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12697
12698 2014-02-19 Tom Tromey <tromey@redhat.com>
12699
12700 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12701 argument.
12702 (target_terminal_save_ours): Add argument.
12703 * target.c (debug_to_terminal_save_ours): Add argument.
12704 (update_current_target): Update.
12705 * inflow.c (terminal_save_ours): Add 'self' argument.
12706 * inferior.h (terminal_save_ours): Add 'self' argument.
12707
12708 2014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12711 (target_terminal_ours): Add argument.
12712 * target.c (debug_to_terminal_ours): Add argument.
12713 (update_current_target): Update.
12714 * remote.c (remote_terminal_ours): Add 'self' argument.
12715 (remote_close): Update.
12716 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12717 * inflow.c (terminal_ours): Add 'self' argument.
12718 * inferior.h (terminal_ours): Add 'self' argument.
12719 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12720
12721 2014-02-19 Pedro Alves <palves@redhat.com>
12722 Tom Tromey <tromey@redhat.com>
12723
12724 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12725 argument.
12726 (target_terminal_ours_for_output): Add argument.
12727 * target.c (debug_to_terminal_ours_for_output): Add argument.
12728 (update_current_target): Update.
12729 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12730 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12731 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12732
12733 2014-02-19 Tom Tromey <tromey@redhat.com>
12734
12735 * target.h (struct target_ops) <to_terminal_inferior>: Add
12736 argument.
12737 * target.c (target_terminal_inferior): Add argument.
12738 (update_current_target): Update.
12739 * remote.c (remote_terminal_inferior): Add 'self' argument.
12740 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12741 * inflow.c (terminal_inferior): Add 'self' argument.
12742 * inferior.h (terminal_inferior): Add 'self' argument.
12743 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12744 (go32_terminal_inferior): Add 'self' argument.
12745
12746 2014-02-19 Tom Tromey <tromey@redhat.com>
12747
12748 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12749 (target_terminal_init): Add argument.
12750 * target.c (debug_to_terminal_init): Add argument.
12751 (update_current_target): Update.
12752 * inflow.c (terminal_init_inferior): Add 'self' argument.
12753 * inferior.h (terminal_init_inferior): Add 'self' argument.
12754 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12755 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12756
12757 2014-02-19 Tom Tromey <tromey@redhat.com>
12758
12759 * target.h (struct target_ops)
12760 <to_can_accel_watchpoint_condition>: Add argument.
12761 (target_can_accel_watchpoint_condition): Add argument.
12762 * target.c (debug_to_can_accel_watchpoint_condition): Add
12763 argument.
12764 (update_current_target): Update.
12765 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12766 'self' argument.
12767
12768 2014-02-19 Tom Tromey <tromey@redhat.com>
12769
12770 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12771 Add argument.
12772 (target_region_ok_for_hw_watchpoint): Add argument.
12773 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12774 (default_region_ok_for_hw_watchpoint): Add argument.
12775 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12776 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12777 argument.
12778 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12779 argument.
12780 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12781 argument.
12782 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12783 'self' argument.
12784 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12785 'self' argument.
12786 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12787 'self' argument.
12788 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12789 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12790 'self' argument.
12791 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12792 Add 'self' argument.
12793
12794 2014-02-19 Tom Tromey <tromey@redhat.com>
12795
12796 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12797 argument.
12798 (target_insert_watchpoint): Add argument.
12799 * target.c (debug_to_insert_watchpoint): Add argument.
12800 (update_current_target): Update.
12801 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12802 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12803 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12804 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12805 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12806 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12807 argument.
12808 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12809 (procfs_insert_hw_watchpoint): Add 'self' argument.
12810 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12811 argument.
12812 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12813 argument.
12814 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12815 argument.
12816 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12817 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12818 argument.
12819 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12820 'self' argument.
12821
12822 2014-02-19 Tom Tromey <tromey@redhat.com>
12823
12824 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12825 argument.
12826 (target_remove_watchpoint): Add argument.
12827 * target.c (debug_to_remove_watchpoint): Add argument.
12828 (update_current_target): Update.
12829 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12830 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12831 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12832 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12833 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12834 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12835 argument.
12836 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12837 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12838 argument.
12839 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12840 argument.
12841 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12842 argument.
12843 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12844 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12845 argument.
12846 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12847 'self' argument.
12848
12849 2014-02-19 Tom Tromey <tromey@redhat.com>
12850
12851 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12852 argument.
12853 (target_remove_hw_breakpoint): Add argument.
12854 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12855 (update_current_target): Update.
12856 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12857 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12858 argument.
12859 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12860 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12861 argument.
12862 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12863 'self' argument.
12864
12865 2014-02-19 Tom Tromey <tromey@redhat.com>
12866
12867 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12868 argument.
12869 (target_insert_hw_breakpoint): Add argument.
12870 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12871 (update_current_target): Update.
12872 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12873 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12874 argument.
12875 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12876 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12877 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12878 argument.
12879 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12880 'self' argument.
12881
12882 2014-02-19 Tom Tromey <tromey@redhat.com>
12883
12884 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12885 argument.
12886 (target_can_use_hardware_watchpoint): Add argument.
12887 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12888 (update_current_target): Update.
12889 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12890 argument.
12891 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12892 argument.
12893 * remote.c (remote_check_watch_resources): Add 'self' argument.
12894 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12895 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12896 argument.
12897 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12898 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12899 argument.
12900 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12901 argument.
12902 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12903 argument.
12904 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12905 argument.
12906 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12907 argument.
12908 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12909 argument.
12910 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12911 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12912 argument.
12913 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12914 'self' argument.
12915
12916 2014-02-19 Tom Tromey <tromey@redhat.com>
12917
12918 * target.h (struct target_ops) <to_post_attach>: Add argument.
12919 (target_post_attach): Add argument.
12920 * target.c (debug_to_post_attach): Add argument.
12921 (update_current_target): Update.
12922 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12923 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12924 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12925 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12926 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12927
12928 2014-02-19 Tom Tromey <tromey@redhat.com>
12929
12930 * windows-nat.c (windows_close): Add 'self' argument.
12931 * tracepoint.c (tfile_close): Add 'self' argument.
12932 * target.h (struct target_ops) <to_close>: Add argument.
12933 * target.c (target_close): Add argument.
12934 (update_current_target): Update.
12935 * remote.c (remote_close): Add 'self' argument.
12936 * remote-sim.c (gdbsim_close): Add 'self' argument.
12937 * remote-mips.c (mips_close): Add 'self' argument.
12938 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12939 * record-full.c (record_full_close): Add 'self' argument.
12940 * record-btrace.c (record_btrace_close): Add 'self' argument.
12941 * monitor.h (monitor_close): Add 'self' argument.
12942 * monitor.c (monitor_close): Add 'self' argument.
12943 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12944 * linux-nat.c (linux_nat_close): Add argument.
12945 * go32-nat.c (go32_close): Add 'self' argument.
12946 * exec.c (exec_close_1): Add 'self' argument.
12947 * ctf.c (ctf_close): Add 'self' argument.
12948 * corelow.c (core_close): Add 'self' argument.
12949 (core_close_cleanup): Update.
12950 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12951 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12952
12953 2014-02-19 Tom Tromey <tromey@redhat.com>
12954
12955 * remote.c (remote_load): New function.
12956 (init_remote_ops): Use it.
12957
12958 2014-02-19 Tom Tromey <tromey@redhat.com>
12959
12960 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12961 argument.
12962 * common/linux-btrace.h (linux_supports_btrace): Update.
12963 * remote.c (remote_supports_btrace): Add "self" argument.
12964 * target-delegates.c: Rebuild.
12965 * target.c (target_supports_btrace): Remove.
12966 * target.h (struct target_ops) <to_supports_btrace>: Add
12967 target_ops argument.
12968 (target_supports_btrace): New define.
12969
12970 2014-02-19 Tom Tromey <tromey@redhat.com>
12971
12972 * record-full.c (record_full_beneath_to_resume_ops)
12973 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12974 (record_full_beneath_to_wait)
12975 (record_full_beneath_to_store_registers_ops)
12976 (record_full_beneath_to_store_registers)
12977 (record_full_beneath_to_xfer_partial_ops)
12978 (record_full_beneath_to_xfer_partial)
12979 (record_full_beneath_to_insert_breakpoint_ops)
12980 (record_full_beneath_to_insert_breakpoint)
12981 (record_full_beneath_to_remove_breakpoint_ops)
12982 (record_full_beneath_to_remove_breakpoint)
12983 (record_full_beneath_to_stopped_by_watchpoint)
12984 (record_full_beneath_to_stopped_data_address)
12985 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12986 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12987 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12988 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12989 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12990 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12991 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12992 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12993 (record_full_resume, record_full_wait_1)
12994 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12995 (record_full_store_registers, record_full_xfer_partial)
12996 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12997 (record_full_async, record_full_core_xfer_partial): Use target
12998 delegation.
12999 * target-delegates.c: Rebuild.
13000 * target.c (current_xfer_partial): Remove.
13001 (update_current_target): Do not INHERIT or de_fault
13002 to_insert_breakpoint, to_remove_breakpoint,
13003 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13004 to_is_async_p, to_async. Do not set to_xfer_partial field.
13005 (default_xfer_partial): Simplify.
13006 (current_xfer_partial): Remove.
13007 (target_wait, target_resume): Simplify.
13008 (find_default_can_async_p, find_default_is_async_p): Update.
13009 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13010 to_xfer_partial, to_stopped_by_watchpoint,
13011 to_stopped_data_address.
13012 (target_store_registers): Simplify.
13013 (forward_target_remove_breakpoint)
13014 (forward_target_insert_breakpoint): Remove.
13015 (target_remove_breakpoint, target_insert_breakpoint)
13016 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13017 * target.h (struct target_ops) <to_resume, to_wait,
13018 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13019 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13020 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13021 markup.
13022 (forward_target_remove_breakpoint)
13023 (forward_target_insert_breakpoint): Remove.
13024 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13025 directly.
13026 (record_btrace_insert_breakpoint): Delegate directly.
13027
13028 2014-02-19 Tom Tromey <tromey@redhat.com>
13029
13030 PR build/7701:
13031 * target-delegates.c: New file.
13032 * target.c: Include target-delegates.c.
13033 (init_dummy_target): Call install_dummy_methods.
13034 (complete_target_initialization): Call install_delegators.
13035 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13036 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13037 * make-target-delegates: New file.
13038
13039 2014-02-19 Tom Tromey <tromey@redhat.com>
13040
13041 * record.c (find_record_target): Use find_target_at.
13042 * target.c (find_target_at): New function.
13043 * target.h (find_target_at): Declare.
13044
13045 2014-02-19 Tom Tromey <tromey@redhat.com>
13046
13047 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13048 Add 'ops' argument.
13049 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13050 'ops' argument.
13051 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13052 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13053 'ops' argument.
13054 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13055 argument.
13056 * linux-nat.c (save_sigtrap): Update.
13057 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13058 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13059 (linux_nat_close): Update.
13060 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13061 argument.
13062 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13063 argument.
13064 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13065 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13066 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13067 (tmp_to_async): Add 'ops' argument.
13068 (record_full_stopped_by_watchpoint, record_full_async)
13069 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13070 argument.
13071 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13072 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13073 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13074 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13075 (remote_is_async_p, remote_async): Add 'ops' argument.
13076 (remote_stopped_data_address): Update.
13077 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13078 * target.c (update_current_target)
13079 (find_default_can_async_p, find_default_is_async_p): Update.
13080 (init_dummy_target): Update.
13081 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13082 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13083 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13084 (target_can_async_p, target_is_async_p, target_async)
13085 (target_stopped_by_watchpoint): Update.
13086
13087 2014-02-19 Yao Qi <yao@codesourcery.com>
13088
13089 PR gdb/16220
13090 * gdbarch.sh: Remove startup_gdbarch.
13091 * gdbarch.c: Regenerated.
13092 * gdbarch.h: Likewise.
13093
13094 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13095
13096 * rl78-tdep.c (rl78_g10_register_name): New function.
13097 (rl78_return_value): Add g10 support.
13098 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13099 g10.
13100
13101 2014-02-17 Doug Evans <xdje42@gmail.com>
13102
13103 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13104 (SUBDIR_GUILE_SRCS): Ditto.
13105 (scm-gsmob.o): Ditto.
13106
13107 2014-02-17 Yao Qi <yao@codesourcery.com>
13108
13109 * gnu-nat.c (ILL_RPC): Declare defined function.
13110
13111 2014-02-17 Yao Qi <yao@codesourcery.com>
13112
13113 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13114 mach_msg_type_number_t.
13115 (gnu_write_inferior): Likewise.
13116
13117 2014-02-17 Yao Qi <yao@codesourcery.com>
13118
13119 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13120 in format string.
13121 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13122 (inf_validate_procs, inf_signal): Likewise.
13123 (S_exception_raise_request): Likewise.
13124 (do_mach_notify_dead_name): Likewise.
13125 (steal_exc_port): Likewise.
13126 (gnu_read_inferior): Change 'copy_count''s type to
13127 mach_msg_type_number_t.
13128 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13129 format string.
13130
13131 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13132
13133 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13134 flag. Adjust all users; in particular...
13135 (gnu_wait): ..., don't decrement its value in here...
13136 (gnu_create_inferior): ..., and instead set the flag in here,
13137 around the startup_inferior call, and call that one with
13138 START_INFERIOR_TRAPS_EXPECTED.
13139
13140 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13141 (ILL_RPC): ... new macro.
13142 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13143 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13144 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13145 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13146 functions with ILL_RPC macro.
13147 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13148 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13149 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13150 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13151 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13152 (S_proc_getlogin_reply, S_proc_getsid_reply)
13153 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13154 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13155 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13156 (S_proc_getnports_reply, S_proc_is_important_reply)
13157 (S_proc_get_code_reply): New stub functions, generated with
13158 ILL_RPC macro.
13159
13160 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13161 collected the type check structures.
13162
13163 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13164
13165 2014-02-14 Doug Evans <dje@google.com>
13166
13167 * target.c (target_write_partial): Fix result type.
13168
13169 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13170
13171 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13172 the proper offsets to access fpregset_t.
13173
13174 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13175
13176 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13177 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13178 * h8300-tdep.c (setmachinelist): Remove global.
13179 * hppa-tdep.c (hppa_sigtramp): Remove global.
13180 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13181 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13182 * ravenscar-thread.c (update_target_observer): Remove global.
13183 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13184
13185 2014-02-12 Tom Tromey <tromey@redhat.com>
13186
13187 * common/rsp-low.c: Update comments.
13188 * common/rsp-low.h: Update comments.
13189
13190 2014-02-12 Tom Tromey <tromey@redhat.com>
13191
13192 * common/rsp-low.c (convert_ascii_to_int): Remove.
13193 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13194
13195 2014-02-12 Tom Tromey <tromey@redhat.com>
13196
13197 * common/rsp-low.h (unhexify): Don't declare.
13198 * common/rsp-low.c (unhexify): Remove.
13199
13200 2014-02-12 Tom Tromey <tromey@redhat.com>
13201
13202 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13203 * common/rsp-low.c (convert_int_to_ascii): Remove.
13204
13205 2014-02-12 Tom Tromey <tromey@redhat.com>
13206
13207 * common/rsp-low.h (hexify): Don't declare.
13208 * common/rsp-low.c (hexify): Remove.
13209
13210 2014-02-12 Tom Tromey <tromey@redhat.com>
13211
13212 * common/rsp-low.c (hexify): Never take strlen of argument.
13213
13214 2014-02-12 Tom Tromey <tromey@redhat.com>
13215
13216 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13217 * remote.c (extended_remote_run, remote_rcmd)
13218 (remote_download_trace_state_variable, remote_save_trace_data)
13219 (remote_set_trace_notes): Update.
13220 * tracepoint.c (encode_source_string, tfile_write_status)
13221 (tfile_write_uploaded_tsv): Update.
13222
13223 2014-02-12 Tom Tromey <tromey@redhat.com>
13224
13225 * tracepoint.c: Include rsp-low.h.
13226 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13227 * remote.c: Include rsp-low.h.
13228 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13229 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13230 (remote_unescape_input): Move to common/rsp-low.c.
13231 * common/rsp-low.h: New file.
13232 * common/rsp-low.c: New file.
13233 * Makefile.in (SFILES): Add common/rsp-low.c.
13234 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13235 (COMMON_OBS): Add rsp-low.o.
13236 (rsp-low.o): New target.
13237
13238 2014-02-12 Tom Tromey <tromey@redhat.com>
13239
13240 * utils.h: Include print-utils.h.
13241 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13242 (int_string, core_addr_to_string, core_addr_to_string_nz)
13243 (hex_string, hex_string_custom): Don't declare.
13244 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13245 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13246 (hex_string_custom, int_string, core_addr_to_string)
13247 (core_addr_to_string_nz, host_address_to_string): Move to
13248 common/print-utils.c.
13249 * common/print-utils.h: New file.
13250 * common/print-utils.c: New file
13251 * Makefile.in (SFILES): Add common/print-utils.c.
13252 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13253 (COMMON_OBS): Add print-utils.o.
13254 (print-utils.o): New target.
13255
13256 2014-02-12 Tom Tromey <tromey@redhat.com>
13257
13258 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13259
13260 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13261
13262 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13263
13264 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13265
13266 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13267 if a PT_IO ptrace request returns sucessfully but indicates that 0
13268 bytes were transferred.
13269
13270 2014-02-12 Pedro Alves <palves@redhat.com>
13271 Kevin Buettner <kevinb@redhat.com>
13272
13273 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13274 TYPE_INSTANCE_FLAG_CODE_SPACE.
13275
13276 2014-02-12 Pedro Alves <palves@redhat.com>
13277
13278 * h8300-tdep.c (pseudo_from_raw_register)
13279 (raw_from_pseudo_register): New functions.
13280 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13281 them.
13282
13283 2014-02-12 Pedro Alves <palves@redhat.com>
13284
13285 * h8300-tdep.c (h8300_register_sim_regno): New function.
13286 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13287 gdbarch_register_sim_regno hook.
13288
13289 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13290
13291 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13292
13293 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13294
13295 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13296
13297 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13298
13299 * obsd-tdep.h (obsd_init_abi): New prototype.
13300 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13301 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13302 (obsd_init_abi): New functions.
13303 * i386obsd-tdep.c: Include "obsd-tdep.h".
13304 (i386obsd_init_abi): Call obsd_init_abi.
13305 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13306 (amd64obsd_init_abi): Call obsd_init_abi.
13307 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13308 obsd-tdep.c to gdb_target_obs.
13309
13310 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13311
13312 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13313 double float arguments to 16-byte in the argument slots.
13314
13315 2014-02-11 Doug Evans <xdje42@gmail.com>
13316
13317 * configure.ac: Don't crash if pkg-config is not found and guile
13318 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13319 in guile checks.
13320 * configure: Regenerate.
13321
13322 2014-02-11 Yao Qi <yao@codesourcery.com>
13323
13324 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13325 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13326 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13327 * gnu-nat.c (gnu_xfer_memory): Likewise.
13328 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13329 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13330 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13331 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13332
13333 2014-02-11 Yao Qi <yao@codesourcery.com>
13334
13335 * target.h (enum target_xfer_error): Rename to ...
13336 (enum target_xfer_status): ... it. New. All users updated.
13337 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13338 New.
13339 (TARGET_XFER_STATUS_ERROR_P): New macro.
13340 (target_xfer_error_to_string): Remove declaration.
13341 (target_xfer_status_to_string): Declare.
13342 (target_xfer_partial_ftype): Adjust it.
13343 (struct target_ops) <to_xfer_partial>: Return
13344 target_xfer_status. Add argument xfered_len. Update
13345 comments.
13346 * target.c (target_xfer_error_to_string): Rename to ...
13347 (target_xfer_status_to_string): ... it. New. All callers
13348 updated.
13349 (target_read_live_memory): Likewise. Call target_xfer_partial
13350 instead of target_read.
13351 (memory_xfer_live_readonly_partial): Return
13352 target_xfer_status. Add argument xfered_len.
13353 (raw_memory_xfer_partial): Likewise.
13354 (memory_xfer_partial_1): Likewise.
13355 (memory_xfer_partial): Likewise.
13356 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13357 properly. Update debug message.
13358 (default_xfer_partial, current_xfer_partial): Likewise.
13359 (target_write_partial): Likewise.
13360 (target_read_partial): Likewise. All callers updated.
13361 (read_whatever_is_readable): Likewise.
13362 (target_write_with_progress): Likewise.
13363 (target_read_alloc_1): Likewise.
13364
13365 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13366 * auxv.c (procfs_xfer_auxv): Likewise.
13367 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13368 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13369 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13370 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13371 * corefile.c (read_memory): Adjust.
13372 * corelow.c (core_xfer_partial): Likewise.
13373 * ctf.c (ctf_xfer_partial): Likewise.
13374 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13375 updated.
13376 (darwin_xfer_partial): Likewise.
13377 * exec.c (section_table_xfer_memory_partial): Likewise. All
13378 callers updated.
13379 (exec_xfer_partial): Likewise.
13380 * exec.h (section_table_xfer_memory_partial): Update
13381 declaration.
13382 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13383 negative.
13384 (gnu_xfer_partial): Likewise.
13385 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13386 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13387 (ia64_hpux_xfer_solib_got): Likewise.
13388 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13389 type of 'partial_len' to ULONGEST.
13390 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13391 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13392 (linux_nat_xfer_partial): Likewise.
13393 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13394 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13395 * monitor.c (monitor_xfer_memory): Likewise.
13396 (monitor_xfer_partial): Likewise.
13397 * procfs.c (procfs_xfer_partial): Likewise.
13398 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13399 * record-full.c (record_full_xfer_partial): Likewise.
13400 (record_full_core_xfer_partial): Likewise.
13401 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13402 (gdbsim_xfer_partial): Likewise.
13403 * remote.c (remote_write_bytes_aux): Likewise. All callers
13404 updated.
13405 (remote_write_bytes, remote_read_bytes): Likewise. All
13406 callers updated.
13407 (remote_flash_erase): Likewise. All callers updated.
13408 (remote_write_qxfer): Likewise. All callers updated.
13409 (remote_read_qxfer): Likewise. All callers updated.
13410 (remote_xfer_partial): Likewise.
13411 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13412 (rs6000_xfer_shared_libraries): Likewise.
13413 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13414 (sol_thread_xfer_partial): Likewise.
13415 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13416 (sparc_xfer_partial): Likewise.
13417 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13418 updated.
13419 (spu_xfer_partial): Likewise.
13420 * spu-multiarch.c (spu_xfer_partial): Likewise.
13421 * tracepoint.c (tfile_xfer_partial): Likewise.
13422 * windows-nat.c (windows_xfer_memory): Likewise.
13423 (windows_xfer_shared_libraries): Likewise.
13424 (windows_xfer_partial): Likewise.
13425 * valprint.c: Replace 'target_xfer_error' with
13426 'target_xfer_status' in comments.
13427
13428 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13429
13430 Checked in by Joel Brobecker <brobecker@adacore.com>.
13431 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13432
13433 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13434
13435 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13436 function parameters.
13437
13438 2014-02-10 Will Newton <will.newton@linaro.org>
13439
13440 * elfread.c (elf_rel_plt_read): Look for a .got section if
13441 looking up .got.plt fails.
13442 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13443 on address passed to elf_gnu_ifunc_record_cache.
13444 (elf_gnu_ifunc_resolve_addr): Likewise.
13445 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13446
13447 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13448
13449 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13450 (X_RETTURN): New macro.
13451 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13452
13453 * sparc64-tdep.c (sparc64_init_abi): Hook
13454 sparc_in_function_epilogue_p.
13455
13456 2014-02-10 Gary Benson <gbenson@redhat.com>
13457
13458 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13459 Rename name_matcher to symbol_matcher.
13460
13461 2014-02-10 Gary Benson <gbenson@redhat.com>
13462
13463 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13464 Use expand_symtabs_file_matcher_ftype and
13465 expand_symtabs_symbol_matcher_ftype.
13466
13467 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13468
13469 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13470 (struct ada_symbol_cache): New.
13471 (ada_free_symbol_cache): Forward declare.
13472 (struct ada_pspace_data): New.
13473 (ada_pspace_data_handle): New static global.
13474 (get_ada_pspace_data, ada_pspace_data_cleanup)
13475 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13476 (cache_space, cache): Delete, now folded inside struct
13477 ada_pspace_data.
13478 (ada_get_symbol_cache): New function.
13479 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13480 implementation.
13481 (_initialize_ada_language): Remove initialization of cache_space.
13482 Move call to observer_attach_inferior_exit up, grouping it
13483 with the other observer registrations inside this function.
13484 Rename command to be more general. Add call to
13485 register_program_space_data_with_cleanup.
13486
13487 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13488
13489 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13490 ada_new_objfile_observer.
13491 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13492 (_initialize_tasks): Update uses of ada_new_objfile_observer
13493 and ada_tasks_normal_stop_observer.
13494
13495 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13496
13497 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13498 returned by the 'Length attribute to integer.
13499
13500 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13501
13502 * ada-lang.c (_initialize_ada_language): Initialize
13503 cache_space obstack.
13504
13505 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13506
13507 * ada-lang.c (HASH_SIZE): New macro.
13508 (struct cache_entry): New type.
13509 (cache_space, cache): New static globals.
13510 (ada_clear_symbol_cache, find_entry): New functions.
13511 (lookup_cached_symbol, cache_symbol): Implement.
13512 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13513 (_initialize_ada_language): Attach ada_new_objfile_observer
13514 and ada_free_objfile_observer.
13515
13516 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13517
13518 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13519 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13520 struct block * parameter.
13521 (ada_lookup_symbol_list_worker): Constify local variable "block".
13522 Remove cast which is no longer necessary.
13523
13524 2014-02-10 Doug Evans <xdje42@gmail.com>
13525
13526 Add Guile as an extension language.
13527 * NEWS: Mention Guile scripting.
13528 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13529 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13530 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13531 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13532 (CLIBS): Add GUILE_LIBS.
13533 (install-guile): New rule.
13534 (guile.o): New rule.
13535 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13536 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13537 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13538 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13539 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13540 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13541 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13542 * configure.ac: New option --with-guile.
13543 * configure: Regenerate.
13544 * config.in: Regenerate.
13545 * auto-load.c: Remove #include "python/python.h". Add #include
13546 "gdb/section-scripts.h".
13547 (source_section_scripts): Handle Guile scripts.
13548 (_initialize_auto_load): Add name of Guile objfile script to
13549 scripts-directory help text.
13550 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13551 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13552 (struct breakpoint): New member scm_bp_object.
13553 * defs.h (enum command_control_type): New value guile_control.
13554 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13555 "extension.h".
13556 (show_user): Update comment.
13557 (_initialize_cli_cmds): Update help text for "show user". Update help
13558 text for max-user-call-depth.
13559 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13560 "extension.h".
13561 (multi_line_command_p): Add guile_control.
13562 (print_command_lines): Handle guile_control.
13563 (execute_control_command, recurse_read_control_structure): Ditto.
13564 (process_next_line): Recognize "guile" commands.
13565 * disasm.c (gdb_disassemble_info): Make non-static.
13566 * disasm.h: #include "dis-asm.h".
13567 (struct gdbarch): Add forward decl.
13568 (gdb_disassemble_info): Declare.
13569 * extension.c: #include "guile/guile.h".
13570 (extension_languages): Add guile.
13571 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13572 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13573 * gdbtypes.c (get_unsigned_type_max): New function.
13574 (get_signed_type_minmax): New function.
13575 * gdbtypes.h (get_unsigned_type_max): Declare.
13576 (get_signed_type_minmax): Declare.
13577 * guile/README: New file.
13578 * guile/guile-internal.h: New file.
13579 * guile/guile.c: New file.
13580 * guile/guile.h: New file.
13581 * guile/scm-arch.c: New file.
13582 * guile/scm-auto-load.c: New file.
13583 * guile/scm-block.c: New file.
13584 * guile/scm-breakpoint.c: New file.
13585 * guile/scm-disasm.c: New file.
13586 * guile/scm-exception.c: New file.
13587 * guile/scm-frame.c: New file.
13588 * guile/scm-gsmob.c: New file.
13589 * guile/scm-iterator.c: New file.
13590 * guile/scm-lazy-string.c: New file.
13591 * guile/scm-math.c: New file.
13592 * guile/scm-objfile.c: New file.
13593 * guile/scm-ports.c: New file.
13594 * guile/scm-pretty-print.c: New file.
13595 * guile/scm-safe-call.c: New file.
13596 * guile/scm-string.c: New file.
13597 * guile/scm-symbol.c: New file.
13598 * guile/scm-symtab.c: New file.
13599 * guile/scm-type.c: New file.
13600 * guile/scm-utils.c: New file.
13601 * guile/scm-value.c: New file.
13602 * guile/lib/gdb.scm: New file.
13603 * guile/lib/gdb/boot.scm: New file.
13604 * guile/lib/gdb/experimental.scm: New file.
13605 * guile/lib/gdb/init.scm: New file.
13606 * guile/lib/gdb/iterator.scm: New file.
13607 * guile/lib/gdb/printing.scm: New file.
13608 * guile/lib/gdb/types.scm: New file.
13609 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13610 (VPATH): Add $(GUILE_SRCDIR).
13611 (GUILE_DIR): New variable.
13612 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13613 (all): Add stamp-guile dependency.
13614 (stamp-guile): New rule.
13615 (clean-guile, install-guile, uninstall-guile): New rules.
13616 (install-only): Add install-guile dependency.
13617 (uninstall): Add uninstall-guile dependency.
13618 (clean): Add clean-guile dependency.
13619
13620 2014-02-09 Doug Evans <xdje42@gmail.com>
13621
13622 Revert this patch (which I approved, mea culpa).
13623
13624 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13625
13626 * Makefile.in (all-lib): Remove.
13627 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13628
13629 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13630
13631 Fix Python stack corruption.
13632 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13633 gdb_py_longest.
13634
13635 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13636
13637 * Makefile.in (all-lib): Remove.
13638 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13639
13640 2014-02-07 Doug Evans <dje@google.com>
13641
13642 * extension-priv.h (extension_language_script_ops): Add comment.
13643 (extension_language_ops): Add comment.
13644 (active_ext_lang_state): Fix typo in comment.
13645
13646 2014-02-07 Pedro Alves <palves@redhat.com>
13647
13648 PR breakpoints/16292
13649 * infrun.c (handle_signal_stop) <signal arrives while stepping
13650 over a breakpoint>: Switch back to the stepping thread.
13651
13652 2014-02-07 Yao Qi <yao@codesourcery.com>
13653
13654 * target.c (target_xfer_partial): Return zero if LEN is zero.
13655
13656 2014-02-07 Yao Qi <yao@codesourcery.com>
13657
13658 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13659 (ld_so_xfer_auxv): Likewise.
13660 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13661 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13662 * corelow.c (core_xfer_partial): Likewise.
13663 * ctf.c (ctf_xfer_partial): Likewise.
13664 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13665 (darwin_xfer_partial): Likewise.
13666 * exec.c (exec_xfer_partial): Likewise.
13667 * gnu-nat.c (gnu_xfer_partial): Likewise.
13668 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13669 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13670 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13671 * linux-nat.c (linux_xfer_siginfo): Likewise.
13672 (linux_proc_xfer_spu): Likewise.
13673 * procfs.c (procfs_xfer_partial): Likewise.
13674 * record-full.c (record_full_xfer_partial): Likewise.
13675 (record_full_core_xfer_partial): Likewise.
13676 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13677 * remote.c (remote_write_qxfer): Likewise.
13678 (remote_write_qxfer, remote_read_qxfer): Likewise.
13679 (remote_xfer_partial): Likewise.
13680 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13681 (rs6000_xfer_shared_libraries): Likewise.
13682 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13683 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13684 (spu_xfer_partial): Likewise.
13685 * target.c (memory_xfer_partial_1): Likewise.
13686 * tracepoint.c (tfile_xfer_partial): Likewise.
13687 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13688 (windows_xfer_partial): Likewise.
13689
13690 2014-02-07 Yao Qi <yao@codesourcery.com>
13691
13692 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13693 comments.
13694 (core_xfer_shared_libraries_aix): Likewise.
13695 * gdbarch.c, gdbarch.h: Regenerated.
13696 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13697 ULONGEST. Change 'len_avail' type to ULONGEST.
13698 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13699 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13700 declaration.
13701 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13702
13703 2014-02-07 Yao Qi <yao@codesourcery.com>
13704
13705 * corefile.c (memory_error): Get 'exception' from ERR and pass
13706 'exception' to throw_error.
13707
13708 2014-02-06 Doug Evans <xdje42@gmail.com>
13709
13710 * configure.ac (libpython checking): Remove all but python.o from
13711 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13712 * configure: Regenerate.
13713
13714 * Makefile.in (SFILES): Add extension.c.
13715 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13716 (COMMON_OBS): Add extension.o.
13717 * extension.h: New file.
13718 * extension-priv.h: New file.
13719 * extension.c: New file.
13720
13721 * python/python-internal.h: #include "extension.h".
13722 (gdbpy_auto_load_enabled): Declare.
13723 (gdbpy_apply_val_pretty_printer): Declare.
13724 (gdbpy_apply_frame_filter): Declare.
13725 (gdbpy_preserve_values): Declare.
13726 (gdbpy_breakpoint_cond_says_stop): Declare.
13727 (gdbpy_breakpoint_has_cond): Declare.
13728 (void source_python_script_for_objfile): Delete.
13729 * python/python.c: #include "extension-priv.h".
13730 Delete inclusion of "observer.h".
13731 (extension_language_python): Moved here and renamed from
13732 script_language_python in py-auto-load.c.
13733 Redefined to be of type extension_language_defn.
13734 (python_extension_script_ops): New global.
13735 (python_extension_ops): New global.
13736 (struct python_env): New member previous_active.
13737 (restore_python_env): Call restore_active_ext_lang.
13738 (ensure_python_env): Call set_active_ext_lang.
13739 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13740 New arg extlang.
13741 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13742 New arg extlang.
13743 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13744 New arg extlang.
13745 (gdbpy_eval_from_control_command): Renamed from
13746 eval_python_from_control_command, made static. New arg extlang.
13747 (gdbpy_source_script) Renamed from source_python_script, made static.
13748 New arg extlang.
13749 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13750 result to int. New arg extlang.
13751 (gdbpy_source_objfile_script): Renamed from
13752 source_python_script_for_objfile, made static. New arg extlang.
13753 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13754 static. New args extlang, extlang_printers. Change result type to
13755 "void".
13756 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13757 static. New arg extlang. Rename arg printers to extlang_printers
13758 and change type to ext_lang_type_printers *.
13759 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13760 static. Replace argument arg with extlang, extlang_printers.
13761 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13762 (!HAVE_PYTHON, source_python_script): Delete.
13763 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13764 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13765 (!HAVE_PYTHON, start_type_printers): Delete.
13766 (!HAVE_PYTHON, apply_type_printers): Delete.
13767 (!HAVE_PYTHON, free_type_printers): Delete.
13768 (_initialize_python): Delete call to observer_attach_before_prompt.
13769 (finalize_python): Set/restore active extension language.
13770 (gdbpy_finish_initialization) Renamed from
13771 finish_python_initialization, made static. New arg extlang.
13772 (gdbpy_initialized): New function.
13773 * python/python.h: #include "extension.h". Delete #include
13774 "value.h", "mi/mi-cmds.h".
13775 (extension_language_python): Declare.
13776 (GDBPY_AUTO_FILE_NAME): Delete.
13777 (enum py_bt_status): Moved to extension.h and renamed to
13778 ext_lang_bt_status.
13779 (enum frame_filter_flags): Moved to extension.h.
13780 (enum py_frame_args): Moved to extension.h and renamed to
13781 ext_lang_frame_args.
13782 (finish_python_initialization): Delete.
13783 (eval_python_from_control_command): Delete.
13784 (source_python_script): Delete.
13785 (apply_val_pretty_printer): Delete.
13786 (apply_frame_filter): Delete.
13787 (preserve_python_values): Delete.
13788 (gdbpy_script_language_defn): Delete.
13789 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13790 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13791
13792 * auto-load.c: #include "extension.h".
13793 (GDB_AUTO_FILE_NAME): Delete.
13794 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13795 (script_language_gdb): Delete, moved to extension.c and renamed to
13796 extension_language_gdb.
13797 (source_gdb_script_for_objfile): Delete.
13798 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13799 (loaded_script): Change type of language member to
13800 struct extension_language_defn *.
13801 (init_loaded_scripts_info): Initialize
13802 unsupported_script_warning_printed.
13803 (maybe_add_script): Make static. Change type of language arg to
13804 struct extension_language_defn *.
13805 (clear_section_scripts): Reset unsupported_script_warning_printed.
13806 (auto_load_objfile_script_1): Rewrite to use extension language API.
13807 (auto_load_objfile_script): Make public. Remove support-compiled-in
13808 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13809 (source_section_scripts): Rewrite to use extension language API.
13810 (load_auto_scripts_for_objfile): Rewrite to use
13811 auto_load_scripts_for_objfile.
13812 (collect_matching_scripts_data): Change type of language member to
13813 struct extension_language_defn *.
13814 (auto_load_info_scripts): Change type of language arg to
13815 struct extension_language_defn *.
13816 (unsupported_script_warning_print): New function.
13817 (script_not_found_warning_print): Make static.
13818 (_initialize_auto_load): Rewrite construction of scripts-directory
13819 help.
13820 * auto-load.h (struct objfile): Add forward decl.
13821 (struct script_language): Delete.
13822 (struct auto_load_pspace_info): Add forward decl.
13823 (struct extension_language_defn): Add forward decl.
13824 (maybe_add_script): Delete.
13825 (auto_load_objfile_script): Declare.
13826 (script_not_found_warning_print): Delete.
13827 (auto_load_info_scripts): Update prototype.
13828 (auto_load_gdb_scripts_enabled): Declare.
13829 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13830 auto_load_python_scripts_enabled and made public.
13831 (script_language_python): Delete, moved to python.c.
13832 (gdbpy_script_language_defn): Delete.
13833 (info_auto_load_python_scripts): Update to use
13834 extension_language_python.
13835
13836 * breakpoint.c (condition_command): Replace call to
13837 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13838 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13839 with call to breakpoint_ext_lang_cond_says_stop.
13840 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13841 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13842 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13843 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13844 New arg slang.
13845 (local_setattro): Print name of extension language with existing
13846 stop condition.
13847
13848 * valprint.c (val_print, value_print): Update to call
13849 apply_ext_lang_val_pretty_printer.
13850 * cp-valprint.c (cp_print_value): Update call to
13851 apply_ext_lang_val_pretty_printer.
13852 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13853 (gdbpy_apply_val_pretty_printer): Renamed from
13854 apply_val_pretty_printer. New arg extlang.
13855 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13856
13857 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13858 extension language API.
13859 * cli/cli-script.c (execute_control_command): Update to call
13860 eval_ext_lang_from_control_command.
13861
13862 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13863 enum ext_lang_bt_status values. Update call to
13864 apply_ext_lang_frame_filter.
13865 (mi_cmd_stack_list_locals): Ditto.
13866 (mi_cmd_stack_list_args): Ditto.
13867 (mi_cmd_stack_list_variables): Ditto.
13868 * mi/mi-main.c: Delete #include "python/python-internal.h".
13869 Add #include "extension.h".
13870 (mi_cmd_list_features): Replace reference to python internal variable
13871 gdb_python_initialized with call to ext_lang_initialized_p.
13872
13873 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13874 Update to use enum ext_lang_frame_args. Update to call
13875 apply_ext_lang_frame_filter.
13876 * python/py-framefilter.c (extract_sym): Update to use enum
13877 ext_lang_bt_status.
13878 (extract_value, py_print_type, py_print_value): Ditto.
13879 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13880 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13881 (py_print_frame): Ditto.
13882 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13883 New arg extlang. Update to use enum ext_lang_bt_status.
13884
13885 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13886 finish_python_initialization. Replace with call to
13887 finish_ext_lang_initialization.
13888
13889 * typeprint.c (do_free_global_table): Update to call
13890 free_ext_lang_type_printers.
13891 (create_global_typedef_table): Update to call
13892 start_ext_lang_type_printers.
13893 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13894 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13895 (type_print_options): Change type of global_printers from "void *"
13896 to "struct ext_lang_type_printers *".
13897
13898 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13899 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13900 (gdbpy_preserve_values): Renamed from preserve_python_values.
13901 New arg extlang.
13902 (!HAVE_PYTHON, preserve_python_values): Delete.
13903
13904 * utils.c (quit_flag): Delete, moved to extension.c.
13905 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13906 extension.c.
13907
13908 * eval.c: Delete #include "python/python.h".
13909 * main.c: Delete #include "python/python.h".
13910
13911 * defs.h: Update comment.
13912
13913 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13914
13915 GDB 7.7 released.
13916
13917 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13918
13919 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13920 defined.
13921
13922 2014-02-05 Yao Qi <yao@codesourcery.com>
13923
13924 * remote.c (remote_pass_signals): Remove local 'buf' and use
13925 rs->buf.
13926 (remote_program_signals): Likewise.
13927
13928 2014-02-05 Yao Qi <yao@codesourcery.com>
13929
13930 * ctf.c: Include "inferior.h" and "gdbthread.h".
13931 (CTF_PID): A new macro.
13932 (ctf_open): Call inferior_appeared and add_thread_silent.
13933 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13934 (ctf_thread_alive): New function.
13935 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13936
13937 2014-02-05 Yao Qi <yao@codesourcery.com>
13938
13939 Revert this patch:
13940
13941 2013-05-24 Yao Qi <yao@codesourcery.com>
13942
13943 * tracepoint.c (TFILE_PID): Remove.
13944 (tfile_open): Don't add thread and inferior.
13945 (tfile_close): Don't set 'inferior_ptid'. Don't call
13946 exit_inferior_silent.
13947 (tfile_thread_alive): Remove.
13948 (init_tfile_ops): Don't set field 'to_thread_alive' of
13949 tfile_ops.
13950
13951 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13952
13953 * remote.c (remote_start_remote): Call remote_check_symbols even
13954 if only symbol-file (not file) has been given.
13955
13956 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13957
13958 * gdbarch.sh (skip_entrypoint): New callback.
13959 * gdbarch.c, gdbarch.h: Regenerate.
13960 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13961 * infrun.c (fill_in_stop_func): Likewise.
13962 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13963 (ppc_elfv2_elf_make_msymbol_special): New function.
13964 (ppc_elfv2_skip_entrypoint): Likewise.
13965 (ppc_linux_init_abi): Install them for ELFv2.
13966
13967 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13968
13969 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13970 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13971 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13972 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13973 structures returned in GPRs.
13974
13975 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13976
13977 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13978 offset to the stack parameter list for the ELFv2 ABI.
13979
13980 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13981
13982 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13983 set_gdbarch_convert_from_func_ptr_addr and
13984 set_gdbarch_elf_make_msymbol_special for ELFv1.
13985 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13986 function descriptors on ELFv1.
13987 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13988 set up r12 at function entry.
13989
13990 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13991
13992 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13993 (struct gdbarch_tdep): New member elf_abi.
13994
13995 * rs6000-tdep.c: Include "elf/ppc64.h".
13996 (rs6000_gdbarch_init): Detect ELF ABI version.
13997
13998 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13999
14000 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14001 within a register pair holding a DFP 128-bit value on little-endian.
14002 (ppc64_sysv_abi_return_value_base): Likewise.
14003 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14004 (dfp_pseudo_register_write): Likewise.
14005
14006 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14007
14008 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14009 offset on little-endian when passing _Decimal32.
14010 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14011
14012 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14013
14014 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14015 of the overlapped FP register within the VSX register on little-
14016 endian platforms.
14017 (efpr_pseudo_register_write): Likewise.
14018
14019 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14020
14021 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14022 offset on little-endian when passing small structures.
14023
14024 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14025
14026 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14027 (struct ppc64_sysv_argpos): New data structure.
14028 (ppc64_sysv_abi_push_float): Remove.
14029 (ppc64_sysv_abi_push_val): New function.
14030 (ppc64_sysv_abi_push_integer): Likewise.
14031 (ppc64_sysv_abi_push_freg): Likewise.
14032 (ppc64_sysv_abi_push_vreg): Likewise.
14033 (ppc64_sysv_abi_push_param): Likewise.
14034 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14035 (ppc64_sysv_abi_return_value_base): New function.
14036 (ppc64_sysv_abi_return_value): Refactor to use it.
14037
14038 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14039
14040 * NEWS: Document new target powerpc64le-*-linux*.
14041
14042 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14043
14044 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14045 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14046 core dumps.
14047 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14048 register set used in ELF core dumps. Add floating-point register set.
14049
14050 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14051
14052 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14053 dwarf2_to_gdb[] table using symbolic constants. Adjust
14054 penultimate entry from number representing the PC register
14055 to symbolic constant representing the MDR register. Add
14056 constant for the PC register to the end of the table.
14057
14058 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14059
14060 * bsd-kvm.c: Include <sys/param.h>
14061
14062 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14063
14064 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14065
14066 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14067
14068 * ada-lang.h (clear_ada_sym_cache): Delete.
14069
14070 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14071
14072 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14073
14074 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14075
14076 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14077 the sigreturn register save area only if the syscall is
14078 sigreturn.
14079
14080 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14081
14082 * valops.c (value_slice): Minor reformatting.
14083
14084 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14085
14086 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14087
14088 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14089
14090 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14091 New static globals.
14092 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14093 (ada_ignore_descriptive_types_p): New static global.
14094 (find_parallel_type_by_descriptive_type): Return immediately
14095 if ada_ignore_descriptive_types_p is set.
14096 (_initialize_ada_language): Register new commands "maintenance
14097 set ada", "maintenance show ada", "maintenance set ada
14098 ignore-descriptive-types" and "maintenance show ada
14099 ignore-descriptive-types".
14100 * NEWS: Add entry for new "maint ada set/show
14101 ignore-descriptive-types" commands.
14102
14103 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14104
14105 * record-btrace.c (record_btrace_close): Call btrace_teardown
14106 for all threads.
14107
14108 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14109
14110 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14111 "ui-out.h".
14112
14113 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14114
14115 * ada-typeprint (type_is_full_subrange_of_target_type):
14116 New function.
14117 (print_range): Add parameter bounds_prefered_p. If not set,
14118 try printing range types using the name of their base type.
14119 (print_range_type): Add parameter bounds_prefered_p.
14120 Use it in call to print_range.
14121 (print_array_type, ada_print_type): Update calls to print_range
14122 and print_range_type.
14123
14124 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14125
14126 * ada-typeprint.c (print_array_type, print_choices, print_range)
14127 (print_range_bound, print_dynamic_range_bound, print_range_type):
14128 Remove declaration.
14129
14130 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14131
14132 * ada-typeprint.c (print_range): Add missing empty line
14133 after local declaration.
14134
14135 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14136
14137 * ada-valprint.c (print_optional_low_bound): Get index_type's
14138 target type for as long as it is a TYPE_CODE_RANGE.
14139
14140 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14141
14142 * procfs.c (procfs_make_note_section): Remove assertion and
14143 associated comment.
14144
14145 2014-01-24 Yao Qi <yao@codesourcery.com>
14146
14147 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14148 * corelow.c (get_core_siginfo): Likewise.
14149
14150 2014-01-24 Yao Qi <yao@codesourcery.com>
14151
14152 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14153 ULONGEST. Don't check 'len' is negative.
14154 (remote_write_bytes): Change type of 'len' to ULONGEST.
14155
14156 2014-01-23 Tom Tromey <tromey@redhat.com>
14157
14158 PR python/16485:
14159 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14160 Handle exception from frame.block.
14161 (FrameVars.fetch_frame_locals): Likewise.
14162
14163 2014-01-23 Tom Tromey <tromey@redhat.com>
14164
14165 PR python/16487:
14166 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14167 on a NULL pointer. Move "goto error" to correct place.
14168
14169 2014-01-23 Tom Tromey <tromey@redhat.com>
14170
14171 PR python/16491:
14172 * python/py-framefilter.c (apply_frame_filter): Call
14173 ensure_python_env after computing gdbarch.
14174
14175 2014-01-23 Yao Qi <yao@codesourcery.com>
14176
14177 * target.c (raw_memory_xfer_partial): Change argument type
14178 from void * to gdb_byte *.
14179 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14180
14181 2014-01-22 Doug Evans <dje@google.com>
14182
14183 New gdbserver option --debug-format=timestamp.
14184 * NEWS: Mention it.
14185
14186 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14187
14188 * syscalls/s390x-linux.xml: New file.
14189 * syscalls/s390-linux.xml: New file.
14190 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14191 (XML_SYSCALL_FILENAME_S390X): Likewise.
14192 (op_svc): New enum value for SVC opcode.
14193 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14194 (s390_linux_get_syscall_number): New function.
14195 (s390_gdbarch_init): Register '*get_syscall_number' and the
14196 syscall xml file name.
14197 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14198 "s390-linux.xml" and "s390x-linux.xml".
14199 * NEWS: Announce new feature.
14200
14201 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14202
14203 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14204
14205 2014-01-22 Pedro Alves <palves@redhat.com>
14206
14207 * xtensa-config.c: Include defs.h.
14208
14209 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14210
14211 * common/common-utils.h: Add "ARI:" comment beside __func__
14212 reference.
14213
14214 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14215
14216 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14217 documentation a bit.
14218
14219 2014-01-21 Roland McGrath <mcgrathr@google.com>
14220
14221 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14222 * configure: Regenerate.
14223 * aclocal.m4: Regenerate.
14224 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14225 New substituted variables.
14226 (install-strip): New target.
14227 (INSTALL_SCRIPT): New substituted variable.
14228 (FLAGS_TO_PASS): Add it.
14229 (install-only): Use $(INSTALL_SCRIPT) rather than
14230 $(INSTALL_PROGRAM) for gcore.
14231
14232 2014-01-20 Tom Tromey <tromey@redhat.com>
14233
14234 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14235 together.
14236
14237 2014-01-20 Tom Tromey <tromey@redhat.com>
14238
14239 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14240 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14241 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14242 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14243 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14244 (struct cmd_list_element) <flags>: Remove.
14245 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14246 doc_allocated>: New fields.
14247 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14248 bitfields.
14249 * maint.c (maintenance_do_deprecate): Update.
14250 * top.c (execute_command): Update.
14251
14252 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14253
14254 * xtensa-linux-nat.c: Include asm/ptrace.h.
14255
14256 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14257
14258 * Makefile.in (SFILES): Add d-support.c.
14259 (COMMON_OBS): Add d-support.o.
14260 * d-lang.h (d_parse_symbol): Add comment, now defined in
14261 d-support.c.
14262 * d-lang.c (parse_call_convention)
14263 (parse_attributes, parse_function_types)
14264 (parse_function_args, parse_type, parse_identifier)
14265 (call_convention_p, d_parse_symbol): Move functions to ...
14266 * d-support.c: ... New file.
14267
14268 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14269
14270 * d-lang.h (d_parse_symbol): Add declaration.
14271 * d-lang.c (extract_identifiers)
14272 (extract_type_info): Remove functions.
14273 (parse_call_convention, parse_attributes)
14274 (parse_function_types, parse_function_args)
14275 (parse_type, parse_identifier, call_convention_p)
14276 (d_parse_symbol): New functions.
14277 (d_demangle): Use d_parse_symbol to demangle D symbols.
14278
14279 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14280
14281 * d-lang.h (struct builtin_d_type): New data type.
14282 (builtin_d_type): Add declaration.
14283 * d-lang.c (d_language_arch_info, build_d_types)
14284 (builtin_d_type): New functions.
14285 (enum d_primitive_types): New data type.
14286 (d_language_defn): Change c_language_arch_info to
14287 d_language_arch_info.
14288 (d_type_data): New static variable.
14289 (_initialize_d_language): Initialize d_type_data.
14290
14291 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14292
14293 * d-lang.h (d_main_name): Add declaration.
14294 * d-lang.c (d_main_name): New function.
14295 * symtab.c (find_main_name): Add call to d_main_name.
14296
14297 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14298
14299 * d-lang.c (d_language_defn): Change macro_expansion_c to
14300 macro_expansion_no.
14301
14302 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14303
14304 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14305
14306 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14307
14308 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14309 gdb_exception" declaration.
14310 * remote.c (getpkt_or_notif_sane): Likewise.
14311
14312 2014-01-17 Doug Evans <dje@google.com>
14313
14314 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14315 function, contents of dirnames_to_char_ptr_vec_append moved here.
14316 (delim_string_to_char_ptr_vec): New function.
14317 (dirnames_to_char_ptr_vec_append): Rewrite.
14318 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14319
14320 2014-01-17 Doug Evans <dje@google.com>
14321
14322 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14323 and moved here ...
14324 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14325 #include "common-utils.h".
14326 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14327 * common/vec.h (VEC_ASSERT_PASS): Update.
14328 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14329 (MACH_CHECK_ERROR): Update.
14330
14331 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14332
14333 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14334 comments.
14335 * gdbarch.h: Regenerate.
14336
14337 2014-01-16 Tom Tromey <tromey@redhat.com>
14338
14339 * value.c (struct value) <regnum>: Move earlier.
14340
14341 2014-01-16 Tom Tromey <tromey@redhat.com>
14342
14343 * remote.c (extended_remote_create_inferior): Rename from
14344 extended_remote_create_inferior_1. Add "ops" argument. Remove
14345 old implementation.
14346
14347 2014-01-16 Pedro Alves <palves@redhat.com>
14348
14349 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14350 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14351 the backchain.
14352
14353 2014-01-16 Doug Evans <dje@google.com>
14354
14355 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14356
14357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14358
14359 * btrace.h (btrace_thread_flag): New.
14360 (struct btrace_thread_info) <flags>: New.
14361 * record-btrace.c (record_btrace_resume_thread)
14362 (record_btrace_find_thread_to_move, btrace_step_no_history)
14363 (btrace_step_stopped, record_btrace_start_replaying)
14364 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14365 (record_btrace_find_resume_thread): New.
14366 (record_btrace_resume, record_btrace_wait): Extend.
14367 (record_btrace_can_execute_reverse): New.
14368 (record_btrace_open): Fail in non-stop mode.
14369 (record_btrace_set_replay): Split into this, ...
14370 (record_btrace_stop_replaying): ... this, ...
14371 (record_btrace_clear_histories): ... and this.
14372 (init_record_btrace_ops): Init to_can_execute_reverse.
14373 * NEWS: Announce it.
14374
14375 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14376
14377 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14378 (forward_target_decr_pc_after_break)
14379 (target_decr_pc_after_break): New.
14380 * target.c (forward_target_decr_pc_after_break)
14381 (target_decr_pc_after_break): New.
14382 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14383 instead of gdbarch_decr_pc_after_break.
14384 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14385 instead of gdbarch_decr_pc_after_break.
14386 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14387 instead of gdbarch_decr_pc_after_break.
14388 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14389 instead of gdbarch_decr_pc_after_break.
14390 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14391 instead of gdbarch_decr_pc_after_break.
14392 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14393 instead of gdbarch_decr_pc_after_break.
14394
14395 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14396
14397 * btrace.c: Include regcache.h.
14398 (btrace_add_pc): New.
14399 (btrace_enable): Call btrace_add_pc.
14400 (btrace_is_empty): New.
14401 * btrace.h (btrace_is_empty): New.
14402 * record-btrace.c (require_btrace, record_btrace_info): Call
14403 btrace_is_empty.
14404
14405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14406
14407 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14408 Support delta reads.
14409 (linux_disable_btrace): Change return type.
14410 * common/linux-btrace.h (linux_read_btrace): Change parameters
14411 and return type to allow error reporting. Update users.
14412 (linux_disable_btrace): Change return type. Update users.
14413 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14414 New.
14415 (btrace_error): New.
14416 (btrace_block) <begin>: Comment on BEGIN == 0.
14417 * btrace.c (btrace_compute_ftrace): Start from the end of
14418 the current trace.
14419 (btrace_stitch_trace, btrace_clear_history): New.
14420 (btrace_fetch): Read delta trace, return if replaying.
14421 (btrace_clear): Move clear history code to btrace_clear_history.
14422 (parse_xml_btrace): Throw an error if parsing failed.
14423 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14424 and return type to allow error reporting.
14425 (target_read_btrace): Change parameters and return type to allow
14426 error reporting.
14427 * target.c (target_read_btrace): Update.
14428 * remote.c (remote_read_btrace): Support delta reads. Pass
14429 errors on.
14430 * NEWS: Announce it.
14431
14432 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14433
14434 * record.h (record_btrace_frame_unwind)
14435 (record_btrace_tailcall_frame_unwind): New declarations.
14436 * dwarf2-frame: Include record.h
14437 (dwarf2_frame_cfa): Throw an error for btrace frames.
14438 * record-btrace.c: Include hashtab.h.
14439 (btrace_get_bfun_name): New.
14440 (btrace_call_history): Call btrace_get_bfun_name.
14441 (struct btrace_frame_cache): New.
14442 (bfcache): New.
14443 (bfcache_hash, bfcache_eq, bfcache_new): New.
14444 (btrace_get_frame_function): New.
14445 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14446 (record_btrace_frame_this_id): Compute own id.
14447 (record_btrace_frame_prev_register): Provide PC, throw_error
14448 for all other registers.
14449 (record_btrace_frame_sniffer): Detect btrace frames.
14450 (record_btrace_tailcall_frame_sniffer): New.
14451 (record_btrace_frame_dealloc_cache): New.
14452 (record_btrace_frame_unwind): Add new functions.
14453 (record_btrace_tailcall_frame_unwind): New.
14454 (_initialize_record_btrace): Allocate cache.
14455 * btrace.c (btrace_clear): Call reinit_frame_cache.
14456 * NEWS: Announce it.
14457
14458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14459
14460 * record-btrace.c (record_btrace_set_replay)
14461 (record_btrace_goto_begin, record_btrace_goto_end)
14462 (record_btrace_goto): New.
14463 (init_record_btrace_ops): Initialize them.
14464 * NEWS: Announce it.
14465
14466 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14467
14468 * record-btrace.c (record_btrace_find_new_threads)
14469 (record_btrace_thread_alive): New.
14470 (init_record_btrace_ops): Initialize to_find_new_threads and
14471 to_thread_alive.
14472
14473 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14474
14475 * record-btrace.c (record_btrace_resume): New.
14476 (record_btrace_wait): New.
14477 (init_record_btrace_ops): Initialize to_wait and to_resume.
14478
14479 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14480
14481 * record-btrace.c (record_btrace_xfer_partial)
14482 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14483 (record_btrace_allow_memory_access): New.
14484 (init_record_btrace_ops): Initialize new methods.
14485 * target.c (raw_memory_xfer_partial): Bail out if target reports
14486 that this memory is not available.
14487
14488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14489
14490 * target.h (target_ops) <to_insert_breakpoint>
14491 <to_remove_breakpoint>: Add target_ops parameter.
14492 (forward_target_insert_breakpoint): New.
14493 (forward_target_remove_breakpoint): New.
14494 (memory_remove_breakpoint, memory_insert_breakpoint):
14495 Add target_ops parameter.
14496 * target.c (target_insert_breakpoint): Split into this and ...
14497 (forward_target_insert_breakpoint): ... this.
14498 (target_remove_breakpoint): Split into this and ...
14499 (forward_target_remove_breakpoint): ... this.
14500 (debug_to_insert_breakpoint): Add target_ops parameter.
14501 Call forward_target_insert_breakpoint.
14502 (debug_to_remove_breakpoint): Add target_ops parameter.
14503 Call forward_target_remove_breakpoint.
14504 (update_current_target): Do not inherit or default to_insert_breakpoint
14505 and to_remove_breakpoint.
14506 * corelow.c (ignore): Add target_ops parameter.
14507 * exec.c (ignore): Add target_ops parameter.
14508 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14509 Add target_ops parameter.
14510 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14511 Add target_ops parameter.
14512 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14513 Add target_ops parameter.
14514 * record-full.c (record_full_beneath_to_insert_breakpoint)
14515 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14516 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14517 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14518 (record_full_core_remove_breakpoint): Add target_ops parameter.
14519 Update users.
14520 (record_full_beneath_to_insert_breakpoint_ops)
14521 (record_full_beneath_to_remove_breakpoint_ops)
14522 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14523 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14524 tmp_to_remove_breakpoint_ops,
14525 record_full_beneath_to_insert_breakpoint_ops, and
14526 record_full_beneath_to_remove_breakpoint_ops.
14527 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14528 (m32r_remove_breakpoint): Add target_ops parameter.
14529 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14530 Add target_ops parameter.
14531 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14532 Add target_ops parameter.
14533
14534 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14535 Markus Metzger <markus.t.metzger@intel.com>
14536
14537 * record-btrace.c: Include frame-unwind.h.
14538 (record_btrace_frame_unwind_stop_reason)
14539 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14540 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14541 New.
14542 (init_record_btrace_ops): Install it.
14543
14544 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14545
14546 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14547 get_prev_frame_1.
14548
14549 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14550
14551 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14552 earlier.
14553
14554 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14555
14556 * frame-unwind.c: Include target.h.
14557 (frame_unwind_try_unwinder): New function with code from ...
14558 (frame_unwind_find_by_frame): ... here. New variable
14559 unwinder_from_target, call also target_get_unwinder)
14560 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14561 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14562 * target.h (struct target_ops): New fields to_get_unwinder and
14563 to_get_tailcall_unwinder.
14564 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14565
14566 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14567
14568 * record-btrace.c (record_btrace_fetch_registers)
14569 (record_btrace_store_registers)
14570 (record_btrace_to_prepare_to_store): New.
14571 (init_record_btrace_ops): Add the above.
14572
14573 2014-01-16 Tom Tromey <tromey@redhat.com>
14574
14575 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14576 * target.h (struct target_ops) <to_prepare_to_store>: Add
14577 argument.
14578 (target_prepare_to_store): Add argument.
14579 * target.c (debug_to_prepare_to_store): Add argument.
14580 (update_current_target): Update.
14581 * remote.c (remote_prepare_to_store): Add 'self' argument.
14582 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14583 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14584 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14585 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14586 argument.
14587 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14588 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14589 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14590 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14591 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14592
14593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14594
14595 * btrace.h (replay) <replay>: New.
14596 (btrace_is_replaying): New.
14597 * btrace.c (btrace_clear): Free replay iterator.
14598 (btrace_is_replaying): New.
14599 * record-btrace.c (record_btrace_is_replaying): New.
14600 (record_btrace_info): Print insn number if replaying.
14601 (record_btrace_insn_history): Start at replay position.
14602 (record_btrace_call_history): Start at replay position.
14603 (init_record_btrace_ops): Init to_record_is_replaying.
14604
14605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14606
14607 * record-btrace.c (record_btrace_insn_history_range): Include
14608 end.
14609 (record_btrace_insn_history_from): Adjust range.
14610 (record_btrace_call_history_range): Include
14611 end.
14612 (record_btrace_call_history_from): Adjust range.
14613 * NEWS: Announce changes.
14614
14615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14616
14617 * record.h (enum record_print_flag)
14618 <record_print_indent_calls>: New.
14619 * record.c (get_call_history_modifiers): Recognize /c modifier.
14620 (_initialize_record): Document /c modifier.
14621 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14622 Reorder fields. Optionally indent the function name. Update
14623 all users.
14624 * NEWS: Announce changes.
14625
14626 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14627
14628 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14629
14630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14631
14632 * btrace.c (ftrace_new_function): Start counting at one.
14633 * record-btrace.c (record_btrace_info): Adjust number of calls
14634 and insns.
14635 * NEWS: Announce it.
14636
14637 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14638
14639 * record-btrace.c (btrace_call_history_insn_range): Print
14640 insn range as [begin, end].
14641
14642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14643
14644 * btrace.h (struct btrace_func_link): New.
14645 (enum btrace_function_flag): New.
14646 (struct btrace_inst): Rename to ...
14647 (struct btrace_insn): ...this. Update all users.
14648 (struct btrace_func) <ibegin, iend>: Remove.
14649 (struct btrace_func_link): New.
14650 (struct btrace_func): Rename to ...
14651 (struct btrace_function): ...this. Update all users.
14652 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14653 (number, level, flags>: New.
14654 (struct btrace_insn_iterator): Rename to ...
14655 (struct btrace_insn_history): ...this.
14656 Update all users.
14657 (struct btrace_insn_iterator, btrace_call_iterator): New.
14658 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14659 (struct btrace_target_info) <begin, end, level>
14660 <insn_history, call_history>: New.
14661 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14662 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14663 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14664 (btrace_call_number, btrace_call_begin, btrace_call_end)
14665 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14666 (btrace_find_function_by_number, btrace_set_insn_history)
14667 (btrace_set_call_history): New.
14668 * btrace.c (btrace_init_insn_iterator)
14669 (btrace_init_func_iterator, compute_itrace): Remove.
14670 (ftrace_print_function_name, ftrace_print_filename)
14671 (ftrace_skip_file): Change
14672 parameter to const.
14673 (ftrace_init_func): Remove.
14674 (ftrace_debug): Use new btrace_function fields.
14675 (ftrace_function_switched): Also consider gaining and
14676 losing symbol information).
14677 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14678 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14679 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14680 New.
14681 (ftrace_new_function): Move. Remove debug print.
14682 (ftrace_update_lines, ftrace_update_insns): New.
14683 (ftrace_update_function): Check for call, ret, and jump.
14684 (compute_ftrace): Renamed to ...
14685 (btrace_compute_ftrace): ...this. Rewritten to compute call
14686 stack.
14687 (btrace_fetch, btrace_clear): Updated.
14688 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14689 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14690 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14691 (btrace_call_number, btrace_call_begin, btrace_call_end)
14692 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14693 (btrace_find_function_by_number, btrace_set_insn_history)
14694 (btrace_set_call_history): New.
14695 * record-btrace.c (require_btrace): Use new btrace thread
14696 info fields.
14697 (record_btrace_info, btrace_insn_history)
14698 (record_btrace_insn_history, record_btrace_insn_history_range):
14699 Use new btrace thread info fields and new iterator.
14700 (btrace_func_history_src_line): Rename to ...
14701 (btrace_call_history_src_line): ...this. Use new btrace
14702 thread info fields.
14703 (btrace_func_history): Rename to ...
14704 (btrace_call_history): ...this. Use new btrace thread info
14705 fields and new iterator.
14706 (record_btrace_call_history, record_btrace_call_history_range):
14707 Use new btrace thread info fields and new iterator.
14708
14709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14710
14711 * frame.h (frame_id_build_unavailable_stack_special): New.
14712 * frame.c (frame_id_build_unavailable_stack_special): New.
14713
14714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14715
14716 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14717 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14718 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14719 to gdbarch.
14720 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14721 (i386_insn_is_jump, i386_jmp_p): New.
14722 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14723 insn_is_jump to gdbarch.
14724 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14725 * gdbarch.h: Regenerated.
14726 * gdbarch.c: Regenerated.
14727 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14728 (default_insn_is_jump): New.
14729 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14730 (default_insn_is_jump): New.
14731
14732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14733
14734 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14735 Change to ...
14736 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14737 (btrace_read_type) <btrace_read_new>: Change to ...
14738 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14739
14740 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14741
14742 * common/linux-btrace.c (linux_read_btrace): Free trace from
14743 previous iteration.
14744
14745 2014-01-15 Doug Evans <dje@google.com>
14746
14747 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14748 uint32_t.
14749
14750 2014-01-15 Tom Tromey <tromey@redhat.com>
14751
14752 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14753 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14754 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14755 (set_objfile_main_name): New function.
14756 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14757 language_of_main>: New fields.
14758 (set_objfile_main_name): Declare.
14759 * symtab.c (find_main_name): Loop over objfiles to find the main
14760 name and language.
14761 (set_main_name): Now static.
14762 (get_main_info): Add comment.
14763 * symtab.h (set_main_name): Don't declare.
14764
14765 2014-01-15 Tom Tromey <tromey@redhat.com>
14766
14767 * symtab.c (main_progspace_key): New global.
14768 (struct main_info): New.
14769 (name_of_main, language_of_main): Remove.
14770 (get_main_info, main_info_cleanup): New function.
14771 (set_main_name, main_name, main_language): Use get_main_info.
14772 (_initialize_symtab): Initialize main_progspace_key.
14773
14774 2014-01-15 Tom Tromey <tromey@redhat.com>
14775
14776 * dbxread.c (process_one_symbol): Update.
14777 * dwarf2read.c (read_partial_die): Update.
14778 * symfile.c (set_initial_language): Call main_language.
14779 * symtab.c (language_of_main): Now static.
14780 (set_main_name): Add 'lang' parameter.
14781 (find_main_name): Update.
14782 (main_language): New function.
14783 (symtab_observer_executable_changed): Update.
14784 * symtab.h (set_main_name): Update.
14785 (language_of_main): Remove.
14786 (main_language): Declare.
14787
14788 2014-01-15 Tom Tromey <tromey@redhat.com>
14789
14790 * symfile.c (init_entry_point_info): Use new "initialized" field.
14791 Update.
14792 * objfiles.h (struct entry_point) <initialized>: New field.
14793 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14794 (struct objfile) <ei>: ...here. Remove.
14795 * objfiles.c (entry_point_address_query): Update.
14796
14797 2014-01-15 Tom Tromey <tromey@redhat.com>
14798
14799 * objfiles.c (entry_point_address_query): Relocate entry point
14800 address.
14801 (objfile_relocate1): Do not relocate entry point address.
14802 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14803 <the_bfd_section_index>: New field.
14804 * symfile.c (init_entry_point_info): Find the entry point's
14805 section.
14806
14807 2014-01-15 Tom Tromey <tromey@redhat.com>
14808
14809 * solib-frv.c (enable_break): Use entry_point_address_query.
14810
14811 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14812
14813 * NEWS: Add note on improved process record-replay on
14814 arm*-linux* targets.
14815
14816 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14817
14818 * arm-tdep.c (enum arm_record_result): New enum.
14819 (arm_record_unsupported_insn): New function.
14820 (arm_record_coproc_data_proc): Removed.
14821 (thumb2_record_ld_st_multiple): New function.
14822 (thumb2_record_ld_st_dual_ex_tbb): New function.
14823 (thumb2_record_data_proc_sreg_mimm): New function.
14824 (thumb2_record_ps_dest_generic): New function.
14825 (thumb2_record_branch_misc_cntrl): New function.
14826 (thumb2_record_str_single_data): New function.
14827 (thumb2_record_ld_mem_hints): New function.
14828 (thumb2_record_ld_word): New function.
14829 (thumb2_record_lmul_lmla_div): New function.
14830 (thumb2_record_decode_insn_handler): New function.
14831 (decode_insn): Add thumb32 instruction handlers.
14832
14833 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14834
14835 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14836 (struct arm_linux_record_tdep): Declare.
14837 (arm_canonicalize_syscall): New function.
14838 (arm_all_but_pc_registers_record): New function.
14839 (arm_linux_syscall_record): New function.
14840 (arm_linux_init_abi): Add syscall recording constructs.
14841 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14842 decoding. (arm_record_coproc_data_proc): Update arm syscall
14843 decoding.
14844 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14845 <arm_syscall_record>: New field.
14846 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14847 gdb_target_obs.
14848
14849 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14850
14851 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14852 register for push instruction recording.
14853
14854 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14855
14856 * arm-tdep.c (thumb_record_misc): Update to correct logical
14857 error while recording ldm, ldmia and pop instructions.
14858
14859 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14860
14861 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14862
14863 2014-01-15 Pedro Alves <palves@redhat.com>
14864
14865 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14866 (go32_resume, go32_fetch_registers, store_register)
14867 (go32_store_registers, go32_prepare_to_store)
14868 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14869 (go32_create_inferior, go32_can_run, go32_terminal_init)
14870 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14871 declarations.
14872
14873 2014-01-15 Tom Tromey <tromey@redhat.com>
14874
14875 * target.h (async_callback_ftype): New typedef.
14876 (struct target_ops) <to_async>: Use it.
14877
14878 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14879
14880 * python/py-value.c (get_field_type): Remove unnecessary curly
14881 braces for single-statement if block.
14882
14883 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14884
14885 * python/py-type.c (convert_field): Add missing empty line
14886 after declarations.
14887
14888 2014-01-14 Doug Evans <dje@google.com>
14889
14890 * symfile.h (expand_symtabs_matching): Renamed from
14891 expand_partial_symbol_names. Update prototype.
14892 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14893 * symfile.c (expand_symtabs_matching): Renamed from
14894 expand_partial_symbol_names. New args file_matcher, kind.
14895 Rename arg fun to symbol_matcher.
14896 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14897 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14898 ada_expand_partial_symbol_name.
14899 (ada_make_symbol_completion_list): Update to call
14900 expand_symtabs_matching.
14901 (ada_add_global_exceptions): Call expand_symtabs_matching.
14902 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14903 call map_symbol_filenames.
14904 * symtab.c (sources_info): Update to call map_symbol_filenames.
14905 (search_symbols): Call expand_symtabs_matching.
14906 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14907 (default_make_symbol_completion_list_break_on): Update to call
14908 expand_symtabs_matching.
14909 (make_source_files_completion_list): Update to call
14910 map_symbol_filenames.
14911
14912 2014-01-14 Doug Evans <dje@google.com>
14913
14914 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14915 (expand_symtabs_symbol_matcher_ftype): New typedef.
14916 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14917 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14918 * symfile.c (expand_partial_symbol_names): Update to use
14919 expand_symtabs_symbol_matcher_ftype.
14920 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14921 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14922 Arg name_matcher renamed to symbol_matcher.
14923 * psymtab.c (recursively_search_psymtabs): Update to use
14924 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14925 sym_matcher.
14926 (expand_symtabs_matching_via_partial): Update to use
14927 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14928 Arg name_matcher renamed to symbol_matcher.
14929
14930 2014-01-14 Doug Evans <dje@google.com>
14931
14932 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14933 (map_partial_symbol_filenames): Ditto.
14934 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14935 (map_partial_symbol_filenames): Ditto.
14936 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14937 (map_partial_symbol_filenames): Ditto.
14938 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14939 (map_partial_symbol_filenames): Ditto.
14940 * symtab.c: Delete #include "psymtab.h".
14941
14942 2014-01-14 Pedro Alves <palves@redhat.com>
14943 Tom Tromey <tromey@redhat.com>
14944
14945 * infrun.c (use_displaced_stepping): Use find_record_target
14946 instead of RECORD_IS_USED.
14947 (adjust_pc_after_break): Use record_full_is_used instead of
14948 RECORD_IS_USED.
14949 * record-btrace.c (record_btrace_open): Call record_preopen
14950 instead of checking RECORD_IS_USED.
14951 * record-full.c (record_full_shortname)
14952 (record_full_core_shortname): New globals.
14953 (record_full_is_used): New function.
14954 (find_full_open): Call record_preopen instead of checking
14955 RECORD_IS_USED.
14956 (init_record_full_ops): Set the target's shortname to
14957 record_full_shortname.
14958 (init_record_full_core_ops): Set the target's shortname to
14959 record_full_core_shortname.
14960 * record-full.h (record_full_is_used): Declare.
14961 * record.c (find_record_target): Make extern.
14962 (record_preopen): New function.
14963 * record.h (RECORD_IS_USED): Delete macro.
14964 (find_record_target, record_preopen): Declare functions.
14965
14966 2014-01-14 Yao Qi <yao@codesourcery.com>
14967
14968 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14969 'len''s type to ULONGEST.
14970 (core_xfer_shared_libraries_aix): Likewise.
14971 * gdbarch.c, gdbarch.h: Regenerated.
14972 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14973 Change type of 'len' to ULONGEST.
14974 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14975 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14976
14977 2014-01-14 Yao Qi <yao@codesourcery.com>
14978
14979 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14980 type of 'len' to ULONGEST.
14981 (linux_xfer_osdata_processgroups): Likewise.
14982 (linux_xfer_osdata_threads): Likewise.
14983 (linux_xfer_osdata_fds): Likewise.
14984 (linux_xfer_osdata_isockets): Likewise.
14985 (linux_xfer_osdata_shm): Likewise.
14986 (linux_xfer_osdata_sem): Likewise.
14987 (linux_xfer_osdata_msg): Likewise.
14988 (linux_common_xfer_osdata): Likewise.
14989 (struct osdata_type) <getter>: Likewise.
14990 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14991 the declaration.
14992
14993 2014-01-14 Yao Qi <yao@codesourcery.com>
14994
14995 * target.h (target_xfer_partial_ftype): Update.
14996 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14997 ULONGEST.
14998 * aix-thread.c (aix_thread_xfer_partial): Change type of
14999 argument 'len' to ULONGEST.
15000 * auxv.c (procfs_xfer_auxv): Likewise.
15001 (ld_so_xfer_auxv): Likewise.
15002 (memory_xfer_auxv): Likewise.
15003 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15004 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15005 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15006 * corelow.c (core_xfer_partial): Likewise.
15007 * ctf.c (ctf_xfer_partial): Likewise.
15008 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15009 '%u'.
15010 (darwin_read_dyld_info): Likewise.
15011 (darwin_xfer_partial): Likewise.
15012 * exec.c (section_table_xfer_memory_partial): Likewise.
15013 (exec_xfer_partial): Likewise.
15014 * exec.h (section_table_xfer_memory_partial): Update
15015 declaration.
15016 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15017 instead of plongest.
15018 (gnu_xfer_partial): Likewise.
15019 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15020 (ia64_hpux_xfer_solib_got): Likewise.
15021 (ia64_hpux_xfer_partial): Likewise.
15022 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15023 * inf-ptrace.c (inf_ptrace_xfer_partial):
15024 * inf-ttrace.c (inf_ttrace_xfer_partial):
15025 * linux-nat.c (linux_xfer_siginfo): Likewise.
15026 (linux_nat_xfer_partial): Likewise.
15027 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15028 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15029 * monitor.c (monitor_xfer_memory): Likewise.
15030 (monitor_xfer_partial): Likewise.
15031 * procfs.c (procfs_xfer_partial): Likewise.
15032 * record-full.c (record_full_xfer_partial): Likewise.
15033 (record_full_core_xfer_partial): Likewise.
15034 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15035 instead of plongest.
15036 (gdbsim_xfer_partial): Likewise.
15037 * remote.c (remote_xfer_partial): Likewise.
15038 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15039 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15040 declaration.
15041 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15042 (rs6000_xfer_shared_libraries): Likewise.
15043 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15044 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15045 (sparc_xfer_partial): Likewise.
15046 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15047 (spu_xfer_partial): Likewise.
15048 * spu-multiarch.c (spu_xfer_partial): Likewise.
15049 * target.c (target_read_live_memory): Likewise.
15050 (memory_xfer_live_readonly_partial): Likewise.
15051 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15052 (target_xfer_partial, default_xfer_partial): Likewise.
15053 (current_xfer_partial): Likewise.
15054 * tracepoint.c (tfile_xfer_partial): Likewise.
15055 * windows-nat.c (windows_xfer_memory): Likewise. Call
15056 pulongest instead of plongest.
15057 (windows_xfer_partial): Likewise.
15058 (windows_xfer_shared_libraries): Likewise.
15059
15060 2014-01-14 Yao Qi <yao@codesourcery.com>
15061
15062 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15063 target_xfer_partial_ftype.
15064
15065 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15066
15067 PR python/15464
15068 PR python/16113
15069 * valops.c (value_struct_elt_bitpos): New function
15070 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15071 object to 'None' if the field name is an empty string ("").
15072 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15073 attribute to look for a field when 'name' is 'None'.
15074 (get_field_type): New function
15075
15076 2014-01-13 Doug Evans <dje@google.com>
15077
15078 PR symtab/16426
15079 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15080 (try_open_dwop_file): Ditto.
15081 * gdb_bfd.c: #include "vec.h".
15082 (bfdp): New typedef.
15083 (struct gdb_bfd_data): New member included_bfds.
15084 (gdb_bfd_unref): Unref all included bfds.
15085 (gdb_bfd_record_inclusion): New function.
15086 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15087
15088 2014-01-13 Tom Tromey <tromey@redhat.com>
15089
15090 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15091
15092 2014-01-13 Tom Tromey <tromey@redhat.com>
15093
15094 * defs.h (use_windows): Remove.
15095 * gdb.c (main): Update.
15096 * main.c (captured_main, gdb_main): Update.
15097 * main.h (struct captured_main_args) <use_windows>: Remove.
15098 * top.c (use_windows): Remove.
15099
15100 2014-01-13 Tom Tromey <tromey@redhat.com>
15101
15102 * defs.h (deprecated_flush_hook): Remove.
15103
15104 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15105
15106 PR threads/16216
15107 * linux-thread-db.c (try_thread_db_load): Add parameter
15108 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15109 (try_thread_db_load_from_pdir_1): Move it there from here.
15110 (try_thread_db_load_from_sdir): Update caller.
15111 (try_thread_db_load_from_dir): Move it there from here.
15112
15113 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15114
15115 * regformats/regdat.sh: Always rewrite the register file.
15116
15117 2014-01-13 Pedro Alves <palves@redhat.com>
15118
15119 * Makefile.in (CHECK_HEADERS): New variable.
15120 (check-headers:): New rule.
15121
15122 2014-01-13 Tom Tromey <tromey@redhat.com>
15123
15124 * cli/cli-setshow.c (do_set_command): Update.
15125 * defs.h (deprecated_set_hook): Remove.
15126 * top.c (deprecated_set_hook): Remove.
15127
15128 2014-01-13 Pedro Alves <palves@redhat.com>
15129
15130 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15131 the tracepoint if the PC is a pseudo-register.
15132
15133 2014-01-13 Tom Tromey <tromey@redhat.com>
15134
15135 * defs.h (XCALLOC): Remove.
15136 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15137 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15138 * dwarf2loc.c (allocate_piece_closure): Likewise.
15139 * elfread.c (elf_symfile_segments): Likewise.
15140 (elf_symfile_segments): Likewise.
15141 * gdbtypes.c (copy_type_recursive): Likewise.
15142 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15143 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15144 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15145 XCALLOC.
15146 * mt-tdep.c (mt_gdbarch_init): Likewise.
15147 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15148 XCALLOC.
15149 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15150 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15151 * registry.c (registry_alloc_data): Likewise.
15152 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15153 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15154 * serial.c (serial_fdopen_ops): Likewise.
15155 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15156 XCALLOC.
15157 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15158 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15159 not XCALLOC.
15160
15161 2014-01-13 Tom Tromey <tromey@redhat.com>
15162
15163 * defs.h (XMALLOC): Remove.
15164 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15165 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15166 * cli-out.c (struct ui_out *): Likewise.
15167 * cli/cli-dump.c (add_dump_command): Likewise.
15168 (add_dump_command): Likewise.
15169 * complaints.c (get_complaints): Likewise.
15170 (find_complaint): Likewise.
15171 * dwarf2-frame.c (execute_cfa_program): Likewise.
15172 * dwarf2read.c (abbrev_table_read_table): Likewise.
15173 * gdbarch.sh: Likewise.
15174 * gdbarch.c: Rebuild.
15175 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15176 * interps.c (interp_new): Likewise.
15177 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15178 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15179 * mi/mi-console.c (mi_console_file_new): Likewise.
15180 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15181 * mi/mi-out.c (mi_out_new): Likewise.
15182 * mi/mi-parse.c (mi_parse): Likewise.
15183 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15184 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15185 * observer.c (xalloc_observer_list_node): Likewise.
15186 * regcache.c (regcache_xmalloc_1): Likewise.
15187 * reggroups.c (reggroup_new): Likewise.
15188 (_initialize_reggroup): Likewise.
15189 * registry.c (register_data_with_cleanup): Likewise.
15190 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15191 * ser-base.c (serial_ttystate): Likewise.
15192 * ser-mingw.c (make_pipe_state): Likewise.
15193 * ser-pipe.c (pipe_open): Likewise.
15194 * serial.c (serial_open): Likewise.
15195 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15196 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15197 (tui_alloc_win_info): Likewise.
15198 (tui_add_content_elements): Likewise.
15199 * tui/tui-file.c (tui_file_new): Likewise.
15200 * tui/tui-out.c (tui_out_new): Likewise.
15201 * ui-file.c (mem_file_new): Likewise.
15202 * ui-out.c (push_level): Likewise.
15203 (make_cleanup_ui_out_end): Likewise.
15204 (append_header_to_list): Likewise.
15205 (ui_out_new): Likewise.
15206 * user-regs.c (user_reg_add_builtin): Likewise.
15207
15208 2014-01-13 Tom Tromey <tromey@redhat.com>
15209
15210 * defs.h (XZALLOC): Remove.
15211 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15212 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15213 (get_ada_tasks_inferior_data): Likewise.
15214 * auto-load.c (get_auto_load_pspace_data): Likewise.
15215 * auxv.c (get_auxv_inferior_data): Likewise.
15216 * bfd-target.c (target_bfd_reopen): Likewise.
15217 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15218 (deprecated_insert_raw_breakpoint): Likewise.
15219 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15220 * corelow.c (core_open): Likewise.
15221 * darwin-nat.c (darwin_check_new_threads): Likewise.
15222 (darwin_attach_pid): Likewise.
15223 * dummy-frame.c (dummy_frame_push): Likewise.
15224 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15225 * dwarf2loc.c (allocate_piece_closure): Likewise.
15226 * elfread.c (elf_symfile_segments): Likewise.
15227 * eval.c (ptrmath_type_p): Likewise.
15228 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15229 * gdbtypes.c (alloc_type_arch): Likewise.
15230 (alloc_type_instance): Likewise.
15231 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15232 * inf-child.c (inf_child_can_use_agent): Likewise.
15233 * inflow.c (get_inflow_inferior_data): Likewise.
15234 * infrun.c (save_infcall_suspend_state): Likewise.
15235 * jit.c (jit_reader_load): Likewise.
15236 (get_jit_objfile_data): Likewise.
15237 (get_jit_program_space_data): Likewise.
15238 (jit_object_open_impl): Likewise.
15239 (jit_symtab_open_impl): Likewise.
15240 (jit_block_open_impl): Likewise.
15241 (jit_frame_sniffer): Likewise.
15242 * linux-fork.c (add_fork): Likewise.
15243 * maint.c (make_command_stats_cleanup): Likewise.
15244 * objfiles.c (get_objfile_pspace_data): Likewise.
15245 * opencl-lang.c (struct lval_closure): Likewise.
15246 * osdata.c (osdata_start_osdata): Likewise.
15247 * progspace.c (new_address_space): Likewise.
15248 (add_program_space): Likewise.
15249 * remote-sim.c (get_sim_inferior_data): Likewise.
15250 * sh-tdep.c (sh_gdbarch_init): Likewise.
15251 * skip.c (Ignore): Likewise.
15252 (skip_delete_command): Likewise.
15253 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15254 (library_list_start_library): Likewise.
15255 (solib_aix_current_sos): Likewise.
15256 * solib-darwin.c (get_darwin_info): Likewise.
15257 (darwin_current_sos): Likewise.
15258 * solib-dsbt.c (get_dsbt_info): Likewise.
15259 * solib-ia64-hpux.c (new_so_list): Likewise.
15260 (ia64_hpux_get_solib_linkage_addr): Likewise.
15261 * solib-spu.c (append_ocl_sos): Likewise.
15262 (spu_current_sos): Likewise.
15263 * solib-svr4.c (get_svr4_info): Likewise.
15264 (svr4_keep_data_in_core): Likewise.
15265 (library_list_start_library): Likewise.
15266 (svr4_default_sos): Likewise.
15267 (svr4_read_so_list): Likewise.
15268 * solib-target.c (library_list_start_library): Likewise.
15269 (solib_target_current_sos): Likewise.
15270 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15271 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15272 * symfile.c (default_symfile_segments): Likewise.
15273 * target-descriptions.c (tdesc_data_init): Likewise.
15274 (tdesc_create_reg): Likewise.
15275 (struct tdesc_type *): Likewise.
15276 (tdesc_create_vector): Likewise.
15277 (tdesc_set_struct_size): Likewise.
15278 (struct tdesc_type *): Likewise.
15279 (tdesc_free_feature): Likewise.
15280 (tdesc_create_feature): Likewise.
15281 * windows-nat.c (windows_add_thread): Likewise.
15282 (windows_make_so): Likewise.
15283 * xml-support.c (gdb_xml_body_text): Likewise.
15284 (gdb_xml_create_parser_and_cleanup): Likewise.
15285 (xml_process_xincludes): Likewise.
15286 * xml-syscall.c (allocate_syscalls_info): Likewise.
15287 (syscall_create_syscall_desc): Likewise.
15288
15289 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15290
15291 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15292 function, with code from i386_stap_parse_special_token.
15293 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15294 (i386_stap_parse_special_token): Move code to the two functions
15295 above; simplify it.
15296
15297 2014-01-09 Pedro Alves <palves@redhat.com>
15298 Hui Zhu <hui@codesourcery.com>
15299
15300 PR gdb/16101
15301 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15302 bp_err_string. Don't mark the location shlib_disabled if the
15303 error thrown wasn't a generic or memory error. Catch errors
15304 thrown while inserting breakpoints in overlayed code. Output
15305 error message of software breakpoints.
15306 * remote.c (remote_insert_breakpoint): If this breakpoint has
15307 target-side commands but this stub doesn't support Z0 packets,
15308 throw NOT_SUPPORTED_ERROR error.
15309 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15310 * target.h (target_insert_breakpoint): Extend comment.
15311 (target_insert_hw_breakpoint): Add comment.
15312
15313 2014-01-08 Pedro Alves <palves@redhat.com>
15314
15315 * remote.c (remote_add_thread): Add threads silently if starting
15316 up.
15317 (remote_notice_new_inferior): If in all-stop, and starting up,
15318 don't call notice_new_inferior.
15319 (get_current_thread): New function, factored out from ...
15320 (add_current_inferior_and_thread): ... this. Adjust.
15321 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15322 found any thread, then select the remote's current thread as GDB's
15323 current thread too.
15324
15325 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15326
15327 * NEWS: Create a new section for the next release branch.
15328 Rename the section of the current branch, now that it has
15329 been cut.
15330
15331 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15332
15333 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15334 * version.in: Bump version to 7.7.50.DATE-cvs.
15335
15336 2014-01-08 Yao Qi <yao@codesourcery.com>
15337
15338 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15339 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15340 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15341
15342 2014-01-08 Yao Qi <yao@codesourcery.com>
15343
15344 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15345 return value of bfd_get_filename to symbol_file_add_from_bfd.
15346
15347 2014-01-08 Pierre Muller <muller@sourceware.org>
15348
15349 Fix PR16201.
15350 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15351 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15352 to prim_record_mininal_symbol_and_info.
15353 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15354 in call to prim_record_minimal_symbol_and_info.
15355 (read_pe_exported_syms): Set index field of section_data.
15356
15357 2014-01-07 Andrew Pinski <apinski@cavium.com>
15358
15359 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15360 * features/aarch64.c: Regenerate.
15361
15362 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15363
15364 * target.c (return_null): Define.
15365 (update_current_target): Use it instead of return_zero for
15366 functions that return a pointer.
15367
15368 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15369
15370 * source.c (add_path): Fix check for duplicated paths in the previously
15371 included paths.
15372
15373 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15374
15375 * ada-lang.c: Remove duplicated include statements.
15376 * alphabsd-nat.c: Ditto.
15377 * amd64-darwin-tdep.c: Ditto.
15378 * amd64fbsd-nat.c: Ditto.
15379 * auto-load.c: Ditto.
15380 * ax-gdb.c: Ditto.
15381 * breakpoint.c: Ditto.
15382 * dbxread.c: Ditto.
15383 * fork-child.c: Ditto.
15384 * gdb_usleep.c: Ditto.
15385 * i386-darwin-tdep.c: Ditto.
15386 * i386fbsd-nat.c: Ditto.
15387 * infcmd.c: Ditto.
15388 * inferior.c: Ditto.
15389 * jv-lang.c: Ditto.
15390 * linux-nat.c: Ditto.
15391 * linux-tdep.c: Ditto.
15392 * m68kbsd-nat.c: Ditto.
15393 * m68klinux-nat.c: Ditto.
15394 * microblaze-tdep.c: Ditto.
15395 * mips-linux-tdep.c: Ditto.
15396 * mn10300-tdep.c: Ditto.
15397 * nto-tdep.c: Ditto.
15398 * opencl-lang.c: Ditto.
15399 * osdata.c: Ditto.
15400 * printcmd.c: Ditto.
15401 * regcache.c: Ditto.
15402 * remote-m32r-sdi.c: Ditto.
15403 * remote.c: Ditto.
15404 * symfile.c: Ditto.
15405 * symtab.c: Ditto.
15406 * tilegx-linux-nat.c: Ditto.
15407 * tilegx-tdep.c: Ditto.
15408 * tracepoint.c: Ditto.
15409 * valops.c: Ditto.
15410 * vaxbsd-nat.c: Ditto.
15411 * windows-nat.c: Ditto.
15412 * xtensa-tdep.c: Ditto.
15413
15414 2014-01-07 Yao Qi <yao@codesourcery.com>
15415
15416 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15417
15418 2014-01-07 Yao Qi <yao@codesourcery.com>
15419 Joel Brobecker <brobecker@adacore.com>
15420
15421 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15422 (pdc_write_regs): Likewise.
15423 (fetch_regs_kernel_thread): Likewise.
15424 (store_regs_kernel_thread): Likewise.
15425
15426 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15427
15428 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15429 tagged type objects to their actual type.
15430
15431 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15432
15433 * ada-valprint.c (print_field_values): Add "language" parameter.
15434 Update calls to print_field_values and print_variant_part.
15435 Pass new parameter "language" in call to val_print instead
15436 of "current_language". Replace call to ada_val_print by call
15437 to val_print.
15438 (print_variant_part): Add "language" parameter.
15439 (ada_val_print_struct_union): Update call to print_field_values.
15440
15441 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15442
15443 * ada-valprint.c (ui_memcpy): Delete.
15444 (ada_print_floating): Update documentation. Add empty line
15445 between between function documentation and implementation.
15446 Delete variable "buffer". Use ui_file_xstrdup in place of
15447 ui_file_put. Minor adjustments following this change.
15448
15449 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15450
15451 * ada-valprint.c (ada_val_print_string): New function,
15452 extracted from ada_val_print_array.
15453 (ada_val_print_array): Replace extracted code by call
15454 to ada_val_print_string followed by a return. Move
15455 "else" branch to the function's top block.
15456
15457 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15458
15459 * ada-valprint.c (ada_val_print_array): Move implementation
15460 down. Rename parameter "offset" and "val" into "offset_aligned"
15461 and "original_value" respectively. Add parameter "offset".
15462
15463 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15464
15465 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15466 re-organizing the code. Change the "???" message printed
15467 when target type is a TYPE_CODE_UNDEF into
15468 "<ref to undefined type>".
15469
15470 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15471
15472 * ada-valprint.c (print_record): Delete, implementation inlined...
15473 (ada_val_print_struct_union): ... here. Remove call to
15474 ada_check_typedef in inlined implementation.
15475
15476 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15477
15478 * ada-valprint.c (ada_val_print_gnat_array): New function,
15479 extracted from ada_val_print_1;
15480 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15481 (ada_val_print_flt, ada_val_print_struct_union)
15482 (ada_val_print_ref): Likewise.
15483 (ada_val_print_1): Delete variables i and elttype.
15484 Replace extracted-out code by call to corresponding
15485 new functions.
15486
15487 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15488
15489 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15490
15491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15492
15493 * ada-valprint.c (ada_val_print_1): Replace calls to
15494 ada_val_print_1 by calls to val_print.
15495
15496 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15497
15498 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15499 Update calls to self accordingly. Replace calls to c_val_print
15500 by calls to val_print.
15501
15502 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15503
15504 * ada-valprint.c (print_record): Delete declaration.
15505 (adjust_type_signedness, ada_val_print_1): Likewise.
15506 (ada_val_print): Move function implementation down.
15507 (print_variant_part, print_field_values, print_record):
15508 Move function implementation up.
15509
15510 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15511
15512 * python/py-type.c (typy_get_name): New function.
15513 (type_object_getset): Add entry for attribute "name".
15514 * NEWS: Add entry mentioning this new attribute.
15515
15516 2014-01-07 Yao Qi <yao@codesourcery.com>
15517
15518 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15519 statement.
15520
15521 2014-01-07 Yao Qi <yao@codesourcery.com>
15522
15523 * gnu-nat.c (info_port_rights): Add qualifier const to
15524 argument args.
15525
15526 2014-01-07 Yao Qi <yao@codesourcery.com>
15527
15528 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15529
15530 2014-01-07 Yao Qi <yao@codesourcery.com>
15531
15532 * gnu-nat.c (make_inf) Update declaration.
15533 (make_inf): Make it static.
15534 (inf_set_traced): Likewise.
15535 (inf_port_to_thread, inf_task_died_status): Likewise.
15536
15537 2014-01-07 Yao Qi <yao@codesourcery.com>
15538
15539 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15540
15541 2014-01-07 Yao Qi <yao@codesourcery.com>
15542
15543 * gnu-nat.c (_initialize_gnu_nat): Declare.
15544
15545 2014-01-07 Yao Qi <yao@codesourcery.com>
15546
15547 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15548 'enum bfd_endian'.
15549 (struct gdbarch_info) <byte_order>: Change type to
15550 'enum bfd_endian'.
15551 <byte_order_for_code>: Likewise.
15552 * gdbarch.c, gdbarch.h: Regenerated.
15553
15554 2014-01-06 Sasha Smundak <asmundak@google.com>
15555
15556 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15557
15558 2014-01-06 Tom Tromey <tromey@redhat.com>
15559
15560 * doublest.c (convert_doublest_to_floatformat): Use const, not
15561 CONST.
15562 * somread.c (som_symtab_read): Likewise.
15563
15564 2014-01-07 Hui Zhu <hui@codesourcery.com>
15565
15566 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15567 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15568 (gdb_bfd_fopen): Ditto.
15569 (gdb_bfd_openr): Ditto.
15570 (gdb_bfd_openw): Ditto.
15571 (gdb_bfd_openr_iovec): Ditto.
15572 (gdb_bfd_fdopenr): Ditto.
15573 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15574 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15575 with xstrdup.
15576 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15577 with xstrdup.
15578 * symfile-mem.c (symbol_file_add_from_memory): Removed
15579 gdb_bfd_stash_filename.
15580
15581 2014-01-03 Doug Evans <dje@google.com>
15582
15583 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15584 output.
15585
15586 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15587
15588 Update year range in copyright notice of all files.
15589
15590 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15591
15592 * top.c (print_gdb_version): Set copyright year to 2014.
15593
15594 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15595
15596 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15597
15598 For older changes see ChangeLog-2013.
15599 \f
15600 Local Variables:
15601 mode: change-log
15602 left-margin: 8
15603 fill-column: 74
15604 version-control: never
15605 coding: utf-8
15606 End: