Import lstat
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-28 Yao Qi <yao@codesourcery.com>
2
3 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
4 lstat.
5 * gnulib/aclocal.m4: Re-generated.
6 * gnulib/config.in: Re-generated.
7 * gnulib/configure: Re-generated.
8 * gnulib/import/Makefile.am: Re-generated.
9 * gnulib/import/Makefile.in: Re-generated.
10 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
11 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
12 * gnulib/import/lstat.c: New file.
13 * gnulib/import/m4/lstat.m4: New file.
14
15 2014-11-28 Yao Qi <yao@codesourcery.com>
16
17 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
18 * config.in, configure: Re-generate.
19 * inf-child.c (inf_child_fileio_readlink): Don't check
20 HAVE_READLINK is defined.
21
22 2014-11-28 Yao Qi <yao@codesourcery.com>
23
24 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
25 * gnulib/aclocal.m4: Re-generated.
26 * gnulib/config.in: Likewise.
27 * gnulib/configure: Likewise.
28 * gnulib/import/Makefile.am: Likewise.
29 * gnulib/import/Makefile.in: Likewise.
30 * gnulib/import/m4/gnulib-cache.m4: Likewise.
31 * gnulib/import/m4/gnulib-comp.m4: Likewise.
32 * gnulib/import/dosname.h: New file
33 * gnulib/import/m4/largefile.m4: New file.
34 * gnulib/import/m4/readlink.m4: New file.
35 * gnulib/import/m4/stat.m4: New file.
36 * gnulib/import/readlink.c: New file.
37 * gnulib/import/stat.c: New file.
38
39 2014-11-26 Mark Wielaard <mjw@redhat.com>
40
41 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
42 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
43
44 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
45
46 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
47 that there can be only one stack adjustment in the prologue
48 with tests to detect specific disallowed stack adjustments.
49
50 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
51
52 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
53 adjustments.
54
55 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
56
57 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
58 the instruction as well as reading it from memory.
59 (nios2_match_add): New.
60 (nios2_match_sub): New.
61 (nios2_match_addi): New.
62 (nios2_match_orhi): New.
63 (nios2_match_stw): New.
64 (nios2_match_ldw): New.
65 (nios2_match_rdctl): New.
66 (enum branch_condition): New.
67 (nios2_match_branch): New.
68 (nios2_match_jmpi): New.
69 (nios2_match_calli): New.
70 (nios2_match_jmpr): New.
71 (nios2_match_callr): New.
72 (nios2_match_break): New.
73 (nios2_match_trap): New.
74 (nios2_in_epilogue_p): Rewrite to use new functions.
75 (nios2_analyze_prologue): Likewise.
76 (nios2_skip_prologue): Delete unused local limit_pc.
77 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
78 (nios2_get_next_pc): Rewrite to use new functions.
79
80 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
81
82 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
83
84 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
85
86 Pushed by Joel Brobecker <brobecker@adacore.com>
87 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
88 elements pi_len by the size of the elements before calling
89 vm_deallocate.
90 (inf_validate_task_sc): Likewise, and properly deallocate the
91 noise array.
92
93 2014-11-23 Doug Evans <xdje42@gmail.com>
94
95 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
96 number and name if present. All callers updated.
97 (dump_fn_fieldlists): Fix indentation of args.
98
99 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
100
101 * MAINTAINERS (Write After Approval): Add myself.
102
103 2014-11-23 Joel Brobecker <brobecker@adacore.com>
104
105 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
106 to a bp_call_dummy breakpoint type.
107
108 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
109
110 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
111 registering the signal handler.
112
113 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
114
115 * event-top.h (call_stdin_event_handler_again_p): Declare.
116 * event-top.c (call_stdin_event_handler_again_p): Define.
117 (stdin_event_handler): Use it.
118 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
119 handler again if there is pending input following a
120 start sequence.
121
122 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
123
124 Pushed by Joel Brobecker <brobecker@adacore.com>
125 * linux-fork.c (checkpoint_command): Print index of new
126 checkpoint in response message.
127
128 2014-11-23 Yao Qi <yao@codesourcery.com>
129
130 * valprint.c (read_string): Move local variables 'found_nul',
131 'chunksize' and 'limit' to inner scope. Update comments.
132
133 2014-11-22 Doug Evans <xdje42@gmail.com>
134
135 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
136 function comment.
137 (search_symbols): Fix comments and whitespace.
138
139 2014-11-22 Doug Evans <xdje42@gmail.com>
140
141 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
142
143 2014-11-21 Doug Evans <dje@google.com>
144
145 * psymtab.c (psymtab_search_name): Fix whitespace.
146
147 2014-11-21 Yao Qi <yao@codesourcery.com>
148
149 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
150 errno.
151 * gnulib/import/Makefile.am: Re-generated.
152 * gnulib/import/Makefile.in: Likewise.
153 * gnulib/import/m4/gnulib-cache.m4: Likewise.
154
155 2014-11-21 Yao Qi <yao@codesourcery.com>
156
157 * gdb_wchar.h: Include wchar.h and wctype.h.
158 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
159 include wchar.h and wctype.h.
160 Don't check HAVE_WCHAR_H.
161
162 2014-11-21 Yao Qi <yao@codesourcery.com>
163
164 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
165 and wctype-h.
166 * gnulib/import/Makefile.am: Re-generated.
167 * gnulib/import/Makefile.in: Likewise.
168 * gnulib/import/m4/gnulib-cache.m4: Likewise.
169
170 2014-11-21 Yao Qi <yao@codesourcery.com>
171
172 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
173 memchr.
174 * gnulib/import/Makefile.am: Re-generated.
175 * gnulib/import/Makefile.in: Likewise.
176 * gnulib/import/m4/gnulib-cache.m4: Likewise.
177
178 2014-11-21 Yao Qi <yao@codesourcery.com>
179
180 * common/common-defs.h: Include alloca.h
181 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
182 * configure: Re-generated.
183 * defs.h: Remove code handling alloca.
184 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
185 or not.
186
187 2014-11-21 Yao Qi <yao@codesourcery.com>
188
189 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
190 alloca.
191 * gnulib/import/Makefile.am: Re-generated.
192 * gnulib/import/Makefile.in: Likewise..
193 * gnulib/import/m4/gnulib-cache.m4: Likewise.
194
195 2014-11-21 Yao Qi <yao@codesourcery.com>
196
197 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
198 alphabetical order.
199
200 2014-11-21 Joel Brobecker <brobecker@adacore.com>
201
202 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
203 flag_unsigned if HIGH_BOUND is constant and negative.
204
205 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
206
207 PR breakpoints/10737
208 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
209 modifier from "struct gdbarch" when compiling without Expat (XML)
210 support.
211 (get_syscall_by_number): Likewise.
212 (get_syscall_by_name): Likewise.
213 (get_syscall_names): Likewise.
214
215 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
216
217 PR breakpoints/10737
218 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
219 set_xml_syscall_file_name to provide gdbarch.
220 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
221 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
222 * breakpoint.c (print_it_catch_syscall): Adjust call to
223 get_syscall_by_number to provide gdbarch.
224 (print_one_catch_syscall): Likewise.
225 (print_mention_catch_syscall): Likewise.
226 (print_recreate_catch_syscall): Likewise.
227 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
228 and get_syscall_by_name to provide gdbarch.
229 (catch_syscall_completer): Adjust call to get_syscall_names to
230 provide gdbarch.
231 * gdbarch.c: Regenerate.
232 * gdbarch.h: Likewise.
233 * gdbarch.sh: Forward declare "struct syscalls_info".
234 (xml_syscall_file): New variable.
235 (syscalls_info): Likewise.
236 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
237 set_xml_syscall_file_name to provide gdbarch.
238 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
239 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
240 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
241 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
242 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
243 * xml-syscall.c: Include gdbarch.h.
244 (set_xml_syscall_file_name): Accept gdbarch parameter.
245 (get_syscall_by_number): Likewise.
246 (get_syscall_by_name): Likewise.
247 (get_syscall_names): Likewise.
248 (my_gdb_datadir): Delete global variable.
249 (struct syscalls_info) <my_gdb_datadir>: New variable.
250 (struct syscalls_info) <sysinfo>: Rename variable to
251 "syscalls_info".
252 (sysinfo): Delete global variable.
253 (have_initialized_sysinfo): Likewise.
254 (xml_syscall_file): Likewise.
255 (sysinfo_free_syscalls_desc): Rename to...
256 (syscalls_info_free_syscalls_desc): ... this.
257 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
258 code to the new layout of "struct syscalls_info".
259 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
260 "syscalls_info".
261 (syscall_create_syscall_desc): Likewise.
262 (syscall_start_syscall): Likewise.
263 (syscall_parse_xml): Likewise.
264 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
265 (init_sysinfo): Rename to...
266 (init_syscalls_info): ...this. Add gdbarch as a parameter.
267 Adjust function to deal with gdbarch.
268 (xml_get_syscall_number): Delete parameter sysinfo. Accept
269 gdbarch as a parameter. Adjust code.
270 (xml_get_syscall_name): Likewise.
271 (xml_list_of_syscalls): Likewise.
272 (set_xml_syscall_file_name): Accept gdbarch as parameter.
273 (get_syscall_by_number): Likewise.
274 (get_syscall_by_name): Likewise.
275 (get_syscall_names): Likewise.
276 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
277 (get_syscall_by_number): Likewise.
278 (get_syscall_by_name): Likewise.
279 (get_syscall_names): Likewise.
280
281 2014-11-20 Doug Evans <xdje42@gmail.com>
282
283 Split struct symtab into two: struct symtab and compunit_symtab.
284 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
285 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
286 to "struct compunit_symtab *". All callers updated.
287 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
288 "struct symtab *" argument to "struct compunit_symtab *".
289 All callers updated.
290 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
291 result to "struct compunit_symtab *". All callers updated.
292 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
293 Change result to "struct compunit_symtab *". All callers updated.
294 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
295 hange type to "struct compunit_symtab *". All uses updated.
296 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
297 Change type to "struct compunit_symtab *". All uses updated.
298 * buildsym.c (struct buildsym_compunit): New struct.
299 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
300 (buildsym_compunit): New static global.
301 (finish_block_internal): Update to fetch objfile from
302 buildsym_compunit.
303 (make_blockvector): Delete objfile argument.
304 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
305 debugformat, producer.
306 (start_buildsym_compunit): New function.
307 (free_buildsym_compunit): Renamed from free_subfiles_list.
308 All callers updated.
309 (patch_subfile_names): Rewrite to use buildsym_compunit.
310 (get_compunit_symtab): New function.
311 (get_macro_table): Delete argument comp_dir. All callers updated.
312 (start_symtab): Change result to "struct compunit_symtab *".
313 All callers updated. Create the subfile of the main source file.
314 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
315 (reset_symtab_globals): Update.
316 (end_symtab_get_static_block): Update to use buildsym_compunit.
317 (end_symtab_without_blockvector): Rewrite.
318 (end_symtab_with_blockvector): Change result to
319 "struct compunit_symtab *". All callers updated.
320 Update to use buildsym_compunit. Don't set symtab->dirname,
321 instead set it in the compunit.
322 Explicitly make sure main symtab is first in its list.
323 Set debugformat, producer, blockvector, block_line_section, and
324 macrotable in the compunit.
325 (end_symtab_from_static_block): Change result to
326 "struct compunit_symtab *". All callers updated.
327 (end_symtab, end_expandable_symtab): Ditto.
328 (set_missing_symtab): Change symtab argument to
329 "struct compunit_symtab *". All callers updated.
330 (augment_type_symtab): Ditto.
331 (record_debugformat): Update to use buildsym_compunit.
332 (record_producer): Update to use buildsym_compunit.
333 * buildsym.h (struct subfile) <dirname>: Delete.
334 <producer, debugformat>: Delete.
335 <buildsym_compunit>: New member.
336 (get_compunit_symtab): Declare.
337 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
338 from primary_symtab. Change type to "struct compunit_symtab *".
339 All uses updated.
340 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
341 All callers updated.
342 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
343 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
344 symtab. Change type to "struct compunit_symtab *". All uses updated.
345 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
346 All callers updated.
347 (dw2_find_last_source_symtab): Ditto.
348 (dw2_lookup_symbol): Ditto.
349 (recursively_find_pc_sect_compunit_symtab): Renamed from
350 recursively_find_pc_sect_symtab. Change result to
351 "struct compunit_symtab *". All callers updated.
352 (dw2_find_pc_sect_compunit_symtab): Renamed from
353 dw2_find_pc_sect_symtab. Change result to
354 "struct compunit_symtab *". All callers updated.
355 (get_compunit_symtab): Renamed from get_symtab. Change result to
356 "struct compunit_symtab *". All callers updated.
357 (recursively_compute_inclusions): Change type of immediate_parent
358 argument to "struct compunit_symtab *". All callers updated.
359 (compute_compunit_symtab_includes): Renamed from
360 compute_symtab_includes. All callers updated. Rewrite to compute
361 includes of compunit_symtabs and not symtabs.
362 (process_full_comp_unit): Update to work with struct compunit_symtab.
363 (process_full_type_unit): Ditto.
364 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
365 (dwarf_decode_lines): Remove special case handling of main subfile.
366 (macro_start_file): Delete argument comp_dir. All callers updated.
367 (dwarf_decode_macro_bytes): Ditto.
368 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
369 use struct compunit_symtab.
370 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
371 * jit.c (finalize_symtab): Build compunit_symtab.
372 * jv-lang.c (get_java_class_symtab): Change result to
373 "struct compunit_symtab *". All callers updated.
374 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
375 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
376 comp_dir. Change type to "struct compunit_symtab *".
377 All uses updated.
378 (new_macro_table): Change comp_dir argument to cust,
379 "struct compunit_symtab *". All callers updated.
380 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
381 nr_primary_symtabs. All uses updated.
382 (count_symtabs_and_blocks): Update to handle compunits.
383 (report_command_stats): Update output, "primary symtabs" renamed to
384 "compunits".
385 * mdebugread.c (new_symtab): Change result to
386 "struct compunit_symtab *". All callers updated.
387 (parse_procedure): Change type of search_symtab argument to
388 "struct compunit_symtab *". All callers updated.
389 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
390 separate loop.
391 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
392 symtabs. Change type to "struct compunit_symtab *". All uses updated.
393 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
394 All uses updated.
395 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
396 All uses updated.
397 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
398 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
399 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
400 symtab. Change type to "struct compunit_symtab *". All uses updated.
401 * psymtab.c (psymtab_to_symtab): Change result type to
402 "struct compunit_symtab *". All callers updated.
403 (find_pc_sect_compunit_symtab_from_partial): Renamed from
404 find_pc_sect_symtab_from_partial. Change result type to
405 "struct compunit_symtab *". All callers updated.
406 (lookup_symbol_aux_psymtabs): Change result type to
407 "struct compunit_symtab *". All callers updated.
408 (find_last_source_symtab_from_partial): Ditto.
409 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
410 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
411 and macro_table from compunit.
412 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
413 type to "struct compunit_symtab *". All callers updated.
414 (debug_qf_lookup_symbol): Ditto.
415 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
416 debug_qf_find_pc_sect_symtab, change result type to
417 "struct compunit_symtab *". All callers updated.
418 * symfile.c (allocate_symtab): Delete objfile argument.
419 New argument cust.
420 (allocate_compunit_symtab): New function.
421 (add_compunit_symtab_to_objfile): New function.
422 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
423 Change result type to "struct compunit_symtab *". All uses updated.
424 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
425 Change result type to "struct compunit_symtab *". All uses updated.
426 * symmisc.c (print_objfile_statistics): Compute blockvector count in
427 separate loop.
428 (dump_symtab_1): Update test for primary source symtab.
429 (maintenance_info_symtabs): Update to handle compunit symtabs.
430 (maintenance_check_symtabs): Ditto.
431 * symtab.c (set_primary_symtab): Delete.
432 (compunit_primary_filetab): New function.
433 (compunit_language): New function.
434 (iterate_over_some_symtabs): Change type of arguments "first",
435 "after_last" to "struct compunit_symtab *". All callers updated.
436 Update to loop over symtabs in each compunit.
437 (error_in_psymtab_expansion): Rename symtab argument to cust,
438 and change type to "struct compunit_symtab *". All callers updated.
439 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
440 Change result type to "struct compunit_symtab *". All callers updated.
441 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
442 Change result type to "struct compunit_symtab *". All callers updated.
443 (find_pc_sect_line): Only loop over symtabs within selected compunit
444 instead of all symtabs in the objfile.
445 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
446 <compunit_symtab> New member.
447 <block_line_section>: Moved to compunit_symtab.
448 <locations_valid>: Ditto.
449 <epilogue_unwind_valid>: Ditto.
450 <macro_table>: Ditto.
451 <dirname>: Ditto.
452 <debugformat>: Ditto.
453 <producer>: Ditto.
454 <objfile>: Ditto.
455 <call_site_htab>: Ditto.
456 <includes>: Ditto.
457 <user>: Ditto.
458 <primary>: Delete
459 (SYMTAB_COMPUNIT): New macro.
460 (SYMTAB_BLOCKVECTOR): Update definition.
461 (SYMTAB_OBJFILE): Update definition.
462 (SYMTAB_DIRNAME): Update definition.
463 (struct compunit_symtab): New type. Common members among all source
464 symtabs within a compilation unit moved here. All uses updated.
465 (COMPUNIT_OBJFILE): New macro.
466 (COMPUNIT_FILETABS): New macro.
467 (COMPUNIT_DEBUGFORMAT): New macro.
468 (COMPUNIT_PRODUCER): New macro.
469 (COMPUNIT_DIRNAME): New macro.
470 (COMPUNIT_BLOCKVECTOR): New macro.
471 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
472 (COMPUNIT_LOCATIONS_VALID): New macro.
473 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
474 (COMPUNIT_CALL_SITE_HTAB): New macro.
475 (COMPUNIT_MACRO_TABLE): New macro.
476 (ALL_COMPUNIT_FILETABS): New macro.
477 (compunit_symtab_ptr): New typedef.
478 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
479
480 2014-11-20 Joel Brobecker <brobecker@adacore.com>
481
482 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
483 if the TYPE_CODE of range_type's base type does not match
484 the TYPE_CODE of encoding_type's base type.
485
486 2014-11-19 Joel Brobecker <brobecker@adacore.com>
487
488 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
489 it starts with '<'.
490
491 2014-11-19 Joel Brobecker <brobecker@adacore.com>
492
493 * ada-lang.c (ada_is_redundant_range_encoding): New function.
494 (ada_is_redundant_index_type_desc): New function.
495 (to_fixed_array_type): Ignore parallel XA type if redundant.
496
497 2014-11-19 Joel Brobecker <brobecker@adacore.com>
498
499 * ada-lang.c (constrained_packed_array_type): Set the length
500 of the return array as if both bounds where zero if that
501 returned array's index type is dynamic.
502
503 2014-11-19 Yao Qi <yao@codesourcery.com>
504
505 * config/i386/go32.mh (CC): Remove.
506
507 2014-11-18 Doug Evans <xdje42@gmail.com>
508
509 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
510 updated.
511
512 2014-11-18 Doug Evans <xdje42@gmail.com>
513
514 * buildsym.c (buildsym_objfile): New static global.
515 (buildsym_comp_dir): New static global.
516 (finish_block_internal): Delete arg objfile. All callers updated.
517 (finish_block): Delete arg objfile. All callers updated.
518 (start_subfile): Delete arg dirname. All callers updated.
519 (patch_subfile_names): Update buildsym_comp_dir.
520 (get_macro_table): Delete arg objfile. All callers updated.
521 (start_symtab): New arg objfile. All callers updated.
522 Rename arg dirname to comp_dir.
523 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
524 (end_symtab_get_static_block): Delete arg objfile. All callers
525 updated.
526 (end_symtab_without_blockvector): Ditto.
527 (end_symtab_with_blockvector): Ditto.
528 (end_symtab_from_static_block): Ditto.
529 (end_symtab): Ditto.
530 (end_expandable_symtab): Ditto.
531 (augment_type_symtab): Ditto.
532 * coffread.c (coff_start_symtab): New arg objfile. All callers
533 updated.
534
535 2014-11-18 Doug Evans <xdje42@gmail.com>
536
537 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
538 updated.
539
540 2014-11-18 Doug Evans <xdje42@gmail.com>
541
542 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
543 symtab.dirname updated to use it.
544
545 2014-11-18 Doug Evans <xdje42@gmail.com>
546
547 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
548 symtab.objfile updated to use it.
549
550 2014-11-18 Doug Evans <xdje42@gmail.com>
551
552 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
553
554 2014-11-18 Doug Evans <xdje42@gmail.com>
555
556 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
557 SYMBOL_OBJFILE.
558 * findvar.c (default_read_var_value): Ditto.
559 * jv-lang.c (add_class_symtab_symbol): Ditto.
560 * parse.c (operator_check_standard): Ditto.
561 * printcmd.c (address_info): Ditto.
562 * symtab.c (fixup_symbol_section): Ditto.
563 (skip_prologue_sal): Ditto.
564 * tracepoint.c (scope_info): Ditto.
565 * valops.c (find_function_in_inferior): Ditto.
566 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
567 * python/py-symbol.c (set_symbol): Ditto.
568
569 2014-11-18 Doug Evans <xdje42@gmail.com>
570
571 * buildsym.c (main_subfile): New static global.
572 (free_subfiles_list): New function.
573 (start_symtab): Set main_subfile.
574 (restart_symtab): Replace init of subfiles, current_subfile with
575 call to free_subfiles_list.
576 (watch_main_source_file_lossage): Use main_subfile.
577 (reset_symtab_globals): Replace init of current_subfile with call
578 to free_subfiles_list.
579 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
580 functions, split out from ...
581 (end_symtab_from_static_block): ... here. Rewrite to call them.
582
583 2014-11-18 Doug Evans <xdje42@gmail.com>
584
585 The result of symtab expansion is always a primary symtab.
586 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
587 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
588 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
589 (psymtab_to_symtab): Add comment and assert.
590 (map_matching_symbols_psymtab): Remove unnecessary test for
591 non-primary symtab.
592
593 2014-11-15 Doug Evans <xdje42@gmail.com>
594
595 PR symtab/17559
596 * symtab.c (find_pc_line_symtab): New function.
597 * symtab.h (find_pc_line_symtab): Declare.
598 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
599 find_pc_symtab.
600 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
601 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
602 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
603 * tui/tui-win.c (make_visible_with_new_height): Ditto.
604 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
605 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
606
607 2014-11-15 Doug Evans <xdje42@gmail.com>
608
609 * symtab.c (expand_symtab_containing_pc): Renamed from
610 find_pc_sect_symtab_via_partial. All callers updated.
611
612 2014-11-15 Yao Qi <yao@codesourcery.com>
613
614 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
615
616 2014-11-14 Joel Brobecker <brobecker@adacore.com>
617
618 * common/common-defs.h: Move <stdarg.h> #include ahead of
619 <stdio.h> #include.
620
621 2014-11-14 Pedro Alves <palves@redhat.com>
622
623 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
624 [!PHONY_ICONV] (gdb_iconv): New function.
625 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
626
627 2014-11-13 Doug Evans <dje@google.com>
628
629 PR symtab/17591
630 * dwarf2read.c (find_slot_in_mapped_hash): Handle
631 "(anonymous namespace)".
632
633 2014-11-13 Doug Evans <dje@google.com>
634
635 * dwarf2read.c (update_enumeration_type_from_children): Avoid
636 infinite loop.
637
638 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
639
640 * NEWS (maint set target-async): Fix typo.
641
642 2014-11-12 Pedro Alves <palves@redhat.com>
643
644 * infrun.c (enum infwait_states, infwait_state): Delete.
645
646 2014-11-12 Pedro Alves <palves@redhat.com>
647
648 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
649 Rewrite stepping over a permanent breakpoint.
650 (thread_still_needs_step_over, proceed): Don't set
651 stepping_over_breakpoint for permanent breakpoints.
652 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
653 single-step breakpoints out of the target on hardware step
654 targets.
655 (process_event_stop_test): If stepping a permanent breakpoint
656 doesn't hit the step-resume breakpoint, delete the step-resume
657 breakpoint.
658 (switch_back_to_stepped_thread): Also check if the stepped thread
659 has advanced already on hardware step targets.
660 (currently_stepping): Return true if the thread stepped a
661 breakpoint.
662
663 2014-11-12 Pedro Alves <palves@redhat.com>
664
665 Mark locations as permanent, not the whole breakpoint.
666 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
667 (mark_breakpoints_out): Don't mark permanent breakpoints as
668 uninserted.
669 (breakpoint_init_inferior): Use mark_breakpoints_out.
670 (breakpoint_here_p): Adjust.
671 (bpstat_stop_status, describe_other_breakpoints): Remove handling
672 of permanent breakpoints.
673 (make_breakpoint_permanent): Mark each location as permanent,
674 instead of marking the breakpoint.
675 (add_location_to_breakpoint): If the location is permanent, mark
676 it as such, and as inserted.
677 (init_breakpoint_sal): Don't make the breakpoint permanent here.
678 (bp_location_compare, update_global_location_list): Adjust.
679 (update_breakpoint_locations): Don't make the breakpoint permanent
680 here.
681 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
682 breakpoints.
683 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
684 (struct bp_location) <permanent>: New field.
685 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
686 reference to bp_permanent.
687
688 2014-11-12 Pedro Alves <palves@redhat.com>
689
690 * arch-utils.c (default_skip_permanent_breakpoint): New function.
691 * arch-utils.h (default_skip_permanent_breakpoint): New
692 declaration.
693 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
694 Install default_skip_permanent_breakpoint as default method.
695 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
696 (i386_gdbarch_init): Don't install it.
697 * infrun.c (resume): Assume there's always a
698 gdbarch_skip_permanent_breakpoint implementation.
699 * gdbarch.h, gdbarch.c: Regenerate.
700
701 2014-11-11 Daniel Colascione <dancol@dancol.org>
702
703 Warn about cross-PID-namespace debugging.
704 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
705 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
706 * linux-thread-db.c (check_pid_namespace_match): New function.
707 (thread_db_inferior_created): Call it.
708
709 2014-11-10 Doug Evans <xdje42@gmail.com>
710
711 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
712 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
713
714 2014-11-10 Doug Evans <xdje42@gmail.com>
715
716 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
717
718 2014-11-10 Doug Evans <xdje42@gmail.com>
719
720 PR symtab/17564
721 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
722 (lookup_static_symbol): Move definition to new location and rewrite.
723 (lookup_symbol_in_objfile): New function.
724 (lookup_symbol_global_iterator_cb): Call it.
725
726 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
727
728 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
729
730 2014-11-07 Pedro Alves <palves@redhat.com>
731
732 * infrun.c (process_event_stop_test) <subroutine check>: Don't
733 check if we did a "nexti" inside a prologue.
734 * symtab.c (in_prologue): Delete function.
735 * symtab.h (in_prologue): Delete declaration.
736
737 2014-11-06 Doug Evans <xdje42@gmail.com>
738
739 * symtab.h (lookup_global_symbol): Improve function comment.
740
741 2014-11-06 Doug Evans <xdje42@gmail.com>
742
743 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
744 All callers updated.
745 * symtab.h (lookup_global_symbol): Update decl.
746 (lookup_static_symbol): Move decl to better location.
747
748 2014-11-06 Doug Evans <xdje42@gmail.com>
749
750 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
751
752 2014-11-06 Doug Evans <xdje42@gmail.com>
753
754 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
755 All callers updated.
756 (lookup_symbol_in_all_objfiles): Renamed from
757 lookup_symbol_aux_symtabs. All callers updated.
758 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
759 All callers updated.
760 (lookup_symbol_in_objfile_symtabs): Renamed from
761 lookup_symbol_aux_objfile. All callers updated.
762
763 2014-11-06 Doug Evans <xdje42@gmail.com>
764
765 * symtab.c (lookup_symbol_in_block): Renamed from
766 lookup_symbol_aux_block. All callers updated.
767
768 2014-11-06 Doug Evans <xdje42@gmail.com>
769
770 * symtab.c (lookup_static_symbol): Renamed from
771 lookup_static_symbol_aux. All callers updated.
772 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
773 All callers updated.
774
775 2014-11-06 Doug Evans <xdje42@gmail.com>
776
777 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
778 * block.c (block_lookup_symbol): Use it.
779 * cp-support.c (make_symbol_overload_list_block): Use it.
780 * symtab.c (iterate_over_symbols): Use it.
781
782 2014-11-06 Doug Evans <xdje42@gmail.com>
783
784 * symtab.c (lookup_block_symbol): Moved to ...
785 * block.c (block_lookup_symbol): ... here and renamed.
786 All callers updated.
787 * block.h (block_lookup_symbol): Declare.
788 * symtab.h (lookup_block_symbol): Delete.
789
790 2014-11-06 Doug Evans <xdje42@gmail.com>
791
792 * ada-lang.c (ada_make_symbol_completion_list): Use
793 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
794 * symtab.c (lookup_objfile_from_block): Ditto.
795
796 2014-11-06 Doug Evans <xdje42@gmail.com>
797
798 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
799 TYPE_CODE_STRUCT.
800
801 2014-11-06 Doug Evans <xdje42@gmail.com>
802
803 * objfiles.c (get_objfile_arch): Constify.
804 * objfiles.h (get_objfile_arch): Update prototype.
805 * solib.c (solib_global_lookup): Fetch arch from objfile,
806 not target_gdbarch.
807
808 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
809
810 * nios2-tdep.c (wild_insn): Delete.
811 (profiler_insn, irqentry_insn): Delete.
812 (nios2_match_sequence): Delete.
813 (nios2_analyze_prologue): Update comments. Remove matching
814 of obsolete profiler_insn and irqentry_insn sequences.
815
816 2014-11-05 Alan Modra <amodra@gmail.com>
817
818 * charset.c (convert_between_encodings): Shrink obstack using
819 obstack_blank_fast.
820 * minsyms.c (install_minimal_symbols): Likewise.
821 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
822 to char* before doing pointer arithmetic.
823
824 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
825
826 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
827
828 2014-11-04 Pedro Alves <palves@redhat.com>
829
830 * breakpoint.c (breakpoint_thread_match): Delete function.
831 * breakpoint.h (breakpoint_thread_match): Delete declaration.
832
833 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
834
835 PR c++/17494
836 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
837 the method args also under EVAL_SKIP when evaluating method
838 calls under EVAL_SKIP.
839
840 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
841
842 * dwarf2loc.c (read_pieced_value): Do big endian
843 processing only if gdb_regnum is not -1.
844 (write_pieced_value): Ditto.
845
846 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
847
848 * arm-linux-tdep.c (arm_linux_init_abi): Use
849 info.byte_order_for_code to choose endianity of breakpoint
850 instructions snippets.
851
852 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
853
854 * arm-tdep.c (extract_arm_insn): Use
855 gdbarch_byte_order_for_code to read arm instruction.
856
857 2014-11-02 Doug Evans <xdje42@gmail.com>
858
859 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
860
861 2014-11-02 Doug Evans <xdje42@gmail.com>
862
863 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
864 main_subfile before returning.
865
866 2014-10-31 Doug Evans <xdje42@gmail.com>
867
868 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
869 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
870
871 2014-10-31 Doug Evans <xdje42@gmail.com>
872
873 * valops.c (value_cast_pointers): Fix whitespace.
874 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
875 Ditto.
876
877 2014-10-30 Doug Evans <dje@google.com>
878
879 * NEWS: Mention ability add attributes to gdb.Objfile and
880 gdb.Progspace objects.
881 * python/py-objfile.c (objfile_object): New member dict.
882 (objfpy_dealloc): Py_XDECREF dict.
883 (objfpy_initialize): Initialize dict.
884 (objfile_getset): Add __dict__.
885 (objfile_object_type): Set tp_dictoffset member.
886 * python/py-progspace.c (progspace_object): New member dict.
887 (pspy_dealloc): Py_XDECREF dict.
888 (pspy_initialize): Initialize dict.
889 (pspace_getset): Add __dict__.
890 (pspace_object_type): Set tp_dictoffset member.
891
892 2014-10-30 Yao Qi <yao@codesourcery.com>
893
894 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
895 replace '\\' with '\\\\'.
896
897 2014-10-29 Joel Brobecker <brobecker@adacore.com>
898
899 GDB 7.8.1 released.
900
901 2014-10-29 Pedro Alves <palves@redhat.com>
902
903 PR gdb/17408
904 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
905 instead of assuming a thread with a stepping range is always
906 stepping.
907
908 2014-10-29 Pedro Alves <palves@redhat.com>
909
910 PR python/17372
911 * event-top.c (change_line_handler): Call
912 gdb_rl_callback_handler_remove instead of
913 rl_callback_handler_remove.
914 (callback_handler_installed): New global.
915 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
916 (gdb_rl_callback_handler_reinstall): New functions.
917 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
918 gdb_rl_callback_handler_install instead of
919 rl_callback_handler_remove and rl_callback_handler_install.
920 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
921 instead of rl_callback_handler_remove.
922 * event-top.h (gdb_rl_callback_handler_remove)
923 (gdb_rl_callback_handler_install)
924 (gdb_rl_callback_handler_reinstall): New declarations.
925 * infrun.c (reinstall_readline_callback_handler_cleanup): New
926 cleanup function.
927 (fetch_inferior_event): Install it.
928 * top.c (gdb_readline_wrapper_line) Call
929 gdb_rl_callback_handler_remove instead of
930 rl_callback_handler_remove.
931 (gdb_readline_wrapper_cleanup): Don't call
932 rl_callback_handler_install.
933
934 2014-10-29 Pedro Alves <palves@redhat.com>
935
936 * event-top.c (command_line_handler): Clear the first byte of
937 linebuffer, when it is first allocated.
938
939 2014-10-29 Pedro Alves <palves@redhat.com>
940
941 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
942 TRY_CATCH.
943
944 2014-10-29 Pedro Alves <palves@redhat.com>
945
946 PR tui/16138
947 PR tui/17519
948 * tui/tui-interp.c (tui_is_toplevel): Delete global.
949 (tui_allowed_p): Delete function.
950 * tui/tui.c: Include "interps.h".
951 (tui_enable): Don't use tui_allowed_p. Error out here with
952 detailed error messages if the TUI is the top level interpreter,
953 or if output is not a terminal. Use newterm instead of initscr,
954 and error out if initializing the terminal fails. Also error out if
955 the terminal doesn't support cursor addressing.
956 * tui/tui.h (tui_allowed_p): Delete declaration.
957
958 2014-10-29 Joel Brobecker <brobecker@adacore.com>
959
960 * arm-tdep.c (arm_skip_stack_protector): Return early if
961 address loaded by first "ldr" instruction does not have
962 a corresponding minimal symbol. Update comment.
963
964 2014-10-29 Yao Qi <yao@codesourcery.com>
965
966 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
967 loaded address correctly of ldr instruction.
968
969 2014-10-28 Pedro Alves <palves@redhat.com>
970
971 PR gdb/12623
972 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
973 field.
974 * infrun.c (resume) <stepping breakpoint instruction>: Set the
975 thread's stepped_breakpoint field. Skip if reverse debugging.
976 Add comment.
977 (init_thread_stepping_state, handle_signal_stop): Clear the
978 thread's stepped_breakpoint field.
979
980 2014-10-27 Pedro Alves <palves@redhat.com>
981
982 * remote.c (remote_thread_alive): New, factored out from ...
983 (remote_thread_alive): ... this.
984 (remote_update_thread_list): Bail out before deleting threads if
985 the target returned an empty list, and, the current thread has a
986 magic/fake ptid.
987
988 2014-10-27 Pedro Alves <palves@redhat.com>
989
990 * infrun.c (handle_signal_stop): Also skip handlers when a random
991 signal arrives while handling a "stepi" or a "nexti". Set the
992 thread's 'step_after_step_resume_breakpoint' flag.
993
994 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
995
996 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
997 (arm_record_ld_st_imm_offset): Reimplement to cover all
998 load/store cases for ARM opcode 010.
999 (arm_record_ld_st_multiple): Reimplement to cover all
1000 load/store cases for ARM opcode 100.
1001
1002 2014-10-26 Doug Evans <xdje42@gmail.com>
1003
1004 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1005
1006 2014-10-26 Doug Evans <xdje42@gmail.com>
1007
1008 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1009 parameter "kind" to "block_index".
1010 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1011 "block_index".
1012 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1013
1014 2014-10-26 Doug Evans <xdje42@gmail.com>
1015
1016 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1017
1018 2014-10-26 Doug Evans <xdje42@gmail.com>
1019
1020 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1021 obstack_alloc.
1022
1023 2014-10-26 Doug Evans <xdje42@gmail.com>
1024
1025 * parser-defs.h (block_found): Move decl from here ...
1026 * symtab.h (block_found): ... to here.
1027
1028 2014-10-26 Doug Evans <xdje42@gmail.com>
1029
1030 * symtab.h (struct field_of_this_result): Fix typo in comment.
1031 (lookup_symbol_in_language): Move function comment here.
1032 (lookup_symbol): Improve function comment.
1033 (basic_lookup_symbol_nonlocal): Ditto.
1034 (lookup_symbol_static, lookup_symbol_global): Ditto.
1035 (lookup_symbol_aux_block): Ditto.
1036 (lookup_language_this): Add function comment.
1037 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1038 function comment.
1039 (lookup_block_symbol): Improve function comment.
1040 (lookup_struct): Fix capitalization in function comment.
1041 (lookup_transparent_type): Add function comment.
1042 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1043 Improve function comment.
1044 (lookup_objfile_from_block): Add function comment.
1045 * symtab.c (lookup_symbol_in_language): Update function comment.
1046 (lookup_symbol, lookup_language_this): Ditto.
1047 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1048 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1049 (basic_lookup_symbol_nonlocal): Ditto.
1050 (lookup_symbol_static, lookup_symbol_global): Ditto.
1051 (lookup_transparent_type, lookup_block_symbol): Ditto.
1052
1053 2014-10-25 Doug Evans <xdje42@gmail.com>
1054
1055 * symtab.c (types_info): Delete forward decl.
1056 (functions_info, variables_info, sources_info): Ditto.
1057 (_initialize_symtab): Rewrite forward decl to use
1058 initialize_file_ftype.
1059
1060 2014-10-25 Doug Evans <xdje42@gmail.com>
1061
1062 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1063
1064 2014-10-25 Doug Evans <xdje42@gmail.com>
1065
1066 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1067 of local var child_die.
1068
1069 2014-10-24 Don Breazeal <donb@codesourcery.com>
1070
1071 * infrun.c (follow_fork_inferior): Update fork message printing
1072 to use target_terminal_ours_for_output instead of
1073 target_terminal_ours, to use _() for all format strings, to print
1074 "vfork" instead of "fork" for vforks, and to add a detach message.
1075 (handle_vfork_child_exec_or_exit): Update message printing to use
1076 target_terminal_ours_for_output instead of target_terminal_ours, to
1077 use _() for all format strings, and to fix some formatting.
1078
1079 2014-10-24 Pedro Alves <palves@redhat.com>
1080
1081 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1082 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1083 * config/vax/vax.mh: Delete.
1084 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1085 obsolete configurations section.
1086 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1087 * vax-nat.c: Delete file.
1088
1089 2014-10-24 Pedro Alves <palves@redhat.com>
1090
1091 * NEWS (Removed targets): Add OS/arch column.
1092
1093 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1094
1095 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1096 on the arg type of a constructor only if it is of reference type.
1097
1098 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1099
1100 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1101 accessors and constants from nios2 opcodes update.
1102 (nios2_get_next_pc): Likewise.
1103
1104 2014-10-19 Doug Evans <xdje42@gmail.com>
1105
1106 * gdbthread.h (set_running): Fix comment.
1107 (set_executing, finish_thread_state): Fix comment.
1108
1109 2014-10-18 Doug Evans <xdje42@gmail.com>
1110
1111 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1112
1113 2014-10-17 Doug Evans <dje@google.com>
1114
1115 * NEWS: Mention new event gdb.clear_objfiles.
1116 * python/py-event.h (emit_clear_objfiles_event): Clear
1117 * python/py-events.h (events_object): New member clear_objfiles.
1118 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1119 event.
1120 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1121 emit clear_objfiles event.
1122 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1123 function.
1124 (emit_clear_objfiles_event): New function.
1125 (clear_objfiles): New event.
1126 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1127 Declare.
1128 * python/python.c (_initialize_python): Call
1129 gdbpy_initialize_clear_objfiles_event.
1130
1131 2014-10-17 Doug Evans <dje@google.com>
1132
1133 * NEWS: Mention new gdb.Objfile.progspace attribute.
1134 * python/py-objfile.c (objfpy_get_progspace): New function.
1135 (objfile_getset): New entry for "progspace".
1136
1137 2014-10-17 Pedro Alves <palves@redhat.com>
1138
1139 PR gdb/17471
1140 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1141 returns a copy of the input.
1142 (run_command_1, continue_command, step_1, jump_command)
1143 (signal_command, until_command, advance_command, finish_command)
1144 (attach_command): Adjust and install a cleanup to free the
1145 stripped args.
1146
1147 2014-10-17 Pedro Alves <palves@redhat.com>
1148
1149 PR gdb/17300
1150 * infcmd.c (continue_1): If continuing all threads in the
1151 foreground, make sure the inferior's terminal settings are put in
1152 effect.
1153
1154 2014-10-17 Pedro Alves <palves@redhat.com>
1155
1156 PR gdb/17472
1157 * annotate.c (annotate_breakpoints_invalid): Use
1158 target_terminal_our_for_output instead of target_terminal_ours.
1159 Give back the terminal to the target.
1160 (annotate_frames_invalid): Likewise.
1161
1162 2014-10-17 Pedro Alves <palves@redhat.com>
1163
1164 * target.c (enum terminal_state): New enum.
1165 (terminal_state): New global.
1166 (target_terminal_init): New function.
1167 (target_terminal_inferior): Skip if inferior already owns the
1168 terminal.
1169 (target_terminal_ours, target_terminal_ours_for_output): New
1170 functions.
1171 * target.h (target_terminal_init): Convert to function prototype.
1172 (target_terminal_ours_for_output): Convert to function prototype
1173 and tweak comment.
1174 (target_terminal_ours): Convert to function prototype and tweak
1175 comment.
1176 * windows-nat.c (do_initial_windows_stuff): Call
1177 target_terminal_init instead of child_terminal_init_with_pgrp.
1178
1179 2014-10-17 Pedro Alves <palves@redhat.com>
1180
1181 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1182 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1183 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1184 solib-osf.c.
1185 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1186 * ada-lang.h [__alpha__ && __osf__]
1187 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1188 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1189 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1190 GDB_OSABI_OSF1.
1191 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1192 files.
1193 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1194 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1195 * configure: Regenerate.
1196 * configure.ac: Remove references to osf.
1197 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1198 section. Remove all other references to osf.
1199 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1200 Remove all other references to osf.
1201 * dec-thread.c: Delete file.
1202 * defs.h (GDB_OSABI_OSF1): Delete.
1203 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1204 defined.
1205 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1206 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1207 Delete code.
1208 (unconditionally_kill_inferior)
1209 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1210 * solib-osf.c: Delete file.
1211
1212 2014-10-17 Pedro Alves <palves@redhat.com>
1213
1214 * remote.c (clear_threads_listing_context): Move higher up, out of
1215 the HAVE_LIBEXPAT guard.
1216
1217 2014-10-16 Tristan Gingold <gingold@adacore.com>
1218
1219 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1220 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1221 on amd64.
1222
1223 2014-10-15 Pedro Alves <palves@redhat.com>
1224
1225 * dec-thread.c (dec_thread_count_gdb_threads)
1226 (dec_thread_add_gdb_thread): Delete.
1227 (dec_thread_update_thread_list): Delete.
1228 (dec_thread_find_new_threads): Rename to ...
1229 (dec_thread_update_thread_list): ... this. Delete GDB-size
1230 threads that are no longer found in dec_thread_list.
1231 (resync_thread_list): Delete.
1232 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1233 resync_thread_list.
1234
1235 2014-10-15 Pedro Alves <palves@redhat.com>
1236
1237 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1238 * remote.c (remote_update_thread_list): Skip calling prune_threads
1239 if any thread listing method is supported, and instead walk over
1240 the set of remote threads listed, deleting those that are not
1241 found in GDB's thread list.
1242
1243 2014-10-15 Pedro Alves <palves@redhat.com>
1244
1245 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1246 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1247 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1248 (bsd_uthread_target): Adjust.
1249 * corelow.c (core_open): Adjust.
1250 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1251 (dec_thread_update_thread_list): New function.
1252 (init_dec_thread_ops): Adjust.
1253 * gdbthread.h (prune_threads): New declaration.
1254 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1255 (thread_db_update_thread_list): ... this. Call prune_threads.
1256 (init_thread_db_ops): Adjust.
1257 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1258 (procfs_update_thread_list): ... this. Call prune_threads.
1259 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1260 Adjust.
1261 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1262 (obsd_update_thread_list): ... this. Call prune_threads.
1263 (obsd_add_target): Adjust.
1264 * procfs.c (procfs_target): Adjust.
1265 (procfs_notice_thread): Update comment.
1266 (procfs_find_new_threads): Rename to ...
1267 (procfs_update_thread_list): ... this. Call prune_threads.
1268 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1269 comment.
1270 (ravenscar_wait): Adjust.
1271 (ravenscar_find_new_threads): Rename to ...
1272 (ravenscar_update_thread_list): ... this. Call prune_threads.
1273 (init_ravenscar_thread_ops): Adjust.
1274 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1275 (record_btrace_update_thread_list): ... this. Adjust comment.
1276 (init_record_btrace_ops): Adjust.
1277 * remote.c (remote_threads_info): Rename to ...
1278 (remote_update_thread_list): ... this. Call prune_threads.
1279 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1280 Adjust.
1281 * sol-thread.c (check_for_thread_db): Adjust.
1282 (sol_find_new_threads_callback): Rename to ...
1283 (sol_update_thread_list_callback): ... this.
1284 (sol_find_new_threads): Rename to ...
1285 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1286 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1287 * target-delegates.c: Regenerate.
1288 * target.c (target_find_new_threads): Rename to ...
1289 (target_update_thread_list): ... this.
1290 * target.h (struct target_ops): Rename to_find_new_threads field
1291 to to_update_thread_list.
1292 (target_find_new_threads): Rename to ...
1293 (target_update_thread_list): ... this.
1294 * thread.c (prune_threads): Make extern.
1295 (update_thread_list): Adjust.
1296
1297 2014-10-15 Pedro Alves <palves@redhat.com>
1298
1299 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1300 Add describing comment. Return -1 if the qL packet is not
1301 supported.
1302 (struct thread_item, thread_item_t): Move higher up in
1303 the file. Add comments.
1304 (struct threads_parsing_context): Move higher up in
1305 the file, add comments, and remote to ...
1306 (struct threads_listing_context): ... this.
1307 (remote_newthread_step): Don't add the thread to GDB's thread
1308 database here. Instead push it to the thread_listing_context
1309 list.
1310 (remote_find_new_threads): Rename to ...
1311 (remote_get_threads_with_ql): ... this. Add target_ops and
1312 targets_listing_context parameters. Pass down context.
1313 (start_thread): Adjust.
1314 (clear_threads_parsing_context): Rename to ...
1315 (clear_threads_listing_context): ... this.
1316 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1317 remote_threads_info.
1318 (remote_get_threads_with_qthreadinfo): Ditto.
1319 (remote_threads_info): Reimplement.
1320
1321 2014-10-15 Pedro Alves <palves@redhat.com>
1322
1323 * infrun.c (resume): Don't force displaced-stepping for all
1324 single-steps on software single-stepping archs.
1325
1326 2014-10-15 Pedro Alves <palves@redhat.com>
1327
1328 * breakpoint.c (single_step_breakpoints): Delete global.
1329 (insert_single_step_breakpoint): Adjust to store the breakpoint
1330 pointer in the current thread.
1331 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1332 (cancel_single_step_breakpoints): Delete functions.
1333 (breakpoint_has_location_inserted_here): Make extern.
1334 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1335 breakpoint list.
1336 * breakpoint.h (breakpoint_has_location_inserted_here): New
1337 declaration.
1338 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1339 (cancel_single_step_breakpoints): Remove declarations.
1340 * gdbthread.h (struct thread_control_state)
1341 <single_step_breakpoints>: New field.
1342 (delete_single_step_breakpoints)
1343 (thread_has_single_step_breakpoints_set)
1344 (thread_has_single_step_breakpoint_here): New declarations.
1345 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1346 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1347 (singlestep_pc): Delete globals.
1348 (infrun_thread_ptid_changed): Remove references to removed
1349 globals.
1350 (resume_cleanups): Delete the current thread's single-step
1351 breakpoints.
1352 (maybe_software_singlestep): Remove references to removed globals.
1353 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1354 delete_single_step_breakpoints.
1355 (init_wait_for_inferior): Remove references to removed globals.
1356 (delete_thread_infrun_breakpoints): Delete the thread's
1357 single-step breakpoints too.
1358 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1359 single-step breakpoints here.
1360 (delete_stopped_threads_single_step_breakpoints): New function.
1361 (adjust_pc_after_break): Adjust to use
1362 thread_has_single_step_breakpoints_set.
1363 (handle_inferior_event): Remove references to removed globals.
1364 Use delete_stopped_threads_single_step_breakpoints.
1365 (handle_signal_stop): Adjust to per-thread single-step
1366 breakpoints. Swap test order to do cheaper tests first.
1367 (switch_back_to_stepped_thread): Extend debug output. Remove
1368 references to removed globals.
1369 * record-full.c (record_full_wait_1): Adjust to per-thread
1370 single-step breakpoints.
1371 * thread.c (delete_single_step_breakpoints)
1372 (thread_has_single_step_breakpoints_set)
1373 (thread_has_single_step_breakpoint_here): New functions.
1374 (clear_thread_inferior_resources): Also delete the thread's
1375 single-step breakpoints.
1376
1377 2014-10-15 Pedro Alves <palves@redhat.com>
1378
1379 * thread.c (delete_thread_breakpoint): New function.
1380 (delete_step_resume_breakpoint)
1381 (delete_exception_resume_breakpoint): Use it.
1382 (delete_at_next_stop): New function.
1383 (clear_thread_inferior_resources): Use delete_at_next_stop.
1384
1385 2014-10-15 Pedro Alves <palves@redhat.com>
1386
1387 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1388 (breakpoint_inserted_here_p): ... here. Remove special case for
1389 software single-step breakpoints.
1390 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1391 (software_breakpoint_inserted_here_p): ... here. Remove special
1392 case for software single-step breakpoints.
1393 (bp_target_info_copy_insertion_state)
1394 (deprecated_insert_raw_breakpoint)
1395 (deprecated_remove_raw_breakpoint): Delete functions.
1396 * breakpoint.h (deprecated_insert_raw_breakpoint)
1397 (deprecated_remove_raw_breakpoint): Remove declarations.
1398
1399 2014-10-15 Pedro Alves <palves@redhat.com>
1400
1401 PR breakpoints/9649
1402 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1403 Delete array globals.
1404 (single_step_breakpoints): New global.
1405 (breakpoint_xfer_memory): Remove special handling for single-step
1406 breakpoints.
1407 (update_breakpoints_after_exec): Delete bp_single_step
1408 breakpoints.
1409 (detach_breakpoints): Remove special handling for single-step
1410 breakpoints.
1411 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1412 (bpstat_stop_status): Add comment.
1413 (bpstat_what, bptype_string, print_one_breakpoint_location)
1414 (adjust_breakpoint_address, init_bp_location): Handle
1415 bp_single_step.
1416 (new_single_step_breakpoint): New function.
1417 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1418 handling for single-step breakpoints.
1419 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1420 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1421 Rewrite.
1422 (detach_single_step_breakpoints, find_single_step_breakpoint):
1423 Delete functions.
1424 (breakpoint_has_location_inserted_here): New function.
1425 (single_step_breakpoint_inserted_here_p): Rewrite.
1426 * breakpoint.h: Remove FIXME.
1427 (enum bptype) <bp_single_step>: New enum value.
1428 (insert_single_step_breakpoint): Update comment.
1429 * infrun.c (resume_cleanups)
1430 (delete_step_thread_step_resume_breakpoint): Remove single-step
1431 breakpoints.
1432 (fetch_inferior_event): Install a cleanup that removes infrun
1433 breakpoints.
1434 (switch_back_to_stepped_thread) <expect thread advanced also>:
1435 Clear step-over info.
1436
1437 2014-10-15 Pedro Alves <palves@redhat.com>
1438
1439 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1440 (delete_thread_infrun_breakpoints): New function, with parts
1441 salvaged from delete_step_resume_breakpoint_callback.
1442 (delete_step_thread_step_resume_breakpoint): Delete.
1443 (for_each_just_stopped_thread_callback_func): New typedef.
1444 (for_each_just_stopped_thread): New function.
1445 (delete_just_stopped_threads_infrun_breakpoints): New function.
1446 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1447 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1448 ... this. Adjust.
1449 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1450
1451 2014-10-15 Pedro Alves <palves@redhat.com>
1452
1453 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1454 trying to step past a non-steppable watchpoint.
1455 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1456 field.
1457 * infrun.c (struct step_over_info): Add new field
1458 'nonsteppable_watchpoint_p' and adjust comments.
1459 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1460 Adjust.
1461 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1462 (stepping_past_nonsteppable_watchpoint): New function.
1463 (step_over_info_valid_p): Also return true if stepping past a
1464 nonsteppable watchpoint.
1465 (proceed): Adjust call to set_step_over_info. Remove reference to
1466 init_infwait_state.
1467 (init_wait_for_inferior): Remove reference to init_infwait_state.
1468 (waiton_ptid): Delete global.
1469 (struct execution_control_state)
1470 <stepped_after_stopped_by_watchpoint>: Delete field.
1471 (wait_for_inferior, fetch_inferior_event): Always pass
1472 minus_one_ptid to target_wait.
1473 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1474 field.
1475 (init_infwait_state): Delete function.
1476 (handle_inferior_event): Remove infwait_state handling.
1477 (handle_signal_stop) <watchpoints handling>: Adjust after
1478 stepped_after_stopped_by_watchpoint removal. Don't remove
1479 breakpoints here nor set infwait_state. Set the thread's
1480 stepping_over_watchpoint flag, and call keep_going instead.
1481 (keep_going): Handle stepping_over_watchpoint. Adjust
1482 set_step_over_info calls.
1483 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1484 function.
1485
1486 2014-10-15 Pedro Alves <palves@redhat.com>
1487
1488 * infrun.c (step_over_info_valid_p): New function.
1489 (resume): Use step_over_info_valid_p instead of checking the
1490 threads's trap_expected flag.
1491
1492 2014-10-15 Doug Evans <dje@google.com>
1493 Walfred Tedeschi <walfred.tedeschi@intel.com>
1494
1495 PR python/17364
1496 * python/lib/gdb/__init__.py (packages): Add "printer".
1497 * python/lib/gdb/command/bound_registers.py: Moved to ...
1498 * python/lib/gdb/printer/bound_registers.py: ... here.
1499 Add printer to global set of builtin printers. Rename printer from
1500 "bound" to "mpx_bound128".
1501 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1502 registered as global "builtin" printer.
1503 (add_builtin_pretty_printer): New function.
1504 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1505 gdb/printer/__init__.py.
1506
1507 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1508
1509 * Makefile.in (SFILES): Remove d-support.c.
1510 (COMMON_OBS): Remove d-support.o.
1511 * d-lang.h (d_parse_symbol): Remove declaration.
1512 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1513 * d-support.c: Remove file.
1514
1515 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1516
1517 * gdb/infrun.c (process_event_stop_test): Apply
1518 gdbarch_addr_bits_remove to longjmp resume address.
1519
1520 2014-10-15 Pedro Alves <palves@redhat.com>
1521
1522 * regformats/microblaze.dat: Delete file.
1523
1524 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1525
1526 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1527 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1528
1529 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1530
1531 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1532 as non-trivial.
1533
1534 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1535
1536 PR c++/13403
1537 PR c++/15154
1538 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1539 with qualified args.
1540
1541 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1542
1543 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1544 of the case where the second operand is a pointer.
1545 <BINOP_SUB>: Likewise.
1546
1547 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1548
1549 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1550 only if it is not NULL.
1551 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1552 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1553 (struct probe_ops) <clear_semaphore>: Likewise.
1554 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1555 not NULL.
1556 (stop_tracing): Likewise, for clear_semaphore.
1557
1558 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1559
1560 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1561 using language_c, instead of current_language.
1562
1563 2014-10-13 Doug Evans <dje@google.com>
1564
1565 * python/py-objfile.c (objfpy_initialize): New function.
1566 (objfpy_new, objfile_to_objfile_object): Call it.
1567 * python/py-progspace.c (pspy_initialize): New function.
1568 (pspy_new, pspace_to_pspace_object): Call it.
1569
1570 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1571 Jan Kratochvil <jan.kratochvil@redhat.com>
1572
1573 Fix "save breakpoints" for "catch" command.
1574 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1575 newline.
1576
1577 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1578
1579 Fix "save breakpoints" for "disable $bpnum" command.
1580 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1581
1582 2014-10-10 Pedro Alves <palves@redhat.com>
1583
1584 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1585 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1586 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1587 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1588 and been removed.
1589 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1590 * configure.ac: Remove references to IRIX.
1591 * configure.host: Add *-*-irix* to the obsolete hosts section.
1592 Remove all other references to irix.
1593 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1594 Delete files.
1595
1596 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1597
1598 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1599 isn't valid, release the tdesc arch data and return NULL.
1600
1601 2014-10-10 Pedro Alves <palves@redhat.com>
1602
1603 * linux-tdep.c: Include observer.h.
1604 (linux_inferior_data): New global.
1605 (struct linux_info): New structure.
1606 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1607 (get_linux_inferior_data): New functions.
1608 (linux_vsyscall_range): Rename to ...
1609 (linux_vsyscall_range_raw): ... this.
1610 (linux_vsyscall_range): New function; handles caching.
1611 (_initialize_linux_tdep): Register linux_inferior_data. Install
1612 inferior_exit and inferior_appeared observers.
1613
1614 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1615 Pedro Alves <palves@redhat.com>
1616
1617 PR symtab/14466
1618 * solib-svr4.c (svr4_read_so_list): Rename to ...
1619 (svr4_current_sos_1): ... this and change the function comment.
1620 (svr4_current_sos): New function.
1621
1622 2014-10-10 Pedro Alves <palves@redhat.com>
1623
1624 * arch-utils.c (default_vsyscall_range): New function.
1625 * arch-utils.h (default_vsyscall_range): New declaration.
1626 * gdbarch.sh (vsyscall_range): New hook.
1627 * gdbarch.h, gdbarch.c: Regenerate.
1628 * linux-tdep.c (linux_vsyscall_range): New function.
1629 (linux_init_abi): Install linux_vsyscall_range as
1630 vsyscall_range gdbarch hook.
1631 * memrange.c (address_in_mem_range): New function.
1632 * memrange.h (address_in_mem_range): New declaration.
1633 * symfile-mem.c (find_vdso_size): Delete function.
1634 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1635
1636 2014-10-10 Pedro Alves <palves@redhat.com>
1637
1638 * infrun.c (normal_stop): Fix typo in comment.
1639
1640 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1641
1642 PR tdep/9390
1643 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1644 typo when using logical AND to determine instruction type.
1645
1646 2014-10-09 Yao Qi <yao@codesourcery.com>
1647
1648 * infrun.c (handle_signal_stop): Remove local variable
1649 'printed'.
1650
1651 2014-10-08 Stan Shebs <stan@codesourcery.com>
1652
1653 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1654
1655 2014-10-08 Gary Benson <gbenson@redhat.com>
1656
1657 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1658
1659 2014-10-08 Gary Benson <gbenson@redhat.com>
1660
1661 * common/common-defs.h: Include common-exceptions.h.
1662 * exceptions.h: Do not include common-exceptions.h.
1663
1664 2014-10-08 Gary Benson <gbenson@redhat.com>
1665
1666 * common/common-defs.h: Include cleanups.h.
1667 * common/common-exceptions.c: Do not include cleanups.h.
1668 * utils.h: Likewise.
1669
1670 2014-10-08 Gary Benson <gbenson@redhat.com>
1671
1672 * ada-lang.c: Do not include exceptions.h.
1673 * ada-valprint.c: Likewise.
1674 * amd64-tdep.c: Likewise.
1675 * auto-load.c: Likewise.
1676 * block.c: Likewise.
1677 * break-catch-throw.c: Likewise.
1678 * breakpoint.c: Likewise.
1679 * btrace.c: Likewise.
1680 * c-lang.c: Likewise.
1681 * cli/cli-cmds.c: Likewise.
1682 * cli/cli-interp.c: Likewise.
1683 * cli/cli-script.c: Likewise.
1684 * completer.c: Likewise.
1685 * corefile.c: Likewise.
1686 * corelow.c: Likewise.
1687 * cp-abi.c: Likewise.
1688 * cp-support.c: Likewise.
1689 * cp-valprint.c: Likewise.
1690 * darwin-nat.c: Likewise.
1691 * dwarf2-frame-tailcall.c: Likewise.
1692 * dwarf2-frame.c: Likewise.
1693 * dwarf2loc.c: Likewise.
1694 * dwarf2read.c: Likewise.
1695 * eval.c: Likewise.
1696 * event-loop.c: Likewise.
1697 * event-top.c: Likewise.
1698 * f-valprint.c: Likewise.
1699 * frame-unwind.c: Likewise.
1700 * frame.c: Likewise.
1701 * gdbtypes.c: Likewise.
1702 * gnu-v2-abi.c: Likewise.
1703 * gnu-v3-abi.c: Likewise.
1704 * guile/scm-auto-load.c: Likewise.
1705 * guile/scm-breakpoint.c: Likewise.
1706 * guile/scm-cmd.c: Likewise.
1707 * guile/scm-frame.c: Likewise.
1708 * guile/scm-lazy-string.c: Likewise.
1709 * guile/scm-param.c: Likewise.
1710 * guile/scm-symbol.c: Likewise.
1711 * guile/scm-type.c: Likewise.
1712 * hppa-hpux-tdep.c: Likewise.
1713 * i386-tdep.c: Likewise.
1714 * inf-loop.c: Likewise.
1715 * infcall.c: Likewise.
1716 * infcmd.c: Likewise.
1717 * infrun.c: Likewise.
1718 * interps.c: Likewise.
1719 * interps.h: Likewise.
1720 * jit.c: Likewise.
1721 * linespec.c: Likewise.
1722 * linux-nat.c: Likewise.
1723 * linux-thread-db.c: Likewise.
1724 * m32r-rom.c: Likewise.
1725 * main.c: Likewise.
1726 * memory-map.c: Likewise.
1727 * mi/mi-cmd-break.c: Likewise.
1728 * mi/mi-cmd-stack.c: Likewise.
1729 * mi/mi-interp.c: Likewise.
1730 * mi/mi-main.c: Likewise.
1731 * monitor.c: Likewise.
1732 * nto-procfs.c: Likewise.
1733 * objc-lang.c: Likewise.
1734 * p-valprint.c: Likewise.
1735 * parse.c: Likewise.
1736 * ppc-linux-tdep.c: Likewise.
1737 * printcmd.c: Likewise.
1738 * probe.c: Likewise.
1739 * python/py-auto-load.c: Likewise.
1740 * python/py-breakpoint.c: Likewise.
1741 * python/py-cmd.c: Likewise.
1742 * python/py-finishbreakpoint.c: Likewise.
1743 * python/py-frame.c: Likewise.
1744 * python/py-framefilter.c: Likewise.
1745 * python/py-function.c: Likewise.
1746 * python/py-gdb-readline.c: Likewise.
1747 * python/py-inferior.c: Likewise.
1748 * python/py-infthread.c: Likewise.
1749 * python/py-lazy-string.c: Likewise.
1750 * python/py-linetable.c: Likewise.
1751 * python/py-param.c: Likewise.
1752 * python/py-prettyprint.c: Likewise.
1753 * python/py-symbol.c: Likewise.
1754 * python/py-type.c: Likewise.
1755 * python/py-value.c: Likewise.
1756 * python/python-internal.h: Likewise.
1757 * python/python.c: Likewise.
1758 * record-btrace.c: Likewise.
1759 * record-full.c: Likewise.
1760 * regcache.c: Likewise.
1761 * remote-fileio.c: Likewise.
1762 * remote-mips.c: Likewise.
1763 * remote.c: Likewise.
1764 * rs6000-aix-tdep.c: Likewise.
1765 * rs6000-nat.c: Likewise.
1766 * skip.c: Likewise.
1767 * solib-darwin.c: Likewise.
1768 * solib-dsbt.c: Likewise.
1769 * solib-frv.c: Likewise.
1770 * solib-ia64-hpux.c: Likewise.
1771 * solib-spu.c: Likewise.
1772 * solib-svr4.c: Likewise.
1773 * solib.c: Likewise.
1774 * spu-tdep.c: Likewise.
1775 * stack.c: Likewise.
1776 * stap-probe.c: Likewise.
1777 * symfile-mem.c: Likewise.
1778 * symmisc.c: Likewise.
1779 * target.c: Likewise.
1780 * thread.c: Likewise.
1781 * top.c: Likewise.
1782 * tracepoint.c: Likewise.
1783 * tui/tui-interp.c: Likewise.
1784 * typeprint.c: Likewise.
1785 * utils.c: Likewise.
1786 * valarith.c: Likewise.
1787 * valops.c: Likewise.
1788 * valprint.c: Likewise.
1789 * value.c: Likewise.
1790 * varobj.c: Likewise.
1791 * windows-nat.c: Likewise.
1792 * xml-support.c: Likewise.
1793
1794 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1795
1796 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1797 name implies.
1798 (extended_mips16_next_pc): Update accordingly.
1799
1800 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1801
1802 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1803 function.
1804 (micromips_instruction_is_compact_branch): Likewise.
1805 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1806 or a compact jump, reaching a jump delay slot, or seeing a
1807 second non-prologue instruction.
1808 (micromips_scan_prologue): Also terminate scanning upon seeing a
1809 compact branch or jump, or reaching a branch or jump delay slot.
1810 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1811 or jump delay slot, or seeing a second non-prologue instruction.
1812 (mips32_instruction_has_delay_slot): Retain instruction
1813 examination code only, update arguments accordingly and move
1814 instruction fetch pieces to...
1815 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1816 (micromips_instruction_has_delay_slot): Likewise and to...
1817 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1818 (mips16_instruction_has_delay_slot): Likewise and to...
1819 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1820 (mips_single_step_through_delay): Update accordingly.
1821 (mips_adjust_breakpoint_address): Likewise.
1822
1823 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1824
1825 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1826 !mustbe32 also return 1 for 32-bit instructions.
1827 (mips16_instruction_has_delay_slot): Likewise. Add an
1828 explanatory comment.
1829
1830 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1831
1832 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1833 symbols special.
1834
1835 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1836
1837 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1838 update comments.
1839 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1840 for the breakpoint's address. Don't preinitialize `placed_size'.
1841 (insert_bp_location): Set `reqstd_address' rather than
1842 `placed_address'.
1843 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1844 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1845 address.
1846 (bkpt_remove_location): Likewise.
1847 (deprecated_insert_raw_breakpoint): Likewise.
1848 (deprecated_remove_raw_breakpoint): Likewise.
1849 (find_single_step_breakpoint): Likewise.
1850 * mem-break.c (default_memory_insert_breakpoint): Use
1851 `reqstd_address' for the breakpoint's address. Don't set
1852 `placed_address' or `placed_size' if breakpoint contents couldn't
1853 have been determined.
1854 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1855 the breakpoint's address.
1856 (remote_insert_hw_breakpoint): Likewise. Don't set
1857 `placed_address' or `placed_size' if breakpoint couldn't have been
1858 set.
1859 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1860 `reqstd_address' for the breakpoint's address.
1861 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1862 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1863 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1864 * microblaze-linux-tdep.c
1865 (microblaze_linux_memory_remove_breakpoint): Likewise.
1866 * monitor.c (monitor_insert_breakpoint): Likewise.
1867 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1868 (procfs_insert_hw_breakpoint): Likewise.
1869 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1870 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1871 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1872 * remote-mips.c (mips_insert_breakpoint): Likewise.
1873 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1874
1875 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1876
1877 * valops.c (value_assign): Check for bit field assignments
1878 before calling architecture-specific register value
1879 conversion functions.
1880
1881 2014-10-03 Pierre Muller <muller@sourceware.org>
1882
1883 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1884
1885 2014-10-02 Pedro Alves <palves@redhat.com>
1886
1887 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1888 threads_are_executing.
1889 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1890 describing comment.
1891 * gdbthread.h (threads_are_executing): Declare.
1892 (handle_signal_stop) <random signals>: Don't print about the
1893 signal here if stopping.
1894 (end_stepping_range): Don't notify observers here.
1895 (normal_stop): Update the thread list. If stopped by a random
1896 signal or a stepping range ended, notify observers.
1897 * thread.c (threads_executing): New global.
1898 (init_thread_list): Clear 'threads_executing'.
1899 (set_executing): Set or clear 'threads_executing'.
1900 (threads_are_executing): New function.
1901 (update_threads_executing): New function.
1902 (update_thread_list): Use it.
1903
1904 2014-10-02 Pedro Alves <palves@redhat.com>
1905
1906 PR breakpoints/17431
1907 * breakpoint.c (update_breakpoints_after_exec): Don't create
1908 overlay, longjmp, std terminate nor exception breakpoints here.
1909
1910 2014-10-02 Pedro Alves <palves@redhat.com>
1911
1912 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1913 Adjust comments.
1914 * inferior.c (find_inferior_for_program_space): Give preference to
1915 the current inferior.
1916 * inferior.h (find_inferior_for_program_space): Update comment.
1917 * progspace.c (switch_to_program_space_and_thread): Prefer the
1918 current inferior if it's bound to the program space requested. If
1919 the inferior found doesn't have a PID yet, don't bother looking up
1920 a thread.
1921 * progspace.h (switch_to_program_space_and_thread): Adjust
1922 comment.
1923 * thread.c (any_thread_of_process, any_live_thread_of_process):
1924 Give preference to the current thread.
1925
1926 2014-10-01 Pedro Alves <palves@redhat.com>
1927
1928 * breakpoint.c (insert_bp_location): Error out if inserting a
1929 software breakpoint at a read-only address.
1930 * target.c (memory_xfer_check_region): New function, factored out
1931 from ...
1932 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1933 ULONGEST.
1934 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1935 against the memory region attributes.
1936
1937 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1938
1939 * NEWS: Announce new exit-code field in -list-thread-groups
1940 output.
1941 * inferior.c (exit_inferior_1): Don't clear exit code.
1942 (inferior_appeared): Clear exit code.
1943 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1944 code.
1945
1946 2014-10-01 Pedro Alves <palves@redhat.com>
1947
1948 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1949 GENERATED" along with emacs/vi read-only markers.
1950 * regformats/aarch64.dat: Regenerate.
1951 * regformats/arm-with-iwmmxt.dat: Regenerate.
1952 * regformats/arm-with-neon.dat: Regenerate.
1953 * regformats/arm-with-vfpv2.dat: Regenerate.
1954 * regformats/arm-with-vfpv3.dat: Regenerate.
1955 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1956 * regformats/i386/amd64-avx.dat: Regenerate.
1957 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1958 * regformats/i386/amd64-avx512.dat: Regenerate.
1959 * regformats/i386/amd64-linux.dat: Regenerate.
1960 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1961 * regformats/i386/amd64-mpx.dat: Regenerate.
1962 * regformats/i386/amd64.dat: Regenerate.
1963 * regformats/i386/i386-avx-linux.dat: Regenerate.
1964 * regformats/i386/i386-avx.dat: Regenerate.
1965 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1966 * regformats/i386/i386-avx512.dat: Regenerate.
1967 * regformats/i386/i386-linux.dat: Regenerate.
1968 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1969 * regformats/i386/i386-mmx.dat: Regenerate.
1970 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1971 * regformats/i386/i386-mpx.dat: Regenerate.
1972 * regformats/i386/i386.dat: Regenerate.
1973 * regformats/i386/x32-avx-linux.dat: Regenerate.
1974 * regformats/i386/x32-avx.dat: Regenerate.
1975 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1976 * regformats/i386/x32-avx512.dat: Regenerate.
1977 * regformats/i386/x32-linux.dat: Regenerate.
1978 * regformats/i386/x32.dat: Regenerate.
1979 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1980 * regformats/mips-dsp-linux.dat: Regenerate.
1981 * regformats/mips-linux.dat: Regenerate.
1982 * regformats/mips64-dsp-linux.dat: Regenerate.
1983 * regformats/mips64-linux.dat: Regenerate.
1984 * regformats/nios2-linux.dat: Regenerate.
1985 * regformats/rs6000/powerpc-32.dat: Regenerate.
1986 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1987 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1988 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1989 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1990 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1991 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1992 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1993 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1994 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1995 * regformats/s390-linux32.dat: Regenerate.
1996 * regformats/s390-linux32v1.dat: Regenerate.
1997 * regformats/s390-linux32v2.dat: Regenerate.
1998 * regformats/s390-linux64.dat: Regenerate.
1999 * regformats/s390-linux64v1.dat: Regenerate.
2000 * regformats/s390-linux64v2.dat: Regenerate.
2001 * regformats/s390-te-linux64.dat: Regenerate.
2002 * regformats/s390x-linux64.dat: Regenerate.
2003 * regformats/s390x-linux64v1.dat: Regenerate.
2004 * regformats/s390x-linux64v2.dat: Regenerate.
2005 * regformats/s390x-te-linux64.dat: Regenerate.
2006 * regformats/tic6x-c62x-linux.dat: Regenerate.
2007 * regformats/tic6x-c62x.dat: Regenerate.
2008 * regformats/tic6x-c64x-linux.dat: Regenerate.
2009 * regformats/tic6x-c64x.dat: Regenerate.
2010 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2011 * regformats/tic6x-c64xp.dat: Regenerate.
2012
2013 2014-10-01 Pedro Alves <palves@redhat.com>
2014
2015 * features/Makefile: Update comments.
2016 (XMLTOC): List all xml files we build C files from.
2017 (clean-cfiles): New rule.
2018
2019 2014-10-01 Pedro Alves <palves@redhat.com>
2020
2021 * features/i386/amd64-avx512-linux.c: Regenerate.
2022 * features/i386/amd64-avx512.c: Regenerate.
2023 * features/i386/x32-avx512-linux.c: Regenerate.
2024 * features/i386/x32-avx512.c: Regenerate.
2025
2026 2014-10-01 Pedro Alves <palves@redhat.com>
2027
2028 * features/Makefile (WHICH): Remove arm-with-m,
2029 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2030
2031 2014-10-01 Pedro Alves <palves@redhat.com>
2032
2033 * features/Makefile (clean): New rule.
2034
2035 2014-10-01 Pedro Alves <palves@redhat.com>
2036
2037 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2038 (zmm14h): Add missing end quotes.
2039
2040 2014-10-01 Pedro Alves <palves@redhat.com>
2041
2042 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2043 * features/aarch64.c: Regenerate.
2044
2045 2014-09-30 Don Breazeal <donb@codesourcery.com>
2046
2047 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2048 code so as to work with follow_fork_inferior.
2049 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2050 (inf_ttrace_create_inferior): Remove reference to
2051 inf_ttrace_vfork_ppid.
2052 (inf_ttrace_attach): Ditto.
2053 (inf_ttrace_detach): Ditto.
2054 (inf_ttrace_kill): Use current_inferior instead of
2055 inf_ttrace_vfork_ppid.
2056 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2057 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2058 inferior away from the parent.
2059 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2060 target_follow_fork.
2061 (follow_fork_inferior): New function.
2062 (follow_inferior_reset_breakpoints): Make function static.
2063 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2064 * linux-nat.c (linux_child_follow_fork): Move target-independent
2065 code to infrun.c:follow_fork_inferior.
2066
2067 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2068
2069 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2070 * gdbarch.c: Regenerate.
2071 * gdbarch.h: Likewise.
2072 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2073 gdbarch method 'regset_from_core_section'.
2074 (get_core_register_section): Remove handling for the case that
2075 regset == NULL and regset_from_core_section is defined.
2076 (get_core_registers): Drop check for deleted method.
2077 * procfs.c (procfs_do_thread_registers): Adjust comment.
2078
2079 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2080
2081 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2082 (linux_nat_make_corefile_notes): Remove.
2083 (linux_target_install_ops): Do not set target method
2084 'make_corefile_notes'.
2085 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2086 Remove field.
2087 (linux_corefile_thread_callback): Instead of args->collect, call
2088 linux_collect_thread_registers.
2089 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2090 NULL unless there is a regset iterator.
2091 (linux_make_corefile_notes_1): Remove.
2092 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2093 by linux_make_corefile_notes.
2094 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2095
2096 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2097
2098 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2099 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2100 Remove.
2101 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2102
2103 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2104
2105 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2106 (xtensa_iterate_over_regset_sections): New.
2107 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2108
2109 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2110
2111 * vax-tdep.c (vax_regset_from_core_section): Remove.
2112 (vax_iterate_over_regset_sections): New.
2113 (vax_gdbarch_init): Adjust gdbarch initialization.
2114
2115 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2116
2117 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2118 (tilegx_regset_from_core_section): Remove.
2119 (tilegx_iterate_over_regset_sections): New.
2120 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2121
2122 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2123
2124 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2125 (sparc_iterate_over_regset_sections): New.
2126 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2127 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2128 targets.
2129 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2130 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2131 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2132 target method 'make_corefile_notes'.
2133
2134 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2135
2136 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2137 'sizeof_gregset' and 'sizeof_fpregset'.
2138 * sh-tdep.c (sh_regset_from_core_section): Remove.
2139 (sh_iterate_over_regset_sections): New.
2140 (sh_gdbarch_init): Adjust gdbarch initialization.
2141 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2142 sizeof_fpregset.
2143 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2144 'sizeof_gregset'.
2145
2146 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2147
2148 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2149 (score7_linux_iterate_over_regset_sections): New.
2150 (score_gdbarch_init): Adjust gdbarch initialization.
2151
2152 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2153
2154 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2155 FreeBSD targets.
2156 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2157 method 'make_corefile_notes'.
2158 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2159 (ppcfbsd_regset_from_core_section): Remove.
2160 (ppcfbsd_iterate_over_regset_sections): New.
2161 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2162 initialization.
2163 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2164 (ppcnbsd_iterate_over_regset_sections): New.
2165 (ppcnbsd_init_abi): Adjust.
2166 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2167 (ppcobsd_iterate_over_regset_sections): New.
2168 (ppcobsd_init_abi): Adjust.
2169 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2170 (rs6000_aix_iterate_over_regset_sections): New.
2171 (rs6000_aix_init_osabi): Adjust.
2172
2173 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2174
2175 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2176 (nios2_regset_from_core_section): Remove.
2177 (nios2_iterate_over_regset_sections): New.
2178 (nios2_linux_init_abi): Adjust gdbarch initialization.
2179
2180 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2181
2182 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2183 (am33_iterate_over_regset_sections): New.
2184 (am33_linux_init_osabi): Adjust gdbarch initialization.
2185
2186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2187
2188 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2189 (mips_linux_iterate_over_regset_sections): New.
2190 (mips_linux_init_abi): Adjust gdbarch initialization.
2191 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2192 (mips64obsd_iterate_over_regset_sections): New.
2193 (mips64obsd_init_abi): Adjust.
2194 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2195 (mipsnbsd_iterate_over_regset_sections): New.
2196 (mipsnbsd_init_abi): Adjust.
2197
2198 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2199
2200 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2201 (m88k_iterate_over_regset_sections): New.
2202 (m88k_gdbarch_init): Adjust gdbarch initialization.
2203
2204 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2205
2206 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2207 (ia64_linux_iterate_over_regset_sections): New.
2208 (ia64_linux_init_abi): Adjust gdbarch initialization.
2209
2210 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2211
2212 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2213 (m68kbsd_iterate_over_regset_sections): New.
2214 (m68kbsd_init_abi): Adjust gdbarch initialization.
2215 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2216 (m68k_linux_iterate_over_regset_sections): New.
2217 (m68k_linux_init_abi): Adjust gdbarch initialization.
2218
2219 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2220
2221 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2222 (m32r_linux_regset_from_core_section): Remove.
2223 (m32r_linux_iterate_over_regset_sections): New.
2224 (m32r_linux_init_abi): Adjust gdbarch initialization.
2225
2226 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2227
2228 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2229 (amd64obsd_iterate_over_regset_sections): New.
2230 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2231 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2232 Remove.
2233 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2234 regset_from_core_section initialization.
2235 * i386-tdep.c (i386_regset_from_core_section): Remove.
2236 (i386_iterate_over_regset_sections): New.
2237 (i386_gdbarch_init): Adjust gdbarch initialization.
2238 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2239 (i386_iterate_over_regset_sections): New prototype.
2240 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2241 Remove.
2242 (i386obsd_aout_iterate_over_regset_sections): New.
2243 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2244 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2245 targets.
2246 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2247 (amd64fbsd_init_abi): Call fbsd_init_abi.
2248 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2249 (i386fbsd4_init_abi): Call fbsd_init_abi.
2250 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2251 target method 'make_corefile_notes'.
2252 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2253
2254 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2255
2256 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2257 (hppa_hpux_iterate_over_regset_sections): New.
2258 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2259 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2260 (hppa_linux_iterate_over_regset_sections): New.
2261 (hppa_linux_init_abi): Adjust.
2262 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2263 (hppanbsd_iterate_over_regset_sections): New.
2264 (hppanbsd_init_abi): Adjust.
2265 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2266 (hppaobsd_iterate_over_regset_sections): New.
2267 (hppaobsd_init_abi): Adjust.
2268
2269 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2270
2271 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2272 (frv_linux_iterate_over_regset_sections): New.
2273 (frv_linux_init_abi): Adjust gdbarch initialization.
2274
2275 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2276
2277 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2278 (armbsd_iterate_over_regset_sections): New prototype.
2279 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2280 (armbsd_iterate_over_regset_sections): New.
2281 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2282 initialization.
2283
2284 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2285
2286 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2287 (alpha_linux_iterate_over_regset_sections): New.
2288 (alpha_linux_init_abi): Adjust gdbarch initialization.
2289 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2290 prototype.
2291 (alphanbsd_iterate_over_regset_sections): New prototype.
2292
2293 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2294
2295 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2296 Remove.
2297 (aarch64_linux_iterate_over_regset_sections): New.
2298 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2299
2300 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2301
2302 * fbsd-tdep.c: New file.
2303 * fbsd-tdep.h: New file.
2304 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2305 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2306 (ALLDEPFILES): Add fbsd-tdep.c.
2307
2308 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2309
2310 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2311 parameter.
2312 * gdbarch.h: Regenerate.
2313 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2314 iterator.
2315 (get_core_register_section): Add parameter 'regset' and use it, if
2316 set. Add parameter 'min_size' and verify the bfd section size
2317 against it.
2318 (get_core_registers_cb): Add parameter 'regset' and pass it to
2319 get_core_register section. For the "standard" register sections
2320 ".reg" and ".reg2", set an appropriate default for human_name.
2321 (get_core_registers): Don't abort when the gdbarch has an iterator
2322 but no regset_from_core_section. Add NULL/0 for parameters
2323 'regset'/'min_size' in calls to get_core_register_section.
2324 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2325 'regset' and use it instead of calling the
2326 regset_from_core_section gdbarch method.
2327 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2328 * i386-tdep.c (i386_supply_xstateregset)
2329 (i386_collect_xstateregset, i386_xstateregset): Moved to
2330 i386-linux-tdep.c.
2331 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2332 .reg-xstate.
2333 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2334 core file support only if the regset iterator hasn't been set.
2335 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2336 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2337 Moved from i386-tdep.c and renamed to *_linux*.
2338 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2339 each callback invocation. Allow any .reg-xstate size when reading
2340 from a core file.
2341 * amd64-tdep.c (amd64_supply_xstateregset)
2342 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2343 amd64-linux-tdep.c.
2344 (amd64_regset_from_core_section): Remove.
2345 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2346 install an amd64-specific regset_from_core_section gdbarch method.
2347 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2348 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2349 Moved from amd64-tdep.c and renamed to *_linux*.
2350 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2351 to each callback invocation. Allow any .reg-xstate size when
2352 reading from a core file.
2353 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2354 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2355 each callback invocation.
2356 (arm_linux_init_abi): No longer set the regset_from_core_section
2357 gdbarch method.
2358 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2359 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2360 each callback invocation.
2361 (ppc_linux_init_abi): No longer set the regset_from_core_section
2362 gdbarch method.
2363 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2364 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2365 (s390_regset_from_core_section): Remove.
2366 (s390_iterate_over_regset_sections): Add regset parameter to each
2367 callback invocation.
2368 (s390_gdbarch_init): No longer set the regset_from_core_section
2369 gdbarch method. Drop initialization of deleted tdep fields.
2370
2371 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2372
2373 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2374 (amd64_linux_iterate_over_regset_sections): New.
2375 (amd64_linux_init_abi_common): Don't install the regset section
2376 list, but the new iterator in gdbarch.
2377 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2378 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2379 (arm_linux_iterate_over_regset_sections): ...here. New function.
2380 (arm_linux_init_abi): Set iterator instead of section list.
2381 * corelow.c (get_core_registers_cb): New function, logic moved
2382 from...
2383 (get_core_registers): ...loop body here. Use new iterator method
2384 instead of walking through the regset section list.
2385 * gdbarch.sh: Remove 'core_regset_sections'. New method
2386 'iterate_over_regset_sections'. New typedef
2387 'iterate_over_regset_sections_cb'.
2388 * gdbarch.c: Regenerate.
2389 * gdbarch.h: Likewise.
2390 * i386-linux-tdep.c (i386_linux_regset_sections)
2391 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2392 Remove.
2393 (i386_linux_iterate_over_regset_sections): New.
2394 (i386_linux_init_abi): Don't choose a regset section list, but
2395 install new iterator in gdbarch.
2396 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2397 (linux_collect_regset_section_cb): New function, logic moved
2398 from...
2399 (linux_collect_thread_registers): ...loop body here. Use iterator
2400 method instead of walking through list.
2401 (linux_make_corefile_notes_1): Check for presence of iterator
2402 method instead of regset section list.
2403 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2404 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2405 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2406 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2407 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2408 (ppc_linux_init_abi): Don't choose from above regset section
2409 lists, but install new iterator in gdbarch.
2410 * regset.h (struct core_regset_section): Remove.
2411 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2412 have_linux_v1, have_linux_v2, and have_tdb.
2413 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2414 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2415 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2416 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2417 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2418 (s390_iterate_over_regset_sections): ...here. New function. Use
2419 new tdep fields.
2420 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2421 regset section lists, but install new iterator.
2422
2423 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2424
2425 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2426
2427 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2428
2429 * progspace.c (print_program_space): Don't prune program spaces
2430 before printing them.
2431
2432 2014-09-25 Pedro Alves <palves@redhat.com>
2433
2434 * infrun.c (user_visible_resume_ptid): Don't check
2435 singlestep_breakpoints_inserted_p.
2436
2437 2014-09-25 Pedro Alves <palves@redhat.com>
2438
2439 * breakpoint.c (should_be_inserted): Add debug output.
2440
2441 2014-09-25 Pedro Alves <palves@redhat.com>
2442
2443 * infrun.c (stepping_past_instruction_at)
2444 (clear_exit_convenience_vars): Point at infrun.h instead of
2445 inferior.h.
2446 (handle_signal_stop): Fix typo.
2447
2448 2014-09-24 Yao Qi <yao@codesourcery.com>
2449
2450 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2451 bitmask.
2452
2453 2014-09-22 Gary Benson <gbenson@redhat.com>
2454
2455 * target.c (target_stop): Updated comment.
2456
2457 2014-09-22 Gary Benson <gbenson@redhat.com>
2458
2459 * target/target.h (target_stop_ptid): Renamed as...
2460 (target_stop_and_wait): New function. Updated comment.
2461 All uses updated.
2462 (target_continue_ptid): Renamed as...
2463 (target_continue_no_signal): New function. Updated comment.
2464 All uses updated.
2465
2466 2014-09-22 Pedro Alves <palves@redhat.com>
2467
2468 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2469 and "auto" merged.
2470 * breakpoint.c (enum ugll_insert_mode): New enum.
2471 (always_inserted_mode): Now a plain boolean.
2472 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2473 (breakpoints_always_inserted_mode): Delete.
2474 (breakpoints_should_be_inserted_now): New function.
2475 (insert_breakpoints): Pass UGLL_INSERT to
2476 update_global_location_list instead of calling
2477 insert_breakpoint_locations manually.
2478 (create_solib_event_breakpoint_1): New, factored out from ...
2479 (create_solib_event_breakpoint): ... this.
2480 (create_and_insert_solib_event_breakpoint): Use
2481 create_solib_event_breakpoint_1 instead of calling
2482 insert_breakpoint_locations manually.
2483 (update_global_location_list): Change parameter type from boolean
2484 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2485 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2486 (update_global_location_list_nothrow): Change parameter type from
2487 boolean to enum ugll_insert_mode.
2488 (_initialize_breakpoint): "breakpoint always-inserted" option is
2489 now a boolean command. Update help text.
2490 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2491 (breakpoints_should_be_inserted_now): New declaration.
2492 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2493 Remove breakpoints_always_inserted_mode check.
2494 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2495 * remote.c (remote_start_remote): Likewise.
2496
2497 2014-09-22 Pedro Alves <palves@redhat.com>
2498
2499 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2500 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2501 Instead, pass UGLL_INSERT to update_global_location_list.
2502 (update_global_location_list): Change parameter type from boolean
2503 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2504 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2505 (create_solib_event_breakpoint_1): New, factored out from ...
2506 (create_solib_event_breakpoint): ... this.
2507 (create_and_insert_solib_event_breakpoint): Use
2508 create_solib_event_breakpoint_1 instead of calling
2509 insert_breakpoint_locations manually.
2510 (update_global_location_list): Handle UGLL_INSERT.
2511
2512 2014-09-22 Pedro Alves <palves@redhat.com>
2513
2514 * breakpoint.c (enum ugll_insert_mode): New enum.
2515 (update_global_location_list)
2516 (update_global_location_list_nothrow): Change parameter type from
2517 boolean to enum ugll_insert_mode. All callers adjusted.
2518
2519 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2520
2521 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2522 SystemTap support in GDB.
2523
2524 2014-09-19 Don Breazeal <donb@codesourcery.com>
2525
2526 * linux-nat.c (linux_handle_extended_wait): Call
2527 linux_ptrace_get_extended_event.
2528 (wait_lwp): Call linux_is_extended_waitstatus.
2529 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2530 and linux_is_extended_waitstatus.
2531 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2532 linux_ptrace_get_extended_event.
2533 (linux_ptrace_get_extended_event): New function.
2534 (linux_is_extended_waitstatus): New function.
2535 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2536 (linux_is_extended_waitstatus): New declarations.
2537
2538 2014-09-19 Yao Qi <yao@codesourcery.com>
2539
2540 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2541 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2542 comments. Callers update.
2543 (dwarf_decode_lines): Likewise.
2544 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2545 comments. Skip the line table if 'lowpc' is greater than
2546 'address'. Don't check
2547 dwarf2_per_objfile->has_section_at_zero.
2548
2549 2014-09-18 Doug Evans <dje@google.com>
2550
2551 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2552 * python/py-symtab.c (stpy_get_producer): New function.
2553 (symtab_object_getset): Add "producer" attribute.
2554
2555 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2556
2557 PR gdb/17384
2558 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2559 (do_captured_read_memory_integer): Remove.
2560 (safe_read_memory_integer): Use target_read_memory directly instead
2561 of catching errors in do_captured_read_memory_integer.
2562
2563 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2564
2565 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2566 not gdb/doc.
2567
2568 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2569
2570 * objc-lang.c (find_implementation_from_class): Remove dead code.
2571
2572 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2573
2574 PR cli/7233
2575 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2576 "fprintf_unfiltered (gdb_stdlog...)".
2577
2578 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2579
2580 PR breakpoints/12526
2581 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2582 val_bitsize.
2583 * breakpoint.c (watch_command_1): Use these fields to retain
2584 bitfield information.
2585 (extract_bitfield_from_watchpoint_value): New function.
2586 (watchpoint_check): Use it.
2587 (update_watchpoint): Use it. Optimize the address and length of a
2588 HW watchpoint pointing to a bitfield.
2589 * value.h (unpack_value_bitfield): New prototype.
2590 * value.c (unpack_value_bitfield): Make extern.
2591
2592 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2593
2594 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2595 x86-dregs.o.
2596 * gnu-nat.c (inf_threads): New function.
2597 * gnu-nat.h (inf_threads_ftype): New typedef.
2598 (inf_threads): New declaration.
2599 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2600 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2601 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2602 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2603 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2604 (i386_gnu_dr_get_control): New functions.
2605 (reg_addr): New structure.
2606 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2607 i386 debugging register hooks.
2608 * NEWS: Mention this.
2609
2610 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2611
2612 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2613 vector data transfer instructions.
2614 (arm_record_coproc_data_proc): Updated.
2615
2616 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2617
2618 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2619 arm_record_exreg_ld_st_insn.
2620 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2621 load/store insns.
2622
2623 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2624
2625 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2626 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2627 processing instructions.
2628
2629 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2630
2631 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2632 for advance SIMD struct ld/st insn.
2633 (thumb2_record_decode_insn_handler): Replace stub handler with
2634 thumb2_record_asimd_struct_ld_st.
2635
2636 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2637
2638 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2639 for asimd, vfp and coprocessor insns.
2640 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2641 and coprocessor insns.
2642 (thumb2_record_coproc_insn): New function.
2643 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2644 handlers.
2645 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2646 opcode 110 insns.
2647
2648 2014-09-13 Doug Evans <xdje42@gmail.com>
2649
2650 * NEWS: Mention new "queue-signal" command.
2651 * infcmd.c (queue_signal_command): New function.
2652 (_initialize_infcmd): Add new queue-signal command.
2653
2654 2014-09-13 Doug Evans <xdje42@gmail.com>
2655
2656 * linux-nat.c (wait_lwp): Add debugging printf.
2657 (linux_nat_wait_1): Ditto.
2658
2659 2014-09-12 Pedro Alves <palves@redhat.com>
2660
2661 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2662 (create_and_insert_solib_event_breakpoint): New functions.
2663 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2664 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2665 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2666 (remove_dbx_link_breakpoint): Delete function.
2667 (insert_dbx_link_bpt_in_file): Use
2668 create_and_insert_solib_event_breakpoint instead of
2669 deprecated_insert_raw_breakpoint.
2670 (procfs_wait): Don't check whether we hit __dbx_link here.
2671 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2672 here.
2673 * solib-irix.c (base_breakpoint): Delete global.
2674 (disable_break): Delete function.
2675 (enable_break): Use create_solib_event_breakpoint
2676 instead of deprecated_insert_raw_breakpoint.
2677 (irix_solib_handle_event): New function.
2678 (irix_solib_create_inferior_hook): Don't run the target or disable
2679 the mapping-complete breakpoint here.
2680 (_initialize_irix_solib): Install irix_solib_handle_event as
2681 so_ops->handle_event hook.
2682
2683 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2684 Ulrich Weigand  <uweigand@de.ibm.com>
2685
2686 PR tdep/17379
2687 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2688 instead of read_memory_unsigned_integer.
2689
2690 2014-09-12 Gary Benson <gbenson@redhat.com>
2691
2692 * nat/linux-waitpid.c: Include common-defs.h.
2693 [GDBSERVER]: Add FIXME comment.
2694 [!GDBSERVER]: Don't include defs.h or signal.h.
2695 (linux_debug) [!GDBSERVER]: Remove empty block.
2696
2697 2014-09-12 Gary Benson <gbenson@redhat.com>
2698
2699 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2700 Don't include defs.h or server.h.
2701
2702 2014-09-12 Gary Benson <gbenson@redhat.com>
2703
2704 * nat/linux-btrace.c: Include common-defs.h.
2705 Don't include defs.h, server.h or gdbthread.h.
2706 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2707
2708 2014-09-12 Gary Benson <gbenson@redhat.com>
2709
2710 * common/agent.c: Include common-defs.h.
2711 Don't include defs.h or server.h.
2712 * common/buffer.c: Likewise.
2713 * common/common-debug.c: Likewise.
2714 * common/common-utils.c: Likewise.
2715 * common/errors.c: Likewise.
2716 * common/filestuff.c: Likewise.
2717 * common/format.c: Likewise.
2718 * common/gdb_vecs.c: Likewise.
2719 * common/print-utils.c: Likewise.
2720 * common/ptid.c: Likewise.
2721 * common/rsp-low.c: Likewise.
2722 * common/signals.c: Likewise.
2723 * common/vec.c: Likewise.
2724 * common/xml-utils.c: Likewise.
2725 * nat/linux-osdata.c: Likewise.
2726 * nat/linux-procfs.c: Likewise.
2727 * nat/linux-ptrace.c: Likewise.
2728 * nat/mips-linux-watch.c: Likewise.
2729 * target/waitstatus.c: Likewise.
2730
2731 2014-09-12 Tom Tromey <tromey@redhat.com>
2732 Gary Benson <gbenson@redhat.com>
2733
2734 * common/common-regcache.h: New file.
2735 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2736 * regcache.h: Include common-regcache.h.
2737 (regcache_read_pc): Don't declare.
2738 * regcache.c (get_thread_regcache_for_ptid): New function.
2739 * nat/linux-btrace.c: Don't include regcache.h.
2740 Include common-regcache.h.
2741 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2742
2743 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2744
2745 * regcache.h (struct regset): Declare.
2746
2747 2014-09-11 Pedro Alves <palves@redhat.com>
2748
2749 PR gdb/17347
2750 * main.c: Include "infrun.h".
2751 (catch_command_errors, catch_command_errors_const): Wait for the
2752 foreground command to complete.
2753 * top.c (maybe_wait_sync_command_done): New function, factored out
2754 from ...
2755 (maybe_wait_sync_command_done): ... here.
2756 * top.h (maybe_wait_sync_command_done): New declaration.
2757
2758 2014-09-11 Tom Tromey <tromey@redhat.com>
2759 Gary Benson <gbenson@redhat.com>
2760
2761 * common/symbol.h: New file.
2762 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2763 * minsyms.c (find_minimal_symbol_address): New function.
2764 * common/agent.c: Include common/symbol.h.
2765 [!GDBSERVER]: Don't include objfiles.h.
2766 (agent_look_up_symbols): Use find_minimal_symbol_address.
2767
2768 2014-09-11 Gary Benson <gbenson@redhat.com>
2769
2770 * target/target.h (target_stop_ptid, target_continue_ptid):
2771 Declare.
2772 * target.c (target_stop_ptid, target_continue_ptid): New
2773 functions.
2774 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2775 (agent_run_command): Always use target_stop_ptid and
2776 target_continue_ptid.
2777
2778 2014-09-11 Tom Tromey <tromey@redhat.com>
2779 Gary Benson <gbenson@redhat.com>
2780
2781 * target/target.h: New file.
2782 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2783 * target.h: Include target/target.h.
2784 (target_read_memory, target_write_memory): Don't declare.
2785 * target.c (target_read_uint32): New function.
2786 * common/agent.c: Include target/target.h.
2787 [!GDBSERVER]: Don't include target.h.
2788 (helper_thread_id): Type changed to uint32_t.
2789 (agent_get_helper_thread_id): Use target_read_uint32.
2790 (agent_run_command): Always use target_read_memory and
2791 target_write_memory.
2792 (agent_capability): Type changed to uint32_t.
2793 (agent_capability_check): Use target_read_uint32.
2794
2795 2014-09-11 Gary Benson <gbenson@redhat.com>
2796
2797 * common/common-debug.h (show_debug_regs): Declare.
2798 * common/common-debug.c (show_debug_regs): Define.
2799 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2800 all uses with show_debug_regs. Replace all uses that considered
2801 debug_hw_points as a multi-value integer with straight boolean
2802 uses.
2803 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2804 with show_debug_regs.
2805 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2806 all uses with show_debug_regs.
2807 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2808 uses with show_debug_regs.
2809
2810 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2811
2812 * findvar.c (address_from_register): Handle targets requiring
2813 a special conversion routine even for plain pointer types.
2814
2815 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2816
2817 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2818 (store_register): Do not call exec_one_dummy_insn.
2819
2820 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2821
2822 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2823 dereference it first. Use value_enclosing_type instead of
2824 value_type.
2825 (ada_array_length): Likewise.
2826
2827 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2828
2829 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2830 Adjust function implementation and documentation accordingly.
2831 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2832 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2833 Update call to ada_value_ptr_subscript.
2834
2835 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2836
2837 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2838 instead of VAL's type.
2839
2840 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2841
2842 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2843
2844 2014-09-09 Doug Evans <xdje42@gmail.com>
2845
2846 PR guile/17367
2847 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2848 last parameter to pkg-config, not first.
2849 * configure.ac: Pass --with-guile provided pkg-config path to
2850 GDB_GUILE_PROGRAM_NAMES.
2851 * configure: Regenerate.
2852
2853 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2854
2855 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2856 Bertazi".
2857
2858 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2859
2860 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2861 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2862 the list of sections determining GDB_OSABI_IRIX.
2863
2864 2014-09-09 James Hogan <james.hogan@imgtec.com>
2865
2866 * MAINTAINERS (Write After Approval): Add "James Hogan".
2867
2868 2014-09-09 James Hogan <james.hogan@imgtec.com>
2869
2870 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2871
2872 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2873
2874 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2875
2876 2014-09-08 Doug Evans <xdje42@gmail.com>
2877
2878 PR 17247
2879 * guile.c: #include <signal.h>.
2880 (_initialize_guile): Block SIGCHLD while initializing Guile.
2881
2882 Replaces the following, which is reverted.
2883
2884 2014-07-26 Doug Evans <xdje42@gmail.com>
2885
2886 PR 17185
2887 * configure.ac: Add check for header gc/gc.h.
2888 Add check for function setenv.
2889 * configure: Regenerate.
2890 * config.in: Regenerate.
2891 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2892
2893 2014-09-08 Doug Evans <xdje42@gmail.com>
2894
2895 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2896 with named constant. Fix style of pointer comparison.
2897 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2898
2899 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2900
2901 PR gdb/17035
2902 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2903 decide whether we display the command on "show user".
2904 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2905 printing command name.
2906 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2907 * cli/cli-decode.c (cli_user_command_p): Create helper function
2908 to verify whether cmd_list_element is a user-defined command.
2909
2910 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2911
2912 PR python/17355
2913 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2914 Fix goto out of TRY_CATCH.
2915
2916 2014-09-06 Doug Evans <xdje42@gmail.com>
2917 Tom Tromey <tromey@redhat.com>
2918
2919 PR 15276
2920 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2921 $_any_caller_matches.
2922 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2923 * python/lib/gdb/function/caller_is.py: New file.
2924
2925 2014-09-06 Doug Evans <xdje42@gmail.com>
2926
2927 * infcmd.c (program_info): Fix typo.
2928
2929 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2930
2931 PR gdb/17235
2932 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2933 'number'. New variable 'has_digit'. Rewrite code to deal with
2934 subexpressions on SDT probes.
2935
2936 2014-09-04 Pedro Alves <palves@redhat.com>
2937
2938 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2939 the input is only one character long.
2940
2941 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2942
2943 PR fortran/17237
2944 * f-valprint.c (f_val_print): Specify the correct print option to
2945 use when printing integer values.
2946
2947 2014-09-04 Gary Benson <gbenson@redhat.com>
2948
2949 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2950 Remove code to cope with LWPs wrapped as PIDs.
2951 Add assertions to ensure no wrapped LWPs are passed.
2952
2953 2014-09-04 Pedro Alves <palves@redhat.com>
2954
2955 * value.c (value_ranges_copy_adjusted): New function, factored out
2956 from ...
2957 (value_contents_copy_raw): ... here.
2958 (unpack_value_bits_as_long_1): Rename back to ...
2959 (unpack_bits_as_long): ... this. Remove 'original_value' and
2960 'result' parameters. Change return type to LONGEST.
2961 (unpack_value_bits_as_long): Delete.
2962 (unpack_value_field_as_long_1): Delete.
2963 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2964 (unpack_value_bitfield): New function.
2965 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2966 (value_fetch_lazy): Use unpack_value_bitfield.
2967 * value.h (unpack_value_bits_as_long): Delete declaration.
2968
2969 2014-09-03 Sasha Smundak <asmundak@google.com>
2970
2971 * python/py-frame.c (frapy_read_register): New function.
2972
2973 2014-09-03 James Hogan <james.hogan@imgtec.com>
2974
2975 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2976 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2977
2978 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2979
2980 PR python/16699
2981 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2982 function.
2983 (add_cmd): Set "completer_handle_brkchars" to NULL.
2984 * cli/cli-decode.h (struct cmd_list_element)
2985 <completer_handle_brkchars>: New field.
2986 * command.h (completer_ftype_void): New typedef.
2987 (set_cmd_completer_handle_brkchars): New prototype.
2988 * completer.c (set_gdb_completion_word_break_characters): New
2989 function.
2990 (complete_line_internal): Call "completer_handle_brkchars"
2991 callback from command.
2992 * completer.h: Include "command.h".
2993 (set_gdb_completion_word_break_characters): New prototype.
2994 * python/py-cmd.c (cmdpy_completer_helper): New function.
2995 (cmdpy_completer_handle_brkchars): New function.
2996 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2997 (cmdpy_init): Set completer_handle_brkchars to
2998 cmdpy_completer_handle_brkchars.
2999
3000 2014-09-03 Gary Benson <gbenson@redhat.com>
3001
3002 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3003 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3004 Loop conditions changed to equivalent form.
3005 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3006 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3007 ALL_DEBUG_ADDRESS_REGISTERS.
3008
3009 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3010
3011 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3012 description fix.
3013
3014 2014-09-02 Doug Evans <dje@google.com>
3015
3016 * typeprint.c (find_global_typedef): Fix comment.
3017
3018 2014-09-02 Gary Benson <gbenson@redhat.com>
3019
3020 * i386-nat.h: Renamed as...
3021 * x86-nat.h: New file. All type, function and variable name
3022 prefixes changed from "i386_" to "x86_". All references updated.
3023 * i386-nat.c: Renamed as...
3024 * x86-nat.c: New file. All type, function and variable name
3025 prefixes changed from "i386_" to "x86_". All references updated.
3026 * common/i386-xstate.h: Renamed as...
3027 * common/x86-xstate.h: New file. All type, function and variable
3028 name prefixes changed from "i386_" to "x86_". All references
3029 updated.
3030 * nat/i386-cpuid.h: Renamed as...
3031 * nat/x86-cpuid.h: New file. All type, function and variable name
3032 prefixes changed from "i386_" to "x86_". All references updated.
3033 * nat/i386-gcc-cpuid.h: Renamed as...
3034 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3035 name prefixes changed from "i386_" to "x86_". All references
3036 updated.
3037 * nat/i386-dregs.h: Renamed as...
3038 * nat/x86-dregs.h: New file. All type, function and variable name
3039 prefixes changed from "i386_" to "x86_". All references updated.
3040 * nat/i386-dregs.c: Renamed as...
3041 * nat/x86-dregs.c: New file. All type, function and variable name
3042 prefixes changed from "i386_" to "x86_". All references updated.
3043
3044 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3045
3046 * varobj.c (_initialize_varobj): Move to the end of file.
3047
3048 2014-08-29 Gary Benson <gbenson@redhat.com>
3049
3050 * common/common-exceptions.h: New file.
3051 * common/common-exceptions.c: Likewise.
3052 * Makefile.in (SFILES): Add common/common-exceptions.c.
3053 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3054 (COMMON_OBS): Add common-exceptions.o.
3055 (common-exceptions.o): New rule.
3056 * exceptions.h (common-exceptions.h): Include.
3057 (gdb_setjmp.h): Do not include.
3058 (return_reason): Moved to common-exceptions.h.
3059 (enum return_reason): Likewise.
3060 (RETURN_MASK): Likewise.
3061 (typedef return_mask): Likewise.
3062 (enum errors): Likewise.
3063 (struct gdb_exception): Likewise.
3064 (exceptions_state_mc_init): Likewise.
3065 (exceptions_state_mc_action_iter): Likewise.
3066 (exceptions_state_mc_action_iter_1): Likewise.
3067 (TRY_CATCH): Likewise.
3068 (throw_exception): Likewise.
3069 (throw_verror): Likewise.
3070 (throw_vquit): Likewise.
3071 (throw_error): Likewise.
3072 (throw_quit): Likewise.
3073 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3074 (enum catcher_action): Likewise.
3075 (struct catcher): Likewise.
3076 (current_catcher): Likewise.
3077 (catcher_list_size): Likewise.
3078 (exceptions_state_mc_init): Likewise.
3079 (catcher_pop): Likewise.
3080 (exceptions_state_mc): Likewise.
3081 (exceptions_state_mc_action_iter): Likewise.
3082 (exceptions_state_mc_action_iter_1): Likewise.
3083 (throw_exception): Likewise.
3084 (exception_messages): Likewise.
3085 (exception_messages_size): Likewise.
3086 (throw_it): Likewise.
3087 (throw_verror): Likewise.
3088 (throw_vquit): Likewise.
3089 (throw_error): Likewise.
3090 (throw_quit): Likewise.
3091 (prepare_to_throw_exception): New function.
3092
3093 2014-08-29 Gary Benson <gbenson@redhat.com>
3094
3095 * common/gdb_setjmp.h: New file.
3096 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3097 * configure.ac: Move sigsetjmp check...
3098 * common/common.m4: ...here.
3099 * configure: Regenerate.
3100 * cp-support.c (SIGJMP_BUF): Delete.
3101 (SIGSETJMP): Likewise.
3102 (SIGLONGJMP): Likewise.
3103 * exceptions.h (gdb_setjmp.h): Include.
3104 (setjmp.h): Do not include.
3105 (EXCEPTIONS_SIGJMP_BUF): Delete.
3106 (EXCEPTIONS_SIGSETJMP): Likewise.
3107 (EXCEPTIONS_SIGLONGJMP): Likewise.
3108 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3109 from gdb_setjmp.h.
3110 * exceptions.c: Likewise.
3111
3112 2014-08-29 Gary Benson <gbenson@redhat.com>
3113
3114 * cleanups.h: Moved to...
3115 * common/cleanups.h: New file.
3116 * cleanups.c: Moved to...
3117 * common/cleanups.c: New file. Include common-defs.h and
3118 cleanups.h. Do not include defs.h.
3119 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3120 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3121 (cleanups.o): New rule.
3122
3123 2014-08-29 Gary Benson <gbenson@redhat.com>
3124
3125 * common/errors.h (internal_warning): New declaration.
3126 (internal_vwarning): Likewise.
3127 * common/errors.c (internal_warning): New function.
3128 * utils.h (internal_warning): Don't declare.
3129 (internal_vwarning): Likewise.
3130 * utils.c (internal_warning): Removed.
3131
3132 2014-08-29 Gary Benson <gbenson@redhat.com>
3133
3134 * main.c (captured_main): Use warning during startup.
3135 Prefix startup warning messages with command name.
3136
3137 2014-08-29 Gary Benson <gbenson@redhat.com>
3138
3139 * main.c (captured_main): Handle usage errors with error.
3140
3141 2014-08-29 Gary Benson <gbenson@redhat.com>
3142
3143 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3144 exit pair with a call to error. Wrap the message with _().
3145
3146 2014-08-29 Gary Benson <gbenson@redhat.com>
3147
3148 * main.c (captured_main): Replace a fprintf/exit
3149 pair with a call to error. Wrap the message with _().
3150
3151 2014-08-29 Gary Benson <gbenson@redhat.com>
3152
3153 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3154 pairs with calls to error. Wrap the message with _().
3155
3156 2014-08-29 Gary Benson <gbenson@redhat.com>
3157
3158 * utils.c (vwarning): Protect calls to target_terminal_ours
3159 and wrap_here.
3160
3161 2014-08-29 Gary Benson <gbenson@redhat.com>
3162
3163 * exceptions.c (print_flush): Protect calls to
3164 target_terminal_ours and wrap_here.
3165
3166 2014-08-29 Gary Benson <gbenson@redhat.com>
3167
3168 * utils.h (filtered_printing_initialized): New declaration.
3169 * utils.c (abort_with_message): New function.
3170 (internal_vproblem): Use abort_with_message for first level
3171 recursive internal problems, and if gdb_stderr is not set up.
3172 Protect calls to target_terminal_ours, begin_line and query.
3173
3174 2014-08-28 Doug Evans <dje@google.com>
3175
3176 * symtab.c (in_prologue): Move definition to better spot.
3177 (skip_prologue_using_sal): Ditto.
3178
3179 2014-08-28 Doug Evans <dje@google.com>
3180
3181 * symtab.c (find_function_start_sal): Move definition to better spot.
3182
3183 2014-08-28 Yao Qi <yao@codesourcery.com>
3184
3185 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3186 found_stack_adjust in forward scan. Remove condition check
3187 on found_stack_adjust which is always true. Indent the code.
3188
3189 2014-08-28 Yao Qi <yao@codesourcery.com>
3190
3191 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3192 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3193 (dwarf_decode_lines): Remove argument
3194 want_line_info. Remove condition check on want_line_info.
3195 Callers update.
3196
3197 2014-08-27 Doug Evans <dje@google.com>
3198
3199 * dwarf2read.c (dwarf_record_line): Fix typo.
3200
3201 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3202
3203 * target.h (struct target_ops::to_terminal_save_ours): Remove
3204 declaration.
3205 (target_terminal_save_ours): Remove macro.
3206 * target-delegates.c: Regenerate.
3207 * inf-child.c (inf_child_target): Don't set the nonexistent
3208 field to_terminal_save_ours.
3209 * inferior.h (child_terminal_save_ours): Remove declaration.
3210 * terminal.h (gdb_save_tty_state): New declaration.
3211 * inflow.c (child_terminal_save_ours): Rename to ...
3212 (gdb_save_tty_state): ... this.
3213 * tui/tui.c: Include terminal.h.
3214 (tui_enable): Use gdb_save_tty_state instead of
3215 target_terminal_save_ours.
3216 (tui_disable): Likewise.
3217
3218 2014-08-25 Doug Evans <dje@google.com>
3219
3220 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3221 Pass NULL instead of 0 for context pointer.
3222
3223 2014-08-25 Yao Qi <yao@codesourcery.com>
3224
3225 * dwarf2read.c: Fix grammatical error.
3226
3227 2014-08-24 Yao Qi <yao@codesourcery.com>
3228
3229 * dwarf2read.c (scan_partial_symbols): Update comments.
3230 Rename argument 'need_pc' with 'set_addrmap'.
3231 (add_partial_namespace): Rename argument 'need_pc' with
3232 'set_addrmap'.
3233 (add_partial_module): Likewise.
3234 (add_partial_subprogram): Likewise. Update comments.
3235 (dwarf2_name): Fix typo.
3236
3237 2014-08-22 Doug Evans <dje@google.com>
3238
3239 PR 17276
3240 * dwarf2read.c (dwarf_record_line_p): New function.
3241 (dwarf_decode_lines_1): Ignore subsequent line number entries
3242 for the same line if any entry had a non-zero discriminator.
3243
3244 2014-08-22 Doug Evans <dje@google.com>
3245
3246 * buildsym.h (record_line_ftype): New typedef.
3247 (record_line): Use it.
3248 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3249 (dwarf_decode_lines_1): Call them.
3250
3251 2014-08-22 Yao Qi <yao@codesourcery.com>
3252
3253 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3254 (ctf_end): Remove code.
3255
3256 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3257
3258 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3259 (linux_make_corefile_notes): call update_thread_list, protected against
3260 exceptions.
3261
3262 2014-08-21 Pedro Alves <palves@redhat.com>
3263
3264 * infcmd.c (attach_command): Remove comment.
3265
3266 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3267
3268 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3269 unsigned LONGEST to ULONGEST.
3270
3271 2014-08-20 Pedro Alves <palves@redhat.com>
3272
3273 * Makefile.in (check-read1): New rule.
3274
3275 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3276
3277 * value.c (value_from_contents_and_address): Strip resolved_type's
3278 typedef layers before checking its TYPE_DATA_LOCATION.
3279
3280 2014-08-20 Pedro Alves <palves@redhat.com>
3281
3282 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3283
3284 2014-08-20 Yao Qi <yao@codesourcery.com>
3285
3286 * amd64-tdep.c (amd64_classify): Add a blank line after the
3287 example. Move "*/" to a new line.
3288 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3289 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3290 * dwarf2read.c (psymtab_include_file_name): Likewise.
3291
3292 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3293 Pedro Alves <palves@redhat.com>
3294
3295 PR symtab/14604
3296 PR symtab/14605
3297 * ada-lang.c (coerce_unspec_val_to_type): Use
3298 value_contents_copy_raw.
3299 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3300 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3301 * cp-valprint.c (cp_print_value_fields): Let the common printing
3302 code handle optimized out values.
3303 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3304 * d-valprint.c (dynamic_array_type): Use
3305 value_bits_any_optimized_out.
3306 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3307 check_any_valid fields.
3308 (check_pieced_value_bits): Delete and inline ...
3309 (check_pieced_synthetic_pointer): ... here.
3310 (check_pieced_value_validity): Delete.
3311 (check_pieced_value_invalid): Delete.
3312 (pieced_value_funcs): Remove check_validity and check_any_valid
3313 fields.
3314 (read_pieced_value): Use mark_value_bits_optimized_out.
3315 (write_pieced_value): Switch to use
3316 mark_value_bytes_optimized_out.
3317 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3318 of assuming the whole value is optimized out.
3319 * findvar.c (read_frame_register_value): Remove special handling
3320 of optimized out registers.
3321 (value_from_register): Use mark_value_bytes_optimized_out.
3322 * frame-unwind.c (frame_unwind_got_optimized): Use
3323 mark_value_bytes_optimized_out.
3324 * jv-valprint.c (java_value_print): Adjust.
3325 (java_print_value_fields): Let the common printing code handle
3326 optimized out values.
3327 * mips-tdep.c (mips_print_register): Remove special handling of
3328 optimized out registers.
3329 * opencl-lang.c (lval_func_check_validity): Delete.
3330 (lval_func_check_any_valid): Delete.
3331 (opencl_value_funcs): Remove check_validity and check_any_valid
3332 fields.
3333 * p-valprint.c (pascal_object_print_value_fields): Let the common
3334 printing code handle optimized out values.
3335 * stack.c (read_frame_arg): Remove special handling of optimized
3336 out values. Fetch both VAL and ENTRYVAL before comparing
3337 contents. Adjust to value_available_contents_eq rename.
3338 * valprint.c (valprint_check_validity)
3339 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3340 (val_print_array_elements): Adjust.
3341 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3342 (value_bits_any_optimized_out): New function.
3343 (value_entirely_covered_by_range_vector): New function, factored
3344 out from value_entirely_unavailable.
3345 (value_entirely_unavailable): Reimplement.
3346 (value_entirely_optimized_out): New function.
3347 (insert_into_bit_range_vector): New function, factored out from
3348 mark_value_bits_unavailable.
3349 (mark_value_bits_unavailable): Reimplement.
3350 (struct ranges_and_idx): New struct.
3351 (find_first_range_overlap_and_match): New function, factored out
3352 from value_available_contents_bits_eq.
3353 (value_available_contents_bits_eq): Rename to ...
3354 (value_contents_bits_eq): ... this. Check both unavailable
3355 contents and optimized out contents.
3356 (value_available_contents_eq): Rename to ...
3357 (value_contents_eq): ... this.
3358 (allocate_value_lazy): Remove reference to the old optimized_out
3359 boolean.
3360 (allocate_optimized_out_value): Use
3361 mark_value_bytes_optimized_out.
3362 (require_not_optimized_out): Adjust to check whether the
3363 optimized_out vec is empty.
3364 (ranges_copy_adjusted): New function, factored out from
3365 value_contents_copy_raw.
3366 (value_contents_copy_raw): Also copy the optimized out ranges.
3367 Assert the destination ranges aren't optimized out.
3368 (value_contents_copy): Update comment, remove call to
3369 require_not_optimized_out.
3370 (value_contents_equal): Adjust to check whether the optimized_out
3371 vec is empty.
3372 (set_value_optimized_out, value_optimized_out_const): Delete.
3373 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3374 New functions.
3375 (value_entirely_optimized_out, value_bits_valid): Delete.
3376 (value_copy): Take a VEC copy of the 'optimized_out' field.
3377 (value_primitive_field): Remove special handling of optimized out.
3378 (value_fetch_lazy): Assert that lazy values have no unavailable
3379 regions. Use value_bits_any_optimized_out. Remove some special
3380 handling for optimized out values.
3381 * value.h: Add intro comment about <optimized out> and
3382 <unavailable>.
3383 (struct lval_funcs): Remove check_validity and check_any_valid
3384 fields.
3385 (set_value_optimized_out, value_optimized_out_const): Remove.
3386 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3387 New declarations.
3388 (value_bits_any_optimized_out): New declaration.
3389 (value_bits_valid): Delete declaration.
3390 (value_available_contents_eq): Rename to ...
3391 (value_contents_eq): ... this, and extend comments.
3392
3393 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3394
3395 Fix -fsanitize=address on unreadable inferior strings.
3396 * valprint.c (val_print_string): Fix access before BUFFER.
3397
3398 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3399
3400 * target.c (target_struct_size): Remove.
3401 (target_struct_allocsize): Remove.
3402 (DEFAULT_ALLOCSIZE): Remove.
3403 (target_ops_p): New typedef.
3404 (DEF_VEC_P (target_ops_p)): New vector type.
3405 (target_structs): Change type to VEC (target_ops_p).
3406 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3407 (find_default_run_target): Rewrite for loop following changes to
3408 target_structs.
3409
3410 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3411
3412 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3413 Adjust code accordingly. Adjust function description comment.
3414
3415 2014-08-19 Yao Qi <yao@codesourcery.com>
3416
3417 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3418 types.
3419
3420 2014-08-19 Alan Modra <amodra@gmail.com>
3421
3422 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3423 * config.in: Regenerate.
3424 * configure: Regenerate.
3425
3426 2014-08-19 Tom Tromey <tromey@redhat.com>
3427 Gary Benson <gbenson@redhat.com>
3428
3429 * common/common-debug.h: New file.
3430 * common/common-debug.c: Likewise.
3431 * debug.c: Likewise.
3432 * Makefile.in (SFILES): Add common/common-debug.c.
3433 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3434 (COMMON_OBS): Add common-debug.o and debug.o.
3435 (common-debug.o): New rule.
3436 * common/common-defs.h: Include common-debug.h.
3437 * common/agent.c (debug_agent_printf): New function.
3438 (DEBUG_AGENT): Redefine.
3439 * nat/i386-dregs.c (debug_printf): Undefine.
3440
3441 2014-08-19 Gary Benson <gbenson@redhat.com>
3442
3443 * common/common-defs.h: Include print-utils.h.
3444 * utils.h: Do not include print-utils.h.
3445
3446 2014-08-19 Tom Tromey <tromey@redhat.com>
3447 Gary Benson <gbenson@redhat.com>
3448
3449 * common/common-types.h: New file.
3450 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3451 * common/common-defs.h: Include common-types.h.
3452 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3453 (ULONGEST): Remove.
3454
3455 2014-08-19 Tom Tromey <tromey@redhat.com>
3456 Gary Benson <gbenson@redhat.com>
3457
3458 * common/errors.h: New file.
3459 * common/errors.c: Likewise.
3460 * Makefile.in (SFILES): Add common/errors.c.
3461 (HFILES_NO_SRCDIR): Add common/errors.h.
3462 (COMMON_OBS): Add errors.o.
3463 (errors.o): New rule.
3464 * common/common-defs.h: Include errors.h.
3465 * utils.h (perror_with_name, error, verror, warning, vwarning):
3466 Don't declare.
3467 * common/common-utils.h: (malloc_failure, internal_error):
3468 Likewise.
3469
3470 2014-08-19 Gary Benson <gbenson@redhat.com>
3471
3472 * utils.c (internal_vproblem): Always print the message.
3473
3474 2014-08-18 Doug Evans <dje@google.com>
3475
3476 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3477
3478 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3479
3480 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3481 Return 0 if TYPE is dynamic.
3482 (print_range): Add handling of dynamic ranges.
3483
3484 2014-08-18 Keven Boell <keven.boell@intel.com>
3485 Joel Brobecker <brobecker@adacore.com>
3486
3487 * gdbtypes.h (struct main_type): Add field "data_location".
3488 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3489 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3490 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3491 a dynamic data location.
3492 (resolve_dynamic_type): Add DW_AT_data_location handling.
3493 (copy_recursive, copy_type): Copy the data_location information
3494 when present.
3495 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3496 * value.c (value_from_contents_and_address): Add
3497 DW_AT_data_location handling.
3498
3499 2014-08-18 Keven Boell <keven.boell@intel.com>
3500 Joel Brobecker <brobecker@adacore.com>
3501
3502 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3503 field "get_object_address".
3504 * dwarf2expr.c (execute_stack_op): Add handling for
3505 DW_OP_push_object_address.
3506 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3507 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3508 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3509 (dwarf_expr_get_obj_addr): New function.
3510 (dwarf_expr_ctx_funcs): Add get_object_address field.
3511 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3512 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3513 (dwarf2_evaluate_property): Add parameter "address". Use it.
3514 (needs_get_obj_addr): New function.
3515 (needs_frame_ctx_funcs): Add get_object_address field.
3516 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3517 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3518 (resolve_dynamic_array): Likewise.
3519
3520 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3521
3522 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3523 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3524 fixed value for records and unions for which some GNAT encodings
3525 are present.
3526
3527 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3528
3529 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3530 rewrite to avoid "else if" and "else" constructs. Should be
3531 a no-op in practice.
3532
3533 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3534
3535 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3536 of lexical block.
3537
3538 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3539
3540 PR c++/17132
3541 * eval.c: Update all calls to find_overload_match.
3542 * valarith.c: Likewise.
3543 (value_user_defined_cpp_op, value_user_defined_op): New
3544 argument NOSIDE. Update all callers.
3545 * valops.c (find_overload_match): New argument NOSIDE.
3546 * value.h (find_overload_match): Update signature.
3547
3548 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3549
3550 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3551 'items' methods instead of 'iteritems' method on dictionaries.
3552
3553 2014-08-15 Doug Evans <dje@google.com>
3554
3555 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3556 closer to use.
3557
3558 2014-08-15 Doug Evans <dje@google.com>
3559
3560 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3561
3562 2014-08-15 Doug Evans <dje@google.com>
3563
3564 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3565
3566 2014-08-15 Doug Evans <dje@google.com>
3567
3568 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3569 unused.
3570
3571 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3572
3573 * dcache.h: Include target.h, to avoid compile time warnings.
3574
3575 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3576
3577 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3578 frame_info" partial declaration.
3579 * gdbarch.h: Regenerate.
3580
3581 2014-08-15 Yao Qi <yao@codesourcery.com>
3582
3583 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3584 Add parameter 'decode_for_pst_p'. Callers update.
3585
3586 2014-08-13 Yao Qi <yao@codesourcery.com>
3587
3588 PR build/17104
3589 * configure.ac: Use local variable 'pos'.
3590 * configure: Regenerated.
3591
3592 2014-08-11 Doug Evans <dje@google.com>
3593
3594 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3595 message, it is redundant with "Reading symbols from ..." message.
3596
3597 2014-08-10 Doug Evans <xdje42@gmail.com>
3598
3599 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3600
3601 2014-08-09 Yao Qi <yao@codesourcery.com>
3602
3603 PR remote/9053
3604 * remote.c (remote_xfer_partial): Remove dead code.
3605
3606 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3607
3608 * ia64-linux-tdep.c: Include "regset.h".
3609 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3610 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3611 (ia64_linux_supply_fpregset): New function.
3612 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3613 (ia64_linux_regset_from_core_section): New function.
3614 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3615 method.
3616
3617 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3618
3619 * m68klinux-tdep.c: Include "regset.h".
3620 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3621 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3622 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3623 (m68k_linux_regset_from_core_section): New function.
3624 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3625 method.
3626
3627 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3628
3629 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3630 function. Move logic to...
3631 (tilegx_linux_regmap): ... this new register map.
3632 (tilegx_linux_regset): Refer to register map, replace supply
3633 method by regcache_supply_regset, and add collect method.
3634 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3635 TILEGX_FIRST_EASY_REGNUM.
3636
3637 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3638
3639 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3640 that calls regcache_supply_regset and handles the EPC register
3641 separately. Move main logic to...
3642 (score7_linux_gregmap): ... this new register map.
3643 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3644 (score7_linux_gregset): Refer to register map. Add collect method.
3645 (score7_linux_regset_from_core_section): Replace
3646 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3647 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3648 (struct regset): Delete unused forward declaraction.
3649 (struct pt_regs): Delete structure definition.
3650 (elf_gregset_t): Delete typedef.
3651
3652 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3653
3654 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3655 (nios2_core_regset): Add collect method.
3656
3657 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3658
3659 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3660 platform-independent and don't write to read-only input buffer.
3661 (m32r_linux_collect_gregset): New function.
3662 (m32r_linux_gregset): Add collect method.
3663
3664 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3665
3666 * hppa-linux-tdep.c (greg_map): Rename to...
3667 (hppa_linux_gregmap): ... this. Also convert to
3668 regcache_map_entry format.
3669 (hppa_linux_supply_regset): Delete function.
3670 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3671 (hppa_linux_fpregmap): ... this new register map.
3672 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3673 register map, replace supply method by regcache_supply_regset, and
3674 add collect method regcache_collect_regset.
3675
3676 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3677
3678 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3679 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3680 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3681 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3682 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3683 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3684 (frv_linux_supply_gregset): Replace main logic by call to
3685 regcache_supply_regset, but keep clearing gr32-gr63.
3686 (frv_linux_supply_fpregset): Delete function.
3687 (frv_linux_gregset): Refer to appropriate register map and add
3688 regcache_collect_regset as the collect method.
3689 (frv_linux_fpregset): Likewise. Also exchange the supply method
3690 by regcache_supply_regset.
3691
3692 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3693
3694 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3695 by call to alpha_supply_int_regs.
3696 (alpha_linux_collect_gregset): New function.
3697 (alpha_linux_supply_fpregset): Replace logic by call to
3698 alpha_supply_fp_regs.
3699 (alpha_linux_collect_fpregset): New function.
3700 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3701
3702 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3703
3704 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3705 by call to regcache_collect_regset.
3706 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3707 instead of aarch64_linux_supply_gregset/_fpregset.
3708 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3709 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3710 header file instead.
3711 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3712 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3713 functions. Move logic to ...
3714 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3715 register maps.
3716 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3717 refer to new register maps, replace *_regset_from_core by
3718 regcache_supply_regset, and also use regcache_collect_regset.
3719 * aarch64-linux-tdep.h: Include "regset.h".
3720 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3721 Delete prototypes.
3722 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3723 macros, moved from C source file.
3724 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3725 variable declarations.
3726
3727 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3728
3729 * s390-linux-nat.c: Include "regset.h".
3730 (regmap_gregset): Delete macro.
3731 (s390_64_regmap_gregset): New register map for
3732 regcache_supply/_collect_regset.
3733 (s390_64_gregset): New regset.
3734 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3735 (regmap_fpregset): Delete macro.
3736 (s390_native_supply, s390_native_collect): Delete functions.
3737 (supply_gregset, fill_gregset): Replace s390-specific regmap
3738 handling by a call to regcache_supply/_collect_regset.
3739 (supply_fpregset, fill_fpregset): Call regcache_supply/
3740 _collect_regset instead of s390_native_supply/_collect.
3741 (fetch_regset, store_regset): Likewise. Also change the last
3742 parameter to a regset instead of a regmap.
3743 (s390_linux_fetch_inferior_registers)
3744 (390_linux_store_inferior_registers): Adjust last parameter in
3745 calls to fetch_regset and store_regset.
3746 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3747 (s390_gregmap): ... this. Also make static const and convert to
3748 regcache_map_entry format.
3749 (s390x_regmap_gregset): Delete.
3750 (s390_regmap_fpregset): Rename to...
3751 (s390_fpregmap): ... this. Make static const and convert to
3752 regcache_map_entry format.
3753 (s390_regmap_upper, s390_regmap_last_break)
3754 (s390x_regmap_last_break, s390_regmap_system_call)
3755 (s390_regmap_tdb): Likewise.
3756 (s390_supply_regset, s390_collect_regset): Remove functions.
3757 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3758 s390_supply_regset.
3759 (s390_gregset, s390_fpregset, s390_upper_regset)
3760 (s390_last_break_regset, s390x_last_break_regset)
3761 (s390_system_call_regset, s390_tdb_regset): Make global and
3762 replace s390_supply/_collect_regset by regcache_supply/
3763 _collect_regset.
3764 (s390x_gregset): Delete.
3765 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3766 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3767 (s390_regmap_fpregset, s390_regmap_last_break)
3768 (s390x_regmap_last_break, s390_regmap_system_call)
3769 (s390_regmap_tdb): Delete global variable declarations.
3770 (s390_gregset, s390_fpregset, s390_last_break_regset)
3771 (s390x_last_break_regset, s390_system_call_regset)
3772 (s390_tdb_regset): New global variable declarations.
3773
3774 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3775
3776 * regcache.c: Include "regset.h".
3777 (regcache_transfer_regset): New local function.
3778 (regcache_supply_regset, regcache_collect_regset): New functions.
3779 * regcache.h (struct regcache_map_entry): New structure.
3780 (REGCACHE_MAP_SKIP): New enum value.
3781 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3782
3783 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3784
3785 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3786 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3787 (ppc_linux_collect_gregset ): Likewise.
3788 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3789 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3790 (ppc_collect_vrregset): Likewise.
3791 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3792 Likewise.
3793
3794 2014-08-07 Yao Qi <yao@codesourcery.com>
3795
3796 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3797 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3798 * remote.c (remote_read_bytes): Likewise.
3799
3800 2014-08-07 Yao Qi <yao@codesourcery.com>
3801
3802 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3803
3804 2014-08-07 Yao Qi <yao@codesourcery.com>
3805
3806 PR remote/17230
3807 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3808 TARGET_XFER_OK instead of 0.
3809
3810 2014-08-07 Gary Benson <gbenson@redhat.com>
3811
3812 * common/common-defs.h: Include errno.h.
3813 * defs.h: Do not include errno.h.
3814 * ada-typeprint.c: Likewise.
3815 * c-typeprint.c: Likewise.
3816 * core-regset.c: Likewise.
3817 * corefile.c: Likewise.
3818 * corelow.c: Likewise.
3819 * event-loop.c: Likewise.
3820 * f-typeprint.c: Likewise.
3821 * gnu-nat.c: Likewise.
3822 * go32-nat.c: Likewise.
3823 * i386gnu-nat.c: Likewise.
3824 * m2-typeprint.c: Likewise.
3825 * nat/linux-btrace.c: Likewise.
3826 * p-typeprint.c: Likewise.
3827 * procfs.c: Likewise.
3828 * remote-sim.c: Likewise.
3829 * rs6000-nat.c: Likewise.
3830 * target.c: Likewise.
3831 * typeprint.c: Likewise.
3832 * ui-file.c: Likewise.
3833 * valops.c: Likewise.
3834 * valprint.c: Likewise.
3835
3836 2014-08-07 Gary Benson <gbenson@redhat.com>
3837
3838 * common/common-defs.h: Include string.h.
3839 * aarch64-tdep.c: Do not include string.h.
3840 * ada-exp.y: Likewise.
3841 * ada-lang.c: Likewise.
3842 * ada-lex.l: Likewise.
3843 * ada-typeprint.c: Likewise.
3844 * ada-valprint.c: Likewise.
3845 * aix-thread.c: Likewise.
3846 * alpha-linux-tdep.c: Likewise.
3847 * alpha-mdebug-tdep.c: Likewise.
3848 * alpha-nat.c: Likewise.
3849 * alpha-osf1-tdep.c: Likewise.
3850 * alpha-tdep.c: Likewise.
3851 * alphanbsd-tdep.c: Likewise.
3852 * amd64-dicos-tdep.c: Likewise.
3853 * amd64-linux-tdep.c: Likewise.
3854 * amd64-nat.c: Likewise.
3855 * amd64-sol2-tdep.c: Likewise.
3856 * amd64fbsd-tdep.c: Likewise.
3857 * amd64obsd-tdep.c: Likewise.
3858 * arch-utils.c: Likewise.
3859 * arm-linux-nat.c: Likewise.
3860 * arm-linux-tdep.c: Likewise.
3861 * arm-tdep.c: Likewise.
3862 * arm-wince-tdep.c: Likewise.
3863 * armbsd-tdep.c: Likewise.
3864 * armnbsd-nat.c: Likewise.
3865 * armnbsd-tdep.c: Likewise.
3866 * armobsd-tdep.c: Likewise.
3867 * avr-tdep.c: Likewise.
3868 * ax-gdb.c: Likewise.
3869 * ax-general.c: Likewise.
3870 * bcache.c: Likewise.
3871 * bfin-tdep.c: Likewise.
3872 * breakpoint.c: Likewise.
3873 * build-id.c: Likewise.
3874 * buildsym.c: Likewise.
3875 * c-exp.y: Likewise.
3876 * c-lang.c: Likewise.
3877 * c-typeprint.c: Likewise.
3878 * c-valprint.c: Likewise.
3879 * charset.c: Likewise.
3880 * cli-out.c: Likewise.
3881 * cli/cli-cmds.c: Likewise.
3882 * cli/cli-decode.c: Likewise.
3883 * cli/cli-dump.c: Likewise.
3884 * cli/cli-interp.c: Likewise.
3885 * cli/cli-logging.c: Likewise.
3886 * cli/cli-script.c: Likewise.
3887 * cli/cli-setshow.c: Likewise.
3888 * cli/cli-utils.c: Likewise.
3889 * coffread.c: Likewise.
3890 * common/agent.c: Likewise.
3891 * common/buffer.c: Likewise.
3892 * common/buffer.h: Likewise.
3893 * common/common-utils.c: Likewise.
3894 * common/filestuff.c: Likewise.
3895 * common/filestuff.c: Likewise.
3896 * common/format.c: Likewise.
3897 * common/print-utils.c: Likewise.
3898 * common/rsp-low.c: Likewise.
3899 * common/signals.c: Likewise.
3900 * common/vec.h: Likewise.
3901 * common/xml-utils.c: Likewise.
3902 * core-regset.c: Likewise.
3903 * corefile.c: Likewise.
3904 * corelow.c: Likewise.
3905 * cp-abi.c: Likewise.
3906 * cp-name-parser.y: Likewise.
3907 * cp-support.c: Likewise.
3908 * cp-valprint.c: Likewise.
3909 * cris-tdep.c: Likewise.
3910 * d-exp.y: Likewise.
3911 * darwin-nat.c: Likewise.
3912 * dbxread.c: Likewise.
3913 * dcache.c: Likewise.
3914 * demangle.c: Likewise.
3915 * dicos-tdep.c: Likewise.
3916 * disasm.c: Likewise.
3917 * doublest.c: Likewise.
3918 * dsrec.c: Likewise.
3919 * dummy-frame.c: Likewise.
3920 * dwarf2-frame.c: Likewise.
3921 * dwarf2loc.c: Likewise.
3922 * dwarf2read.c: Likewise.
3923 * elfread.c: Likewise.
3924 * environ.c: Likewise.
3925 * eval.c: Likewise.
3926 * event-loop.c: Likewise.
3927 * exceptions.c: Likewise.
3928 * exec.c: Likewise.
3929 * expprint.c: Likewise.
3930 * f-exp.y: Likewise.
3931 * f-lang.c: Likewise.
3932 * f-typeprint.c: Likewise.
3933 * f-valprint.c: Likewise.
3934 * fbsd-nat.c: Likewise.
3935 * findcmd.c: Likewise.
3936 * findvar.c: Likewise.
3937 * fork-child.c: Likewise.
3938 * frame.c: Likewise.
3939 * frv-linux-tdep.c: Likewise.
3940 * frv-tdep.c: Likewise.
3941 * gdb.c: Likewise.
3942 * gdb_bfd.c: Likewise.
3943 * gdbarch.c: Likewise.
3944 * gdbarch.sh: Likewise.
3945 * gdbtypes.c: Likewise.
3946 * gnu-nat.c: Likewise.
3947 * gnu-v2-abi.c: Likewise.
3948 * gnu-v3-abi.c: Likewise.
3949 * go-exp.y: Likewise.
3950 * go-lang.c: Likewise.
3951 * go32-nat.c: Likewise.
3952 * guile/guile.c: Likewise.
3953 * guile/scm-auto-load.c: Likewise.
3954 * hppa-hpux-tdep.c: Likewise.
3955 * hppa-linux-nat.c: Likewise.
3956 * hppanbsd-tdep.c: Likewise.
3957 * hppaobsd-tdep.c: Likewise.
3958 * i386-cygwin-tdep.c: Likewise.
3959 * i386-dicos-tdep.c: Likewise.
3960 * i386-linux-tdep.c: Likewise.
3961 * i386-nto-tdep.c: Likewise.
3962 * i386-sol2-tdep.c: Likewise.
3963 * i386-tdep.c: Likewise.
3964 * i386bsd-tdep.c: Likewise.
3965 * i386gnu-nat.c: Likewise.
3966 * i386nbsd-tdep.c: Likewise.
3967 * i386obsd-tdep.c: Likewise.
3968 * i387-tdep.c: Likewise.
3969 * ia64-libunwind-tdep.c: Likewise.
3970 * ia64-linux-nat.c: Likewise.
3971 * inf-child.c: Likewise.
3972 * inf-ptrace.c: Likewise.
3973 * inf-ttrace.c: Likewise.
3974 * infcall.c: Likewise.
3975 * infcmd.c: Likewise.
3976 * inflow.c: Likewise.
3977 * infrun.c: Likewise.
3978 * interps.c: Likewise.
3979 * iq2000-tdep.c: Likewise.
3980 * irix5-nat.c: Likewise.
3981 * jv-exp.y: Likewise.
3982 * jv-lang.c: Likewise.
3983 * jv-typeprint.c: Likewise.
3984 * jv-valprint.c: Likewise.
3985 * language.c: Likewise.
3986 * linux-fork.c: Likewise.
3987 * linux-nat.c: Likewise.
3988 * lm32-tdep.c: Likewise.
3989 * m2-exp.y: Likewise.
3990 * m2-typeprint.c: Likewise.
3991 * m32c-tdep.c: Likewise.
3992 * m32r-linux-nat.c: Likewise.
3993 * m32r-linux-tdep.c: Likewise.
3994 * m32r-rom.c: Likewise.
3995 * m32r-tdep.c: Likewise.
3996 * m68hc11-tdep.c: Likewise.
3997 * m68k-tdep.c: Likewise.
3998 * m68kbsd-tdep.c: Likewise.
3999 * m68klinux-nat.c: Likewise.
4000 * m68klinux-tdep.c: Likewise.
4001 * m88k-tdep.c: Likewise.
4002 * machoread.c: Likewise.
4003 * macrocmd.c: Likewise.
4004 * main.c: Likewise.
4005 * mdebugread.c: Likewise.
4006 * mem-break.c: Likewise.
4007 * memattr.c: Likewise.
4008 * memory-map.c: Likewise.
4009 * mep-tdep.c: Likewise.
4010 * mi/mi-cmd-break.c: Likewise.
4011 * mi/mi-cmd-disas.c: Likewise.
4012 * mi/mi-cmd-env.c: Likewise.
4013 * mi/mi-cmd-stack.c: Likewise.
4014 * mi/mi-cmd-var.c: Likewise.
4015 * mi/mi-cmds.c: Likewise.
4016 * mi/mi-console.c: Likewise.
4017 * mi/mi-getopt.c: Likewise.
4018 * mi/mi-interp.c: Likewise.
4019 * mi/mi-main.c: Likewise.
4020 * mi/mi-parse.c: Likewise.
4021 * microblaze-rom.c: Likewise.
4022 * microblaze-tdep.c: Likewise.
4023 * mingw-hdep.c: Likewise.
4024 * minidebug.c: Likewise.
4025 * minsyms.c: Likewise.
4026 * mips-irix-tdep.c: Likewise.
4027 * mips-linux-tdep.c: Likewise.
4028 * mips-tdep.c: Likewise.
4029 * mips64obsd-tdep.c: Likewise.
4030 * mipsnbsd-tdep.c: Likewise.
4031 * mipsread.c: Likewise.
4032 * mn10300-linux-tdep.c: Likewise.
4033 * mn10300-tdep.c: Likewise.
4034 * monitor.c: Likewise.
4035 * moxie-tdep.c: Likewise.
4036 * mt-tdep.c: Likewise.
4037 * nat/linux-btrace.c: Likewise.
4038 * nat/linux-osdata.c: Likewise.
4039 * nat/linux-procfs.c: Likewise.
4040 * nat/linux-ptrace.c: Likewise.
4041 * nat/linux-waitpid.c: Likewise.
4042 * nbsd-tdep.c: Likewise.
4043 * nios2-linux-tdep.c: Likewise.
4044 * nto-procfs.c: Likewise.
4045 * nto-tdep.c: Likewise.
4046 * objc-lang.c: Likewise.
4047 * objfiles.c: Likewise.
4048 * opencl-lang.c: Likewise.
4049 * osabi.c: Likewise.
4050 * osdata.c: Likewise.
4051 * p-exp.y: Likewise.
4052 * p-lang.c: Likewise.
4053 * p-typeprint.c: Likewise.
4054 * parse.c: Likewise.
4055 * posix-hdep.c: Likewise.
4056 * ppc-linux-nat.c: Likewise.
4057 * ppc-sysv-tdep.c: Likewise.
4058 * ppcfbsd-tdep.c: Likewise.
4059 * ppcnbsd-tdep.c: Likewise.
4060 * ppcobsd-tdep.c: Likewise.
4061 * printcmd.c: Likewise.
4062 * procfs.c: Likewise.
4063 * prologue-value.c: Likewise.
4064 * python/py-auto-load.c: Likewise.
4065 * python/py-gdb-readline.c: Likewise.
4066 * ravenscar-thread.c: Likewise.
4067 * regcache.c: Likewise.
4068 * registry.c: Likewise.
4069 * remote-fileio.c: Likewise.
4070 * remote-m32r-sdi.c: Likewise.
4071 * remote-mips.c: Likewise.
4072 * remote-notif.c: Likewise.
4073 * remote-sim.c: Likewise.
4074 * remote.c: Likewise.
4075 * reverse.c: Likewise.
4076 * rs6000-aix-tdep.c: Likewise.
4077 * ser-base.c: Likewise.
4078 * ser-go32.c: Likewise.
4079 * ser-mingw.c: Likewise.
4080 * ser-pipe.c: Likewise.
4081 * ser-tcp.c: Likewise.
4082 * ser-unix.c: Likewise.
4083 * serial.c: Likewise.
4084 * sh-tdep.c: Likewise.
4085 * sh64-tdep.c: Likewise.
4086 * shnbsd-tdep.c: Likewise.
4087 * skip.c: Likewise.
4088 * sol-thread.c: Likewise.
4089 * solib-dsbt.c: Likewise.
4090 * solib-frv.c: Likewise.
4091 * solib-osf.c: Likewise.
4092 * solib-som.c: Likewise.
4093 * solib-spu.c: Likewise.
4094 * solib-target.c: Likewise.
4095 * solib.c: Likewise.
4096 * somread.c: Likewise.
4097 * source.c: Likewise.
4098 * sparc-nat.c: Likewise.
4099 * sparc-sol2-tdep.c: Likewise.
4100 * sparc-tdep.c: Likewise.
4101 * sparc64-tdep.c: Likewise.
4102 * sparc64fbsd-tdep.c: Likewise.
4103 * sparc64nbsd-tdep.c: Likewise.
4104 * sparcnbsd-tdep.c: Likewise.
4105 * spu-linux-nat.c: Likewise.
4106 * spu-multiarch.c: Likewise.
4107 * spu-tdep.c: Likewise.
4108 * stabsread.c: Likewise.
4109 * stack.c: Likewise.
4110 * std-regs.c: Likewise.
4111 * symfile.c: Likewise.
4112 * symmisc.c: Likewise.
4113 * symtab.c: Likewise.
4114 * target.c: Likewise.
4115 * thread.c: Likewise.
4116 * tilegx-linux-nat.c: Likewise.
4117 * tilegx-tdep.c: Likewise.
4118 * top.c: Likewise.
4119 * tracepoint.c: Likewise.
4120 * tui/tui-command.c: Likewise.
4121 * tui/tui-data.c: Likewise.
4122 * tui/tui-disasm.c: Likewise.
4123 * tui/tui-file.c: Likewise.
4124 * tui/tui-layout.c: Likewise.
4125 * tui/tui-out.c: Likewise.
4126 * tui/tui-regs.c: Likewise.
4127 * tui/tui-source.c: Likewise.
4128 * tui/tui-stack.c: Likewise.
4129 * tui/tui-win.c: Likewise.
4130 * tui/tui-windata.c: Likewise.
4131 * tui/tui-winsource.c: Likewise.
4132 * typeprint.c: Likewise.
4133 * ui-file.c: Likewise.
4134 * ui-out.c: Likewise.
4135 * user-regs.c: Likewise.
4136 * utils.c: Likewise.
4137 * v850-tdep.c: Likewise.
4138 * valarith.c: Likewise.
4139 * valops.c: Likewise.
4140 * valprint.c: Likewise.
4141 * value.c: Likewise.
4142 * varobj.c: Likewise.
4143 * vax-tdep.c: Likewise.
4144 * vaxnbsd-tdep.c: Likewise.
4145 * vaxobsd-tdep.c: Likewise.
4146 * windows-nat.c: Likewise.
4147 * xcoffread.c: Likewise.
4148 * xml-support.c: Likewise.
4149 * xstormy16-tdep.c: Likewise.
4150 * xtensa-linux-nat.c: Likewise.
4151
4152 2014-08-07 Gary Benson <gbenson@redhat.com>
4153
4154 * common/common-defs.h: Include gdb_assert.h.
4155 * aarch64-tdep.c: Do not include gdb_assert.h.
4156 * addrmap.c: Likewise.
4157 * aix-thread.c: Likewise.
4158 * alpha-linux-tdep.c: Likewise.
4159 * alpha-mdebug-tdep.c: Likewise.
4160 * alphanbsd-tdep.c: Likewise.
4161 * amd64-nat.c: Likewise.
4162 * amd64-tdep.c: Likewise.
4163 * amd64bsd-nat.c: Likewise.
4164 * amd64fbsd-nat.c: Likewise.
4165 * amd64fbsd-tdep.c: Likewise.
4166 * amd64nbsd-nat.c: Likewise.
4167 * amd64nbsd-tdep.c: Likewise.
4168 * amd64obsd-nat.c: Likewise.
4169 * amd64obsd-tdep.c: Likewise.
4170 * arch-utils.c: Likewise.
4171 * arm-tdep.c: Likewise.
4172 * armbsd-tdep.c: Likewise.
4173 * auxv.c: Likewise.
4174 * bcache.c: Likewise.
4175 * bfin-tdep.c: Likewise.
4176 * blockframe.c: Likewise.
4177 * breakpoint.c: Likewise.
4178 * bsd-kvm.c: Likewise.
4179 * bsd-uthread.c: Likewise.
4180 * buildsym.c: Likewise.
4181 * c-exp.y: Likewise.
4182 * c-lang.c: Likewise.
4183 * charset.c: Likewise.
4184 * cleanups.c: Likewise.
4185 * cli-out.c: Likewise.
4186 * cli/cli-decode.c: Likewise.
4187 * cli/cli-dump.c: Likewise.
4188 * cli/cli-logging.c: Likewise.
4189 * cli/cli-script.c: Likewise.
4190 * cli/cli-utils.c: Likewise.
4191 * coffread.c: Likewise.
4192 * common/common-utils.c: Likewise.
4193 * common/queue.h: Likewise.
4194 * common/signals.c: Likewise.
4195 * common/vec.h: Likewise.
4196 * complaints.c: Likewise.
4197 * completer.c: Likewise.
4198 * corelow.c: Likewise.
4199 * cp-abi.c: Likewise.
4200 * cp-name-parser.y: Likewise.
4201 * cp-namespace.c: Likewise.
4202 * cp-support.c: Likewise.
4203 * cris-tdep.c: Likewise.
4204 * dbxread.c: Likewise.
4205 * dictionary.c: Likewise.
4206 * doublest.c: Likewise.
4207 * dsrec.c: Likewise.
4208 * dummy-frame.c: Likewise.
4209 * dwarf2-frame-tailcall.c: Likewise.
4210 * dwarf2-frame.c: Likewise.
4211 * dwarf2expr.c: Likewise.
4212 * dwarf2loc.c: Likewise.
4213 * dwarf2read.c: Likewise.
4214 * eval.c: Likewise.
4215 * event-loop.c: Likewise.
4216 * exceptions.c: Likewise.
4217 * expprint.c: Likewise.
4218 * f-valprint.c: Likewise.
4219 * fbsd-nat.c: Likewise.
4220 * findvar.c: Likewise.
4221 * frame-unwind.c: Likewise.
4222 * frame.c: Likewise.
4223 * frv-tdep.c: Likewise.
4224 * gcore.c: Likewise.
4225 * gdb-dlfcn.c: Likewise.
4226 * gdb_bfd.c: Likewise.
4227 * gdbarch.c: Likewise.
4228 * gdbarch.sh: Likewise.
4229 * gdbtypes.c: Likewise.
4230 * gnu-nat.c: Likewise.
4231 * gnu-v3-abi.c: Likewise.
4232 * go-lang.c: Likewise.
4233 * guile/scm-exception.c: Likewise.
4234 * guile/scm-gsmob.c: Likewise.
4235 * guile/scm-lazy-string.c: Likewise.
4236 * guile/scm-math.c: Likewise.
4237 * guile/scm-pretty-print.c: Likewise.
4238 * guile/scm-safe-call.c: Likewise.
4239 * guile/scm-utils.c: Likewise.
4240 * guile/scm-value.c: Likewise.
4241 * h8300-tdep.c: Likewise.
4242 * hppa-hpux-nat.c: Likewise.
4243 * hppa-tdep.c: Likewise.
4244 * hppanbsd-tdep.c: Likewise.
4245 * hppaobsd-tdep.c: Likewise.
4246 * i386-darwin-nat.c: Likewise.
4247 * i386-darwin-tdep.c: Likewise.
4248 * i386-nto-tdep.c: Likewise.
4249 * i386-tdep.c: Likewise.
4250 * i386bsd-nat.c: Likewise.
4251 * i386fbsd-tdep.c: Likewise.
4252 * i386gnu-nat.c: Likewise.
4253 * i386nbsd-tdep.c: Likewise.
4254 * i386obsd-tdep.c: Likewise.
4255 * i387-tdep.c: Likewise.
4256 * ia64-libunwind-tdep.c: Likewise.
4257 * ia64-tdep.c: Likewise.
4258 * inf-ptrace.c: Likewise.
4259 * inf-ttrace.c: Likewise.
4260 * infcall.c: Likewise.
4261 * infcmd.c: Likewise.
4262 * infrun.c: Likewise.
4263 * inline-frame.c: Likewise.
4264 * interps.c: Likewise.
4265 * jv-lang.c: Likewise.
4266 * jv-typeprint.c: Likewise.
4267 * linux-fork.c: Likewise.
4268 * linux-nat.c: Likewise.
4269 * linux-thread-db.c: Likewise.
4270 * m32c-tdep.c: Likewise.
4271 * m32r-linux-nat.c: Likewise.
4272 * m32r-tdep.c: Likewise.
4273 * m68k-tdep.c: Likewise.
4274 * m68kbsd-nat.c: Likewise.
4275 * m68kbsd-tdep.c: Likewise.
4276 * m88k-tdep.c: Likewise.
4277 * machoread.c: Likewise.
4278 * macroexp.c: Likewise.
4279 * macrotab.c: Likewise.
4280 * maint.c: Likewise.
4281 * mdebugread.c: Likewise.
4282 * memory-map.c: Likewise.
4283 * mep-tdep.c: Likewise.
4284 * mi/mi-common.c: Likewise.
4285 * microblaze-tdep.c: Likewise.
4286 * mingw-hdep.c: Likewise.
4287 * mips-linux-nat.c: Likewise.
4288 * mips-linux-tdep.c: Likewise.
4289 * mips-tdep.c: Likewise.
4290 * mips64obsd-tdep.c: Likewise.
4291 * mipsnbsd-tdep.c: Likewise.
4292 * mn10300-linux-tdep.c: Likewise.
4293 * mn10300-tdep.c: Likewise.
4294 * moxie-tdep.c: Likewise.
4295 * mt-tdep.c: Likewise.
4296 * nat/linux-btrace.c: Likewise.
4297 * nat/linux-osdata.c: Likewise.
4298 * nat/linux-ptrace.c: Likewise.
4299 * nat/mips-linux-watch.c: Likewise.
4300 * nios2-linux-tdep.c: Likewise.
4301 * nios2-tdep.c: Likewise.
4302 * objc-lang.c: Likewise.
4303 * objfiles.c: Likewise.
4304 * obsd-nat.c: Likewise.
4305 * opencl-lang.c: Likewise.
4306 * osabi.c: Likewise.
4307 * parse.c: Likewise.
4308 * ppc-linux-nat.c: Likewise.
4309 * ppc-sysv-tdep.c: Likewise.
4310 * ppcfbsd-nat.c: Likewise.
4311 * ppcfbsd-tdep.c: Likewise.
4312 * ppcnbsd-nat.c: Likewise.
4313 * ppcnbsd-tdep.c: Likewise.
4314 * ppcobsd-nat.c: Likewise.
4315 * ppcobsd-tdep.c: Likewise.
4316 * printcmd.c: Likewise.
4317 * procfs.c: Likewise.
4318 * prologue-value.c: Likewise.
4319 * psymtab.c: Likewise.
4320 * python/py-lazy-string.c: Likewise.
4321 * python/py-value.c: Likewise.
4322 * regcache.c: Likewise.
4323 * reggroups.c: Likewise.
4324 * registry.c: Likewise.
4325 * remote-sim.c: Likewise.
4326 * remote.c: Likewise.
4327 * rs6000-aix-tdep.c: Likewise.
4328 * rs6000-tdep.c: Likewise.
4329 * s390-linux-tdep.c: Likewise.
4330 * score-tdep.c: Likewise.
4331 * ser-base.c: Likewise.
4332 * ser-mingw.c: Likewise.
4333 * sh-tdep.c: Likewise.
4334 * sh64-tdep.c: Likewise.
4335 * solib-darwin.c: Likewise.
4336 * solib-spu.c: Likewise.
4337 * solib-svr4.c: Likewise.
4338 * source.c: Likewise.
4339 * sparc-nat.c: Likewise.
4340 * sparc-sol2-tdep.c: Likewise.
4341 * sparc-tdep.c: Likewise.
4342 * sparc64-sol2-tdep.c: Likewise.
4343 * sparc64-tdep.c: Likewise.
4344 * sparc64fbsd-tdep.c: Likewise.
4345 * sparc64nbsd-tdep.c: Likewise.
4346 * sparc64obsd-tdep.c: Likewise.
4347 * sparcnbsd-tdep.c: Likewise.
4348 * sparcobsd-tdep.c: Likewise.
4349 * spu-multiarch.c: Likewise.
4350 * spu-tdep.c: Likewise.
4351 * stabsread.c: Likewise.
4352 * stack.c: Likewise.
4353 * symfile.c: Likewise.
4354 * symtab.c: Likewise.
4355 * target-descriptions.c: Likewise.
4356 * target-memory.c: Likewise.
4357 * target.c: Likewise.
4358 * tic6x-linux-tdep.c: Likewise.
4359 * tic6x-tdep.c: Likewise.
4360 * tilegx-linux-nat.c: Likewise.
4361 * tilegx-tdep.c: Likewise.
4362 * top.c: Likewise.
4363 * tramp-frame.c: Likewise.
4364 * tui/tui-out.c: Likewise.
4365 * tui/tui-winsource.c: Likewise.
4366 * ui-out.c: Likewise.
4367 * user-regs.c: Likewise.
4368 * utils.c: Likewise.
4369 * v850-tdep.c: Likewise.
4370 * valops.c: Likewise.
4371 * value.c: Likewise.
4372 * varobj.c: Likewise.
4373 * vax-nat.c: Likewise.
4374 * xml-syscall.c: Likewise.
4375 * xml-tdesc.c: Likewise.
4376 * xstormy16-tdep.c: Likewise.
4377 * xtensa-linux-nat.c: Likewise.
4378 * xtensa-tdep.c: Likewise.
4379
4380 2014-08-07 Gary Benson <gbenson@redhat.com>
4381
4382 * common/common-defs.h: Include common-utils.h.
4383 * defs.h: Do not include common-utils.h.
4384 * common/gdb_assert.h: Likewise.
4385 * darwin-nat.h: Likewise.
4386 * nat/linux-btrace.c: Likewise.
4387 * target/waitstatus.h: Likewise.
4388
4389 2014-08-07 Gary Benson <gbenson@redhat.com>
4390
4391 * common/common-defs.h: Include ptid.h.
4392 * defs.h: Do not include ptid.h.
4393 * inferior.h: Likewise.
4394 * infrun.h: Likewise.
4395 * nat/linux-btrace.h: Likewise.
4396 * nat/linux-osdata.h: Likewise.
4397 * target/waitstatus.h: Likewise.
4398
4399 2014-08-07 Gary Benson <gbenson@redhat.com>
4400
4401 * common/common-defs.h: Include gdb_locale.h.
4402 * defs.h: Do not include gdb_locale.h.
4403
4404 2014-08-07 Gary Benson <gbenson@redhat.com>
4405
4406 * common/common-defs.h: Include gdb/signals.h.
4407 * defs.h: Do not include gdb/signals.h.
4408
4409 2014-08-07 Gary Benson <gbenson@redhat.com>
4410
4411 * common/common-defs.h: Include pathmax.h.
4412 * defs.h: Do not include pathmax.h.
4413
4414 2014-08-07 Gary Benson <gbenson@redhat.com>
4415
4416 * common/common-defs.h: Include libiberty.h.
4417 * defs.h: Do not include libiberty.h.
4418 * common/queue.h: Likewise.
4419 * cp-name-parser.y: Likewise.
4420 * mi/mi-cmd-catch.c: Likewise.
4421 * python/python.c: Likewise.
4422
4423 2014-08-07 Gary Benson <gbenson@redhat.com>
4424
4425 * common/common-defs.h: Include ansidecl.h.
4426 * defs.h: Do not include ansidecl.h.
4427 * common/buffer.h: Likewise.
4428 * common/common-utils.h: Likewise.
4429
4430 2014-08-07 Gary Benson <gbenson@redhat.com>
4431
4432 * common/common-defs.h: Include stddef.h.
4433 * defs.h: Do not include stddef.h.
4434 * common/common-utils.h: Likewise.
4435 * amd64fbsd-nat.c: Likewise.
4436 * bcache.c: Likewise.
4437 * charset.c: Likewise.
4438 * common/buffer.h: Likewise.
4439 * common/vec.h: Likewise.
4440 * i386bsd-nat.c: Likewise.
4441 * nat/linux-btrace.h: Likewise.
4442 * ppcfbsd-nat.c: Likewise.
4443 * ppcnbsd-tdep.h: Likewise.
4444 * ppcobsd-nat.c: Likewise.
4445 * ppcobsd-tdep.h: Likewise.
4446 * python/py-gdb-readline.c: Likewise.
4447
4448 2014-08-07 Gary Benson <gbenson@redhat.com>
4449
4450 * common/common-defs.h: Include stdarg.h.
4451 * defs.h: Do not include stdarg.h.
4452 * ada-lang.c: Likewise.
4453 * common/common-utils.h: Likewise.
4454 * guile/scm-string.c: Likewise.
4455 * guile/scm-utils.c: Likewise.
4456 * m32c-tdep.c: Likewise.
4457
4458 2014-08-07 Gary Benson <gbenson@redhat.com>
4459
4460 * common/common-defs.h: Include stdlib.h.
4461 * defs.h: Do not include stdlib.h.
4462 * addrmap.c: Likewise.
4463 * bcache.c: Likewise.
4464 * common/buffer.c: Likewise.
4465 * common/common-utils.c: Likewise.
4466 * cp-name-parser.y: Likewise.
4467 * go32-nat.c: Likewise.
4468 * mn10300-linux-tdep.c: Likewise.
4469 * nat/linux-osdata.c: Likewise.
4470 * tui/tui.c: Likewise.
4471 * windows-nat.c: Likewise.
4472
4473 2014-08-07 Gary Benson <gbenson@redhat.com>
4474
4475 * common/common-defs.h: Include stdio.h.
4476 * defs.h: Do not include stdio.h.
4477 * ada-lang.c: Likewise.
4478 * common/buffer.c: Likewise.
4479 * common/common-utils.c: Likewise.
4480 * cp-name-parser.y: Likewise.
4481 * gnu-nat.c: Likewise.
4482 * go32-nat.c: Likewise.
4483 * i386gnu-nat.c: Likewise.
4484 * proc-api.c: Likewise.
4485 * proc-events.c: Likewise.
4486 * proc-flags.c: Likewise.
4487 * proc-why.c: Likewise.
4488 * python/python-internal.h: Likewise.
4489 * target-memory.c: Likewise.
4490 * tui/tui-io.c: Likewise.
4491 * tui/tui.c: Likewise.
4492
4493 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4494
4495 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4496 (scan_dyntag_auxv): Same.
4497
4498 2014-08-06 Yao Qi <yao@codesourcery.com>
4499
4500 * amd64-linux-nat.c: Remove duplicated include
4501 "x86-linux-nat.h".
4502 * i386-linux-nat.c: Likewise.
4503
4504 2014-08-06 Yao Qi <yao@codesourcery.com>
4505
4506 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4507 operand" with "Special opcode" in comments.
4508
4509 2014-08-05 Gary Benson <gbenson@redhat.com>
4510
4511 * interps.c (initialize_interps): Remove prototype.
4512 (interpreter_initialized): Remove static global.
4513 (interp_add): Do not call initialize_interps.
4514 (initialize_interps): Remove function.
4515
4516 2014-08-05 Gary Benson <gbenson@redhat.com>
4517
4518 * utils.c (vwarning): Remove spurious va_end.
4519
4520 2014-08-05 Alan Modra <amodra@gmail.com>
4521
4522 * charset.c (convert_between_encodings): Cast result of obstack_base.
4523 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4524 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4525 (read_unwind_info): Use size_t for some locals.
4526 * jit.c (finalize_symtab): Likewise.
4527 * utils.c (hashtab_obstack_allocate): Likewise.
4528 * symmisc.c (print_objfile_statistics): Update format strings.
4529
4530 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4531
4532 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4533 (Changes in GDB 7.8): ... here.
4534
4535 2014-08-04 Tom Tromey <tromey@redhat.com>
4536
4537 * target.c (set_targetdebug): New function.
4538 (initialize_targets): Pass set_targetdebug when creating "set
4539 debug target".
4540
4541 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4542
4543 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4544 if detecting a variable-sized field that is not the last field.
4545 Fix struct type length computation.
4546
4547 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4548
4549 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4550 Add debug trace.
4551
4552 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4553
4554 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4555 Remove "+ 8" offset in computation of CHAIN_VMA.
4556
4557 2014-07-31 Doug Evans <dje@google.com>
4558
4559 * inflow.c (child_terminal_inferior): Add comment.
4560 (child_terminal_ours_for_output): Add comment.
4561 (child_terminal_ours): Add comment.
4562 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4563 (linux_nat_terminal_ours): Add comment.
4564
4565 2014-07-31 Gary Benson <gbenson@redhat.com>
4566
4567 * common/btrace-common.h: Do not include defs.h or server.h.
4568 * nat/mips-linux-watch.h: Likewise.
4569 * gdb-dlfcn.h: Do not include defs.h.
4570 * tracefile.h: Likewise.
4571
4572 2014-07-30 Roland McGrath <mcgrathr@google.com>
4573
4574 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4575
4576 2014-07-30 Tom Tromey <tromey@redhat.com>
4577
4578 * bsd-kvm.c (bsd_kvm_open): Constify.
4579 * corelow.c (core_open): Constify.
4580 * ctf.c (ctf_open): Constify.
4581 * dbug-rom.c (dbug_open): Constify.
4582 * exec.c (exec_open): Constify.
4583 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4584 * microblaze-rom.c (picobug_open): Constify.
4585 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4586 Constify.
4587 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4588 * record-btrace.c (record_btrace_open): Constify.
4589 * record-full.c (record_full_core_open_1, record_full_open_1)
4590 (record_full_open): Constify.
4591 * remote-m32r-sdi.c (m32r_open): Constify.
4592 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4593 (rockhopper_open, lsi_open): Constify.
4594 * remote-sim.c (gdbsim_open): Constify.
4595 * remote.c (remote_open, extended_remote_open, remote_open_1):
4596 Constify.
4597 * target.h (struct target_ops) <to_open>: Make "arg" const.
4598 * tracefile-tfile.c (tfile_open): Constify.
4599
4600 2014-07-30 Tom Tromey <tromey@redhat.com>
4601
4602 * breakpoint.c (map_breakpoint_numbers): Update.
4603 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4604 (get_number_const): New function.
4605 (get_number): Rewrite using get_number_const.
4606 (init_number_or_range): Make "string" const.
4607 (number_is_in_list): Make "list" const.
4608 * cli/cli-utils.h (get_number_const): Declare.
4609 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4610 (init_number_or_range, number_is_in_list): Update.
4611 * printcmd.c (map_display_numbers): Update.
4612 * value.c (value_from_history_ref): Constify.
4613 * value.h (value_from_history_ref): Update.
4614
4615 2014-07-30 Tom Tromey <tromey@redhat.com>
4616
4617 * corefile.c (hook_type, call_extra_exec_file_hooks)
4618 (specify_exec_file_hook): Constify.
4619 * exec.c (exec_file_attach): Make "filename" const.
4620 * gdbcore.h (deprecated_exec_file_display_hook)
4621 (specify_exec_file_hook, exec_file_attach): Constify.
4622 * main.c (captured_main): Use catch_command_errors_const.
4623
4624 2014-07-30 Tom Tromey <tromey@redhat.com>
4625
4626 * target.c (open_target): New function.
4627 (add_target_with_completer, add_deprecated_target_alias): Use
4628 set_cmd_sfunc, set_cmd_context.
4629 (debug_to_open): Remove.
4630 (setup_target_debug): Update.
4631
4632 2014-07-30 Yao Qi <yao@codesourcery.com>
4633
4634 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4635 comments.
4636 * parse.c (exp_iterate): Update comments.
4637
4638 2014-07-30 Gary Benson <gbenson@redhat.com>
4639
4640 * common/common-defs.h: New file.
4641 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4642 * defs.h: Include common-defs.h.
4643 Do not include config.h or build-gnulib/config.h.
4644
4645 2014-07-30 Gary Benson <gbenson@redhat.com>
4646
4647 * common/common-utils.h: Do not include config.h.
4648 * nat/linux-btrace.h: Likewise.
4649
4650 2014-07-30 Gary Benson <gbenson@redhat.com>
4651
4652 * btrace.c: Include defs.h.
4653 * common/ptid.c: Include defs.h or server.h as appropriate.
4654 * nat/mips-linux-watch.c: Likewise.
4655
4656 2014-07-29 Tom Tromey <tromey@redhat.com>
4657
4658 * target.c (target_is_pushed): Simplify.
4659
4660 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4661
4662 GDB 7.8 released.
4663
4664 2014-07-29 Yao Qi <yao@codesourcery.com>
4665
4666 PR gdb/17206
4667 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4668
4669 2014-07-28 Doug Evans <xdje42@gmail.com>
4670
4671 PR guile/17203
4672 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4673 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4674 parameters.
4675
4676 2014-07-28 Will Newton <will.newton@linaro.org>
4677
4678 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4679 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4680 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4681 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4682 (THUMB2_EABI_SYSCALL): Likewise.
4683 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4684 struct tramp_frame.
4685 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4686 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4687
4688 2014-07-27 Doug Evans <xdje42@gmail.com>
4689
4690 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4691
4692 2014-07-27 Doug Evans <xdje42@gmail.com>
4693
4694 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4695
4696 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4697 Doug Evans <xdje42@gmail.com>
4698
4699 PR guile/17146
4700 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4701 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4702 * configure.ac: Try to use guild to compile an scm file, if it fails
4703 then disable guile support.
4704 * configure: Regenerate.
4705 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4706 GUILE_FILE_LIST.
4707 (GUILE_COMPILED_FILES): New variable.
4708 (GUILE_FILES) Update.
4709 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4710 (stamp-guile): Compile scm files.
4711 * guile/guile.c (boot_guile_support): New function.
4712 (standard_throw_args_p): New function.
4713 (print_standard_throw_error, print_throw_error): New functions.
4714 (handle_boot_error): New function.
4715 (initialize_scheme_side): Rewrite to call boot_guile_support.
4716 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4717 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4718
4719 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4720 Doug Evans <xdje42@gmail.com>
4721
4722 PR guile/17146
4723 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4724 * guile/lib/gdb/support.scm: New file.
4725 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4726 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4727 All uses updated.
4728 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4729 All uses updated.
4730 (%assert-type): Ditto, and renamed to assert-type.
4731 (%exception-print-style): Delete.
4732
4733 2014-07-26 Doug Evans <xdje42@gmail.com>
4734
4735 PR build/17105
4736 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4737 * configure: Regenerate.
4738 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4739 PYTHON_FILES.
4740 (PYTHON_FILES): New variable.
4741 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4742 (GUILE_FILES): New variable.
4743 (stamp-python, install-python, uninstall-python): Handle empty
4744 file list.
4745 (stamp-guile, install-guile, uninstall-guile): Ditto.
4746
4747 2014-07-26 Doug Evans <xdje42@gmail.com>
4748
4749 PR guile/17177
4750 * guile/lib/gdb.scm (pretty-printers): Export.
4751 (set-pretty-printers!): Export.
4752 * guile/lib/gdb/printing.scm (gdb module): Update.
4753 (prepend-pretty-printer!, append-pretty-printer!): Update.
4754 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4755 (pretty_printer_list_var): Delete.
4756 (pretty_printer_list): New static global.
4757 (gdbscm_pretty_printers): New function.
4758 (gdbscm_set_pretty_printers_x): New function.
4759 (ppscm_find_pretty_printer_from_gdb): Update.
4760 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4761 (gdbscm_initialize_pretty_printers): Update.
4762
4763 2014-07-26 Doug Evans <xdje42@gmail.com>
4764
4765 PR 17185
4766 * configure.ac: Add check for header gc/gc.h.
4767 Add check for function setenv.
4768 * configure: Regenerate.
4769 * config.in: Regenerate.
4770 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4771
4772 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4773
4774 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4775 variation in gdbarch matching.
4776
4777 2014-07-25 Tom Tromey <tromey@redhat.com>
4778
4779 * exec.c (using_exec_ops): Remove.
4780 (exec_close_1): Update. Remove extraneous block, reindent.
4781 (add_target_sections): Use target_is_pushed.
4782
4783 2014-07-25 Pedro Alves <palves@redhat.com>
4784
4785 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4786 * monitor.c (monitor_create_inferior): Likewise.
4787 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4788 * remote-sim.c (gdbsim_create_inferior): Likewise.
4789 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4790 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4791 * windows-nat.c (do_initial_windows_stuff): Likewise.
4792
4793 2014-07-25 Pedro Alves <palves@redhat.com>
4794
4795 * NEWS: Mention signal passing and "signal" command changes.
4796 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4797 comment.
4798 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4799 call.
4800 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4801 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4802 (jump_command): Adjust clear_proceed_status call.
4803 (signal_command): Warn if other thread that are resumed have
4804 signals that will be delivered. Adjust clear_proceed_status call.
4805 (until_next_command, finish_command)
4806 (proceed_after_attach_callback, attach_command_post_wait)
4807 (attach_command): Adjust clear_proceed_status call.
4808 * infrun.c (proceed_after_vfork_done): Likewise.
4809 (proceed_after_attach_callback): Adjust comment.
4810 (clear_proceed_status_thread): Clear stop_signal if not in pass
4811 state.
4812 (clear_proceed_status_callback): Delete.
4813 (clear_proceed_status): New 'step' parameter. Only clear the
4814 proceed status of threads the command being prepared is about to
4815 resume.
4816 (proceed): If passed in an explicit signal, override stop_signal
4817 with it. Don't pass the last stop signal to the thread we're
4818 resuming.
4819 (init_wait_for_inferior): Adjust clear_proceed_status call.
4820 (switch_back_to_stepped_thread): Clear the signal if it should not
4821 be passed.
4822 * infrun.h (clear_proceed_status): New 'step' parameter.
4823 (user_visible_resume_ptid): Add comment.
4824 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4825 signal is in pass state.
4826 * remote.c (append_pending_thread_resumptions): Likewise.
4827 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4828
4829 2014-07-25 Tom Tromey <tromey@redhat.com>
4830
4831 * target.h (target_stopped_data_address)
4832 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4833 parentheses.
4834
4835 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4836
4837 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4838 comments.
4839 (avr_pointer_to_address): Likewise.
4840
4841 2014-07-24 Tom Tromey <tromey@redhat.com>
4842
4843 * monitor.c (compile_pattern): Update.
4844 * target.h (struct target_ops) <to_shortname, to_longname,
4845 to_doc>: Now const.
4846
4847 2014-07-24 Tom Tromey <tromey@redhat.com>
4848
4849 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4850 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4851 (add_info_alias, add_com): Make "doc" const.
4852 (print_doc_line): Make "str" const.
4853 (delete_cmd): Update.
4854 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4855 (print_doc_line): Update.
4856 * cli/cli-script.c (document_command): Update.
4857 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4858 (add_com, add_info, add_info_alias): Update.
4859 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4860 * python/py-cmd.c (cmdpy_destroyer): Update.
4861
4862 2014-07-24 Tom Tromey <tromey@redhat.com>
4863
4864 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4865 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4866 (help_cmd_list): Constify.
4867 (lookup_cmd): Update.
4868 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4869 const.
4870 (help_cmd_list, apropos_cmd): Update.
4871 * cli/cli-script.c (show_user): Update.
4872 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4873 * cli/cli-setshow.h (cmd_show_list): Update.
4874 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4875 (cmd_show_list): Update.
4876 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4877 * python/py-cmd.c (cmdpy_destroyer): Update.
4878
4879 2014-07-24 Tom Tromey <tromey@redhat.com>
4880
4881 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4882 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4883 const.
4884 * command.h (deprecate_cmd): Update.
4885 * maint.c (maintenance_do_deprecate): Add casts.
4886
4887 2014-07-24 Tom Tromey <tromey@redhat.com>
4888
4889 * cli/cli-decode.c (help_cmd): Make parameter "const".
4890 * cli/cli-decode.h (help_cmd): Update.
4891
4892 2014-07-24 Tom Tromey <tromey@redhat.com>
4893
4894 * stack.c (up_silently_base, down_silently_base): Make argument
4895 const.
4896
4897 2014-07-24 Tom Tromey <tromey@redhat.com>
4898
4899 * solib.c (solib_add): Make "pattern" const.
4900 * solib.h (solib_add): Update.
4901
4902 2014-07-24 Tom Tromey <tromey@redhat.com>
4903
4904 * remote.c (remote_serial_open, print_packet, putpkt)
4905 (putpkt_binary): Constify.
4906 * remote.h (putpkt): Update.
4907
4908 2014-07-24 Tom Tromey <tromey@redhat.com>
4909
4910 * monitor.c (monitor_open): Make "args" const.
4911 * monitor.h (monitor_open): Update.
4912
4913 2014-07-24 Tom Tromey <tromey@redhat.com>
4914
4915 * maint.c (match_bfd_flags): Make "string" const.
4916 (print_bfd_section_info): Remove casts.
4917 (print_objfile_section_info): Make "string" const.
4918
4919 2014-07-24 Tom Tromey <tromey@redhat.com>
4920
4921 * inf-child.c (inf_child_open_target): Make "arg" const.
4922 * inf-child.h (inf_child_open_target): Update.
4923
4924 2014-07-24 Tom Tromey <tromey@redhat.com>
4925
4926 * environ.c (unset_in_environ): Make "var" const.
4927 * environ.h (unset_in_environ): Update.
4928
4929 2014-07-24 Tom Tromey <tromey@redhat.com>
4930
4931 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4932 Make "cmd" const.
4933 (scan_filename_with_cleanup): Likewise.
4934 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4935 Make arguments const.
4936 (restore_command): Update.
4937
4938 2014-07-24 Pedro Alves <palves@redhat.com>
4939
4940 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4941
4942 2014-07-24 Tom Tromey <tromey@redhat.com>
4943 Gary Benson <gbenson@redhat.com>
4944
4945 * nat/linux-ptrace.c (additional_flags): New global.
4946 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4947 additional_flags; don't check GDBSERVER.
4948 (linux_ptrace_set_additional_flags): New function.
4949 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4950 Declare.
4951 * linux-nat.c (_initialize_linux_nat): Call
4952 linux_ptrace_set_additional_flags.
4953
4954 2014-07-24 Tom Tromey <tromey@redhat.com>
4955
4956 * make-target-delegates (munge_type, write_debugmethod): New
4957 functions.
4958 (debug_names): New global.
4959 ($TARGET_DEBUG_PRINTER): New global.
4960 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4961 name.
4962 Write debug methods. Generate init_debug_target.
4963 * target-debug.h: New file.
4964 * target-delegates.c: Rebuild.
4965 * target.c: Include target-debug.h.
4966 (debug_target): Hoist definition.
4967 (target_kill, target_get_section_table, target_memory_map)
4968 (target_flash_erase, target_flash_done, target_detach)
4969 (target_disconnect, target_wait, target_resume)
4970 (target_pass_signals, target_program_signals, target_follow_fork)
4971 (target_mourn_inferior, target_search_memory)
4972 (target_thread_address_space, target_close)
4973 (target_find_new_threads, target_core_of_thread)
4974 (target_verify_memory, target_insert_mask_watchpoint)
4975 (target_remove_mask_watchpoint): Remove targetdebug code.
4976 (debug_to_post_attach, debug_to_prepare_to_store)
4977 (debug_to_files_info, debug_to_insert_breakpoint)
4978 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4979 (debug_to_region_ok_for_hw_watchpoint)
4980 (debug_to_can_accel_watchpoint_condition)
4981 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4982 (debug_to_watchpoint_addr_within_range)
4983 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4984 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4985 (debug_to_terminal_init, debug_to_terminal_inferior)
4986 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4987 (debug_to_terminal_save_ours, debug_to_terminal_info)
4988 (debug_to_load, debug_to_post_startup_inferior)
4989 (debug_to_insert_fork_catchpoint)
4990 (debug_to_remove_fork_catchpoint)
4991 (debug_to_insert_vfork_catchpoint)
4992 (debug_to_remove_vfork_catchpoint)
4993 (debug_to_insert_exec_catchpoint)
4994 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4995 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4996 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4997 (setup_target_debug): Call init_debug_target.
4998 * target.h (TARGET_DEBUG_PRINTER): New macro.
4999 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5000 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5001
5002 2014-07-24 Gary Benson <gbenson@redhat.com>
5003
5004 * exceptions.h (throw_vfatal): Renamed to...
5005 (throw_vquit): New declaration.
5006 (throw_quit): Likewise.
5007 * exceptions.c (throw_vfatal): Renamed to...
5008 (throw_vquit): New function.
5009 (throw_quit): Likewise.
5010 (throw_error): Call throw_verror rather than throw_it.
5011 * utils.h (vfatal): Removed.
5012 (fatal): Likewise.
5013 * utils.c (vfatal): Removed.
5014 (fatal): Likewise.
5015 (internal_verror): Replaced call to fatal with call to throw_quit.
5016 (quit): Replaced calls to fatal with calls to throw_quit.
5017
5018 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5019
5020 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5021 target_read_code.
5022
5023 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5024
5025 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5026 less than zero in conditional expression.
5027
5028 2014-07-23 Tom Tromey <tromey@redhat.com>
5029
5030 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5031 ($INTRO_PART): Don't match whitespace.
5032 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5033 argument matching.
5034 ($METHOD): Add $METHOD_TRAILER.
5035 (trim): Rewrite.
5036 (scan_target_h): New sub.
5037 Change main loop not to collect state.
5038 * target-delegates.c: Rebuild.
5039
5040 2014-07-23 Gary Benson <gbenson@redhat.com>
5041
5042 * cp-support.c (gdb_demangle): Fix build on systems without
5043 sigaltstack.
5044
5045 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5046
5047 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5048 for reference entry value target data value.
5049
5050 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5051
5052 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5053 value_available_contents_eq.
5054
5055 2014-07-22 Pedro Alves <palves@redhat.com>
5056
5057 * value.c (allocate_optimized_out_value): Don't mark value as
5058 non-lazy.
5059
5060 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5061
5062 * MAINTAINERS (Write After Approval): Update my email address.
5063
5064 2014-07-20 Doug Evans <dje@google.com>
5065
5066 PR server/17147
5067 * remote.c (putpkt_binary): Add text to error message.
5068
5069 2014-07-20 Yao Qi <yao@codesourcery.com>
5070
5071 * eval.c: Remove "Chill" from comments.
5072 * gdbtypes.h: Likewise.
5073 * symtab.h: Likewise.
5074
5075 2014-07-20 Yao Qi <yao@codesourcery.com>
5076
5077 * std-operator.def: Update comments to TERNOP_SLICE.
5078
5079 2014-07-20 Yao Qi <yao@codesourcery.com>
5080
5081 * std-operator.def: Remove BINOP_RANGE.
5082 * breakpoint.c (watchpoint_exp_is_const): Update.
5083 * expprint.c (dump_subexp_body_standard): Likewise.
5084 * eval.c (init_array_element): Remove dead code.
5085 (evaluate_subexp_standard): Likewise.
5086
5087 2014-07-20 Yao Qi <yao@codesourcery.com>
5088
5089 * std-operator.def: Remove BINOP_IN.
5090 * breakpoint.c (watchpoint_exp_is_const): Update.
5091 * eval.c (evaluate_subexp_standard): Likewise.
5092 * expprint.c (dump_subexp_body_standard): Likewise.
5093
5094 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5095
5096 * microblaze-tdep.c (microblaze_register_names): Add
5097 the rshr and rslr register names.
5098 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5099 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5100 Use of tdesc_numbered_register. Use of
5101 microblaze_register_g_packet_guesses. Use of
5102 tdesc_use_registers. Use of set_gdbarch_register_type.
5103 (microblaze_register_g_packet_guesses): New.
5104 * microblaze-tdep.h (microblaze_reg_num): Add
5105 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5106 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5107 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5108 * features/microblaze-core.xml: New file.
5109 * features/microblaze-stack-protect.xml: New file.
5110 * features/microblaze-with-stack-protect.c: New file.
5111 * features/microblaze-with-stack-protect.xml: New file.
5112 * features/microblaze.xml: New file.
5113 * features/microblaze.c: New file.
5114 * features/Makefile (microblaze-with-stack-protect): Add
5115 microblaze-with-stack-protect microblaze and microblaze-expedite.
5116 * regformats/microblaze-with-stack-protect.dat: New file.
5117 * regformats/microblaze.dat: New file.
5118 * doc/gdb.texinfo (MicroBlaze Features): Added.
5119
5120 2014-07-18 Tom Tromey <tromey@redhat.com>
5121
5122 * exec.c (exec_ops): Now static.
5123 * exec.h (exec_ops): Don't declare.
5124
5125 2014-07-18 Tom Tromey <tromey@redhat.com>
5126
5127 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5128 to find_target_beneath.
5129 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5130 find_target_beneath.
5131 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5132
5133 2014-07-18 Tom Tromey <tromey@redhat.com>
5134
5135 PR gdb/17130:
5136 * utils.c (quit): Use target_supports_terminal_ours.
5137 * target.h (target_supports_terminal_ours): Declare.
5138 * target.c (target_supports_delete_record): Don't check
5139 to_delete_record against NULL.
5140 (target_supports_terminal_ours): New function.
5141
5142 2014-07-18 Tom Tromey <tromey@redhat.com>
5143
5144 PR gdb/17130:
5145 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5146 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5147 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5148 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5149 * windows-nat.c (windows_xfer_partial): Always delegate.
5150 * record-btrace.c (record_btrace_xfer_partial): Simplify
5151 delegation.
5152 (record_btrace_fetch_registers, record_btrace_store_registers)
5153 (record_btrace_prepare_to_store, record_btrace_resume)
5154 (record_btrace_wait, record_btrace_find_new_threads)
5155 (record_btrace_thread_alive): Likewise.
5156 * procfs.c (procfs_xfer_partial): Always delegate.
5157 * corelow.c (core_xfer_partial): Always delegate.
5158 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5159
5160 2014-07-18 Tom Tromey <tromey@redhat.com>
5161
5162 * exec.c (exec_make_note_section): Move earlier.
5163
5164 2014-07-17 Doug Evans <dje@google.com>
5165
5166 PR gdb/17170
5167 * maint.c (count_symtabs_and_blocks): Handle NULL
5168 current_program_space.
5169 (report_command_stats): Check global enabled flag in addition to
5170 recorded enabled flag.
5171 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5172
5173 2014-07-16 Pedro Alves <palves@redhat.com>
5174
5175 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5176
5177 2014-07-16 Tom Tromey <tromey@redhat.com>
5178
5179 * target.h (struct target_ops) <to_delete_record>: Reformat
5180 comment.
5181
5182 2014-07-16 Tom Tromey <tromey@redhat.com>
5183
5184 * target-delegates.c: Rebuild.
5185
5186 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5187
5188 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5189 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5190 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5191 (avr_pointer_to_address): Likewise.
5192 (avr_address_class_type_flags): New function.
5193 (avr_address_class_type_flags_to_name): Likewise.
5194 (avr_address_class_name_to_type_flags): Likewise.
5195 (avr_gdbarch_init): Set address_class_type_flags,
5196 address_class_type_flags_to_name and
5197 address_class_name_to_type_flags.
5198
5199 2014-07-15 Pedro Alves <palves@redhat.com>
5200
5201 * linux-nat.c (kill_callback): Save errno and work with saved
5202 copy.
5203
5204 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5205
5206 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5207
5208 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5209
5210 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5211 breakpoint support correctly.
5212
5213 2014-07-14 Pedro Alves <palves@redhat.com>
5214
5215 * utils.c (prompt_for_continue): Call target_terminal_ours.
5216
5217 2014-07-14 Pedro Alves <palves@redhat.com>
5218
5219 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5220 catch_errors. Don't re-enable stdin or notify observers where,
5221 and rethrow error.
5222 (fetch_inferior_event_wrapper): Delete.
5223
5224 2014-07-14 Pedro Alves <palves@redhat.com>
5225
5226 PR gdb/17072
5227 * top.c: Include "inf-loop.h".
5228 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5229 field.
5230 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5231 was async before.
5232 (gdb_readline_wrapper): Store whether the target is async, and
5233 make it sync.
5234
5235 2014-07-14 Pedro Alves <palves@redhat.com>
5236
5237 PR gdb/17072
5238 * top.c (gdb_readline_wrapper_line): Tweak comment.
5239 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5240 the input handler callback.
5241
5242 2014-07-14 Pedro Alves <palves@redhat.com>
5243
5244 PR gdb/17072
5245 * main.c: Include event-top.h.
5246 (handle_command_errors): New function.
5247 (catch_command_errors, catch_command_errors_const): Use it.
5248
5249 2014-07-14 Pedro Alves <palves@redhat.com>
5250
5251 * exceptions.c (catch_command_errors, catch_command_errors_const):
5252 Moved to main.c.
5253 * exceptions.h (catch_command_errors_ftype)
5254 (catch_command_errors_const_ftype): Moved to main.c.
5255 (catch_command_errors, catch_command_errors_const): Delete
5256 declarations.
5257 * main.c (catch_command_errors_ftype)
5258 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5259 (catch_command_errors, catch_command_errors_const)): Moved here
5260 from exceptions.c and make static.
5261
5262 2014-07-14 Pedro Alves <palves@redhat.com>
5263
5264 * exceptions.c (print_any_exception): Delete.
5265 (catch_exceptions_with_msg): Use exception_print instead of
5266 print_any_exception.
5267 (catch_errors): Use exception_fprintf instead of
5268 print_any_exception.
5269 (catch_command_errors, catch_command_errors_const): Use
5270 exception_print instead of print_any_exception.
5271
5272 2014-07-14 Pedro Alves <palves@redhat.com>
5273
5274 * infcall.c (run_inferior_call): Set 'sync_execution' while
5275 running the inferior call.
5276
5277 2014-07-14 Pedro Alves <palves@redhat.com>
5278
5279 * value.c (value_contents_equal): Delete function.
5280 * value.h (value_contents_equal): Delete declaration.
5281
5282 2014-07-14 Tom Tromey <tromey@redhat.com>
5283
5284 PR exp/17106:
5285 * gdbtypes.c (is_dynamic_type_internal): New function, from
5286 is_dynamic_type.
5287 (is_dynamic_type): Rewrite.
5288 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5289 (resolve_dynamic_struct): Likewise.
5290 (resolve_dynamic_type_internal): New function, from
5291 resolve_dynamic_type.
5292 (resolve_dynamic_type): Rewrite.
5293
5294 2014-07-14 Tom Tromey <tromey@redhat.com>
5295
5296 * target.c (target_require_runnable): Also check record_stratum.
5297 Update comment.
5298
5299 2014-07-11 Yao Qi <yao@codesourcery.com>
5300
5301 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5302 thumb_instruction_restores_sp return true.
5303
5304 2014-07-11 Yao Qi <yao@codesourcery.com>
5305
5306 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5307 (thumb_in_function_epilogue_p): Call
5308 thumb_instruction_restores_sp.
5309
5310 2014-07-11 Yao Qi <yao@codesourcery.com>
5311
5312 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5313 'add sp, #imm'.
5314 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5315
5316 2014-07-11 Gary Benson <gbenson@redhat.com>
5317
5318 * amd64-linux-nat.c (gdbcore.h): Remove include.
5319 (regset.h): Likewise.
5320 (nat/linux-btrace.h): Likewise.
5321 (btrace.h): Likewise.
5322 (gdb_assert.h): Likewise.
5323 (string.h): Likewise.
5324 (sys/uio.h): Likewise.
5325 (sys/debugreg.h): Likewise.
5326 (sys/syscall.h): Likewise.
5327 (sys/procfs.h): Likewise.
5328 (sys/user.h): Likewise.
5329 (asm/ptrace.h): Likewise.
5330 (i386-nat.h): Likewise.
5331 * i386-linux-nat.c (i386-nat.h): Likewise.
5332 (regset.h): Likewise.
5333 (target.h): Likewise.
5334 (linux-nat.h): Likewise.
5335 (nat/linux-btrace.h): Likewise.
5336 (btrace.h): Likewise.
5337 (gdb_assert.h): Likewise.
5338 (string.h): Likewise.
5339 (sys/uio.h): Likewise.
5340 (sys/user.h): Likewise.
5341 (sys/procfs.h): Likewise.
5342 (sys/reg.h): Likewise.
5343 (sys/debugreg.h): Likewise.
5344 (ORIG_EAX): Remove definition.
5345
5346 2014-07-11 Gary Benson <gbenson@redhat.com>
5347
5348 * i386-linux-nat.h: New file.
5349 * x86-linux-nat.h: Likewise.
5350 * x86-linux-nat.c: Likewise.
5351 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5352 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5353 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5354 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5355 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5356 (PTRACE_SETREGSET): Likewise.
5357 (arch_lwp_info): Now in x86-linux-nat.c.
5358 (have_ptrace_getregset): Now in x86-linux-nat.h.
5359 (x86_linux_dr_get): Now in x86-linux-nat.c.
5360 (x86_linux_dr_set): Likewise.
5361 (x86_linux_dr_get_addr): Likewise.
5362 (x86_linux_dr_get_control): Likewise.
5363 (x86_linux_dr_get_status): Likewise.
5364 (update_debug_registers_callback): Likewise.
5365 (x86_linux_dr_set_control): Likewise.
5366 (x86_linux_dr_set_addr): Likewise.
5367 (x86_linux_prepare_to_resume): Likewise.
5368 (x86_linux_new_thread): Likewise.
5369 (x86_linux_new_fork): Likewise.
5370 (x86_linux_get_thread_area): Likewise.
5371 (super_post_startup_inferior): Likewise.
5372 (x86_linux_child_post_startup_inferior): Likewise.
5373 (AMD64_LINUX_USER64_CS): Likewise.
5374 (AMD64_LINUX_X32_DS): Likewise.
5375 (x86_linux_read_description): Likewise.
5376 (x86_linux_enable_btrace): Likewise.
5377 (x86_linux_disable_btrace): Likewise.
5378 (x86_linux_teardown_btrace): Likewise.
5379 (x86_linux_read_btrace): Likewise.
5380 (x86_linux_create_target): Likewise.
5381 (x86_linux_add_target): Likewise.
5382 * i386-linux-nat.c (x86-linux-nat.h): New include.
5383 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5384 (PTRACE_SETREGSET): Likewise.
5385 (arch_lwp_info): Now in x86-linux-nat.c.
5386 (have_ptrace_getregset): Now in x86-linux-nat.h.
5387 (x86_linux_dr_get): Now in x86-linux-nat.c.
5388 (x86_linux_dr_set): Likewise.
5389 (x86_linux_dr_get_addr): Likewise.
5390 (x86_linux_dr_get_control): Likewise.
5391 (x86_linux_dr_get_status): Likewise.
5392 (update_debug_registers_callback): Likewise.
5393 (x86_linux_dr_set_control): Likewise.
5394 (x86_linux_dr_set_addr): Likewise.
5395 (x86_linux_prepare_to_resume): Likewise.
5396 (x86_linux_new_thread): Likewise.
5397 (x86_linux_new_fork): Likewise.
5398 (x86_linux_get_thread_area): Likewise.
5399 (super_post_startup_inferior): Likewise.
5400 (x86_linux_child_post_startup_inferior): Likewise.
5401 (AMD64_LINUX_USER64_CS): Likewise.
5402 (AMD64_LINUX_X32_DS): Likewise.
5403 (x86_linux_read_description): Likewise.
5404 (x86_linux_enable_btrace): Likewise.
5405 (x86_linux_disable_btrace): Likewise.
5406 (x86_linux_teardown_btrace): Likewise.
5407 (x86_linux_read_btrace): Likewise.
5408 (x86_linux_create_target): Likewise.
5409 (x86_linux_add_target): Likewise.
5410
5411 2014-07-11 Gary Benson <gbenson@redhat.com>
5412
5413 * amd64-linux-nat.c: Comment and whitespace changes.
5414 * i386-linux-nat.c: Comment and whitespace changes.
5415
5416 2014-07-11 Gary Benson <gbenson@redhat.com>
5417
5418 * amd64-linux-nat.c (x86_linux_create_target): New function.
5419 (x86_linux_add_target): Likewise.
5420 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5421 * i386-linux-nat.c (x86_linux_create_target): New function.
5422 (x86_linux_add_target): Likewise.
5423 (_initialize_i386_linux_nat): Delegate to the above new functions.
5424
5425 2014-07-11 Gary Benson <gbenson@redhat.com>
5426
5427 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5428 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5429 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5430 (ps_get_thread_area): Delegate to the above.
5431
5432 2014-07-11 Gary Benson <gbenson@redhat.com>
5433
5434 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5435 x86_linux_read_description. All uses updated. amd64-specific
5436 code conditionalized. Conditionalized i386-specific code added.
5437 Redundant cast removed.
5438 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5439 x86_linux_read_description. All uses updated. i386-specific
5440 code conditionalized. Conditionalized amd64-specific code added.
5441 One sizeof replaced with the actual type it is describing.
5442
5443 2014-07-11 Gary Benson <gbenson@redhat.com>
5444
5445 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5446 x86_linux_dr_get. All uses updated.
5447 (amd64_linux_dr_set): Renamed to
5448 x86_linux_dr_set. All uses updated.
5449 (amd64_linux_dr_get_addr): Renamed to
5450 x86_linux_dr_get_addr. All uses updated.
5451 (amd64_linux_dr_get_control): Renamed to
5452 x86_linux_dr_get_control. All uses updated.
5453 (amd64_linux_dr_get_status): Renamed to
5454 x86_linux_dr_get_status. All uses updated.
5455 (amd64_linux_dr_set_control): Renamed to
5456 x86_linux_dr_set_control. All uses updated.
5457 (amd64_linux_dr_set_addr): Renamed to
5458 x86_linux_dr_set_addr. All uses updated.
5459 (amd64_linux_prepare_to_resume): Renamed to
5460 x86_linux_prepare_to_resume. All uses updated.
5461 (amd64_linux_new_thread): Renamed to
5462 x86_linux_new_thread. All uses updated.
5463 (amd64_linux_new_fork): Renamed to
5464 x86_linux_new_fork. All uses updated.
5465 (amd64_linux_child_post_startup_inferior): Renamed to
5466 x86_linux_child_post_startup_inferior. All uses updated.
5467 (amd64_linux_enable_btrace): Renamed to
5468 x86_linux_enable_btrace. All uses updated.
5469 (amd64_linux_disable_btrace): Renamed to
5470 x86_linux_disable_btrace. All uses updated.
5471 (amd64_linux_teardown_btrace): Renamed to
5472 x86_linux_teardown_btrace. All uses updated.
5473 (amd64_linux_read_btrace): Renamed to
5474 x86_linux_read_btrace. All uses updated.
5475 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5476 x86_linux_dr_get. All uses updated.
5477 (i386_linux_dr_set): Renamed to
5478 x86_linux_dr_set. All uses updated.
5479 (i386_linux_dr_get_addr): Renamed to
5480 x86_linux_dr_get_addr. All uses updated.
5481 (i386_linux_dr_get_control): Renamed to
5482 x86_linux_dr_get_control. All uses updated.
5483 (i386_linux_dr_get_status): Renamed to
5484 x86_linux_dr_get_status. All uses updated.
5485 (i386_linux_dr_set_control): Renamed to
5486 x86_linux_dr_set_control. All uses updated.
5487 (i386_linux_dr_set_addr): Renamed to
5488 x86_linux_dr_set_addr. All uses updated.
5489 (i386_linux_prepare_to_resume): Renamed to
5490 x86_linux_prepare_to_resume. All uses updated.
5491 (i386_linux_new_thread): Renamed to
5492 x86_linux_new_thread. All uses updated.
5493 (i386_linux_new_fork): Renamed to
5494 x86_linux_new_fork. All uses updated.
5495 (i386_linux_child_post_startup_inferior): Renamed to
5496 x86_linux_child_post_startup_inferior. All uses updated.
5497 (i386_linux_enable_btrace): Renamed to
5498 x86_linux_enable_btrace. All uses updated.
5499 (i386_linux_disable_btrace): Renamed to
5500 x86_linux_disable_btrace. All uses updated.
5501 (i386_linux_teardown_btrace): Renamed to
5502 x86_linux_teardown_btrace. All uses updated.
5503 (i386_linux_read_btrace): Renamed to
5504 x86_linux_read_btrace. All uses updated.
5505
5506 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5507
5508 * remote.c (extended_remote_post_attach): New function.
5509 (init_extended_remote_ops): Install it as to_post_attach method.
5510
5511 2014-07-09 Pedro Alves <palves@redhat.com>
5512
5513 * infcmd.c (attach_command_post_wait): Don't call
5514 target_terminal_inferior here.
5515 (attach_command): Call it here instead.
5516
5517 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5518
5519 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5520 field.
5521 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5522 from varobj.c, with additional checks.
5523 (c_varobj_ops): Fill in is_path_expr_parent field.
5524 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5525 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5526 field.
5527 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5528 ops method.
5529 (varobj_default_is_path_expr_parent): New function.
5530 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5531 (varobj_default_is_path_expr_parent): Declare new function.
5532
5533 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5534
5535 * infcmd.c (finish_backward): Turn internal error into normal error.
5536
5537 2014-07-07 Pedro Alves <palves@redhat.com>
5538
5539 PR gdb/17096
5540 * remote.c (async_handle_remote_sigint)
5541 (async_handle_remote_sigint_twice): Call
5542 gdb_call_async_signal_handler instead of
5543 mark_async_signal_handler.
5544
5545 2014-07-07 Tom Tromey <tromey@redhat.com>
5546
5547 * target-delegates.c: Rebuild.
5548 * target.c (target_info_record): Remove.
5549 * record.c (info_record_command): Unconditionally call
5550 to_info_record.
5551 * target.h (struct target_ops) <to_info_record>: Use
5552 TARGET_DEFAULT_IGNORE.
5553 (target_info_record): Remove.
5554
5555 2014-07-07 Tom Tromey <tromey@redhat.com>
5556
5557 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5558 TARGET_DEFAULT_NORETURN.
5559 * target.c (generic_tls_error): New function.
5560 (target_translate_tls_address): Don't search target stack.
5561 * target-delegates.c: Rebuild.
5562 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5563 stack.
5564 * linux-thread-db.c (thread_db_get_thread_local_address):
5565 Unconditionally call beneath target.
5566
5567 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5568
5569 * cli/cli-logging.c (pop_output_files): Assign targerr to
5570 gdb_stdtargerr.
5571
5572 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * MAINTAINERS (Write After Approval): Update my email address.
5575
5576 2014-07-02 Gary Benson <gbenson@redhat.com>
5577
5578 * proc-service.c (ps_xfer_memory): Update comment.
5579 (ps_pstop): Remove unused function.
5580 (ps_pcontinue): Likewise.
5581 (ps_lstop): Likewise.
5582 (ps_lcontinue): Likewise.
5583 (ps_lgetxregsize): Likewise.
5584 (ps_lgetxregs): Likewise.
5585 (ps_lsetxregs): Likewise.
5586 (ps_plog): Likewise.
5587 (ps_ptread): Likewise.
5588 (ps_ptwrite): Likewise.
5589
5590 2014-07-01 Mark Wielaard <mjw@redhat.com>
5591
5592 * dwarf2read.c (add_array_cv_type): New function.
5593 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5594 (read_tag_volatile_type): Likewise.
5595
5596 2014-07-01 Tom Tromey <tromey@redhat.com>
5597
5598 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5599 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5600 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5601 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5602 * command.h (cmd_cfunc_ftype): Move earlier.
5603 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5604 (add_com, add_info): Use cmd_cfunc_ftype.
5605
5606 2014-06-30 Tom Tromey <tromey@redhat.com>
5607
5608 * symtab.c (operator_chars): Make parameters and return type
5609 const.
5610 (file_matches): Make "files" const.
5611 (struct search_symbols_data) <files>: Now const.
5612 (search_symbols): Make "regexp" and "files" parameters const.
5613 Update.
5614 (symtab_symbol_info): Remove cast.
5615 (rbreak_command): Update.
5616 * symtab.h (search_symbols): Update.
5617
5618 2014-06-27 Yao Qi <yao@codesourcery.com>
5619
5620 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5621 Change parameter type to 'struct thread_info *'. Caller
5622 updated.
5623 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5624 Update declaration.
5625 * dummy-frame.c (struct dummy_frame_id): New.
5626 (dummy_frame_id_eq): New function.
5627 (struct dummy_frame) <id>: Change its type to 'struct
5628 dummy_frame_id'.
5629 (dummy_frame_push): Add parameter ptid and save it in
5630 dummy_frame_id.
5631 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5632 inferior_ptid.
5633 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5634 to inferior_ptid.
5635 (lookup_dummy_frame): Change parameter type to 'struct
5636 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5637 instead of frame_id_eq.
5638 (dummy_frame_pop): Add parameter ptid. Callers updated.
5639 Update comments. Compose dummy_frame_id and pass it to
5640 lookup_dummy_frame.
5641 (dummy_frame_discard): Add parameter ptid.
5642 (dummy_frame_sniffer): Compose dummy_frame_id and call
5643 dummy_frame_id_eq instead of frame_id_eq.
5644 (fprint_dummy_frames): Print ptid.
5645 * dummy-frame.h: Remove comments.
5646 (dummy_frame_push): Add ptid in declaration.
5647 (dummy_frame_pop, dummy_frame_discard): Likewise.
5648
5649 2014-06-26 Tom Tromey <tromey@redhat.com>
5650
5651 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5652 * command.h (error_no_arg): Update.
5653
5654 2014-06-26 Tom Tromey <tromey@redhat.com>
5655
5656 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5657 (do_show_command): Make "arg" const.
5658 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5659
5660 2014-06-26 Tom Tromey <tromey@redhat.com>
5661
5662 * record-full.c (record_full_get_bookmark): Make "args" const.
5663 (record_full_goto_bookmark): Make "raw_bookmark" const.
5664 * record.c (record_goto): New function.
5665 (cmd_record_goto): Use it. Now static.
5666 * record.h (record_goto): Declare.
5667 (cmd_record_goto): Remove declaration.
5668 * target-delegates.c: Rebuild.
5669 * target.h (struct target_ops) <to_get_bookmark,
5670 to_goto_bookmark>: Make parameter const.
5671
5672 2014-06-26 Tom Tromey <tromey@redhat.com>
5673
5674 * defs.h (generic_load): Update.
5675 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5676 * monitor.c (monitor_load): Make "args" const.
5677 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5678 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5679 const.
5680 (mips_load): Make "file" const.
5681 * remote-sim.c (gdbsim_load): Make "args" const.
5682 * remote.c (remote_load): Make "name" const.
5683 * symfile.c (generic_load): Make "args" const.
5684 * target-delegates.c: Rebuild.
5685 * target.c (target_load): Make "arg" const.
5686 (debug_to_load): Make "args" const.
5687 * target.h (struct target_ops) <to_load>: Make parameter const.
5688 (target_load): Update.
5689
5690 2014-06-26 Tom Tromey <tromey@redhat.com>
5691
5692 PR symtab/16902:
5693 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5694 (dwarf2_physname, read_partial_die)
5695 (guess_partial_die_structure_name, fixup_partial_die)
5696 (guess_full_die_structure_name, anonymous_struct_prefix)
5697 (dwarf2_name): Use per-BFD obstack.
5698
5699 2014-06-26 Yao Qi <yao@codesourcery.com>
5700
5701 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5702 dummyframe and this_id into inner block below.
5703
5704 2014-06-26 Yao Qi <yao@codesourcery.com>
5705
5706 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5707 with "signal_pass[0]" in the initialization of signal_pass.
5708
5709 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5710
5711 * record-btrace.c (record_btrace_generating_corefile)
5712 (record_btrace_prepare_to_generate_core)
5713 (record_btrace_done_generating_core): New.
5714 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5715 (record_btrace_store_registers, record_btrace_prepare_to_store):
5716 Forward request when generating a core file.
5717 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5718 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5719 to_done_generating_core.
5720
5721 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5722
5723 * target.h (target_ops) <to_prepare_to_generate_core>
5724 <to_done_generating_core>: New.
5725 (target_prepare_to_generate_core, target_done_generating_core): New.
5726 * target.c (target_prepare_to_generate_core)
5727 (target_done_generating_core): New.
5728 * target-delegates.c: Regenerate.
5729 * gcore.c: (write_gcore_file): Rename to ...
5730 (write_gcore_file_1): ...this.
5731 (write_gcore_file): Call target_prepare_to_generate_core
5732 and target_done_generating_core.
5733
5734 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5735
5736 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5737 * gcore.c (write_gcore_file): Free memory returned from
5738 make_corefile_notes.
5739 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5740 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5741
5742 2014-06-24 Yao Qi <yao@codesourcery.com>
5743
5744 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5745 (arm_linux_init_abi): Set skip_trampoline_code with
5746 gdbarch_skip_trampoline_code instead of
5747 find_solib_trampoline_target.
5748
5749 2014-06-24 Yao Qi <yao@codesourcery.com>
5750
5751 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5752 arm_skip_bx_reg returns non-zero.
5753
5754 2014-06-24 Yao Qi <yao@codesourcery.com>
5755
5756 * arm-tdep.c (arm_skip_bx_reg): New function.
5757 (arm_skip_stub): Call arm_skip_bx_reg.
5758
5759 2014-06-23 Don Breazeal <donb@codesourcery.com>
5760
5761 * MAINTAINERS: Add myself as write-after-approval maintainer.
5762
5763 2014-06-23 Pedro Alves <palves@redhat.com>
5764
5765 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5766 DR_CONTROL before setting DR0..DR3.
5767 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5768 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5769 bits of DR_CONTROL related to the debug register slot being
5770 disabled. If all slots are vacant, clear local slowdown as well,
5771 and assert DR_CONTROL is 0.
5772
5773 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5774
5775 * python/lib/gdb/command/xmethods.py
5776 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5777 current progspace only if the string "progspace" matches LOCUS_RE.
5778
5779 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5780
5781 Fix --with-system-readline with readline-6.3 patch 5.
5782 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5783 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5784 types.
5785
5786 2014-06-20 Tom Tromey <tromey@redhat.com>
5787
5788 * dwarf2read.c (dw2_get_real_path): Use correct type in
5789 OBSTACK_CALLOC.
5790 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5791
5792 2014-06-20 Gary Benson <gbenson@redhat.com>
5793
5794 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5795 * common/glibc_thread_db.h: Likewise.
5796 * common/i386-cpuid.h: Likewise.
5797 * common/i386-gcc-cpuid.h: Likewise.
5798 * common/linux-btrace.h: Likewise.
5799 * common/linux-osdata.h: Likewise.
5800 * common/linux-procfs.h: Likewise.
5801 * common/linux-ptrace.h: Likewise.
5802 * common/mips-linux-watch.h: Likewise.
5803 * common/linux-btrace.c: Moved to nat.
5804 * common/linux-osdata.c: Likewise.
5805 * common/linux-procfs.c: Likewise.
5806 * common/linux-ptrace.c: Likewise.
5807 * common/mips-linux-watch.c: Likewise.
5808 * nat/gdb_thread_db.h: Moved from common.
5809 * nat/glibc_thread_db.h: Likewise.
5810 * nat/i386-cpuid.h: Likewise.
5811 * nat/i386-gcc-cpuid.h: Likewise.
5812 * nat/linux-btrace.c: Likewise.
5813 * nat/linux-btrace.h: Likewise.
5814 * nat/linux-osdata.c: Likewise.
5815 * nat/linux-osdata.h: Likewise.
5816 * nat/linux-procfs.c: Likewise.
5817 * nat/linux-procfs.h: Likewise.
5818 * nat/linux-ptrace.c: Likewise.
5819 * nat/linux-ptrace.h: Likewise.
5820 * nat/mips-linux-watch.c: Likewise.
5821 * nat/mips-linux-watch.h: Likewise.
5822 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5823 (object file files): Reordered.
5824 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5825 of glibc_thread_db.h.
5826
5827 2014-06-20 Gary Benson <gbenson@redhat.com>
5828
5829 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5830 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5831 (i386_dr_low): Likewise.
5832 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5833 (i386_dr_low_set_addr): Likewise.
5834 (i386_dr_low_get_addr): Likewise.
5835 (i386_dr_low_can_set_control): Likewise.
5836 (i386_dr_low_set_control): Likewise.
5837 (i386_dr_low_get_control): Likewise.
5838 (i386_dr_low_get_status): Likewise.
5839 (i386_get_debug_register_length): Likewise.
5840 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5841 (i386_dr_low): Likewise.
5842 * nat/i386-dregs.c (i386-low.h): Remove include.
5843 (i386-nat.h): Likewise.
5844 (nat/i386-dregs.h): New include.
5845 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5846 (i386_dr_low_set_addr): Likewise.
5847 (i386_dr_low_get_addr): Likewise.
5848 (i386_dr_low_can_set_control): Likewise.
5849 (i386_dr_low_set_control): Likewise.
5850 (i386_dr_low_get_control): Likewise.
5851 (i386_dr_low_get_status): Likewise.
5852 (i386_get_debug_register_length): Likewise.
5853 (debug_hw_points): Likewise.
5854
5855 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5856
5857 * Makefile.in (SFILES): Add d-exp.y.
5858 (YYFILES): Add d-exp.c.
5859 (YYOBJ): Add d-exp.o.
5860 (local-maintainer-clean): Delete d-exp.c.
5861 * d-exp.y: New file.
5862 * d-lang.h (d_parse): New declaration.
5863 (d_error): New declaration.
5864 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5865 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5866 PREC_ORDER operators.
5867 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5868
5869 2014-06-19 Yao Qi <yao@codesourcery.com>
5870
5871 * gdbthread.h (any_running): Remove the declaration.
5872 * thread.c (any_running): Remove.
5873
5874 2014-06-19 Yao Qi <yao@codesourcery.com>
5875
5876 * gdbthread.h (struct thread_info) <state>: Change its type to
5877 'enum thread_state'. Update comments.
5878
5879 2014-06-19 Pedro Alves <palves@redhat.com>
5880
5881 * gdbthread.h (ALL_THREADS): Delete.
5882 (ALL_NON_EXITED_THREADS): New macro.
5883 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5884 instead of ALL_THREADS.
5885 * infrun.c (find_thread_needs_step_over)
5886 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5887 instead of ALL_THREADS.
5888 * record-btrace.c (record_btrace_open)
5889 (record_btrace_stop_recording, record_btrace_close)
5890 (record_btrace_is_replaying, record_btrace_resume)
5891 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5892 * remote.c (append_pending_thread_resumptions): Likewise.
5893 * thread.c (thread_apply_all_command): Likewise.
5894
5895 2014-06-19 Gary Benson <gbenson@redhat.com>
5896
5897 * i386-nat.c (i386_stopped_by_watchpoint):
5898 Use i386_dr_stopped_by_watchpoint.
5899 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5900 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5901
5902 2014-06-19 Gary Benson <gbenson@redhat.com>
5903
5904 * nat/i386-dregs.c: New file.
5905 * Makefile.in (i386-dregs.o): New rule.
5906 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5907 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5908 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5909 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5910 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5911 * config/i386/go32.mh (NATDEPFILES): Likewise.
5912 * config/i386/linux.mh (NATDEPFILES): Likewise.
5913 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5914 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5915 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5916 * i386-nat.h (debug_hw_points): New declaration.
5917 * i386-nat.c (breakpoint.h): Remove include.
5918 (command.h): Likewise.
5919 (target.h): Likewise.
5920 (gdb_assert.h): Likewise.
5921 (debug_hw_points): Made nonstatic.
5922 (debug_printf): Now in i386-dregs.c.
5923 (TARGET_HAS_DR_LEN_8): Likewise.
5924 (DR_CONTROL_SHIFT): Likewise.
5925 (DR_CONTROL_SIZE): Likewise.
5926 (DR_RW_EXECUTE): Likewise.
5927 (DR_RW_WRITE): Likewise.
5928 (DR_RW_READ): Likewise.
5929 (DR_RW_IORW): Likewise.
5930 (DR_LEN_1): Likewise.
5931 (DR_LEN_2): Likewise.
5932 (DR_LEN_4): Likewise.
5933 (DR_LEN_8): Likewise.
5934 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5935 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5936 (DR_ENABLE_SIZE): Likewise.
5937 (DR_LOCAL_SLOWDOWN): Likewise.
5938 (DR_GLOBAL_SLOWDOWN): Likewise.
5939 (DR_CONTROL_RESERVED): Likewise.
5940 (I386_DR_CONTROL_MASK): Likewise.
5941 (I386_DR_VACANT): Likewise.
5942 (I386_DR_LOCAL_ENABLE): Likewise.
5943 (I386_DR_GLOBAL_ENABLE): Likewise.
5944 (I386_DR_DISABLE): Likewise.
5945 (I386_DR_SET_RW_LEN): Likewise.
5946 (I386_DR_GET_RW_LEN): Likewise.
5947 (I386_DR_WATCH_HIT): Likewise.
5948 (i386_wp_op_t): Likewise.
5949 (i386_show_dr): Likewise.
5950 (i386_length_and_rw_bits): Likewise.
5951 (i386_insert_aligned_watchpoint): Likewise.
5952 (i386_remove_aligned_watchpoint): Likewise.
5953 (i386_handle_nonaligned_watchpoint): Likewise.
5954 (i386_update_inferior_debug_regs): Likewise.
5955 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5956 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5957 (i386_region_ok_for_watchpoint):
5958 Use i386_dr_region_ok_for_watchpoint.
5959 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5960
5961 2014-06-19 Gary Benson <gbenson@redhat.com>
5962
5963 * i386-nat.c (i386_insert_hw_breakpoint): Use
5964 i386_insert_watchpoint.
5965 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5966
5967 2014-06-19 Gary Benson <gbenson@redhat.com>
5968
5969 * i386-nat.c (i386_dr_show): Renamed to
5970 i386_show_dr and made static. All uses updated.
5971 (i386_dr_length_and_rw_bits): Renamed to
5972 i386_length_and_rw_bits and made static.
5973 All uses updated.
5974 (i386_dr_insert_aligned_watchpoint): Renamed to
5975 i386_insert_aligned_watchpoint and made static.
5976 All uses updated.
5977 (i386_dr_remove_aligned_watchpoint): Renamed to
5978 i386_remove_aligned_watchpoint and made static.
5979 All uses updated.
5980 (i386_dr_update_inferior_debug_regs): Renamed to
5981 i386_update_inferior_debug_regs and made static.
5982 All uses updated.
5983 * nat/i386-dregs.h (i386_dr_show): Removed.
5984 (i386_dr_length_and_rw_bits): Likewise.
5985 (i386_dr_insert_aligned_watchpoint): Likewise.
5986 (i386_dr_remove_aligned_watchpoint): Likewise.
5987 (i386_dr_update_inferior_debug_regs): Likewise.
5988
5989 2014-06-19 Gary Benson <gbenson@redhat.com>
5990
5991 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5992 * configure: Regenerate.
5993 * config.in: Likewise.
5994 * main.c (signal.h): New include.
5995 (setup_alternate_signal_stack): New function.
5996 (captured_main): Call the above.
5997 * cp-support.c (signal.h): New include.
5998 (catch_demangler_crashes): New flag.
5999 (SIGJMP_BUF): New define.
6000 (SIGSETJMP): Likewise.
6001 (SIGLONGJMP): Likewise.
6002 (gdb_demangle_jmp_buf): New static global.
6003 (gdb_demangle_attempt_core_dump): Likewise.
6004 (gdb_demangle_signal_handler): New function.
6005 (gdb_demangle): If catch_demangler_crashes is set, install the
6006 above signal handler before calling bfd_demangle, and restore
6007 the original signal handler afterwards. Display the offending
6008 symbol and call demangler_warning the first time a segmentation
6009 fault is caught.
6010 (_initialize_cp_support): New maint set/show command.
6011
6012 2014-06-19 Gary Benson <gbenson@redhat.com>
6013
6014 * utils.h (resource_limit_kind): New enum.
6015 (can_dump_core): New declaration.
6016 (warn_cant_dump_core): Likewise.
6017 (dump_core): Likewise.
6018 * utils.c (dump_core): Made nonstatic. Added new
6019 parameter "limit_kind".
6020 (can_dump_core): Made nonstatic. Moved printing code to...
6021 (warn_cant_dump_core): New function.
6022 (can_dump_core_warn): Likewise.
6023 (internal_vproblem): Replace calls to can_dump_core with
6024 calls to can_dump_core_warn. Supply new argument to each.
6025
6026 2014-06-19 Gary Benson <gbenson@redhat.com>
6027
6028 * utils.h (demangler_vwarning): New declaration.
6029 (demangler_warning): Likewise.
6030 * utils.c (struct internal_problem)
6031 <user_settable_should_quit>: New field.
6032 <user_settable_should_dump_core>: Likewise
6033 (internal_error_problem): Add values for above new fields.
6034 (internal_warning_problem): Likewise.
6035 (demangler_warning_problem): New static global.
6036 (demangler_vwarning): New function.
6037 (demangler_warning): Likewise.
6038 (add_internal_problem_command): Selectively add commands.
6039 (_initialize_utils): New internal problem command.
6040 * maint.c (maintenance_demangler_warning): New function.
6041 (_initialize_maint_cmds): New command.
6042
6043 2014-06-18 Tom Tromey <tromey@redhat.com>
6044
6045 * f-valprint.c (info_common_command_for_block): Update.
6046 * symtab.h (struct general_symbol_info) <common_block>: Now
6047 const.
6048
6049 2014-06-18 Tom Tromey <tromey@redhat.com>
6050
6051 * symtab.h (struct symtab) <blockvector>: Now const.
6052 * ada-lang.c (ada_add_global_exceptions): Update.
6053 * buildsym.c (augment_type_symtab): Update.
6054 * dwarf2read.c (dw2_lookup_symbol): Update.
6055 * jit.c (finalize_symtab): Update.
6056 * jv-lang.c (add_class_symtab_symbol): Update.
6057 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6058 Update.
6059 * objfiles.c (objfile_relocate1): Update.
6060 * psymtab.c (lookup_symbol_aux_psymtabs)
6061 (maintenance_check_psymtabs): Update.
6062 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6063 Update.
6064 * spu-tdep.c (spu_catch_start): Update.
6065 * symmisc.c (dump_symtab_1): Update.
6066 * symtab.c (lookup_global_symbol_from_objfile)
6067 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6068 (basic_lookup_transparent_type_quick)
6069 (basic_lookup_transparent_type, find_pc_sect_symtab)
6070 (find_pc_sect_line, search_symbols): Update.
6071 * block.c (find_block_in_blockvector): Make "bl" const.
6072 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6073 const.
6074 (blockvector_contains_pc): Make "bv" const.
6075 (block_for_pc_sect): Update.
6076 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6077 (blockvector_contains_pc): Update.
6078 * breakpoint.c (resolve_sal_pc): Update.
6079 * inline-frame.c (block_starting_point_at): Update.
6080
6081 2014-06-18 Tom Tromey <tromey@redhat.com>
6082
6083 * completer.c (complete_line): Make "line_buffer" const.
6084 * completer.h (complete_line): Update.
6085
6086 2014-06-18 Tom Tromey <tromey@redhat.com>
6087
6088 * symtab.c (add_macro_name): Remove unneeded cast.
6089
6090 2014-06-18 Tom Tromey <tromey@redhat.com>
6091
6092 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6093 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6094
6095 2014-06-18 Tom Tromey <tromey@redhat.com>
6096
6097 * probe.c (info_probes_for_ops): Make "arg" const.
6098 * probe.h (info_probes_for_ops): Update.
6099
6100 2014-06-18 Tom Tromey <tromey@redhat.com>
6101
6102 * varobj.c (varobj_create): Update.
6103 * valops.c (value_of_this): Update.
6104 * tracepoint.c (add_local_symbols, scope_info): Update.
6105 * symtab.h (struct general_symbol_info) <block>: Now const.
6106 * symtab.c (skip_prologue_sal)
6107 (default_make_symbol_completion_list_break_on)
6108 (skip_prologue_using_sal): Update.
6109 * stack.h (iterate_over_block_locals)
6110 (iterate_over_block_local_vars): Update.
6111 * stack.c (print_frame_args): Update.
6112 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6113 parameter const.
6114 (get_selected_block): Make return type const.
6115 * python/py-frame.c (frapy_block): Update.
6116 * python/py-block.c (gdbpy_block_for_pc): Update.
6117 * p-exp.y (%union) <bval>: Now const.
6118 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6119 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6120 * m2-exp.y (%union) <bval>: Now const.
6121 * linespec.c (get_current_search_block): Make return type const.
6122 (create_sals_line_offset, find_label_symbols): Update.
6123 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6124 Update.
6125 (block_starting_point_at): Make "block" const.
6126 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6127 (check_exception_resume): Update.
6128 * guile/scm-frame.c (gdbscm_frame_block): Update.
6129 * guile/scm-block.c (gdbscm_lookup_block): Update.
6130 * frame.h (get_frame_block): Update.
6131 (get_selected_block): Make return type const.
6132 * frame.c (frame_id_inner): Update.
6133 * f-valprint.c (info_common_command_for_block)
6134 (info_common_command): Update.
6135 * dwarf2loc.c (dwarf2_find_location_expression)
6136 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6137 (locexpr_describe_location_piece): Update.
6138 * c-exp.y (%union) <bval>: Now const.
6139 * breakpoint.c (resolve_sal_pc): Update.
6140 * blockframe.c (get_frame_block):Make return type const.
6141 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6142 (block_innermost_frame): Update.
6143 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6144 (block_for_pc, block_for_pc_sect): Update.
6145 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6146 'pblock' const.
6147 (block_for_pc_sect, block_for_pc): Make return type const.
6148 * ax-gdb.c (gen_expr): Update.
6149 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6150 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6151 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6152 (ada_read_var_value): Update.
6153 * ada-exp.y (struct name_info) <block>: Now const.
6154 (%union): Likewise.
6155 (block_lookup): Constify.
6156
6157 2014-06-18 Gary Benson <gbenson@redhat.com>
6158
6159 * nat/i386-dregs.h: New file.
6160 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6161 * i386-nat.h (i386-dregs.h): New include.
6162 (DR_FIRSTADDR): Now in i386-dregs.h.
6163 (DR_LASTADDR): Likewise.
6164 (DR_NADDR): Likewise.
6165 (DR_STATUS): Likewise.
6166 (DR_CONTROL): Likewise.
6167 (i386_debug_reg_state): Likewise.
6168 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6169
6170 2014-06-18 Don Breazeal <donb@codesourcery.com>
6171
6172 * breakpoint.c (set_longjmp_breakpoint): Call
6173 momentary_breakpoint_from_master with additional argument.
6174 (set_longjmp_breakpoint_for_call_dummy): Call
6175 momentary_breakpoint_from_master with additional argument.
6176 (set_std_terminate_breakpoint): Call
6177 momentary_breakpoint_from_master with additional argument.
6178 (momentary_breakpoint_from_master): Add argument to function
6179 definition and use it to initialize structure member flag.
6180 (clone_momentary_breakpoint): Call
6181 momentary_breakpoint_from_master with additional argument.
6182 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6183 member flags set in momentary_breakpoint_from_master.
6184
6185 2014-06-18 Gary Benson <gbenson@redhat.com>
6186
6187 * i386-nat.c (i386_show_dr): Renamed to
6188 i386_dr_show and made nonstatic. All uses updated.
6189 (i386_length_and_rw_bits): Renamed to
6190 i386_dr_length_and_rw_bits and made nonstatic.
6191 All uses updated.
6192 (i386_insert_aligned_watchpoint): Renamed to
6193 i386_dr_insert_aligned_watchpoint and made nonstatic.
6194 All uses updated.
6195 (i386_remove_aligned_watchpoint): Renamed to
6196 i386_dr_remove_aligned_watchpoint and made nonstatic.
6197 All uses updated.
6198 (i386_update_inferior_debug_regs): Renamed to
6199 i386_dr_update_inferior_debug_regs and made nonstatic.
6200 All uses updated.
6201
6202 2014-06-18 Gary Benson <gbenson@redhat.com>
6203
6204 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6205 (i386_dr_low_can_set_control): Likewise.
6206 (i386_dr_low_set_addr): Likewise.
6207 (i386_dr_low_set_control): Likewise.
6208 (i386_dr_low_get_addr): Likewise.
6209 (i386_dr_low_get_status): Likewise.
6210 (i386_dr_low_get_control): Likewise.
6211 (i386_insert_aligned_watchpoint): Use new macros.
6212 (i386_update_inferior_debug_regs): Likewise.
6213 (i386_stopped_data_address): Likewise.
6214
6215 2014-06-18 Gary Benson <gbenson@redhat.com>
6216
6217 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6218 New parameter. All uses updated.
6219
6220 2014-06-18 Gary Benson <gbenson@redhat.com>
6221
6222 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6223 All uses updated.
6224
6225 2014-06-18 Gary Benson <gbenson@redhat.com>
6226
6227 * i386-nat.c (debug_printf): New macro.
6228 (i386_get_debug_register_length): Likewise.
6229 (TARGET_HAS_DR_LEN_8): Use above macro.
6230 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6231 and printf_unfiltered. Use phex to format values.
6232
6233 2014-06-18 Gary Benson <gbenson@redhat.com>
6234
6235 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6236 Make const.
6237
6238 2014-06-18 Gary Benson <gbenson@redhat.com>
6239
6240 * i386-nat.c: Comment changes.
6241
6242 2014-06-18 Gary Benson <gbenson@redhat.com>
6243
6244 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6245
6246 2014-06-18 Gary Benson <gbenson@redhat.com>
6247
6248 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6249 (i386_insert_aligned_watchpoint): Likewise.
6250 (i386_remove_aligned_watchpoint): Likewise.
6251 (i386_handle_nonaligned_watchpoint): Likewise.
6252
6253 2014-06-18 Gary Benson <gbenson@redhat.com>
6254
6255 * i386-nat.c: Whitespace changes.
6256
6257 2014-06-17 Samuel Bronson <naesten@gmail.com>
6258
6259 * MAINTAINERS: Update Roland McGrath's email address.
6260 Thanks to Sergio Durigan Junior for pointing out that he left
6261 Red Hat a while ago, and giving me a current address.
6262
6263 2014-06-17 Tom Tromey <tromey@redhat.com>
6264
6265 * utils.h (savestring): Remove declaration.
6266
6267 2014-06-17 Tom Tromey <tromey@redhat.com>
6268
6269 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6270
6271 2014-06-16 Keith Seitz <keiths@redhat.com>
6272
6273 PR mi/15863
6274 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6275 to update the varobj if inferior_ptid is null_ptid.
6276
6277 2014-06-16 Tom Tromey <tromey@redhat.com>
6278
6279 * target.h (struct target_ops) <to_info_proc>: Make parameter
6280 const.
6281 (target_info_proc): Update.
6282 * target.c (target_info_proc): Make "args" const.
6283 * procfs.c (procfs_info_proc): Update.
6284 * linux-tdep.c (linux_info_proc): Update.
6285 (linux_core_info_proc_mappings): Make "args" const.
6286 (linux_core_info_proc): Update.
6287 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6288 * gdbarch.c: Rebuild.
6289 * gdbarch.h: Rebuild.
6290 * corelow.c (core_info_proc): Update.
6291
6292 2014-06-16 Tom Tromey <tromey@redhat.com>
6293
6294 * target.h (struct target_ops) <to_disconnect>: Make parameter
6295 const.
6296 (target_disconnect): Update.
6297 * target.c (target_disconnect): Make "args" const.
6298 * target-delegates.c: Rebuild.
6299 * remote.c (remote_disconnect): Update.
6300 * record.h (record_disconnect): Update.
6301 * record.c (record_disconnect): Update.
6302 * inf-child.c (inf_child_disconnect): Update.
6303
6304 2014-06-16 Tom Tromey <tromey@redhat.com>
6305
6306 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6307 * target.c (debug_to_rcmd, default_rcmd): Update.
6308 * target-delegates.c: Rebuild.
6309 * remote.c (remote_rcmd): Update.
6310 * monitor.c (monitor_rcmd): Update.
6311
6312 2014-06-16 Pedro Alves <palves@redhat.com>
6313
6314 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6315 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6316 have OBJF_SHARED set.
6317 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6318 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6319 instead of OBJF_USERLOADED.
6320 * objfiles.h (OBJF_SHARED): Update comment.
6321 (userloaded_objfile_contains_address_p): Rename to ...
6322 (shared_objfile_contains_address_p): ... this, and update
6323 comments.
6324 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6325 new objfile.
6326 (remove_symbol_file_command): Skip objfiles that don't have
6327 OBJF_SHARED set.
6328
6329 2014-06-16 Tom Tromey <tromey@redhat.com>
6330
6331 * minsyms.h (prim_record_minimal_symbol)
6332 (prim_record_minimal_symbol_and_info): Update comments.
6333
6334 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6335
6336 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6337 or --without-guile, according to how GDB was built.
6338
6339 2014-06-13 Tom Tromey <tromey@redhat.com>
6340
6341 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6342 to help_list.
6343 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6344 to help_list.
6345 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6346 help_list.
6347 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6348 help_list.Pass all_commands, not -1, to help_list.
6349 * cli/cli-dump.c (dump_command, append_command)
6350 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6351 (binary_dump_command, binary_append_command): Pass all_commands,
6352 not -1, to help_list.
6353 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6354 -1, to help_list.
6355 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6356 -1, to help_list.
6357 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6358 help_list.
6359 * top.c (set_history): Pass all_commands, not -1, to help_list.
6360 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6361 all_commands, not -1, to help_list.
6362 * symfile.c (overlay_command): Pass all_commands, not -1, to
6363 help_list.
6364 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6365 help_list.
6366 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6367 help_list.
6368 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6369 -1, to help_list.
6370 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6371 not -1, to help_list.
6372 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6373 not -1, to help_list.
6374 * maint.c (maintenance_command, maintenance_info_command)
6375 (maintenance_print_command, maintenance_set_cmd): Pass
6376 all_commands, not -1, to help_list.
6377 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6378 help_list.
6379 * language.c (set_check): Pass all_commands, not -1, to help_list.
6380 * infcmd.c (unset_command): Pass all_commands, not -1, to
6381 help_list.
6382 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6383 help_list.
6384 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6385 help_list.
6386 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6387 help_list.
6388 * breakpoint.c (save_command): Pass all_commands, not -1, to
6389 help_list.
6390 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6391 all_commands, not -1, to help_list.
6392
6393 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6394
6395 * regcache.c (struct register_to_invalidate): New structure.
6396 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6397 functions.
6398 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6399
6400 2014-06-12 Yao Qi <yao@codesourcery.com>
6401
6402 * varobj.c (varobj_get_num_children): Call
6403 varobj_is_dynamic_p.
6404 (varobj_list_children): Likewise.
6405 (varobj_update): Likewise. Update comments.
6406
6407 2014-06-12 Yao Qi <yao@codesourcery.com>
6408
6409 * varobj.c (varobj_pretty_printed_p): Rename to ...
6410 (varobj_is_dynamic_p): ... this. New function.
6411 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6412 (varobj_is_dynamic_p): Declare.
6413 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6414 (mi_print_value_p, varobj_update_one): Likewise.
6415
6416 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6417 Yao Qi <yao@codesourcery.com>
6418
6419 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6420 (varobj_get_iterator): Wrap up code for pretty-printer by
6421 "#if HAVE_PYTHON" and "#endif".
6422 (update_dynamic_varobj_children): Likewise.
6423
6424 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6425 Yao Qi <yao@codesourcery.com>
6426
6427 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6428 gdb_python_initialized is false. Move some code from varobj.c.
6429 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6430 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6431 (struct varobj_item): Moved to varobj-iter.h".
6432 (varobj_clear_saved_item): New function.
6433 (update_dynamic_varobj_children): Move python-related code to
6434 py-varobj.c.
6435 (free_variable): Call varobj_clear_saved_item and
6436 varobj_iter_delete.
6437
6438 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6439 Yao Qi <yao@codesourcery.com>
6440
6441 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6442 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6443 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6444 (py-varobj.o): New rule.
6445 * python/py-varobj.c: New file.
6446 * python/python-internal.h (py_varobj_get_iterator): Declare.
6447 * varobj-iter.h: New file.
6448 * varobj.c: Include "varobj-iter.h"
6449 (struct varobj) <child_iter>: Change its type from "PyObject *"
6450 to "struct varobj_iter *".
6451 <saved_item>: Likewise.
6452 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6453 [HAVE_PYTHON] (varobj_get_iterator): New function.
6454 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6455 python-specific code to python/py-varobj.c.
6456 (install_visualizer): Call varobj_iter_delete instead of
6457 Py_XDECREF.
6458 * varobj.h (varobj_ensure_python_env): Declare.
6459
6460 2014-06-12 Yao Qi <yao@codesourcery.com>
6461
6462 * varobj.c (struct varobj_item): New structure.
6463 (create_child_with_value): Update declaration.
6464 (varobj_add_child): Replace arguments 'name' and 'value' with
6465 'item'. All callers updated.
6466 (install_dynamic_child): Likewise.
6467 (update_dynamic_varobj_children): Likewise.
6468 (varobj_add_child): Likewise.
6469 (create_child_with_value): Likewise.
6470
6471 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6472
6473 * NEWS: Create a new section for the next release branch.
6474 Rename the section of the current branch, now that it has
6475 been cut.
6476
6477 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6478
6479 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6480 * version.in: Bump version to 7.8.50.DATE-cvs.
6481
6482 2014-06-11 Pedro Alves <palves@redhat.com>
6483
6484 PR remote/17028
6485 * ser-mingw.c (net_windows_socket_check_pending): New function.
6486 (net_windows_select_thread): Ignore spurious wakeups. Use
6487 net_windows_socket_check_pending.
6488 (net_windows_wait_handle): Check for pending events with
6489 ioctlsocket, through net_windows_socket_check_pending, instead of
6490 checking the socket's event.
6491
6492 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6493
6494 * python/python-internal.h (gdb_PyObject_GetAttrString)
6495 (gdb_PyObject_HasAttrString): New inline function definitions.
6496 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6497 char * of the second argument to PyObject_GetAttrString.
6498
6499 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6500
6501 * serial.c (serial_write): Fix index of character to be printed
6502 in call to serial_logchar when serial debug traces are enabled.
6503
6504 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6505
6506 * gdbtypes (resolve_dynamic_range): Add function description.
6507
6508 2014-06-09 Pedro Alves <palves@redhat.com>
6509
6510 * linux-nat.c (linux_child_follow_fork): Initialize status with
6511 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6512 inner block. Only pass the signal to PTRACE_DETACH if in pass
6513 state.
6514
6515 2014-06-09 Gary Benson <gbenson@redhat.com>
6516
6517 * common/signals.c (gdb_signal_from_host): Reorder to separate
6518 the always-available ANSI-standard signals from the signals that
6519 require checking.
6520 (do_gdb_signal_to_host): Likewise.
6521 * proc-events.c (signal_table): Likewise.
6522
6523 2014-06-08 Hui Zhu <hui@codesourcery.com>
6524
6525 * common/linux-ptrace.c (linux_disable_event_reporting): New
6526 function.
6527 * common/linux-ptrace.h (linux_disable_event_reporting): New
6528 declaration.
6529 * linux-nat.c (linux_child_follow_fork): Do a single step before
6530 detach.
6531
6532 2014-06-07 Keith Seitz <keiths@redhat.com>
6533
6534 Revert:
6535 PR c++/16253
6536 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6537 from symbol_matches_domain in symtab.c. All local callers
6538 of symbol_matches_domain updated.
6539 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6540 search STRUCT_DOMAIN.
6541 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6542 independently. standard_lookup will do that automatically.
6543 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6544 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6545 (cp_lookup_symbol_in_namespace): Likewise.
6546 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6547 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6548 may return a STRUCT_DOMAIN match.
6549 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6550 * cp-support.c: Include language.h.
6551 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6552 VAR_DOMAIN.
6553 * psymtab.c (match_partial_symbol): Compare the requested
6554 domain with the symbol's domain directly.
6555 (lookup_partial_symbol): Likewise.
6556 * symtab.c (lookup_symbol_in_language): Explain when/why
6557 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6558 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6559 appropriate languages.
6560 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6561 and moved to ada-lang.c
6562 (lookup_block_symbol): Explain that this function only returns
6563 symbol matching the requested DOMAIN.
6564 Compare the requested domain with the symbol's domain directly.
6565 (iterate_over_symbols): Compare the requested domain with the
6566 symbol's domain directly.
6567 * symtab.h (symbol_matches_domain): Remove.
6568
6569 2014-06-06 Doug Evans <xdje42@gmail.com>
6570
6571 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6572 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6573 (gdbscm_guile_version_is_at_least): Declare.
6574 (gdbscm_scm_string_to_int): Declare.
6575 * guile/guile.c (gdbscm_guile_major_version): New global.
6576 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6577 (guile_datadir): New static global.
6578 (gdbscm_guile_data_directory): New function.
6579 (initialize_scheme_side): Update.
6580 (misc_guile_functions): Add guile-data-directory.
6581 (initialize_gdb_module): Fetch guile version number.
6582 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6583 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6584 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6585 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6586 comments.
6587 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6588 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6589 * guile/scm-value.c (gdbscm_value_to_string): Only call
6590 scm_port_conversion_strategy if Guile version >= 2.0.6.
6591
6592 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6593
6594 * main.c (print_gdb_help): Add -q and --silent.
6595
6596 2014-06-06 Gary Benson <gbenson@redhat.com>
6597
6598 * common/signals.c: Remove preprocessor conditionals for
6599 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6600 SIGSEGV and SIGTERM.
6601 * proc-events.c: Likewise.
6602
6603 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6604
6605 * symfile.c (symfile_free_objfile): Remove restriction to
6606 OBJF_USERLOADED.
6607 * symfile-mem.c (symbol_file_add_from_memory): Call
6608 add_target_sections_of_objfile.
6609
6610 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6611
6612 * guile/scm-value.c (gdbscm_history_append_x): Use
6613 'vlscm_get_value_smob_arg_unsafe' instead of
6614 'vlscm_scm_to_value'.
6615
6616 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6617
6618 PR mi/15806
6619 * utils.c (printchar): Don't escape at all if quoter is NUL.
6620 Update function documentation to clarify effect of parameter
6621 QUOTER.
6622 * remote.c (escape_buffer): Pass '\\' as the quoter to
6623 fputstrn_unfiltered.
6624 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6625 generate the output.
6626 (mi_solib_unloaded): Same.
6627
6628 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6629
6630 * development.sh: Delete.
6631 * Makefile.in (config.status): Adjust dependency on development.sh.
6632 * configure.ac: Adjust development.sh source call.
6633 * configure: Regenerate.
6634
6635 2014-06-04 Doug Evans <xdje42@gmail.com>
6636
6637 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6638 is_scheme_bkpt, spec.
6639 (bpscm_make_breakpoint_smob): Initialize new members.
6640 (gdbscm_create_breakpoint_x): Split into two ...
6641 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6642 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6643 (scheme_function breakpoint_functions): Update.
6644 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6645 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6646 register-breakpoint!.
6647
6648 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6649
6650 PR server/17023
6651 * mem-break.c (z_type_supported): Return zero if
6652 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6653
6654 2014-06-04 Tom Tromey <tromey@redhat.com>
6655
6656 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6657 value_from_contents_and_address_unresolved.
6658 (ada_template_to_fixed_record_type_1): Likewise.
6659 (ada_which_variant_applies): Likewise.
6660 * value.h (value_from_contents_and_address_unresolved): Declare.
6661 * value.c (value_from_contents_and_address_unresolved): New
6662 function.
6663 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6664 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6665 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6666
6667 2014-06-04 Tom Tromey <tromey@redhat.com>
6668
6669 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6670
6671 2014-06-04 Tom Tromey <tromey@redhat.com>
6672
6673 * procfs.c (procfs_attach): Make "args" const.
6674 * windows-nat.c (windows_attach): Make "args" const.
6675 * nto-procfs.c (procfs_attach): Make "args" const.
6676 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6677 * go32-nat.c (go32_attach): Make "args" const.
6678 * gnu-nat.c (gnu_attach): Make "args" const.
6679 * darwin-nat.c (darwin_attach): Make "args" const.
6680 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6681 * linux-nat.c (linux_nat_attach): Make "args" const.
6682 * remote.c (extended_remote_attach_1, extended_remote_attach):
6683 Make "args" const.
6684 * target.h (struct target_ops) <to_attach>: Make "args" const.
6685 (find_default_attach): Likewise.
6686 * utils.c (parse_pid_to_attach): Make "args" const.
6687 * utils.h (parse_pid_to_attach): Update.
6688
6689 2014-06-04 Tom Tromey <tromey@redhat.com>
6690
6691 * target-delegates.c: Rebuild.
6692 * target.c (default_thread_address_space): New function.
6693 (target_thread_address_space): Simplify.
6694 * target.h (struct target_ops) <to_thread_address_space>: Add
6695 TARGET_DEFAULT_FUNC.
6696
6697 2014-06-04 Doug Evans <xdje42@gmail.com>
6698
6699 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6700
6701 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6702
6703 * record-btrace.c: Include event-loop.h and inf-loop.h.
6704 (record_btrace_resume_exec_dir)
6705 (record_btrace_async_inferior_event_handler)
6706 (record_btrace_handle_async_inferior_event): New.
6707 (record_btrace_open): Create async event handler.
6708 (record_btrace_close): Delete async event handler.
6709 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6710 Mark async event handler.
6711 (record_btrace_execution_direction): New.
6712 (init_record_btrace_ops): Initialize to_execution_direction.
6713
6714 2014-06-03 Doug Evans <xdje42@gmail.com>
6715
6716 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6717 (gdbscm_make_parameter): Ditto.
6718
6719 2014-06-03 Doug Evans <dje@google.com>
6720
6721 * exec.c (exec_close_1): Call clear_section_table instead of
6722 resize_section_table.
6723 (clear_section_table): New function.
6724 (resize_section_table): Make static. Rename arg num_added to
6725 adjustment.
6726 * exec.h (clear_section_table): Declare.
6727 (resize_section_table): Delete.
6728 * progspace.c (release_program_space): Call clear_section_table
6729 instead of resize_section_table.
6730
6731 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6732
6733 * NEWS (Python Scripting): Add entry about the new xmethods
6734 feature.
6735
6736 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6737
6738 * python/py-xmethods.c: New file.
6739 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6740 (objfpy_dealloc): XDECREF on the new xmethods field.
6741 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6742 field.
6743 (objfpy_get_xmethods): New function.
6744 (objfile_getset): New entry 'xmethods'.
6745 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6746 (pspy_dealloc): XDECREF on the new xmethods field.
6747 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6748 field.
6749 (pspy_get_xmethods): New function.
6750 (pspace_getset): New entry 'xmethods'.
6751 * python/python-internal.h: Add declarations for new functions.
6752 * python/python.c (_initialize_python): Invoke
6753 gdbpy_initialize_xmethods.
6754 * python/lib/gdb/__init__.py (xmethods): New
6755 attribute.
6756 * python/lib/gdb/xmethod.py: New file.
6757 * python/lib/gdb/command/xmethods.py: New file.
6758
6759 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6760
6761 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6762 best match method returned by find_overload_match is an xmethod.
6763 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6764 the best matching operator returned by find_overload_match is an
6765 xmethod.
6766 * valops.c: #include "extension.h".
6767 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6768 Return void. The list of matching source methods is returned in
6769 "fn_list" and a vector of matching debug method workers is
6770 returned in "xm_worker_vec". Update all callers.
6771 (value_find_oload_method_list): Likewise.
6772 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6773 non-NULL, then the index of the best matching method in this
6774 vector is returned. Update all callers.
6775 (find_overload_match): Include xmethods while performing overload
6776 resolution.
6777
6778 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6779
6780 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6781 * extension-priv.h (struct extension_language_ops): Add the
6782 xmethod interface.
6783 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6784 get_matching_xmethod_workers, get_xmethod_argtypes,
6785 invoke_xmethod, free_xmethod_worker,
6786 free_xmethod_worker_vec): New functions.
6787 * extension.h: #include "common/vec.h".
6788 New function declarations.
6789 (struct xmethod_worker): New struct.
6790 (VEC (xmethod_worker_ptr)): New vector type.
6791 (xmethod_worker_ptr): New typedef.
6792 (xmethod_worker_vec): Likewise.
6793 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6794 builtin_type.
6795 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6796 (struct builtin_type): New field "xmethod".
6797 * valarith.c (value_ptradd): Assert that the value argument is not
6798 lval_xcallable.
6799 * valops.c (value_must_coerce_to_target): Return 0 for
6800 lval_xcallable values.
6801 * value.c (struct value): New field XM_WORKER in the field
6802 LOCATION.
6803 (value_address, value_raw_address): Return 0 for lval_xcallable
6804 values.
6805 (set_value_address): Assert that the value is not an
6806 lval_xcallable.
6807 (value_free): Free the associated xmethod worker when freeing
6808 lval_xcallable values.
6809 (set_value_component_location): Assert that the WHOLE value is not
6810 lval_xcallable.
6811 (value_of_xmethod, call_xmethod): New functions.
6812 * value.h: Declare "struct xmethod_worker".
6813 Declare new functions value_of_xmethod, call_xmethod.
6814
6815 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6816 Pedro Alves <palves@redhat.com>
6817
6818 PR breakpoints/17000
6819 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6820 New function, extracted from software_breakpoint_inserted_here_p.
6821 (software_breakpoint_inserted_here_p): Replace factored out code
6822 by call to find_non_raw_software_breakpoint_inserted_here.
6823 (bp_target_info_copy_insertion_state): New function.
6824 (bkpt_insert_location): Handle the case of a single-step
6825 breakpoint already inserted at the same address.
6826 (bkpt_remove_location): Handle the case of a single-step
6827 breakpoint still inserted at the same address.
6828 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6829 breakpoint already inserted at the same address.
6830 (deprecated_remove_raw_breakpoint): Handle the case of a
6831 non-raw breakpoint still inserted at the same address.
6832 (find_single_step_breakpoint): New function, extracted from
6833 single_step_breakpoint_inserted_here_p.
6834 (find_single_step_breakpoint): New function,
6835 factored out from single_step_breakpoint_inserted_here_p.
6836 (single_step_breakpoint_inserted_here_p): Reimplement.
6837
6838 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6839
6840 Pushed by Joel Brobecker <brobecker@adacore.com>
6841 * source.c (show_substitute_path_command): Fix display of matching
6842 substitution rules.
6843
6844 2014-06-03 Gary Benson <gbenson@redhat.com>
6845
6846 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6847
6848 2014-06-02 Doug Evans <xdje42@gmail.com>
6849
6850 Add parameter support for Guile.
6851 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6852 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6853 (scm-param.o): New rule.
6854 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6855 (gdbscm_misc_error): Declare.
6856 (gdbscm_canonicalize_command_name): Declare.
6857 (gdbscm_scm_to_host_string): Declare.
6858 (gdbscm_scm_from_host_string): Declare.
6859 (gdbscm_initialize_parameters): Declare.
6860 * guile/guile.c (initialize_gdb_module): Call
6861 gdbscm_initialize_parameters.
6862 * guile/lib/gdb.scm: Export parameter symbols.
6863 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6864 cmdscm_canonicalize_name and made public. All callers updated.
6865 * guile/scm-exception.c (gdbscm_misc_error): New function.
6866 * guile/scm-param.c: New file.
6867 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6868 (gdbscm_scm_to_host_string): New function.
6869 (gdbscm_scm_from_host_string): New function.
6870 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6871
6872 2014-06-02 Doug Evans <xdje42@gmail.com>
6873
6874 Add command support for Guile.
6875 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6876 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6877 (scm-cmd.o): New rule.
6878 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6879 (gdbscm_user_error_p): Declare.
6880 (gdbscm_parse_command_name): Declare.
6881 (gdbscm_valid_command_class_p): Declare.
6882 (gdbscm_initialize_commands): Declare.
6883 * guile/guile.c (initialize_gdb_module): Call
6884 gdbscm_initialize_commands.
6885 * guile/lib/gdb.scm: Export command symbols.
6886 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6887 (throw-user-error): New function.
6888 * guile/scm-cmd.c: New file.
6889 * guile/scm-exception.c (user_error_symbol): New static global.
6890 (gdbscm_user_error_p): New function.
6891 (gdbscm_initialize_exceptions): Set user_error_symbol.
6892 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6893
6894 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6895
6896 * top.c (command_loop): Handle comments here...
6897 (command_line_input): ... not here.
6898
6899 2014-06-02 Doug Evans <xdje42@gmail.com>
6900
6901 Add progspace support for Guile.
6902 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6903 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6904 (scm-progspace.o): New rule.
6905 * guile/guile-internal.h (pspace_smob): New typedef.
6906 (psscm_pspace_smob_pretty_printers): Declare.
6907 (psscm_pspace_smob_from_pspace): Declare.
6908 (psscm_scm_from_pspace): Declare.
6909 * guile/guile.c (initialize_gdb_module): Call
6910 gdbscm_initialize_pspaces.
6911 * guile/lib/gdb.scm: Export progspace symbols.
6912 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6913 support.
6914 (append-pretty-printer!): Ditto.
6915 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6916 Implement.
6917 * guile/scm-progspace.c: New file.
6918
6919 2014-06-03 Alan Modra <amodra@gmail.com>
6920
6921 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6922 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6923
6924 2014-06-02 Doug Evans <dje@google.com>
6925
6926 Add support for skeletonless type units.
6927 * dwarf2read.c (struct dwarf2_per_objfile): New member
6928 n_allocated_type_units.
6929 (struct dwarf2_per_objfile) <tu_stats>: New member
6930 nr_all_type_units_reallocs.
6931 (create_signatured_type_table_from_index): Initialize
6932 n_allocated_type_units
6933 (create_all_type_units): Ditto.
6934 (add_type_unit): Move up in file. New arg slot.
6935 All callers updated. Increase space for all_type_units more
6936 efficiently.
6937 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6938 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6939 (lookup_dwp_signatured_type): Ditto.
6940 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6941 All callers updated.
6942 (build_type_psymtabs_1): Leave type_unit_groups as
6943 NULL if no TUs present.
6944 (print_tu_stats): New function.
6945 (process_skeletonless_type_unit): New function.
6946 (process_dwo_file_for_skeletonless_type_units): New
6947 function.
6948 (process_skeletonless_type_units): New function.
6949 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6950 Call print tu_stats if debugging enabled.
6951
6952 2014-06-02 Pedro Alves <palves@redhat.com>
6953
6954 * breakpoint.c (build_target_command_list): Don't build a command
6955 list if we have any duplicate location that isn't a dprintf.
6956
6957 2014-06-02 Pedro Alves <palves@redhat.com>
6958
6959 * breakpoint.c (dprintf_breakpoint_hit): New function.
6960 (initialize_breakpoint_ops): Install it as dprintf's
6961 breakpoint_hit method.
6962
6963 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6964
6965 * source.c (substitute_path_rule_matches): Simplify using
6966 filename_ncmp instead of FILENAME_CMP.
6967
6968 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6969
6970 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6971
6972 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6973
6974 * configure.ac: When Guile is available, check for the
6975 availability of 'scm_new_smob'.
6976 * configure, config.h.in: Regenerate.
6977 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6978 function.
6979
6980 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6981
6982 * frame.c (struct frame_info): Add stop_string field.
6983 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6984 (get_prev_frame_always): Old content moved into
6985 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6986 TRY_CATCH, handle MEMORY_ERROR exceptions.
6987 (frame_stop_reason_string): New function definition.
6988 * frame.h (unwind_stop_reason_to_string): Extend comment to
6989 mention frame_stop_reason_string.
6990 (frame_stop_reason_string): New function declaration.
6991 * stack.c (frame_info): Switch to frame_stop_reason_string.
6992 (backtrace_command_1): Switch to frame_stop_reason_string.
6993 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6994 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6995 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6996
6997 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6998
6999 * frame.c (frame_stop_reason_string): Rename to ...
7000 (unwind_stop_reason_to_string): this.
7001 * frame.h (frame_stop_reason_string): Rename to ...
7002 (unwind_stop_reason_to_string): this.
7003 * stack.c (frame_info): Update call to frame_stop_reason_string.
7004 (backtrace_command_1): Likewise.
7005 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7006 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7007
7008 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7009
7010 * frame.c (remove_prev_frame): New function.
7011 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7012 remove_prev_frame.
7013
7014 2014-05-29 Pedro Alves <palves@redhat.com>
7015
7016 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7017 and make it const. When a single-step decays to a continue,
7018 clear 'step', not 'hw_step'. Pass whether the caller wanted
7019 to step to user_visible_resume_ptid, not what we ask the
7020 target to do.
7021
7022 2014-05-29 Pedro Alves <palves@redhat.com>
7023
7024 * infrun.c (process_event_stop_test, handle_step_into_function)
7025 (handle_step_into_function_backward): Adjust.
7026 Don't set the even thread's stop_step and call stop_waiting before
7027 calling end_stepping_range. Instead do that ...
7028 (end_stepping_range): ... here. Take an ecs pointer parameter.
7029
7030 2014-05-29 Pedro Alves <palves@redhat.com>
7031
7032 * infrun.c (stop_stepping): Rename to ...
7033 (stop_waiting): ... this.
7034 (proceed): Update comment.
7035 (process_event_stop_test, handle_inferior_event)
7036 (handle_signal_stop, handle_step_into_function)
7037 (handle_step_into_function_backward): Update.
7038
7039 2014-05-29 Pedro Alves <palves@redhat.com>
7040
7041 * infcall.c (run_inferior_call): Don't check whether the current
7042 thread is running after the proceed call.
7043
7044 2014-05-29 Pedro Alves <palves@redhat.com>
7045 Tom Tromey <tromey@redhat.com>
7046
7047 * NEWS: Mention "maint set target-async", "set mi-async", and that
7048 background execution commands are now always available.
7049 * target.h (target_async_permitted): Update comment.
7050 * target.c (target_async_permitted, target_async_permitted_1):
7051 Default to 1.
7052 (set_target_async_command): Rename to ...
7053 (maint_set_target_async_command): ... this.
7054 (show_target_async_command): Rename to ...
7055 (maint_show_target_async_command): ... this.
7056 (_initialize_target): Adjust.
7057 * infcmd.c (prepare_execution_command): Make extern.
7058 * inferior.h (prepare_execution_command): Declare.
7059 * infrun.c (set_observer_mode): Leave target async alone.
7060 * mi/mi-interp.c (mi_interpreter_init): Install
7061 mi_on_sync_execution_done as sync_execution_done observer.
7062 (mi_on_sync_execution_done): New function.
7063 (mi_execute_command_input_handler): Don't print the prompt if we
7064 just started a synchronous command with an async target.
7065 (mi_on_resume): Check sync_execution before printing prompt.
7066 * mi/mi-main.h (mi_async_p): Declare.
7067 * mi/mi-main.c: Include gdbcmd.h.
7068 (mi_async_p): New function.
7069 (mi_async, mi_async_1): New globals.
7070 (set_mi_async_command, show_mi_async_command, mi_async): New
7071 functions.
7072 (exec_continue): Call prepare_execution_command.
7073 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7074 (mi_execute_async_cli_command): Use mi_async_p.
7075 (_initialize_mi_main): Install "set mi-async". Make
7076 "target-async" a deprecated alias.
7077
7078 2014-05-29 Pedro Alves <palves@redhat.com>
7079
7080 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7081 (_initialize_cli_interp): Adjust.
7082 * event-loop.c: Include "observer.h".
7083 (start_event_loop): Notify 'command_error' observers instead of
7084 calling display_gdb_prompt. Remove FIXME comment.
7085 * event-top.c (display_gdb_prompt): Remove call into the
7086 interpreters.
7087 * inf-loop.c: Include "observer.h".
7088 (inferior_event_handler): Notify 'command_error' observers instead
7089 of calling display_gdb_prompt.
7090 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7091 observers instead of calling display_gdb_prompt.
7092 * interps.c (interp_set): Don't call display_gdb_prompt.
7093 (current_interp_display_prompt_p): Delete.
7094 * interps.h (interp_prompt_p): Delete declaration.
7095 (interp_prompt_p_ftype): Delete.
7096 (struct interp_procs) <prompt_proc_p>: Delete field.
7097 (current_interp_display_prompt_p): Delete declaration.
7098 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7099 (_initialize_mi_interp): Adjust.
7100 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7101 'command_error' observers.
7102 (tui_on_sync_execution_done, tui_on_command_error): New
7103 functions.
7104 (tui_display_prompt_p): Delete.
7105 (_initialize_tui_interp): Adjust.
7106
7107 2014-05-29 Pedro Alves <palves@redhat.com>
7108
7109 PR gdb/13860
7110 * cli/cli-interp.c: Include infrun.h and observer.h.
7111 (cli_uiout, cli_interp): New globals.
7112 (cli_on_signal_received, cli_on_end_stepping_range)
7113 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7114 functions.
7115 (cli_interpreter_init): Install them as 'end_stepping_range',
7116 'signal_received' 'signal_exited', 'exited' and 'no_history'
7117 observers.
7118 (_initialize_cli_interp): Remove cli_interp local.
7119 * infrun.c (handle_inferior_event): Call the several stop reason
7120 observers instead of printing the stop reason directly.
7121 (end_stepping_range): New function.
7122 (print_end_stepping_range_reason, print_signal_exited_reason)
7123 (print_exited_reason, print_signal_received_reason)
7124 (print_no_history_reason): Make static, and add an uiout
7125 parameter. Print to that instead of to CURRENT_UIOUT.
7126 * infrun.h (print_end_stepping_range_reason)
7127 (print_signal_exited_reason, print_exited_reason)
7128 (print_signal_received_reason print_no_history_reason): New
7129 declarations.
7130 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7131 'mi_uiout'.
7132 <cli_uiout>: New field.
7133 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7134 uiout for CLI output. Install 'signal_received',
7135 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7136 observers.
7137 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7138 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7139 (mi_on_no_history): New functions.
7140 (ui_out_free_cleanup): Delete function.
7141 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7142 instead use the one already stored in the MI interpreter data.
7143 (mi_ui_out): Adjust.
7144 * tui/tui-interp.c: Include infrun.h and observer.h.
7145 (tui_interp): New global.
7146 (tui_on_signal_received, tui_on_end_stepping_range)
7147 (tui_on_signal_exited, tui_on_exited)
7148 (tui_on_no_history): New functions.
7149 (tui_init): Install them as 'end_stepping_range',
7150 'signal_received' 'signal_exited', 'exited' and 'no_history'
7151 observers.
7152 (_initialize_tui_interp): Delete tui_interp local.
7153
7154 2014-05-29 Pedro Alves <palves@redhat.com>
7155
7156 PR gdb/15713
7157 * linux-nat.c (linux_nat_resume_callback): Rename the second
7158 parameter to 'except'. Skip LP if it points to EXCEPT.
7159 (linux_nat_resume): Don't mark the event lwp as not stopped
7160 before resuming sibling lwps. Instead ask
7161 linux_nat_resume_callback to skip the event lwp. Mark it as not
7162 stopped after actually resuming it.
7163 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7164 resuming it.
7165 (wait_lwp): Mark the lwp as stopped here.
7166 (stop_wait_callback): Mark the lwp as not stopped right after
7167 resuming it. Don't mark lwps as stopped here.
7168 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7169 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7170
7171 2014-05-29 Pedro Alves <palves@redhat.com>
7172
7173 PR PR15693
7174 * infrun.c (resume): Determine how much to resume depending on
7175 whether the caller wanted a step, not whether we can hardware step
7176 the target. Mark all threads that we intend to run as running,
7177 unless we're calling an inferior function.
7178 (normal_stop): If the thread is running an infcall, don't finish
7179 thread state.
7180 * target.c (target_resume): Don't mark threads as running here.
7181
7182 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7183
7184 * serial.c (_initialize_serial): Remove support for
7185 the "set remotebaud" and "show remotebaud" commands.
7186 * NEWS: Add entry documenting the removal of that command.
7187
7188 2014-05-28 Yao Qi <yao@codesourcery.com>
7189
7190 * charset.c: Fix typo in comments.
7191
7192 2014-05-27 Gary Benson <gbenson@redhat.com>
7193
7194 * utils.c (internal_vproblem): Prompt for a bug report.
7195
7196 2014-05-26 Andy Wingo <wingo@igalia.com>
7197
7198 * guile/scm-arch.c (arscm_mark_arch_smob):
7199 * guile/scm-block.c (bkscm_mark_block_smob)
7200 (bkscm_mark_block_syms_progress_smob):
7201 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7202 * guile/scm-exception.c (exscm_mark_exception_smob):
7203 * guile/scm-frame.c (frscm_mark_frame_smob):
7204 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7205 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7206 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7207 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7208 (ppscm_mark_pretty_printer_worker_smob):
7209 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7210 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7211 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7212 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7213 mark functions.
7214 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7215 function.
7216
7217 2014-05-26 Andy Wingo <wingo@igalia.com>
7218 Doug Evans <xdje42@gmail.com>
7219
7220 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7221 empty_base_class. All uses updated.
7222 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7223 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7224 Adapt all callers.
7225 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7226 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7227 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7228 (gdbscm_gsmob_has_property_p, add_property_name)
7229 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7230 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7231 (gdb-object-has-property?, gdb-object-properties): Remove.
7232 (gdb-object-kind): Renamed from gsmob-kind.
7233
7234 2014-05-26 Andy Wingo <wingo@igalia.com>
7235
7236 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7237 * configure: Regenerate.
7238
7239 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7240
7241 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7242
7243 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7244
7245 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7246 (replay_memory_access_read_only, replay_memory_access_read_write)
7247 (replay_memory_access_types, replay_memory_access)
7248 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7249 (cmd_set_record_btrace, cmd_show_record_btrace)
7250 (cmd_show_replay_memory_access): New.
7251 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7252 (record_btrace_remove_breakpoint): Replace
7253 record_btrace_allow_memory_access with replay_memory_access.
7254 (_initialize_record_btrace): Add commands.
7255 * NEWS: Announce it.
7256
7257 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7258
7259 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7260
7261 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7262
7263 * MAINTAINERS (Write After Approval): Move self back from
7264 paper trail.
7265
7266 2014-05-22 Pedro Alves <palves@redhat.com>
7267
7268 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7269 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7270 (disable_randomization, enum exec_direction_kind)
7271 (execution_direction, stop_registers, start_remote)
7272 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7273 (wait_for_inferior, normal_stop, get_last_target_status)
7274 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7275 (insert_step_resume_breakpoint_at_sal)
7276 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7277 (set_step_info, print_stop_event, signal_stop_state)
7278 (signal_print_state, signal_pass_state, signal_stop_update)
7279 (signal_print_update, signal_pass_update)
7280 (update_signals_program_target, clear_exit_convenience_vars)
7281 (displaced_step_dump_bytes, update_observer_mode)
7282 (signal_catch_update, gdb_signal_from_command): Move
7283 declarations ...
7284 * infrun.h: ... to this new file.
7285 * amd64-tdep.c: Include infrun.h.
7286 * annotate.c: Include infrun.h.
7287 * arch-utils.c: Include infrun.h.
7288 * arm-linux-tdep.c: Include infrun.h.
7289 * arm-tdep.c: Include infrun.h.
7290 * break-catch-sig.c: Include infrun.h.
7291 * breakpoint.c: Include infrun.h.
7292 * common/agent.c: Include infrun.h instead of inferior.h.
7293 * corelow.c: Include infrun.h.
7294 * event-top.c: Include infrun.h.
7295 * go32-nat.c: Include infrun.h.
7296 * i386-tdep.c: Include infrun.h.
7297 * inf-loop.c: Include infrun.h.
7298 * infcall.c: Include infrun.h.
7299 * infcmd.c: Include infrun.h.
7300 * infrun.c: Include infrun.h.
7301 * linux-fork.c: Include infrun.h.
7302 * linux-nat.c: Include infrun.h.
7303 * linux-thread-db.c: Include infrun.h.
7304 * monitor.c: Include infrun.h.
7305 * nto-tdep.c: Include infrun.h.
7306 * procfs.c: Include infrun.h.
7307 * record-btrace.c: Include infrun.h.
7308 * record-full.c: Include infrun.h.
7309 * remote-m32r-sdi.c: Include infrun.h.
7310 * remote-mips.c: Include infrun.h.
7311 * remote-notif.c: Include infrun.h.
7312 * remote-sim.c: Include infrun.h.
7313 * remote.c: Include infrun.h.
7314 * reverse.c: Include infrun.h.
7315 * rs6000-tdep.c: Include infrun.h.
7316 * s390-linux-tdep.c: Include infrun.h.
7317 * solib-irix.c: Include infrun.h.
7318 * solib-osf.c: Include infrun.h.
7319 * solib-svr4.c: Include infrun.h.
7320 * target.c: Include infrun.h.
7321 * top.c: Include infrun.h.
7322 * windows-nat.c: Include infrun.h.
7323 * mi/mi-interp.c: Include infrun.h.
7324 * mi/mi-main.c: Include infrun.h.
7325 * python/py-threadevent.c: Include infrun.h.
7326
7327 2014-05-22 Pedro Alves <palves@redhat.com>
7328
7329 * infrun.c (handle_inferior_event): Store the exit code for
7330 --return-child-result here, instead of ...
7331 (print_exited_reason): ... here.
7332
7333 2014-05-21 Pedro Alves <palves@redhat.com>
7334
7335 PR gdb/13860
7336 * gdbthread.h (struct thread_control_state): New field
7337 `command_interp'.
7338 * infrun.c (follow_fork): Copy the new thread control field to the
7339 child fork thread.
7340 (clear_proceed_status_thread): Clear the new thread control field.
7341 (proceed): Set the new thread control field.
7342 * interps.h (command_interp): Declare.
7343 * interps.c (command_interpreter): New global.
7344 (command_interp): New function.
7345 (interp_exec): Set `command_interpreter' while here.
7346 * cli-out.c (cli_uiout_dtor): New function.
7347 (cli_ui_out_impl): Install it.
7348 * mi/mi-interp.c: Include cli-out.h.
7349 (mi_cmd_interpreter_exec): Add comment.
7350 (restore_current_uiout_cleanup): New function.
7351 (ui_out_free_cleanup): New function.
7352 (mi_on_normal_stop): If finishing an execution command started by
7353 a CLI command, or any kind of breakpoint-like event triggered,
7354 print the stop event to the output (CLI) stream.
7355 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7356
7357 2014-05-21 Pedro Alves <palves@redhat.com>
7358
7359 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7360 current source line having changed.
7361 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7362 * infrun.c (normal_stop): Adjust call to
7363 set_current_sal_from_frame.
7364 * source.c (clear_lines_listed_range): New function.
7365 (set_current_source_symtab_and_line, identify_source_line): Clear
7366 the lines listed range.
7367 (line_info): Handle the first "info line" after the current source
7368 line having changed.
7369 * stack.c (print_stack_frame): Remove center handling.
7370 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7371 center sal.line.
7372
7373 2014-05-21 Pedro Alves <palves@redhat.com>
7374
7375 * inf-child.c (inf_child_mourn_inferior): New function.
7376 * inf-child.h (inf_child_mourn_inferior): New declaration.
7377 * darwin-nat.c (darwin_mourn_inferior): Use
7378 inf_child_mourn_inferior.
7379 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7380 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7381 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7382 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7383 * windows-nat.c (windows_mourn_inferior): Likewise.
7384
7385 2014-05-21 Doug Evans <xdje42@gmail.com>
7386
7387 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7388
7389 2014-05-21 Doug Evans <xdje42@gmail.com>
7390
7391 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7392 (gdbscm_out_of_range_error): Ditto.
7393 (gdbscm_memory_error): Ditto.
7394 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7395 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7396 (gdbscm_out_of_range_error): Update.
7397 (gdbscm_memory_error): Update.
7398 (gdbscm_scm_to_target_string_unsafe): Delete.
7399
7400 2014-05-21 Pedro Alves <palves@redhat.com>
7401
7402 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7403 globals.
7404 (inf_child_open_target): New function.
7405 (inf_child_open): Use inf_child_open_target to push the target
7406 instead of erroring out.
7407 (inf_child_disconnect, inf_child_close)
7408 (inf_child_maybe_unpush_target): New functions.
7409 (inf_child_target): Install inf_child_disconnect and
7410 inf_child_close. Store a pointer to the returned object.
7411 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7412 declarations.
7413 * target.c (auto_connect_native_target): New global.
7414 (show_default_run_target): New function.
7415 (find_default_run_target): Return NULL if automatically connecting
7416 to the native target is disabled.
7417 (_initialize_target): Install set/show auto-connect-native-target.
7418 * NEWS: Mention "set auto-connect-native-target", and "target
7419 native".
7420 * linux-nat.c (super_close): New global.
7421 (linux_nat_close): Call super_close.
7422 (linux_nat_add_target): Store a pointer to the base class's
7423 to_close method.
7424 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7425 inf_child_maybe_unpush.
7426 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7427 already pushed.
7428 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7429 the inferior. Use inf_child_maybe_unpush_target.
7430 (inf_ttrace_attach): Don't push the target if it is already
7431 pushed.
7432 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7433 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7434 after mourning the inferior. Use inf_child_maybe_unpush_target.
7435 (darwin_attach_pid): Don't push the target if it is already
7436 pushed.
7437 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7438 mourning the inferior. Use inf_child_maybe_unpush_target.
7439 (gnu_detach): Use inf_child_maybe_unpush_target.
7440 * go32-nat.c (go32_create_inferior): Don't push the target if it
7441 is already pushed.
7442 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7443 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7444 (procfs_open): Rename to ...
7445 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7446 comments. Can target_preopen before changing node. Call
7447 inf_child_open_target to push the target explicitly.
7448 (procfs_attach): Don't push the target if it is already pushed.
7449 (procfs_detach): Use inf_child_maybe_unpush_target.
7450 (procfs_create_inferior): Don't push the target if it is already
7451 pushed.
7452 (nto_native_ops): New global.
7453 (procfs_open): Reimplement.
7454 (procfs_native_open): New function.
7455 (init_procfs_targets): Install procfs_native_open as to_open of
7456 "target native". Store a pointer to the "native" target in
7457 nto_native_ops.
7458 * procfs.c (procfs_attach): Don't push the target if it is already
7459 pushed.
7460 (procfs_detach): Use inf_child_maybe_unpush_target.
7461 (procfs_mourn_inferior): Only unpush the target after mourning the
7462 inferior. Use inf_child_maybe_unpush_target.
7463 (procfs_init_inferior): Don't push the target if it is already
7464 pushed.
7465 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7466 if it is already pushed.
7467
7468 2014-05-21 Pedro Alves <palves@redhat.com>
7469
7470 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7471 and "procfs" targets are now called "native" instead.
7472
7473 2014-05-21 Pedro Alves <palves@redhat.com>
7474
7475 * go32-nat.c (go32_open): Delete.
7476 (go32_target): Don't override the to_open method.
7477
7478 2014-05-21 Pedro Alves <palves@redhat.com>
7479
7480 * nto-procfs.c (procfs_can_run): New function.
7481 (nto_procfs_ops): New global.
7482 (init_procfs_targets): New, based on procfs_target. Install
7483 "target native" in addition to "target procfs".
7484 (_initialize_procfs): Call init_procfs_targets instead of adding
7485 the target here.
7486
7487 2014-05-21 Pedro Alves <palves@redhat.com>
7488
7489 * windows-nat.c (windows_target): Don't override to_shortname,
7490 to_longname or to_doc.
7491
7492 2014-05-21 Pedro Alves <palves@redhat.com>
7493
7494 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7495 to_doc.
7496
7497 2014-05-21 Pedro Alves <palves@redhat.com>
7498
7499 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7500 to_shortname, to_longname or to_doc.
7501
7502 2014-05-21 Pedro Alves <palves@redhat.com>
7503
7504 * go32-nat.c (go32_target): Don't override to_shortname,
7505 to_longname or to_doc.
7506
7507 2014-05-21 Pedro Alves <palves@redhat.com>
7508
7509 * inf-child.c (inf_child_open): Remove mention of "child".
7510 (inf_child_target): Rename target to "native" instead of "child".
7511
7512 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7513
7514 * Makefile.in (SFILES): Delete "regset.c".
7515 (COMMON_OBS): Delete "regset.o".
7516 * regset.c: Remove.
7517 * regset.h (regset_alloc): Delete prototype.
7518
7519 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7520
7521 * sparc-linux-tdep.c (sparc32_linux_gregset)
7522 (sparc32_linux_fpregset): New static regset structures.
7523 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7524 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7525 'fpregset' fields.
7526 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7527 (sparc64_linux_fpregset): New static regset structures.
7528 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7529 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7530 New static regset structures.
7531 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7532 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7533 New static regset structures.
7534 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7535 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7536 New static regset structures.
7537 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7538 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7539 New static regset structures.
7540 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7541
7542 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7543
7544 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7545 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7546 register maps ("regmaps") from "*regset" to "*regmap". Do this
7547 for all regmap types and variables.
7548 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7549 (sparc32_linux_supply_core_gregset)
7550 (sparc32_linux_collect_core_gregset)
7551 (sparc32_linux_supply_core_fpregset)
7552 (sparc32_linux_collect_core_fpregset): Likewise.
7553 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7554 (sparc_gregmap, sparc_fpregmap): ... these.
7555 (sparc_supply_gregset, sparc_collect_gregset)
7556 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7557 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7558 (_initialize_sparc_nat): Rename regmaps.
7559 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7560 (sparc_gregmap, sparc_fpregmap): ... these.
7561 (sparc_supply_gregset, sparc_collect_gregset)
7562 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7563 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7564 Rename macros to...
7565 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7566 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7567 Likewise.
7568 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7569 Rename to...
7570 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7571 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7572 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7573 regmaps.
7574 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7575 (sparc32_bsd_fpregset): Rename to...
7576 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7577 (sparc32_bsd_fpregmap): ... these.
7578 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7579 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7580 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7581 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7582 (struct sparc_gregmap, struct sparc_fpregmap)
7583 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7584 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7585 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7586 (sparc32_supply_regset, sparc32_collect_gregset)
7587 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7588 prototypes.
7589 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7590 (sparc64_linux_ptrace_gregmap): ... this.
7591 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7592 (_initialize_sparc64_linux_nat): Rename regmaps.
7593 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7594 (sparc64_linux_core_gregmap): ... this.
7595 (sparc64_linux_supply_core_gregset)
7596 (sparc64_linux_collect_core_gregset)
7597 (sparc64_linux_supply_core_fpregset)
7598 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7599 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7600 (sparc64_sol2_fpregset): Rename to...
7601 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7602 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7603 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7604 regmaps.
7605 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7606 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7607 (sparc64_bsd_fpregset): Rename to...
7608 (struct sparc_gregmap, sparc64_sol2_gregmap)
7609 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7610 (sparc64_bsd_fpregmap): ... these.
7611 (sparc64_supply_gregset, sparc64_collect_gregset)
7612 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7613 prototypes.
7614 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7615 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7616 (sparc64fbsd_gregmap): ... this.
7617 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7618 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7619 Rename regmaps.
7620 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7621 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7622 (sparc64nbsd_collect_fpregset): Likewise.
7623 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7624 (sparc64nbsd_gregmap): ... this.
7625 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7626 regmaps.
7627 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7628 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7629 (sparc64obsd_gregmap): ... this.
7630 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7631 regmaps.
7632 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7633 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7634 (sparc32nbsd_gregmap): ... this.
7635 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7636 regmaps.
7637
7638 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7639
7640 * score-tdep.c (score7_linux_gregset): New static regset
7641 structure.
7642 (score7_linux_regset_from_core_section): Remove dynamic regset
7643 allocation.
7644 (score_gdbarch_init): Drop allocation of tdep structure.
7645 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7646
7647 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7648
7649 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7650 regset structures.
7651 (am33_regset_from_core_section): Remove dynamic regset
7652 allocations.
7653
7654 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7655
7656 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7657 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7658 structures.
7659 (mips_linux_regset_from_core_section): Remove dynamic regset
7660 allocations.
7661 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7662 'gregset64', 'fpregset', and 'fpregset64'.
7663 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7664 deleted tdep fields.
7665
7666 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7667
7668 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7669 regset structures.
7670 (amd64_regset_from_core_section): Remove dynamic regset
7671 allocations.
7672 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7673 structure.
7674 (amd64obsd_regset_from_core_section): Remove dynamic regset
7675 allocation.
7676 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7677 Likewise.
7678 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7679 x86-common regset supply function.
7680 * i386-tdep.c (i386_collect_gregset): Make static.
7681 (i386_gregset): New global regset structure.
7682 (i386_fpregset, i386_xstateregset): New static regset structures.
7683 (i386_regset_from_core_section): Remove dynamic regset
7684 allocations.
7685 (i386_gdbarch_init): Remove initialization of tdep fields
7686 'gregset', 'fpregset', and 'xstateregset'.
7687 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7688 'fpregset', and 'xstateregset'.
7689 (i386_collect_gregset): Remove prototype.
7690 (i386_gregset): New declaration.
7691 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7692 structure.
7693 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7694 allocation.
7695
7696 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7697
7698 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7699 (arm_linux_vfpregset): New static regset structures.
7700 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7701 regset structures.
7702 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7703 and 'vfpregset' fields.
7704
7705 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7706
7707 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7708 (aarch64_linux_fpregset): New static regset structures.
7709 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7710 of regset structures.
7711 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7712 'fpregset' fields.
7713
7714 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7715
7716 * regset.h (struct regset): Remove gdbarch field.
7717 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7718 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7719 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7720 Likewise.
7721 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7722 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7723 (ppc32_linux_vsxregset): Likewise.
7724 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7725 via the regcache instead of the regset.
7726 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7727 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7728 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7729 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7730 Likewise.
7731
7732 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7733
7734 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7735 Constify structures.
7736 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7737 (alphanbsd_aout_gregset): Likewise.
7738 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7739 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7740 Likewise.
7741 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7742 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7743 Likewise.
7744 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7745 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7746 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7747 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7748 * m88k-tdep.c (m88k_gregset): Likewise.
7749 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7750 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7751 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7752 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7753 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7754 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7755 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7756 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7757 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7758 Likewise.
7759 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7760 * sh-tdep.h (sh_corefile_gregset): Likewise.
7761 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7762 * vax-tdep.c (vax_gregset): Likewise.
7763
7764 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7765
7766 Fix TLS access for -static -pthread.
7767 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7768 (try_thread_db_load_1): Initialize it.
7769 (thread_db_get_thread_local_address): Call it if LM is zero.
7770 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7771 * target.h (struct target_ops) (to_get_thread_local_address): Add
7772 load_module_addr comment.
7773
7774 2014-05-21 Pedro Alves <palves@redhat.com>
7775
7776 * dcache.c (dcache_read_memory_partial): If reading the cache line
7777 fails, fallback to reading just the memory the caller wanted.
7778
7779 2014-05-20 Doug Evans <dje@google.com>
7780
7781 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7782 instead of get_current_arch.
7783
7784 2014-05-20 Pedro Alves <palves@redhat.com>
7785
7786 * NEWS: Mention that compare-sections now works with all targets.
7787
7788 * remote.c (PACKET_qCRC): New enum value.
7789 (remote_verify_memory): Don't send qCRC if the target has no
7790 execution. Use packet_support/packet_ok. If the target doesn't
7791 support the qCRC packet, fallback to a deep memory copy.
7792 (compare_sections_command): Say "target image" instead of "remote
7793 executable".
7794 (_initialize_remote): Add PACKET_qCRC to the list of config
7795 packets that have no associated command. Extend comment.
7796 * target.c (simple_verify_memory, default_verify_memory): New
7797 function.
7798 * target.h (struct target_ops) <to_verify_memory>: Default to
7799 default_verify_memory.
7800 (simple_verify_memory): New declaration.
7801 * target-delegates.c: Regenerate.
7802
7803 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7804
7805 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7806
7807 2014-05-20 Hui Zhu <hui@codesourcery.com>
7808 Yao Qi <yao@codesourcery.com>
7809
7810 PR backtrace/16558
7811 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7812 and change address of sp and pc.
7813
7814 2014-05-19 Tom Tromey <tromey@redhat.com>
7815
7816 * gdbtypes.c (rank_function): Use XNEWVEC.
7817 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7818
7819 2014-05-19 Doug Evans <dje@google.com>
7820
7821 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7822 build_type_unit_groups and moved closer to only caller. Remove
7823 arguments. All references updated. Remove outdated .gdb_index
7824 comment.
7825 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7826 build_type_psymtabs_1.
7827
7828 2014-05-19 Doug Evans <dje@google.com>
7829
7830 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7831 n_type_unit_groups, all_type_unit_groups. All uses removed.
7832 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7833 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7834 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7835 (add_type_unit_group_to_table): Delete.
7836
7837 2014-05-19 Doug Evans <dje@google.com>
7838
7839 * eval.c (evaluate_subexp_standard): Add some comments.
7840
7841 2014-05-17 Doug Evans <xdje42@gmail.com>
7842
7843 * progspace.c (remove_program_space): Delete, unused.
7844 * progspace.h (remove_program_space): Ditto.
7845
7846 2014-05-17 Doug Evans <xdje42@gmail.com>
7847
7848 * inferior.c (prune_inferiors): Fix comment.
7849 (remove_inferior_command): Call prune_program_spaces.
7850
7851 2014-05-16 Doug Evans <dje@google.com>
7852
7853 New command line option -D.
7854 * NEWS: Mention it.
7855 * main.c (set_gdb_data_directory): New function.
7856 (captured_main): Recognize -D. Flag error for --data-directory "".
7857 Call set_gdb_data_directory.
7858 (print_gdb_help): Print --data-directory, -D.
7859 * main.h (set_gdb_data_directory): Declare.
7860 * top.c (staged_gdb_datadir): New static global.
7861 (set_gdb_datadir): Call set_gdb_data_directory
7862 (show_gdb_datadir): New function.
7863 (init_main): Update init of data-directory parameter.
7864
7865 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7866
7867 Import the "dirfd" gnulib module.
7868 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7869 * gnulib/aclocal.m4: Update.
7870 * gnulib/config.in: Update.
7871 * gnulib/configure: Update.
7872 * gnulib/import/Makefile.am: Update.
7873 * gnulib/import/Makefile.in: Update.
7874 * gnulib/import/dirfd.c: New.
7875 * gnulib/import/m4/dirfd.m4: New.
7876 * gnulib/import/m4/gnulib-cache.m4: Update.
7877 * gnulib/import/m4/gnulib-comp.m4: Update.
7878
7879 2014-05-16 Pierre Muller <muller@sourceware.org>
7880 Yao Qi <yao@codesourcery.com>
7881
7882 * valprint.c (print_wchar): Move the code on checking whether
7883 W is a printable wide char to the default branch of switch
7884 statement below. Call wchar_printable instead of gdb_iswprint.
7885
7886 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7887
7888 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7889 ldr.w and ldrd instructions.
7890
7891 2014-05-15 Doug Evans <dje@google.com>
7892
7893 * dwarf2read.c (read_structure_type): Delete outdated comments.
7894
7895 2014-05-14 Tom Tromey <tromey@redhat.com>
7896
7897 * macrocmd.c (print_macro_definition): Reindent.
7898
7899 2014-05-13 Doug Evans <xdje42@gmail.com>
7900
7901 * python/py-cmd.c (cmdpy_completer): Add comment.
7902 (completers): Make const.
7903
7904 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7905
7906 * infrun.c (resume): Remove should_resume (unused). Move up
7907 declaration of resume_ptid.
7908
7909 2014-05-13 Tom Tromey <tromey@redhat.com>
7910
7911 * language.h (unop_type_check): Remove.
7912 (binop_type_check): Don't declare.
7913
7914 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7915
7916 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7917 call to regcache_raw_collect.
7918
7919 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7920
7921 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7922 mi_console->quote as the quoting character.
7923
7924 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7925
7926 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7927
7928 2014-04-29 Tom Tromey <tromey@redhat.com>
7929
7930 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7931 "show debug varobj".
7932
7933 2014-05-07 Kyle McMartin <kyle@redhat.com>
7934
7935 Pushed by Joel Brobecker <brobecker@adacore.com>.
7936 * aarch64-tdep.c (aarch64_software_single_step): New function.
7937 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7938 with aarch64_software_single_step.
7939
7940 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7941
7942 GDB 7.7.1 released.
7943
7944 2014-05-05 Keith Seitz <keiths@redhat.com>
7945
7946 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7947 variable or history value is successfully parsed.
7948
7949 2014-05-05 Yao Qi <yao@codesourcery.com>
7950 Pedro Alves <palves@redhat.com>
7951
7952 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7953 address of blocks that intersects the requested range. Trim
7954 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7955 sections.
7956 * ctf.c (ctf_xfer_partial): Likewise.
7957
7958 2014-05-05 Yao Qi <yao@codesourcery.com>
7959
7960 * printcmd.c (display_command): Remove the check to
7961 target_has_execution.
7962
7963 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7964
7965 * ppcobsd-nat.c: Include "obsd-nat.h".
7966 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7967 add_target.
7968 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7969
7970 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7971
7972 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7973 and 16-bit signed and unsigned arguments. Update comment.
7974 (stap_parse_probe_arguments): Extend code to handle such
7975 arguments. Use warning instead of complaint to notify about
7976 unrecognized bitness.
7977
7978 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7979
7980 PR breakpoints/16889
7981 * stap-probe.c (stap_parse_probe_arguments): Simplify
7982 check for non-prefixed probes (i.e., probes whose
7983 arguments do not start with "N@"). Always set the
7984 argument type to a sane value.
7985
7986 2014-05-01 David Taylor <dtaylor@emc.com>
7987
7988 * remote.c (compare_sections_command): Add -r option to compare
7989 all loadable read-only sections.
7990
7991 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7992
7993 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7994 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7995 Update all callers.
7996 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7997 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7998 Remove unused CORE_ADDR argument. Update all callers.
7999
8000 2014-04-29 Pedro Alves <palves@redhat.com>
8001
8002 * remote.c (struct packet_config) <detect>: Extend comment.
8003 (add_packet_config_cmd): Don't set the config's detect or support
8004 fields here.
8005 (init_all_packet_configs): Also initialize the config's 'detect'
8006 field.
8007 (reset_all_packet_configs_support): New function.
8008 (remote_open_1): Call reset_all_packet_configs_support instead of
8009 init_all_packet_configs.
8010 (_initialize_remote): Initialize all packet configs. Assert that
8011 all packets have an associated command, except a few known
8012 outliers.
8013
8014 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8015
8016 * dwarf2read.c (read_subrange_type): Handle dynamic
8017 DW_AT_lower_bound attributes.
8018
8019 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8020
8021 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8022 dynamic bounds before computing its upper bound.
8023 (ada_discrete_type_low_bound): Same as above with the lower bound.
8024
8025 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8026
8027 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8028 range types. Adjust the array handling implementation to
8029 take advantage of this change.
8030 (resolve_dynamic_range): New function, mostly extracted from
8031 resolve_dynamic_bounds.
8032 (resolve_dynamic_array): New function, mostly extracted from
8033 resolve_dynamic_bounds.
8034 (resolve_dynamic_bounds): Delete.
8035 (resolve_dynamic_type): Reimplement. Add handling of
8036 TYPE_CODE_RANGE types.
8037
8038 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8039
8040 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8041 handling of parallel ___XA types.
8042
8043 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8044
8045 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8046 unnecessary second call to static_unwrap_type.
8047
8048 2014-04-27 Hui Zhu <hui@codesourcery.com>
8049
8050 * stack.c (print_frame_info): Call do_gdb_disassembly with
8051 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8052
8053 2014-04-26 Doug Evans <xdje42@gmail.com>
8054
8055 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8056
8057 2014-04-25 Pedro Alves <palves@redhat.com>
8058
8059 PR server/16255
8060 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8061 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8062 and newline from built string.
8063 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8064 (linux_ptrace_attach_fail_reason): ... this.
8065 * linux-nat.c (linux_nat_attach): Adjust to use
8066 linux_ptrace_attach_fail_reason.
8067
8068 2014-04-25 Pedro Alves <palves@redhat.com>
8069
8070 * remote.c (struct remote_state): Remove multi_process_aware,
8071 non_stop_aware, cond_tracepoints, cond_breakpoints,
8072 breakpoint_commands, fast_tracepoints, static_tracepoints,
8073 install_in_trace, disconnected_tracing,
8074 enable_disable_tracepoints, string_tracing, and
8075 augmented_libraries_svr4_read fields.
8076 (remote_multi_process_p): Move further below in the file.
8077 (struct packet_config): Add comments.
8078 (update_packet_config): Delete function.
8079 (show_packet_config_cmd): Use packet_config_support.
8080 (add_packet_config_cmd): Use NULL as set callback.
8081 (packet_ok): "set remote foo-packet"-style commands no longer
8082 change config->supported -- adjust.
8083 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8084 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8085 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8086 (PACKET_QNonStop, PACKET_multiprocess_feature)
8087 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8088 (PACKET_DisconnectedTracing_feature)
8089 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8090 (set_remote_protocol_packet_cmd): Delete function.
8091 (packet_config_support, packet_support): New functions.
8092 (set_remote_protocol_Z_packet_cmd): Don't call
8093 update_packet_config.
8094 (remote_query_attached, remote_pass_signals)
8095 (remote_program_signals, remote_threads_info)
8096 (remote_threads_extra_info, remote_start_remote): Use
8097 packet_support.
8098 (remote_start_remote): Use packet_config_support and
8099 packet_support.
8100 (init_all_packet_configs): Set all packets to unknown support,
8101 instead of calling update_packet_config.
8102 (remote_check_symbols): Use packet_support.
8103 (remote_supported_packet): Unconditionally set the packet config's
8104 support status.
8105 (remote_multi_process_feature, remote_non_stop_feature)
8106 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8107 (remote_breakpoint_commands_feature)
8108 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8109 (remote_install_in_trace_feature)
8110 (remote_disconnected_tracing_feature)
8111 (remote_enable_disable_tracepoint_feature)
8112 (remote_string_tracing_feature)
8113 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8114 (remote_protocol_features): Adjust to use remote_supported_packet
8115 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8116 "ConditionalTracepoints", "ConditionalBreakpoints",
8117 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8118 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8119 "EnableDisableTracepoints", and "tracenz".
8120 (remote_query_supported): Use packet_support.
8121 (remote_open_1): Adjust.
8122 (extended_remote_attach_1): Use packet_support. Switch on the
8123 result of packet_ok instead of checking whether the packet ended
8124 up disabled.
8125 (remote_vcont_resume): Use packet_support.
8126 (remote_resume, remote_stop_ns, fetch_register_using_p)
8127 (remote_prepare_to_store, store_register_using_P)
8128 (check_binary_download, remote_write_bytes): Use packet_support.
8129 (remote_vkill): Use packet_support. Switch on the result of
8130 packet_ok instead of checking whether the packet ended up
8131 disabled.
8132 (extended_remote_supports_disable_randomization): Use
8133 packet_support.
8134 (extended_remote_run): Switch on the result of packet_ok instead
8135 of checking whether the packet ended up disabled.
8136 (remote_insert_breakpoint, remote_remove_breakpoint)
8137 (remote_insert_watchpoint, remote_remove_watchpoint)
8138 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8139 packet_support.
8140 (remote_search_memory): Use packet_config_support.
8141 (remote_get_thread_local_address, remote_get_tib_address)
8142 (remote_hostio_send_command, remote_can_execute_reverse): Use
8143 packet_support.
8144 (remote_supports_cond_tracepoints)
8145 (remote_supports_cond_breakpoints)
8146 (remote_supports_fast_tracepoints)
8147 (remote_supports_static_tracepoints)
8148 (remote_supports_install_in_trace)
8149 (remote_supports_enable_disable_tracepoint)
8150 (remote_supports_string_tracing)
8151 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8152 the packet config says the feature is enabled or disabled.
8153 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8154 (remote_get_trace_status): Use packet_support.
8155 (remote_set_disconnected_tracing): Adjust to check whether the
8156 feature is enabled with packet_support.
8157 (remote_set_trace_buffer_size, remote_use_agent)
8158 (remote_can_use_agent, remote_supports_btrace): Use
8159 packet_support.
8160 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8161 Use packet_config_support.
8162 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8163 the packet config says the feature is enabled or disabled.
8164 (set_range_stepping): Use packet_support.
8165
8166 2014-04-25 Tom Tromey <tromey@redhat.com>
8167
8168 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8169 argument.
8170
8171 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8172
8173 * NEWS: Mention support for C99 variable length arrays.
8174
8175 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8176
8177 * ada-lang.c (standard_exc): Expand introductory comment.
8178
8179 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8180 Walfred Tedeschi <walfred.tedeschi@intel.com>
8181
8182 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8183 AVX512 registers.
8184 (amd64_linux_read_description): Add code to handle AVX512 xstate
8185 mask and return respective tdesc.
8186 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8187 and features/i386/x32-avx512-linux.c.
8188 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8189 (amd64_linux_core_read_description): Add code to handle AVX512
8190 xstate mask and return respective tdesc.
8191 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8192 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8193 calculation.
8194 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8195 (tdesc_amd64_avx512_linux): New prototype.
8196 (tdesc_x32_avx512_linux): Likewise.
8197 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8198 features/i386/x32-avx512.c.
8199 (amd64_ymm_avx512_names): New register names for pseudo
8200 registers YMM16-31.
8201 (amd64_ymmh_avx512_names): New register names for raw registers
8202 YMMH16-31.
8203 (amd64_k_names): New register names for K registers.
8204 (amd64_zmmh_names): New register names for ZMM raw registers.
8205 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8206 (amd64_xmm_avx512_names): New register names for XMM16-31
8207 registers.
8208 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8209 registers.
8210 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8211 if feature is present.
8212 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8213 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8214 (AMD64_NUM_REGS): Adjust to new number of registers.
8215 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8216 registers supplied via XSTATE by AVX512 registers.
8217 (i386_linux_read_description): Add case for AVX512.
8218 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8219 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8220 (i386_linux_core_read_description): Add case for AVX512.
8221 (i386_linux_init_abi): Install supported register note section
8222 for AVX512.
8223 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8224 AVX512.
8225 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8226 registers to be number of zmm7h + 1.
8227 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8228 * i386-tdep.c: Include features/i386/i386-avx512.c.
8229 (i386_zmm_names): Add ZMM pseudo register names array.
8230 (i386_zmmh_names): Add ZMM raw register names array.
8231 (i386_k_names): Add K raw register names array.
8232 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8233 registers. AVX512 has 16 more ZMM registers than there are YMM
8234 registers.
8235 (i386_zmmh_regnum_p): Add function to look up register number of
8236 ZMM raw registers.
8237 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8238 (i386_k_regnum_p): Likewise for K raw registers.
8239 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8240 registers added by AVX512.
8241 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8242 registers added by AVX512.
8243 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8244 added by AVX512.
8245 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8246 (i386_pseudo_register_name): Add ZMM pseudo registers.
8247 (i386_zmm_type): Construct and return vector registers type for ZMM
8248 registers.
8249 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8250 ZMM0-31 pseudo registers and K registers.
8251 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8252 and YMM16-31 registers from register cache.
8253 (i386_pseudo_register_write): Add code to write K, ZMM and
8254 YMM16-31 registers.
8255 (i386_register_reggroup_p): Add code to include/exclude AVX512
8256 registers in/from respective register groups.
8257 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8258 registers if feature is present in xcr0.
8259 (i386_gdbarch_init): Add code to initialize AVX512 feature
8260 variables in tdep structure, wire in pseudo registers and call
8261 initialize_tdesc_i386_avx512.
8262 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8263 variables.
8264 (i386_regnum): Add AVX512 registers.
8265 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8266 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8267 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8268 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8269 512 bits wide.
8270 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8271 (i386_ymm_avx512_regnum_p): Likewise.
8272 (i386_k_regnum_p): Likewise.
8273 (i386_zmm_regnum_p): Likewise.
8274 (i386_zmmh_regnum_p): Likewise.
8275 * i387-tdep.c : Update year in copyright notice.
8276 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8277 XSAVE buffer.
8278 (XSAVE_YMM_AVX512_ADDR): New macro.
8279 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8280 XSAVE buffer.
8281 (XSAVE_XMM_AVX512_ADDR): New macro.
8282 (xsave_avx512_k_offset): New table for K register offsets in
8283 XSAVE buffer.
8284 (XSAVE_AVX512_K_ADDR): New macro.
8285 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8286 in XSAVE buffer.
8287 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8288 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8289 buffer.
8290 (i387_collect_xsave): Add code to collect AVX512 registers from
8291 XSAVE buffer.
8292 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8293 of XMM16-31 registers.
8294 (I387_NUM_K_REGS): New define for number of K registers.
8295 (I387_K0_REGNUM): New define for K0 register number.
8296 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8297 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8298 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8299 registers.
8300 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8301 (I387_XMM16_REGNUM): New define for XMM16 register number.
8302 (I387_YMM0_REGNUM): New define for YMM0 register number.
8303 (I387_KEND_REGNUM): New define for last K register number.
8304 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8305 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8306 number.
8307 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8308 number.
8309 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8310 size.
8311 * features/Makefile: Add AVX512 related files.
8312 * features/i386/32bit-avx512.xml: New file.
8313 * features/i386/64bit-avx512.xml: Likewise.
8314 * features/i386/amd64-avx512-linux.c: Likewise.
8315 * features/i386/amd64-avx512-linux.xml: Likewise.
8316 * features/i386/amd64-avx512.c: Likewise.
8317 * features/i386/amd64-avx512.xml: Likewise.
8318 * features/i386/i386-avx512-linux.c: Likewise.
8319 * features/i386/i386-avx512-linux.xml: Likewise.
8320 * features/i386/i386-avx512.c: Likewise.
8321 * features/i386/i386-avx512.xml: Likewise.
8322 * features/i386/x32-avx512-linux.c: Likewise.
8323 * features/i386/x32-avx512-linux.xml: Likewise.
8324 * features/i386/x32-avx512.c: Likewise.
8325 * features/i386/x32-avx512.xml: Likewise.
8326 * regformats/i386/amd64-avx512-linux.dat: New file.
8327 * regformats/i386/amd64-avx512.dat: Likewise.
8328 * regformats/i386/i386-avx512-linux.dat: Likewise.
8329 * regformats/i386/i386-avx512.dat: Likewise.
8330 * regformats/i386/x32-avx512-linux.dat: Likewise.
8331 * regformats/i386/x32-avx512.dat: Likewise.
8332 * NEWS: Add note about new support for AVX512.
8333
8334
8335 2014-04-23 Pedro Alves <palves@redhat.com>
8336
8337 * breakpoint.c (insert_bp_location): Tolerate errors if the
8338 breakpoint is set in a user-loaded objfile.
8339 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8340 location is marked shlib_disabled. If the breakpoint is set in a
8341 user-loaded objfile is a GDB-side memory breakpoint, validate it
8342 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8343 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8344 flag.
8345 * mem-break.c (memory_validate_breakpoint): New function.
8346 * objfiles.c (userloaded_objfile_contains_address_p): New
8347 function.
8348 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8349 * target.h (memory_validate_breakpoint): New declaration.
8350
8351 2014-04-23 Pedro Alves <palves@redhat.com>
8352
8353 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8354 the breakpoint is set in a shared library, only suppress
8355 errors for software breakpoints, not hardware breakpoints.
8356
8357 2014-04-22 Pedro Alves <palves@redhat.com>
8358
8359 * infrun.c (schedlock_applies): New function, factored out from
8360 find_thread_needs_step_over.
8361 (find_thread_needs_step_over): Use it.
8362 (switch_back_to_stepped_thread): Always clear trap_expected if the
8363 step over is finished. Return early if scheduler locking applies.
8364 Look for the stepping thread and a potential step-over thread with
8365 a single loop.
8366 (currently_stepping_or_nexting_callback): Delete.
8367
8368 2014-04-22 Nick Clifton <nickc@redhat.com>
8369
8370 * NEWS: Mention that ARM sim now supports tracing.
8371
8372 2014-04-22 Yao Qi <yao@codesourcery.com>
8373
8374 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8375 to ...
8376 * tracefile.c (tracefile_fetch_registers): ... it. New
8377 function.
8378 * tracefile.h (tracefile_fetch_registers): Declare.
8379 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8380 tracefile_fetch_registers.
8381
8382 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8383
8384 PR gdb/14018
8385 * windows-nat.c (thread_rec): Don't display a warning when
8386 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8387 fails for any reason, set th->suspended to -1, so that we don't
8388 try to resume such a thread. Also, don't return NULL in these
8389 cases, to avoid completely ruin the session due to "PC register is
8390 not available" error.
8391 (do_windows_fetch_inferior_registers): Check errors in
8392 GetThreadContext call.
8393 (windows_continue): Accept an additional argument KILLED; if not
8394 zero, ignore errors in the SetThreadContext call, since the
8395 inferior was killed and is shutting down.
8396 (windows_resume, get_windows_debug_event)
8397 (windows_create_inferior, windows_mourn_inferior)
8398 (windows_kill_inferior): All callers of windows_continue changed
8399 to adjust to its new calling sequence.
8400
8401 2014-04-19 Yao Qi <yao@codesourcery.com>
8402
8403 * ctf.c (ctf_open): Call post_create_inferior.
8404
8405 2014-04-19 Yao Qi <yao@codesourcery.com>
8406
8407 * ctf.c (handle_id): New static variable.
8408 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8409 value. Get the declaration of event "register" and get length
8410 of field "contents".
8411
8412 2014-04-19 Yao Qi <yao@codesourcery.com>
8413
8414 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8415
8416 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8417
8418 * valops.c (oload_method_static): Remove unnecessary argument
8419 METHOD. Update all callers.
8420
8421 2014-04-18 Pedro alves <palves@redhat.com>
8422 Tom Tromey <tromey@redhat.com>
8423
8424 PR backtrace/15558
8425 * frame.c (get_prev_frame_1): Rename to ...
8426 (get_prev_frame_always): ... this, and make extern. Adjust.
8427 (skip_artificial_frames): Use get_prev_frame_always.
8428 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8429 (get_frame_unwind_stop_reason): Adjust to rename.
8430 * frame.h (get_prev_frame_always): Declare.
8431 * inline-frame.c: Include frame.h.
8432 (inline_frame_this_id): Use get_prev_frame_always.
8433
8434 2014-04-18 Tristan Gingold <gingold@adacore.com>
8435
8436 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8437 code by using bfd_mach_o_get_base_address.
8438
8439 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8440
8441 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8442 (spu_ax_pseudo_register_collect): New function.
8443 (spu_ax_pseudo_register_push_stack): Likewise.
8444 (spu_dwarf_reg_to_regnum): Likewise.
8445 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8446
8447 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8448
8449 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8450 Replace FRAME argument with FRAME_ID.
8451 * gdbarch.c, gdbarch.h: Regenerate.
8452 * findvar.c (default_value_from_register): Add GDBARCH argument;
8453 replace FRAME by FRAME_ID. No longer call get_frame_id.
8454 (value_from_register): Update call to gdbarch_value_from_register.
8455 * value.h (default_value_from_register): Update prototype.
8456 * s390-linux-tdep.c (s390_value_from_register): Update interface
8457 and call to default_value_from_register.
8458 * spu-tdep.c (spu_value_from_register): Likewise.
8459
8460 * findvar.c (address_from_register): Remove TYPE argument.
8461 Do not call value_from_register; use gdbarch_value_from_register
8462 with null_frame_id instead.
8463 * value.h (address_from_register): Update prototype.
8464 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8465 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8466 address_from_register interface change.
8467
8468 2014-04-17 Yao Qi <yao@codesourcery.com>
8469
8470 * gdbtypes.h: Update comments to link to types and macros'
8471 definitions.
8472
8473 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8474
8475 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8476
8477 2014-04-16 Keith Seitz <keiths@redhat.com>
8478
8479 PR gdb/15827
8480 * dwarf2read.c (skip_one_die): Check that all relative-offset
8481 sibling DIEs fall within range of the current reader's buffer.
8482 (read_partial_die): Likewise.
8483
8484 2014-04-16 Keith Seitz <keiths@redhat.com>
8485
8486 PR c++/16597
8487 * cp-namespace.c (lookup_symbol_file): If the type name of
8488 `this' is NULL, return immediately.
8489
8490 2014-04-14 Keith Seitz <keiths@redhat.com>
8491
8492 PR c++/16253
8493 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8494 from symbol_matches_domain in symtab.c. All local callers
8495 of symbol_matches_domain updated.
8496 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8497 search STRUCT_DOMAIN.
8498 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8499 independently. standard_lookup will do that automatically.
8500 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8501 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8502 (cp_lookup_symbol_in_namespace): Likewise.
8503 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8504 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8505 may return a STRUCT_DOMAIN match.
8506 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8507 * cp-support.c: Include language.h.
8508 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8509 VAR_DOMAIN.
8510 * psymtab.c (match_partial_symbol): Compare the requested
8511 domain with the symbol's domain directly.
8512 (lookup_partial_symbol): Likewise.
8513 * symtab.c (lookup_symbol_in_language): Explain when/why
8514 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8515 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8516 appropriate languages.
8517 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8518 and moved to ada-lang.c
8519 (lookup_block_symbol): Explain that this function only returns
8520 symbol matching the requested DOMAIN.
8521 Compare the requested domain with the symbol's domain directly.
8522 (iterate_over_symbols): Compare the requested domain with the
8523 symbol's domain directly.
8524 * symtab.h (symbol_matches_domain): Remove.
8525
8526 2014-04-14 Tom Tromey <tromey@redhat.com>
8527
8528 PR c++/15246:
8529 * c-exp.y (type_aggregate_p): New function.
8530 (qualified_name, classify_inner_name): Use it.
8531 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8532 and TYPE_TARGET_TYPE of an enum type.
8533 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8534 an enum type.
8535 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8536 handle TYPE_DECLARED_CLASS.
8537 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8538 types.
8539 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8540 * valops.c (enum_constant_from_type): New function.
8541 (value_aggregate_elt): Use it.
8542 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8543 TYPE_CODE_ENUM.
8544
8545 2014-04-14 Tom Tromey <tromey@redhat.com>
8546
8547 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8548 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8549 const.
8550 * value.h (value_aggregate_elt): Update.
8551
8552 2014-04-14 Tom Tromey <tromey@redhat.com>
8553
8554 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8555
8556 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8557
8558 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8559 (evaluate_subexp_standard): Pass noside argument.
8560 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8561 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8562 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8563 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8564 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8565
8566 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8567
8568 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8569 points to a constant blob.
8570
8571 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8572
8573 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8574 property and store it as the high bound and flag the range accordingly.
8575 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8576 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8577 * gdbtypes.h (enum range_flags): New enum.
8578 (struct range_bounds): Add flags member.
8579
8580 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8581
8582 * c-typeprint.c (c_type_print_varspec_suffix): Added
8583 check for not yet resolved high bound. If unresolved, print
8584 "variable length" string to the console instead of random
8585 length.
8586
8587 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8588
8589 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8590 value.
8591 (ada_template_to_fixed_record_type_1): Likewise.
8592 (ada_to_fixed_type_1): Likewise.
8593 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8594 (cp_print_value): Likewise.
8595 * d-valprint.c (dynamic_array_type): Likewise.
8596 * findvar.c (address_of_variable): Likewise.
8597 * jv-valprint.c (java_value_print): Likewise.
8598 * valops.c (value_ind): Likewise.
8599 * value.c (coerce_ref): Likewise.
8600
8601 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8602
8603 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8604 value and retrieve the dynamic type size.
8605
8606 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8607
8608 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8609 passed to sizeof is dynamic evaluate the argument to compute the length.
8610
8611 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8612 Joel Brobecker <brobecker@adacore.com>
8613
8614 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8615 (dwarf2_evaluate_property): New function.
8616 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8617 * dwarf2read.c (attr_to_dynamic_prop): New function.
8618 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8619 attribute.
8620 * gdbtypes.c: Include dwarf2loc.h.
8621 (is_dynamic_type): New function.
8622 (resolve_dynamic_type): New function.
8623 (resolve_dynamic_bounds): New function.
8624 (get_type_length): New function.
8625 (check_typedef): Use get_type_length to compute type length.
8626 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8627 (TYPE_LOW_BOUND_KIND): New macro.
8628 (is_dynamic_type): New function prototype.
8629 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8630 to resolve dynamic properties of the type. Update comment.
8631 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8632
8633 2014-04-14 Richard Henderson <rth@redhat.com>
8634
8635 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8636
8637 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8638 Doug Evans <xdje42@gmail.com>
8639
8640 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8641 dereference TYPE_CODE_REF values.
8642
8643 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8644
8645 Revert the following changes due to regressions:
8646
8647 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8648 (dwarf2_evaluate_property): New function.
8649 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8650 * dwarf2read.c (attr_to_dynamic_prop): New function.
8651 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8652 attribute.
8653 * gdbtypes.c: Include dwarf2loc.h.
8654 (is_dynamic_type): New function.
8655 (resolve_dynamic_type): New function.
8656 (resolve_dynamic_bounds): New function.
8657 (get_type_length): New function.
8658 (check_typedef): Use get_type_length to compute type length.
8659 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8660 (TYPE_LOW_BOUND_KIND): New macro.
8661 (is_dynamic_type): New function prototype.
8662 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8663 to resolve dynamic properties of the type. Update comment.
8664 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8665
8666 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8667 passed to sizeof is dynamic evaluate the argument to compute the length.
8668
8669 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8670 value and retrieve the dynamic type size.
8671
8672 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8673 (ada_template_to_fixed_record_type_1): Likewise.
8674 (ada_to_fixed_type_1): Likewise.
8675 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8676 (cp_print_value): Likewise.
8677 * d-valprint.c (dynamic_array_type): Likewise.
8678 * eval.c (evaluate_subexp_with_coercion): Likewise.
8679 * findvar.c (address_of_variable): Likewise.
8680 * jv-valprint.c (java_value_print): Likewise.
8681 * valops.c (value_ind): Likewise.
8682 * value.c (coerce_ref): Likewise.
8683
8684 * c-typeprint.c (c_type_print_varspec_suffix): Added
8685 check for not yet resolved high bound. If unresolved, print
8686 "variable length" string to the console instead of random
8687 length.
8688
8689 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8690 property and store it as the high bound and flag the range accordingly.
8691 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8692 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8693 * gdbtypes.h (enum range_flags): New enum.
8694 (struct range_bounds): Add flags member.
8695
8696 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8697 points to a constant blob.
8698
8699 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8700 (evaluate_subexp_standard): Pass noside argument.
8701 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8702 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8703 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8704 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8705 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8706
8707 2014-04-11 Keith Seitz <keiths@redhat.com>
8708
8709 PR c++/16675
8710 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8711 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8712 reference types.
8713
8714 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8715
8716 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8717 (evaluate_subexp_standard): Pass noside argument.
8718 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8719 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8720 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8721 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8722 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8723
8724 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8725
8726 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8727 points to a constant blob.
8728
8729 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8730
8731 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8732 property and store it as the high bound and flag the range accordingly.
8733 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8734 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8735 * gdbtypes.h (enum range_flags): New enum.
8736 (struct range_bounds): Add flags member.
8737
8738 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8739
8740 * c-typeprint.c (c_type_print_varspec_suffix): Added
8741 check for not yet resolved high bound. If unresolved, print
8742 "variable length" string to the console instead of random
8743 length.
8744
8745 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8746
8747 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8748 (ada_template_to_fixed_record_type_1): Likewise.
8749 (ada_to_fixed_type_1): Likewise.
8750 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8751 (cp_print_value): Likewise.
8752 * d-valprint.c (dynamic_array_type): Likewise.
8753 * eval.c (evaluate_subexp_with_coercion): Likewise.
8754 * findvar.c (address_of_variable): Likewise.
8755 * jv-valprint.c (java_value_print): Likewise.
8756 * valops.c (value_ind): Likewise.
8757 * value.c (coerce_ref): Likewise.
8758
8759 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8760
8761 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8762 value and retrieve the dynamic type size.
8763
8764 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8765
8766 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8767 passed to sizeof is dynamic evaluate the argument to compute the length.
8768
8769 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8770
8771 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8772 (dwarf2_evaluate_property): New function.
8773 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8774 * dwarf2read.c (attr_to_dynamic_prop): New function.
8775 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8776 attribute.
8777 * gdbtypes.c: Include dwarf2loc.h.
8778 (is_dynamic_type): New function.
8779 (resolve_dynamic_type): New function.
8780 (resolve_dynamic_bounds): New function.
8781 (get_type_length): New function.
8782 (check_typedef): Use get_type_length to compute type length.
8783 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8784 (TYPE_LOW_BOUND_KIND): New macro.
8785 (is_dynamic_type): New function prototype.
8786 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8787 to resolve dynamic properties of the type. Update comment.
8788 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8789
8790 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8791
8792 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8793 declaring high/low bounds and change uses accordingly. Call
8794 create_range_type instead of create_static_range_type.
8795 * gdbtypes.c (create_range_type): New function.
8796 (create_range_type): Convert bounds into struct bound_prop and pass
8797 them to create_range_type.
8798 * gdbtypes.h (struct bound_prop): New struct.
8799 (create_range_type): New function prototype.
8800 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8801 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8802 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8803 part of the bound.
8804 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8805
8806 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8807
8808 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8809 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8810 * ada-lang.c: All uses of create_range_type updated.
8811 * coffread.c: All uses of create_range_type updated.
8812 * dwarf2read.c: All uses of create_range_type updated.
8813 * f-exp.y: All uses of create_range_type updated.
8814 * m2-valprint.c: All uses of create_range_type updated.
8815 * mdebugread.c: All uses of create_range_type updated.
8816 * stabsread.c: All uses of create_range_type updated.
8817 * valops.c: All uses of create_range_type updated.
8818 * valprint.c: All uses of create_range_type updated.
8819
8820 2014-04-10 Pedro Alves <palves@redhat.com>
8821
8822 * breakpoint.c (single_step_breakpoints)
8823 (single_step_gdbarch): Move up in the file.
8824 (one_breakpoint_xfer_memory): New function, factored out from ...
8825 (breakpoint_xfer_memory): ... here. Also process single-step
8826 breakpoints.
8827
8828 2014-04-09 Tristan Gingold <gingold@adacore.com>
8829
8830 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8831 comments.
8832 (darwin_decode_exception_message): Free port only after use.
8833
8834 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8835
8836 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8837 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8838 when setting the size of call_length.
8839
8840 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8841
8842 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8843 dereference TYPE_CODE_REF values.
8844
8845 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8846
8847 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8848 end of warning message.
8849
8850 2014-04-03 Doug Evans <dje@google.com>
8851
8852 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8853 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8854
8855 2014-04-02 Alan Modra <amodra@gmail.com>
8856
8857 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8858 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8859 (struct symbol_file_add_from_memory_args): Add size field.
8860 (find_vdso_size): New function.
8861 (add_vsyscall_page): Attempt to find vdso size.
8862
8863 2014-04-01 Doug Evans <dje@google.com>
8864
8865 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8866
8867 2014-04-01 Tristan Gingold <gingold@adacore.com>
8868
8869 * darwin-nat.c (darwin_encode_reply): Add prototype.
8870 (darwin_decode_exception_message): Reply to unknown inferiors.
8871 (darwin_decode_message): Handle message by id. Ignore message
8872 to unknown inferior.
8873 (darwin_wait): Discard unknown messages, add debug trace.
8874
8875 2014-03-31 Doug Evans <dje@google.com>
8876
8877 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8878 comp_dir_string.
8879
8880 2014-03-31 Doug Evans <dje@google.com>
8881
8882 New option "set print symbol-loading".
8883 * NEWS: Mention it.
8884 * solib.c (solib_read_symbols): Only print symbol loading messages
8885 if requested.
8886 (solib_add): If symbol loading is in "brief" mode, notify user
8887 symbols are being loaded.
8888 (reload_shared_libraries_1): Ditto.
8889 * symfile.c (print_symbol_loading_off): New static global.
8890 (print_symbol_loading_brief): New static global.
8891 (print_symbol_loading_full): New static global.
8892 (print_symbol_loading_enums): New static global.
8893 (print_symbol_loading): New static global.
8894 (print_symbol_loading_p): New function.
8895 (symbol_file_add_with_addrs): Only print symbol loading messages
8896 if requested.
8897 (_initialize_symfile): Register "print symbol-loading" set/show
8898 command.
8899 * symfile.h (print_symbol_loading_p): Declare.
8900
8901 2014-03-30 Doug Evans <xdje42@gmail.com>
8902
8903 * infrun.c (set_last_target_status): New function.
8904 (handle_inferior_event): Call it.
8905
8906 2014-03-30 Doug Evans <xdje42@gmail.com>
8907
8908 * inferior.h (enum stop_kind): Improve comment.
8909
8910 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8911
8912 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8913 a reference, strip the reference layer before calling
8914 the lang_ops value_has_mutated callback.
8915
8916 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8917
8918 Remove some globals from our parser.
8919 * language.c (unk_lang_parser): Add "struct parser_state"
8920 argument.
8921 * language.h (struct language_defn) <la_parser>: Likewise.
8922 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8923 (initialize_expout): Add "struct parser_state" argument.
8924 Rewrite function to use the parser state.
8925 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8926 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8927 write_exp_elt_longcst, write_exp_elt_dblcst,
8928 write_exp_elt_decfloatcst, write_exp_elt_type,
8929 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8930 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8931 write_dollar_variable): Likewise.
8932 (parse_exp_in_context_1): Use parser state.
8933 (insert_type_address_space): Add "struct parser_state" argument.
8934 Use parser state.
8935 (increase_expout_size): New function.
8936 * parser-defs.h: Forward declare "struct language_defn" and
8937 "struct parser_state".
8938 (expout, expout_size, expout_ptr): Remove extern declarations.
8939 (parse_gdbarch, parse_language): Rewrite macro declarations to
8940 accept the parser state.
8941 (struct parser_state): New struct.
8942 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8943 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8944 write_exp_elt_decfloatcst, write_exp_elt_type,
8945 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8946 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8947 write_exp_msymbol, write_dollar_variable,
8948 mark_struct_expression, insert_type_address_space): Add "struct
8949 parser_state" argument.
8950 (increase_expout_size): New function.
8951 * utils.c (do_clear_parser_state): New function.
8952 (make_cleanup_clear_parser_state): Likewise.
8953 * utils.h (make_cleanup_clear_parser_state): New function
8954 prototype.
8955 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8956 Update calls to write_exp* in order to pass the parser state.
8957 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8958 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8959 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8960 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8961 * stap-probe.c (stap_parse_register_operand): Likewise.
8962 (stap_parse_single_operand): Likewise.
8963 (stap_parse_argument_1): Likewise.
8964 (stap_parse_argument): Use parser state.
8965 * stap-probe.h: Include "parser-defs.h".
8966 (struct stap_parse_info) <pstate>: New field.
8967 * c-exp.y (parse_type): Rewrite to use parser state.
8968 (yyparse): Redefine to c_parse_internal.
8969 (pstate): New global variable.
8970 (parse_number): Add "struct parser_state" argument.
8971 (write_destructor_name): Likewise.
8972 (type_exp): Update calls to write_exp* and similars in order to
8973 use parser state.
8974 (exp1, exp, variable, qualified_name, space_identifier,
8975 typename, typebase): Likewise.
8976 (write_destructor_name, parse_number, lex_one_token,
8977 classify_name, classify_inner_name, c_parse): Add "struct
8978 parser_state" argument. Update function to use parser state.
8979 * c-lang.h: Forward declare "struct parser_state".
8980 (c_parse): Add "struct parser_state" argument.
8981 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8982 (yyparse): Redefine macro to ada_parse_internal.
8983 (pstate): New variable.
8984 (write_int, write_object_renaming, write_var_or_type,
8985 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8986 type_int, type_long, type_long_long, type_float, type_double,
8987 type_long_double, type_char, type_boolean, type_system_address):
8988 Add "struct parser_state" argument.
8989 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8990 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8991 var_or_type, aggregate, aggregate_component_list,
8992 positional_list, others, component_group,
8993 component_associations): Update calls to write_exp* and similar
8994 functions in order to use parser state.
8995 (ada_parse, write_var_from_sym, write_int,
8996 write_exp_op_with_string, write_object_renaming,
8997 find_primitive_type, write_selectors, write_ambiguous_var,
8998 write_var_or_type, write_name_assoc, type_int, type_long,
8999 type_long_long, type_float, type_double, type_long_double,
9000 type_char, type_boolean, type_system_address): Add "struct
9001 parser_state" argument. Adjust function to use parser state.
9002 * ada-lang.c (parse): Likewise.
9003 * ada-lang.h: Forward declare "struct parser_state".
9004 (ada_parse): Add "struct parser_state" argument.
9005 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9006 calls to both functions.
9007 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9008 parser state.
9009 (yyparse): Redefine macro to f_parse_internal.
9010 (pstate): New variable.
9011 (parse_number): Add "struct parser_state" argument.
9012 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9013 and similars in order to use parser state.
9014 (parse_number): Adjust code to use parser state.
9015 (yylex): Likewise.
9016 (f_parse): New function.
9017 * f-lang.h: Forward declare "struct parser_state".
9018 (f_parse): Add "struct parser_state" argument.
9019 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9020 parser state.
9021 (yyparse): Redefine macro for java_parse_internal.
9022 (pstate): New variable.
9023 (push_expression_name, push_expression_name, insert_exp): Add
9024 "struct parser_state" argument.
9025 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9026 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9027 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9028 PostIncrementExpression, PostDecrementExpression,
9029 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9030 UnaryExpressionNotPlusMinus, CastExpression,
9031 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9032 RelationalExpression, EqualityExpression, AndExpression,
9033 ExclusiveOrExpression, InclusiveOrExpression,
9034 ConditionalAndExpression, ConditionalOrExpression,
9035 ConditionalExpression, Assignment, LeftHandSide): Update
9036 calls to write_exp* and similars in order to use parser state.
9037 (parse_number): Ajust code to use parser state.
9038 (yylex): Likewise.
9039 (java_parse): New function.
9040 (push_variable): Add "struct parser_state" argument. Adjust
9041 code to user parser state.
9042 (push_fieldnames, push_qualified_expression_name,
9043 push_expression_name, insert_exp): Likewise.
9044 * jv-lang.h: Forward declare "struct parser_state".
9045 (java_parse): Add "struct parser_state" argument.
9046 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9047 parser state.
9048 (yyparse): Redefine macro to m2_parse_internal.
9049 (pstate): New variable.
9050 (type_exp, exp, fblock, variable, type): Update calls to
9051 write_exp* and similars to use parser state.
9052 (yylex): Likewise.
9053 (m2_parse): New function.
9054 * m2-lang.h: Forward declare "struct parser_state".
9055 (m2_parse): Add "struct parser_state" argument.
9056 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9057 * objc-lang.h: Forward declare "struct parser_state".
9058 (end_msglist): Add "struct parser_state" argument.
9059 * p-exp.y (parse_type): Rewrite macro to use parser state.
9060 (yyparse): Redefine macro to pascal_parse_internal.
9061 (pstate): New variable.
9062 (parse_number): Add "struct parser_state" argument.
9063 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9064 write_exp* and similars in order to use parser state.
9065 (parse_number, yylex): Adjust code to use parser state.
9066 (pascal_parse): New function.
9067 * p-lang.h: Forward declare "struct parser_state".
9068 (pascal_parse): Add "struct parser_state" argument.
9069 * go-exp.y (parse_type): Rewrite macro to use parser state.
9070 (yyparse): Redefine macro to go_parse_internal.
9071 (pstate): New variable.
9072 (parse_number): Add "struct parser_state" argument.
9073 (type_exp, exp1, exp, variable, type): Update calls to
9074 write_exp* and similars in order to use parser state.
9075 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9076 to use parser state.
9077 (go_parse): Likewise.
9078 * go-lang.h: Forward declare "struct parser_state".
9079 (go_parse): Add "struct parser_state" argument.
9080
9081 2014-03-27 Doug Evans <dje@google.com>
9082
9083 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9084
9085 2014-03-27 Doug Evans <dje@google.com>
9086
9087 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9088 Remove argument abbrev_section. All callers updated.
9089
9090 2014-03-27 Doug Evans <dje@google.com>
9091
9092 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9093 addr_base, ranges_base.
9094
9095 2014-03-26 Keith Seitz <keiths@redhat.com>
9096
9097 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9098 types, not VAR_DOMAIN.
9099
9100 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9101
9102 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9103 "ra" registers.
9104 * features/nios2-linux.c: Regenerated.
9105 * features/nios2.c: Regenerated.
9106
9107 2014-03-25 Pedro Alves <palves@redhat.com>
9108
9109 * cli/cli-script.c (script_from_file): Force the interpreter to
9110 sync mode.
9111
9112 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9113
9114 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9115 small stack allocation.
9116
9117 2014-03-24 Tristan Gingold <gingold@adacore.com>
9118
9119 * darwin-nat.c (exc_server): Remove unused prototype.
9120 (darwin_dump_message): Correctly display data on x86_64.
9121 (darwin_encode_reply): Fix style.
9122 Add comments and fix indentation.
9123
9124 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9125
9126 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9127
9128 2014-03-22 Doug Evans <xdje42@gmail.com>
9129
9130 * infcmd.c: Whitespace fixes.
9131 (interrupt_command): Merge two function comments into one.
9132
9133 2014-03-22 Doug Evans <xdje42@gmail.com>
9134
9135 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9136 All uses updated.
9137
9138 2014-03-22 Yao Qi <yao@codesourcery.com>
9139
9140 * remote.c (target_read_live_memory): Remove.
9141 (memory_xfer_live_readonly_partial): Rename it to
9142 remote_xfer_live_readonly_partial. Remove argument 'object'.
9143 All callers updated. Call remote_read_bytes_1
9144 instead of target_read_live_memory.
9145 * tracepoint.c (set_traceframe_number): Remove.
9146 (make_cleanup_restore_traceframe_number): Likewise .
9147 * tracepoint.h (set_traceframe_number): Remove declaration.
9148 (make_cleanup_restore_traceframe_number): Likewise.
9149
9150 2014-03-22 Yao Qi <yao@codesourcery.com>
9151
9152 * remote.c (remote_read_bytes): Move code on reading from the
9153 remote stub to ...
9154 (remote_read_bytes_1): ... here. New function.
9155
9156 2014-03-22 Yao Qi <yao@codesourcery.com>
9157
9158 * ctf.c (ctf_xfer_partial): Check the return value of
9159 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9160 return TARGET_XFER_UNAVAILABLE.
9161 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9162 * target.c (target_read_live_memory): Move it to remote.c.
9163 (memory_xfer_live_readonly_partial): Likewise.
9164 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9165 * remote.c (target_read_live_memory): Moved from target.c.
9166 (memory_xfer_live_readonly_partial): Likewise.
9167 (remote_read_bytes): Factored out from
9168 memory_xfer_partial_1.
9169
9170 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9171
9172 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9173 NULL pointer.
9174
9175 2014-03-21 Pedro Alves <palves@redhat.com>
9176
9177 * infrun.c (normal_stop): Extend comment.
9178
9179 2014-03-21 Hui Zhu <hui@codesourcery.com>
9180 Pedro Alves <palves@redhat.com>
9181
9182 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9183 static buffer.
9184 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9185 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9186 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9187
9188 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9189
9190 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9191 `z' formatted output modifier.
9192
9193 2014-03-20 Tom Tromey <tromey@redhat.com>
9194 Sergio Durigan Junior <sergiodj@redhat.com>
9195
9196 * probe.c (parse_probes): Turn assert into an ordinary error.
9197 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9198 exceptions when parsing probes. Rearrange the code for clarity.
9199
9200 2014-03-20 Tom Tromey <tromey@redhat.com>
9201
9202 PR gdb/14135
9203 * top.c (execute_command): Only dispatch events if the command
9204 started the target.
9205
9206 2014-03-20 Tom Tromey <tromey@redhat.com>
9207
9208 PR cli/15718
9209 * infcall.c: Include event-top.h.
9210 (run_inferior_call): Call async_disable_stdin if needed.
9211
9212 2014-03-20 Pedro Alves <palves@redhat.com>
9213
9214 * infrun.c (prepare_to_proceed): Delete.
9215 (thread_still_needs_step_over): New function.
9216 (find_thread_needs_step_over): New function.
9217 (proceed): If the current thread needs a step-over, set its
9218 steping_over_breakpoint flag. Adjust to use
9219 find_thread_needs_step_over instead of prepare_to_proceed.
9220 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9221 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9222 breakpoint.
9223 (switch_back_to_stepped_thread): Step over breakpoints of all
9224 threads not the stepping thread, before switching back to the
9225 stepping thread.
9226
9227 2014-03-20 Pedro Alves <palves@redhat.com>
9228
9229 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9230 extern.
9231 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9232 * infrun.c (saved_singlestep_ptid)
9233 (stepping_past_singlestep_breakpoint): Delete.
9234 (resume): Remove stepping_past_singlestep_breakpoint handling.
9235 (proceed): Store the prev_pc of the stepping thread too.
9236 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9237 singlestep_pc.
9238 (enum infwait_states): Delete infwait_thread_hop_state.
9239 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9240 field.
9241 (handle_inferior_event): Adjust.
9242 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9243 handling and the thread-hop code. Before removing single-step
9244 breakpoints, check whether the thread hit a single-step breakpoint
9245 of another thread. If it did, the trap is not a random signal.
9246 (switch_back_to_stepped_thread): If the event thread hit a
9247 single-step breakpoint, unblock it before switching to the
9248 stepping thread. Handle the case of the stepped thread having
9249 advanced already.
9250 (keep_going): Handle the case of the current thread moving past a
9251 single-step breakpoint.
9252
9253 2014-03-20 Pedro Alves <palves@redhat.com>
9254
9255 PR breakpoints/7143
9256 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9257 are being stepped over.
9258 (breakpoint_address_match): Make extern.
9259 * breakpoint.h (breakpoint_address_match): New declaration.
9260 * inferior.h (stepping_past_instruction_at): New declaration.
9261 * infrun.c (struct step_over_info): New type.
9262 (step_over_info): New global.
9263 (set_step_over_info, clear_step_over_info)
9264 (stepping_past_instruction_at): New functions.
9265 (handle_inferior_event): Clear the step-over info when
9266 trap_expected is cleared.
9267 (resume): Remove now stale comment.
9268 (clear_proceed_status): Clear step-over info.
9269 (proceed): Adjust step-over handling to set or clear the step-over
9270 info instead of removing all breakpoints.
9271 (handle_signal_stop): When setting up a thread-hop, don't remove
9272 breakpoints here.
9273 (stop_stepping): Clear step-over info.
9274 (keep_going): Adjust step-over handling to set or clear step-over
9275 info and then always inserting breakpoints, instead of removing
9276 all breakpoints when stepping over one.
9277
9278 2014-03-20 Pedro Alves <palves@redhat.com>
9279
9280 * infrun.c (previous_inferior_ptid): Adjust comment.
9281 (deferred_step_ptid): Delete.
9282 (infrun_thread_ptid_changed, prepare_to_proceed)
9283 (init_wait_for_inferior): Adjust.
9284 (handle_signal_stop): Delete deferred_step_ptid handling.
9285
9286 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9287
9288 PR gdb/15358
9289 * defs.h (sync_quit_force_run): New declaration.
9290 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9291 * event-top.c (async_sigterm_handler): New declaration.
9292 (async_sigterm_token): New variable.
9293 (async_init_signals): Create also async_sigterm_token.
9294 (async_sigterm_handler): New function.
9295 (sync_quit_force_run): New variable.
9296 (handle_sigterm): Replace quit_force call by other calls.
9297 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9298
9299 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9300
9301 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9302 offset into SPE pseudo registers.
9303
9304 2014-03-18 Pedro Alves <palves@redhat.com>
9305
9306 PR gdb/13860
9307 * inferior.h (print_stop_event): Declare.
9308 * infrun.c (print_stop_event): New, factored out from ...
9309 (normal_stop): ... this.
9310 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9311 of bpstat_print/print_stack_frame.
9312
9313 2014-03-17 Tom Tromey <tromey@redhat.com>
9314
9315 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9316
9317 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9318
9319 * ada-lang.c (decode_constrained_packed_array): Perform a
9320 minimal coercion for reference with coerce_ref instead of
9321 ada_coerce_ref.
9322
9323 2014-03-17 Tristan Gingold <gingold@adacore.com>
9324
9325 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9326 (darwin_solib_create_inferior_hook): Emit a warning if version
9327 is unhandled.
9328
9329 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9330
9331 * python/py-value.c (get_field_flag): Cast flag_name argument to
9332 PyObject_GetAttrString to support Python 2.4.
9333
9334 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9335
9336 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9337 (Global Maintainers): Remove Jan Kratochvil.
9338
9339 2014-03-14 Pedro Alves <palves@redhat.com>
9340
9341 * inferior.h (terminal_ours_for_output): Rename to ...
9342 (child_terminal_ours_for_output): ... this.
9343 (terminal_save_ours): Rename to ...
9344 (child_terminal_save_ours): ... this.
9345 (terminal_ours): Rename to ...
9346 (child_terminal_ours): ... this.
9347 (terminal_inferior): Rename to ...
9348 (child_terminal_inferior): ... this.
9349 (terminal_init_inferior): Rename to ...
9350 (child_terminal_init_inferior): ... this.
9351 (terminal_init_inferior_with_pgrp): Rename to ...
9352 (child_terminal_init_inferior_with_pgrp): ... this.
9353 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9354 (child_terminal_init_with_pgrp): ... this.
9355 (terminal_save_ours): Rename to ...
9356 (child_terminal_save_ours): ... this.
9357 (terminal_init_inferior): Rename to ...
9358 (child_terminal_init): ... this. Adjust.
9359 (terminal_inferior): Rename to ...
9360 (child_terminal_inferior): ... this.
9361 (terminal_ours_for_output): Rename to ...
9362 (child_terminal_ours_for_output): ... this. Adjust.
9363 (terminal_ours): Rename to ...
9364 (child_terminal_ours): ... this.
9365 (terminal_ours_1): Rename to ...
9366 (child_terminal_ours_1): ... this. Adjust.
9367 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9368 * windows-nat.c (do_initial_windows_stuff): Adjust.
9369 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9370 (gnu_terminal_init): ... this. Adjust.
9371 (gnu_target): Adjust.
9372 * inf-child.c (inf_child_target): Adjust.
9373
9374 2014-03-13 Doug Evans <xdje42@gmail.com>
9375
9376 PR guile/16612
9377 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9378 new eq?-hashtab.
9379
9380 2014-03-13 Doug Evans <xdje42@gmail.com>
9381
9382 * value.c (record_latest_value): Call release_value_or_incref
9383 instead of release_value.
9384
9385 2014-03-13 Pedro Alves <palves@redhat.com>
9386
9387 * procfs.c (procfs_target): Don't override to_shortname,
9388 to_longname or to_doc.
9389
9390 2014-03-13 Pedro Alves <palves@redhat.com>
9391
9392 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9393 Unix in user visible strings.
9394
9395 2014-03-12 Stan Shebs <stan@codesourcery.com>
9396
9397 * gdbtypes.h: Annotate comments for Doxygen, add a page
9398 block comment with some general info.
9399
9400 2014-03-12 Pedro Alves <palves@redhat.com>
9401
9402 * infcmd.c (prepare_execution_command): New function, factored out
9403 from several execution commands.
9404 (run_command_1, continue_command, step_1, jump_command)
9405 (signal_command, until_command, advance_command, finish_command)
9406 (attach_command): Use prepare_execution_command.
9407
9408 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9409
9410 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9411 (MAX_BPTS): Define.
9412 (MAX_WPTS): Define.
9413 (struct arm_linux_thread_points): Removed.
9414 (struct arm_linux_process_info): New.
9415 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9416 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9417 (arm_linux_find_breakpoints_by_tid): Removed.
9418 (struct arch_lwp_info): New.
9419 (arm_linux_find_process_pid): New functions.
9420 (arm_linux_add_process): New functions.
9421 (arm_linux_process_info_get): New functions.
9422 (arm_linux_forget_process): New function.
9423 (arm_linux_get_debug_reg_state): New function.
9424 (struct update_registers_data): New.
9425 (update_registers_callback): New function.
9426 (arm_linux_insert_hw_breakpoint1): Updated.
9427 (arm_linux_remove_hw_breakpoint1): Updated.
9428 (arm_linux_insert_hw_breakpoint): Updated.
9429 (arm_linux_remove_hw_breakpoint): Updated.
9430 (arm_linux_insert_watchpoint): Updated.
9431 (arm_linux_remove_watchpoint): Updated.
9432 (arm_linux_new_thread): Updated.
9433 (arm_linux_prepare_to_resume): New function.
9434 (arm_linux_new_fork): New function.
9435 (_initialize_arm_linux_nat): Updated.
9436
9437 2014-03-12 Pedro Alves <palves@redhat.com>
9438
9439 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9440
9441 2014-03-12 Tom Tromey <tromey@redhat.com>
9442
9443 * inf-child.c (return_zero): New function.
9444 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9445 * aix-thread.c (aix_thread_inferior_created): New function.
9446 (aix_thread_attach): Remove.
9447 (init_aix_thread_ops): Don't set to_attach.
9448 (_initialize_aix_thread): Register inferior_created observer.
9449 * corelow.c (init_core_ops): Don't set to_attach or
9450 to_create_inferior.
9451 * exec.c (init_exec_ops): Don't set to_attach or
9452 to_create_inferior.
9453 * infcmd.c (run_command_1): Use find_run_target. Make direct
9454 target calls.
9455 (attach_command): Use find_attach_target. Make direct target
9456 calls.
9457 * record-btrace.c (init_record_btrace_ops): Don't set
9458 to_create_inferior.
9459 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9460 Remove.
9461 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9462 set to_create_inferior.
9463 * target.c (complete_target_initialization): Add assertion.
9464 (target_create_inferior): Remove.
9465 (find_default_attach, find_default_create_inferior): Remove.
9466 (find_attach_target, find_run_target): New functions.
9467 (find_default_is_async_p, find_default_can_async_p)
9468 (target_supports_non_stop, target_attach): Remove.
9469 (init_dummy_target): Don't set to_create_inferior or
9470 to_supports_non_stop.
9471 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9472 TARGET_DEFAULT_FUNC.
9473 <to_create_inferior>: Add comment.
9474 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9475 TARGET_DEFAULT_RETURN.
9476 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9477 (find_attach_target, find_run_target): Declare.
9478 (target_create_inferior): Remove.
9479 (target_has_execution_1): Update comment.
9480 (target_supports_non_stop): Remove.
9481 * target-delegates.c: Rebuild.
9482
9483 2014-03-12 Pedro Alves <palves@redhat.com>
9484
9485 * inf-child.h: Update comment to not mention Unix.
9486
9487 2014-03-12 Pedro Alves <palves@redhat.com>
9488
9489 * inf-child.c: Update top comment to not mention Unix. Add
9490 generic comment describing how this target is meant to be used.
9491 (inf_child_post_attach, inf_child_post_startup_inferior)
9492 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9493 Unix in comment.
9494
9495 2014-03-12 Pedro Alves <palves@redhat.com>
9496
9497 * nto-procfs.c: Include inf-child.h.
9498 (procfs_ops): Delete global.
9499 (procfs_can_run): Delete method.
9500 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9501 target pointer instead of referencing procfs_ops.
9502 (procfs_prepare_to_store): Delete.
9503 (init_procfs_ops): Delete function.
9504 (procfs_target): New function, based on init_procfs_ops, but
9505 inherit inf_child_target.
9506 (_initialize_procfs): Use procfs_target.
9507
9508 2014-03-12 Pedro Alves <palves@redhat.com>
9509
9510 * windows-nat.c: Include inf-child.h.
9511 (windows_ops): Delete global.
9512 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9513 methods.
9514 (init_windows_ops): Delete function.
9515 (windows_target): New function, based on init_windows_ops, but
9516 inherit inf_child_target.
9517 (_initialize_windows_nat): Use windows_target. Install x86
9518 specific target methods here.
9519
9520 2014-03-10 Doug Evans <xdje42@gmail.com>
9521
9522 * guile/guile.c (call_initialize_gdb_module): New function.
9523 (initialize_guile): Replace call to scm_init_guile with call to
9524 scm_with_guile.
9525
9526 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9527
9528 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9529 in call to TYPE_CODE macro.
9530
9531 2014-03-10 Jerome Guitton <guitton@adacore.com>
9532
9533 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9534 Resolve tagged types to full view.
9535
9536 2014-03-10 Hui Zhu <hui@codesourcery.com>
9537
9538 * target.h (target_insert_breakpoint): Remove "hardware" from its
9539 comments.
9540
9541 2014-03-07 Doug Evans <dje@google.com>
9542
9543 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9544
9545 2014-03-07 Doug Evans <dje@google.com>
9546
9547 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9548 Remove unused local comp_dir_attr. Assert exactly one of
9549 stub_comp_unit_die, stub_comp_dir is non-NULL.
9550
9551 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9552
9553 * target.h (complete_target_initialization, add_target):
9554 Add comment.
9555
9556 2014-03-07 Pedro Alves <palves@redhat.com>
9557
9558 * go32-nat.c: Include inf-child.h.
9559 (go32_ops): Delete global.
9560 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9561 Delete methods.
9562 (go32_create_inferior): Push the passed in target pointer instead
9563 of referencing go32_ops.
9564 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9565 (go32_target): New function, based on init_go32_ops, but inherit
9566 inf_child_target.
9567 (_initialize_go32_nat): Use go32_target. Move parts of
9568 init_go32_ops here.
9569
9570 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9571
9572 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9573 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9574 SYMBOL_VALUE_ADDRESS.
9575 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9576
9577 2014-03-06 Yao Qi <yao@codesourcery.com>
9578
9579 * breakpoint.c (get_tracepoint_by_number): Remove argument
9580 optional_p. All callers updated. Adjust comments. Update
9581 output message.
9582 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9583
9584 2014-03-06 Yao Qi <yao@codesourcery.com>
9585
9586 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9587 early if get_number returns zero. Use 'p' instead of 'args'.
9588
9589 2014-03-06 Yao Qi <yao@codesourcery.com>
9590
9591 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9592 message.
9593
9594 2014-03-06 Yao Qi <yao@codesourcery.com>
9595
9596 PR breakpoints/16508
9597 * tracepoint.c (check_trace_running): New function.
9598 (trace_find_command): Move code to check_trace_running and
9599 call check_trace_running.
9600 (trace_find_pc_command): Likewise.
9601 (trace_find_tracepoint_command): Likewise.
9602 (trace_find_line_command): Likewise.
9603 (trace_find_range_command): Likewise.
9604 * tracepoint.h (check_trace_running): Likewise.
9605 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9606
9607 2014-03-06 Yao Qi <yao@codesourcery.com>
9608
9609 * target.h (struct target_ops) <to_traceframe_info>: Use
9610 TARGET_DEFAULT_NORETURN (tcomplain ()).
9611 * target-delegates.c: Regenerated.
9612
9613 2014-03-05 Pedro Alves <palves@redhat.com>
9614
9615 PR gdb/16575
9616 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9617 void. Update comment.
9618 (dcache_xfer_memory): Delete.
9619 (dcache_read_memory_partial): New, based on the read bits of
9620 dcache_xfer_memory.
9621 (dcache_update): Add status parameter. Use ULONGEST for len, and
9622 adjust. Discard cache lines if the reason for the update was
9623 error.
9624 * dcache.h (dcache_xfer_memory): Delete declaration.
9625 (dcache_read_memory_partial): New declaration.
9626 (dcache_update): Update prototype.
9627 * target.c (raw_memory_xfer_partial): Update the dcache here.
9628 (memory_xfer_partial_1): Don't handle dcache writes here.
9629
9630 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9631
9632 * remote-sim.c (gdbsim_load): Add const to prog.
9633
9634 2014-03-03 Tom Tromey <tromey@redhat.com>
9635
9636 * elfread.c (probe_key): Change to bfd_data.
9637 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9638 now per-BFD, not per-objfile.
9639 * stap-probe.c (stap_probe_destroy): Update comment.
9640 (handle_stap_probe): Allocate on the per-BFD obstack.
9641
9642 2014-03-03 Tom Tromey <tromey@redhat.com>
9643
9644 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9645 * breakpoint.c (create_longjmp_master_breakpoint): Use
9646 get_probe_address.
9647 (add_location_to_breakpoint, bkpt_probe_insert_location)
9648 (bkpt_probe_remove_location): Update.
9649 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9650 * elfread.c (elf_symfile_relocate_probe): Remove.
9651 (elf_probe_fns): Update.
9652 (insert_exception_resume_breakpoint): Change type of "probe"
9653 parameter to bound_probe.
9654 (check_exception_resume): Update.
9655 * objfiles.c (objfile_relocate1): Don't relocate probes.
9656 * probe.c (bound_probe_s): New typedef.
9657 (parse_probes): Use get_probe_address. Set sal's objfile.
9658 (find_probe_by_pc): Return a bound_probe.
9659 (collect_probes): Return a VEC(bound_probe_s).
9660 (compare_probes): Update.
9661 (gen_ui_out_table_header_info): Change type of "probes"
9662 parameter. Update.
9663 (info_probes_for_ops): Update.
9664 (get_probe_address): New function.
9665 (probe_safe_evaluate_at_pc): Update.
9666 * probe.h (struct probe_ops) <get_probe_address>: New field.
9667 <set_semaphore, clear_semaphore>: Add objfile parameter.
9668 (struct probe) <objfile>: Remove field.
9669 <arch>: New field.
9670 <address>: Update comment.
9671 (struct bound_probe): New.
9672 (find_probe_by_pc): Return a bound_probe.
9673 (get_probe_address): Declare.
9674 * solib-svr4.c (struct probe_and_action) <address>: New field.
9675 (hash_probe_and_action, equal_probe_and_action): Update.
9676 (register_solib_event_probe): Add address parameter.
9677 (solib_event_probe_at): Update.
9678 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9679 get_probe_address.
9680 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9681 (stap_get_probe_address): New function.
9682 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9683 (compile_probe_arg): Update.
9684 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9685 address.
9686 (handle_stap_probe): Don't relocate the probe.
9687 (stap_relocate): Remove.
9688 (stap_gen_info_probes_table_values): Update.
9689 (stap_probe_ops): Remove stap_relocate.
9690 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9691 (debug_sym_probe_fns): Update.
9692 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9693 * symtab.c (init_sal): Use memset.
9694 * symtab.h (struct symtab_and_line) <objfile>: New field.
9695 * tracepoint.c (start_tracing, stop_tracing): Update.
9696
9697 2014-03-03 Tom Tromey <tromey@redhat.com>
9698
9699 * probe.h (parse_probes, find_probe_by_pc)
9700 (find_probes_in_objfile): Fix comments.
9701
9702 2014-03-02 Doug Evans <xdje42@gmail.com>
9703
9704 * infrun.c (handle_signal_stop): Replace test for
9705 TARGET_WAITKIND_STOPPED with an assert.
9706
9707 2014-03-02 Doug Evans <xdje42@gmail.com>
9708
9709 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9710
9711 2014-03-02 Doug Evans <xdje42@gmail.com>
9712
9713 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9714
9715 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9716
9717 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9718
9719 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9720
9721 * i386obsd-nat.c: Include "obsd-nat.h".
9722 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9723 add_target.
9724 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9725
9726 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9727
9728 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9729
9730 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9731
9732 * mips64obsd-nat.c: Include "obsd-nath".
9733 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9734 add_target
9735 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9736
9737 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9738
9739 * amd64obsd-nat.c: Include "obsd-nat,h.
9740 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9741 add_target.
9742 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9743
9744 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9745
9746 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9747 (find_overload_match): Update call to find_oload_champ.
9748 (find_oload_champ_namespace_loop): Likewise
9749
9750 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9751
9752 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9753
9754 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9755 * config/sparc/obsd64.mh: New file.
9756 * sparc64obsd-nat.c: New file.
9757
9758 * obsd-nat.h: New file.
9759 * obsd-nat.c: New file.
9760 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9761 (ALLDEPFILES): Add obsd-nat.c.
9762
9763 2014-02-28 Tom Tromey <tromey@redhat.com>
9764
9765 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9766 * cli-out.h (cli_ui_out_impl): Now const.
9767 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9768 * ui-out.c (struct ui_out) <impl>: Now const.
9769 (default_ui_out_impl): Now const.
9770 (ui_out_new): Make 'impl' parameter const.
9771 * ui-out.h (ui_out_new): Update.
9772
9773 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9774
9775 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9776
9777 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9778
9779 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9780
9781 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9782
9783 Additional PR 8882 fix.
9784 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9785
9786 2014-02-27 Pedro Alves <palves@redhat.com>
9787
9788 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9789 isn't set.
9790
9791 2014-02-27 Pedro Alves <palves@redhat.com>
9792
9793 PR 12702
9794 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9795 * nat/linux-waitpid.c: Include string.h.
9796 (status_to_str): Moved here and made extern.
9797 * nat/linux-waitpid.h (status_to_str): New declaration.
9798
9799 2014-02-27 Hui Zhu <hui@codesourcery.com>
9800
9801 PR 12702
9802 * infrun.c (ptid_match): Move ...
9803 * common/ptid.c (ptid_match): ... here.
9804 * inferior.h (ptid_match): Move ...
9805 * common/ptid.h (ptid_match): ... here.
9806
9807 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9808
9809 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9810 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9811 gdb_target_obs.
9812
9813 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9814
9815 * obsd-tdep.c (obsd_auxv_parse): New function.
9816 (obsd_init_abi): Set auxv_parse.
9817
9818 * gdbarch.sh (auxv_parse): New.
9819 * gdbarch.h: Regenerated.
9820 * gdbarch.c: Regenerated.
9821 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9822
9823 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9824
9825 * guile/scm-value.c (gdbscm_history_append_x): New function.
9826 (value_functions): Add it.
9827
9828 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9829
9830 * dwarf2read.c (attr_value_as_address): New function.
9831 (dwarf2_find_base_address, read_call_site_scope): Use
9832 attr_value_as_address in place of DW_ADDR.
9833 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9834 the low and high addresses. Slight rework of the handling
9835 of the high pc being a constant form, and limit it to
9836 DWARF verson 4 or higher.
9837 (dwarf2_record_block_ranges): Likewise.
9838 (read_partial_die): Likewise.
9839 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9840
9841 2014-02-26 Tom Tromey <tromey@redhat.com>
9842
9843 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9844
9845 2014-02-26 Tom Tromey <tromey@redhat.com>
9846
9847 * elfread.c (elf_read_minimal_symbols): Return early if
9848 minimal symbols have already been read. Add "ei" parameter.
9849 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9850 * minsyms.c (prim_record_minimal_symbol_full): Update.
9851 * objfiles.h (struct objstats) <n_minsyms>: Move...
9852 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9853 * symmisc.c (print_objfile_statistics): Update.
9854
9855 2014-02-26 Tom Tromey <tromey@redhat.com>
9856
9857 * elfread.c (elf_read_minimal_symbols): New function, from
9858 elf_symfile_read.
9859 (elf_symfile_read): Call it.
9860
9861 2014-02-26 Tom Tromey <tromey@redhat.com>
9862
9863 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9864 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9865 (lookup_minimal_symbol_solib_trampoline)
9866 (lookup_minimal_symbol_by_pc_section_1)
9867 (lookup_minimal_symbol_and_objfile): Update.
9868 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9869 Don't allocate a minimal symbol if minsyms have already been read.
9870 (build_minimal_symbol_hash_tables): Update.
9871 (install_minimal_symbols): Do nothing if minsyms already read.
9872 Use the per-BFD obstack.
9873 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9874 * objfiles.c (allocate_objfile): Call
9875 terminate_minimal_symbol_table later.
9876 (have_minimal_symbols): Update.
9877 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9878 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9879 Move from struct objfile.
9880 <minsyms_read>: New field.
9881 (struct objfile) <msymbols, minimal_symbol_count,
9882 msymbol_hash, msymbol_demangled_hash>: Move.
9883 (ALL_OBJFILE_MSYMBOLS): Update.
9884 * symfile.c (read_symbols): Set minsyms_read.
9885 (reread_symbols): Update.
9886 * symmisc.c (dump_objfile, dump_msymbols): Update.
9887
9888 2014-02-26 Tom Tromey <tromey@redhat.com>
9889
9890 * minsyms.c (msymbols_sort): Remove.
9891 * minsyms.h (msymbols_sort): Remove.
9892 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9893 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9894 * elfread.c (elf_symtab_read): Don't add section offsets.
9895 * xcoffread.c (record_minimal_symbol): Don't add section offset
9896 to minimal symbol address.
9897 * somread.c (text_offset, data_offset): Remove.
9898 (som_symtab_read): Don't add section offsets to minimal symbol
9899 addresses.
9900 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9901 Don't add section offsets to minimal symbols.
9902 * coffread.c (coff_symtab_read): Don't add section offsets
9903 to minimal symbol addresses.
9904 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9905 to minimal symbol addresses.
9906 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9907 section offset to minimal symbol addresses.
9908 * mdebugread.c (parse_partial_symbols): Don't add section
9909 offset to minimal symbol addresses.
9910 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9911 offset to minimal symbol addresses.
9912
9913 2014-02-26 Tom Tromey <tromey@redhat.com>
9914
9915 * ada-lang.c (ada_main_name): Update.
9916 (ada_add_standard_exceptions): Update.
9917 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9918 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9919 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9920 * auxv.c (ld_so_xfer_auxv): Update.
9921 * avr-tdep.c (avr_scan_prologue): Update.
9922 * ax-gdb.c (gen_var_ref): Update.
9923 * blockframe.c (get_pc_function_start)
9924 (find_pc_partial_function_gnu_ifunc): Update.
9925 * breakpoint.c (create_overlay_event_breakpoint)
9926 (create_longjmp_master_breakpoint)
9927 (create_std_terminate_master_breakpoint)
9928 (create_exception_master_breakpoint): Update.
9929 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9930 * c-valprint.c (c_val_print): Update.
9931 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9932 * common/agent.c (agent_look_up_symbols): Update.
9933 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9934 * dwarf2loc.c (call_site_to_target_addr): Update.
9935 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9936 * elfread.c (elf_gnu_ifunc_record_cache)
9937 (elf_gnu_ifunc_resolve_by_got): Update.
9938 * findvar.c (default_read_var_value): Update.
9939 * frame.c (inside_main_func): Update.
9940 * frv-tdep.c (frv_frame_this_id): Update.
9941 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9942 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9943 Update.
9944 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9945 (hppa_hpux_find_dummy_bpaddr): Update.
9946 * hppa-tdep.c (hppa_symbol_address): Update.
9947 * infcmd.c (until_next_command): Update.
9948 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9949 Update.
9950 * linespec.c (minsym_found, add_minsym): Update.
9951 * linux-nat.c (get_signo): Update.
9952 * linux-thread-db.c (inferior_has_bug): Update.
9953 * m32c-tdep.c (m32c_return_value)
9954 (m32c_m16c_address_to_pointer): Update.
9955 * m32r-tdep.c (m32r_frame_this_id): Update.
9956 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9957 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9958 * maint.c (maintenance_translate_address): Update.
9959 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9960 (frob_address): New function.
9961 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9962 frob_address. Rename parameter to "pc_in".
9963 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9964 addresses.
9965 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9966 Update.
9967 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9968 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9969 * objc-lang.c (find_objc_msgsend): Update.
9970 * objfiles.c (objfile_relocate1): Update.
9971 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9972 * p-valprint.c (pascal_val_print): Update.
9973 * parse.c (write_exp_msymbol): Update.
9974 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9975 (ppc_elfv2_skip_entrypoint): Update.
9976 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9977 * printcmd.c (build_address_symbolic, msym_info)
9978 (address_info): Update.
9979 * proc-service.c (ps_pglobal_lookup): Update.
9980 * psymtab.c (find_pc_sect_psymtab_closer)
9981 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9982 Change msymbol parameter to bound_minimal_symbol.
9983 * ravenscar-thread.c (get_running_thread_id): Update.
9984 * remote.c (remote_check_symbols): Update.
9985 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9986 address.
9987 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9988 * solib-dsbt.c (lm_base): Update.
9989 * solib-frv.c (lm_base, main_got): Update.
9990 * solib-irix.c (locate_base): Update.
9991 * solib-som.c (som_solib_create_inferior_hook)
9992 (link_map_start): Update.
9993 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9994 * solib-svr4.c (elf_locate_base, enable_break): Update.
9995 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9996 (flush_ea_cache): Update.
9997 * stabsread.c (define_symbol, scan_file_globals): Update.
9998 * stack.c (find_frame_funname): Update.
9999 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10000 (debug_qf_find_pc_sect_symtab): Update.
10001 * symfile.c (simple_read_overlay_table)
10002 (simple_overlay_update): Update.
10003 * symfile.h (struct quick_symbol_functions)
10004 <find_pc_sect_symtab>: Change type of msymbol to
10005 bound_minimal_symbol.
10006 * symmisc.c (dump_msymbols): Update.
10007 * symtab.c (find_pc_sect_symtab_via_partial)
10008 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10009 (search_symbols, print_msymbol_info): Update.
10010 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10011 (MSYMBOL_VALUE_ADDRESS): Redefine.
10012 (BMSYMBOL_VALUE_ADDRESS): New macro.
10013 * tracepoint.c (scope_info): Update.
10014 * tui/tui-disasm.c (tui_find_disassembly_address)
10015 (tui_get_begin_asm_address): Update.
10016 * valops.c (find_function_in_inferior): Update.
10017 * value.c (value_static_field, value_fn_field): Update.
10018
10019 2014-02-26 Tom Tromey <tromey@redhat.com>
10020
10021 * ada-lang.c (ada_update_initial_language): Update.
10022 (ada_main_name, ada_has_this_exception_support): Update.
10023 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10024 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10025 * arm-tdep.c (arm_skip_stub): Update.
10026 * auxv.c (ld_so_xfer_auxv): Update.
10027 * avr-tdep.c (avr_scan_prologue): Update.
10028 * ax-gdb.c (gen_var_ref): Update.
10029 * breakpoint.c (struct breakpoint_objfile_data)
10030 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10031 type to bound_minimal_symbol.
10032 (create_overlay_event_breakpoint)
10033 (create_longjmp_master_breakpoint)
10034 (create_std_terminate_master_breakpoint)
10035 (create_exception_master_breakpoint): Update.
10036 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10037 * c-exp.y (classify_name): Update.
10038 * coffread.c (coff_symfile_read): Update.
10039 * common/agent.c (agent_look_up_symbols): Update.
10040 * d-lang.c (d_main_name): Update.
10041 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10042 * dec-thread.c (enable_dec_thread): Update.
10043 * dwarf2loc.c (call_site_to_target_addr): Update.
10044 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10045 * eval.c (evaluate_subexp_standard): Update.
10046 * findvar.c (struct minsym_lookup_data) <result>: Change type
10047 to bound_minimal_symbol.
10048 <objfile>: Remove.
10049 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10050 * frame.c (inside_main_func): Update.
10051 * frv-tdep.c (frv_frame_this_id): Update.
10052 * gcore.c (call_target_sbrk): Update.
10053 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10054 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10055 Update.
10056 * go-lang.c (go_main_name): Update.
10057 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10058 (hppa_hpux_find_import_stub_for_addr): Update.
10059 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10060 Update. Change return type.
10061 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10062 type.
10063 * jit.c (jit_breakpoint_re_set_internal): Update.
10064 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10065 Update.
10066 * linux-nat.c (get_signo): Update.
10067 * linux-thread-db.c (inferior_has_bug): Update
10068 * m32c-tdep.c (m32c_return_value)
10069 (m32c_m16c_address_to_pointer): Update.
10070 * m32r-tdep.c (m32r_frame_this_id): Update.
10071 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10072 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10073 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10074 lookup_minimal_symbol. Change return type.
10075 (lookup_minimal_symbol): Remove.
10076 (lookup_bound_minimal_symbol): Update.
10077 (lookup_minimal_symbol_text): Change return type.
10078 (lookup_minimal_symbol_solib_trampoline): Change return type.
10079 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10080 (lookup_minimal_symbol_solib_trampoline): Change return type.
10081 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10082 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10083 (value_nsstring, find_imps): Update.
10084 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10085 * p-lang.c (pascal_main_name): Update.
10086 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10087 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10088 * proc-service.c (ps_pglobal_lookup): Update.
10089 * ravenscar-thread.c (get_running_thread_msymbol): Change
10090 return type.
10091 (has_ravenscar_runtime, get_running_thread_id): Update.
10092 * remote.c (remote_check_symbols): Update.
10093 * sol-thread.c (ps_pglobal_lookup): Update.
10094 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10095 * solib-dsbt.c (lm_base): Update.
10096 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10097 Update.
10098 * solib-irix.c (locate_base): Update.
10099 * solib-som.c (som_solib_create_inferior_hook)
10100 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10101 Update.
10102 * solib-spu.c (spu_enable_break): Update.
10103 * solib-svr4.c (elf_locate_base, enable_break): Update.
10104 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10105 (flush_ea_cache): Update.
10106 * stabsread.c (define_symbol): Update.
10107 * symfile.c (simple_read_overlay_table): Update.
10108 * symtab.c (find_pc_sect_line): Update.
10109 * tracepoint.c (scope_info): Update.
10110 * tui-disasm.c (tui_get_begin_asm_address): Update.
10111 * value.c (value_static_field): Update.
10112
10113 2014-02-26 Tom Tromey <tromey@redhat.com>
10114
10115 * minsyms.c (prim_record_minimal_symbol_full): Use
10116 SET_MSYMBOL_VALUE_ADDRESS.
10117 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10118 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10119 SET_MSYMBOL_VALUE_ADDRESS.
10120 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10121 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10122
10123 2014-02-26 Tom Tromey <tromey@redhat.com>
10124
10125 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10126 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10127 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10128 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10129 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10130 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10131 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10132 * ada-lang.c (ada_main_name): Update.
10133 (ada_lookup_simple_minsym): Update.
10134 (ada_make_symbol_completion_list): Update.
10135 (ada_add_standard_exceptions): Update.
10136 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10137 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10138 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10139 * arm-tdep.c (skip_prologue_function): Update.
10140 (arm_skip_stack_protector, arm_skip_stub): Update.
10141 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10142 (arm_wince_skip_main_prologue): Update.
10143 * auxv.c (ld_so_xfer_auxv): Update.
10144 * avr-tdep.c (avr_scan_prologue): Update.
10145 * ax-gdb.c (gen_var_ref): Update.
10146 * block.c (call_site_for_pc): Update.
10147 * blockframe.c (get_pc_function_start): Update.
10148 (find_pc_partial_function_gnu_ifunc): Update.
10149 * breakpoint.c (create_overlay_event_breakpoint): Update.
10150 (create_longjmp_master_breakpoint): Update.
10151 (create_std_terminate_master_breakpoint): Update.
10152 (create_exception_master_breakpoint): Update.
10153 (resolve_sal_pc): Update.
10154 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10155 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10156 Update.
10157 * c-valprint.c (c_val_print): Update.
10158 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10159 * coffread.c (coff_symfile_read): Update.
10160 * common/agent.c (agent_look_up_symbols): Update.
10161 * dbxread.c (find_stab_function_addr): Update.
10162 (end_psymtab): Update.
10163 * dwarf2loc.c (call_site_to_target_addr): Update.
10164 (func_verify_no_selftailcall): Update.
10165 (tailcall_dump): Update.
10166 (call_site_find_chain_1): Update.
10167 (dwarf_expr_reg_to_entry_parameter): Update.
10168 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10169 (elf_gnu_ifunc_resolve_by_got): Update.
10170 * f-valprint.c (info_common_command): Update.
10171 * findvar.c (read_var_value): Update.
10172 * frame.c (get_prev_frame_1): Update.
10173 (inside_main_func): Update.
10174 * frv-tdep.c (frv_skip_main_prologue): Update.
10175 (frv_frame_this_id): Update.
10176 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10177 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10178 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10179 (gnuv3_skip_trampoline): Update.
10180 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10181 (hppa64_hpux_in_solib_call_trampoline): Update.
10182 (hppa_hpux_skip_trampoline_code): Update.
10183 (hppa64_hpux_search_dummy_call_sequence): Update.
10184 (hppa_hpux_find_import_stub_for_addr): Update.
10185 (hppa_hpux_find_dummy_bpaddr): Update.
10186 * hppa-tdep.c (hppa_symbol_address)
10187 (hppa_lookup_stub_minimal_symbol): Update.
10188 * i386-tdep.c (i386_skip_main_prologue): Update.
10189 (i386_pe_skip_trampoline_code): Update.
10190 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10191 * infcall.c (get_function_name): Update.
10192 * infcmd.c (until_next_command): Update.
10193 * jit.c (jit_breakpoint_re_set_internal): Update.
10194 (jit_inferior_init): Update.
10195 * linespec.c (minsym_found): Update.
10196 (add_minsym): Update.
10197 * linux-fork.c (info_checkpoints_command): Update.
10198 * linux-nat.c (get_signo): Update.
10199 * linux-thread-db.c (inferior_has_bug): Update.
10200 * m32c-tdep.c (m32c_return_value): Update.
10201 (m32c_m16c_address_to_pointer): Update.
10202 (m32c_m16c_pointer_to_address): Update.
10203 * m32r-tdep.c (m32r_frame_this_id): Update.
10204 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10205 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10206 * maint.c (maintenance_translate_address): Update.
10207 * minsyms.c (add_minsym_to_hash_table): Update.
10208 (add_minsym_to_demangled_hash_table): Update.
10209 (msymbol_objfile): Update.
10210 (lookup_minimal_symbol): Update.
10211 (iterate_over_minimal_symbols): Update.
10212 (lookup_minimal_symbol_text): Update.
10213 (lookup_minimal_symbol_by_pc_name): Update.
10214 (lookup_minimal_symbol_solib_trampoline): Update.
10215 (lookup_minimal_symbol_by_pc_section_1): Update.
10216 (lookup_minimal_symbol_and_objfile): Update.
10217 (prim_record_minimal_symbol_full): Update.
10218 (compare_minimal_symbols): Update.
10219 (compact_minimal_symbols): Update.
10220 (build_minimal_symbol_hash_tables): Update.
10221 (install_minimal_symbols): Update.
10222 (terminate_minimal_symbol_table): Update.
10223 (find_solib_trampoline_target): Update.
10224 (minimal_symbol_upper_bound): Update.
10225 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10226 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10227 (mips_skip_pic_trampoline_code): Update.
10228 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10229 * objc-lang.c (selectors_info): Update.
10230 (classes_info): Update.
10231 (find_methods): Update.
10232 (find_imps): Update.
10233 (find_objc_msgsend): Update.
10234 * objfiles.c (objfile_relocate1): Update.
10235 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10236 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10237 * p-valprint.c (pascal_val_print): Update.
10238 * parse.c (write_exp_msymbol): Update.
10239 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10240 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10241 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10242 * printcmd.c (build_address_symbolic): Update.
10243 (sym_info): Update.
10244 (address_info): Update.
10245 * proc-service.c (ps_pglobal_lookup): Update.
10246 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10247 (find_pc_sect_psymtab): Update.
10248 * python/py-framefilter.c (py_print_frame): Update.
10249 * ravenscar-thread.c (get_running_thread_id): Update.
10250 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10251 Update.
10252 * remote.c (remote_check_symbols): Update.
10253 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10254 (rs6000_skip_trampoline_code): Update.
10255 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10256 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10257 * solib-dsbt.c (lm_base): Update.
10258 * solib-frv.c (lm_base): Update.
10259 (main_got): Update.
10260 * solib-irix.c (locate_base): Update.
10261 * solib-som.c (som_solib_create_inferior_hook): Update.
10262 (som_solib_desire_dynamic_linker_symbols): Update.
10263 (link_map_start): Update.
10264 * solib-spu.c (spu_enable_break): Update.
10265 (ocl_enable_break): Update.
10266 * solib-svr4.c (elf_locate_base): Update.
10267 (enable_break): Update.
10268 * spu-tdep.c (spu_get_overlay_table): Update.
10269 (spu_catch_start): Update.
10270 (flush_ea_cache): Update.
10271 * stabsread.c (define_symbol): Update.
10272 (scan_file_globals): Update.
10273 * stack.c (find_frame_funname): Update.
10274 (frame_info): Update.
10275 * symfile.c (simple_read_overlay_table): Update.
10276 (simple_overlay_update): Update.
10277 * symmisc.c (dump_msymbols): Update.
10278 * symtab.c (fixup_section): Update.
10279 (find_pc_sect_line): Update.
10280 (skip_prologue_sal): Update.
10281 (search_symbols): Update.
10282 (print_msymbol_info): Update.
10283 (rbreak_command): Update.
10284 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10285 (completion_list_objc_symbol): Update.
10286 (default_make_symbol_completion_list_break_on): Update.
10287 * tracepoint.c (scope_info): Update.
10288 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10289 (tui_get_begin_asm_address): Update.
10290 * valops.c (find_function_in_inferior): Update.
10291 * value.c (value_static_field): Update.
10292 (value_fn_field): Update.
10293
10294 2014-02-26 Tom Tromey <tromey@redhat.com>
10295
10296 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10297 bound minimal symbols. Move code that knows about minsym
10298 table layout...
10299 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10300 function.
10301 * minsyms.h (minimal_symbol_upper_bound): Declare.
10302 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10303 minimal_symbol_upper_bound.
10304
10305 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10306
10307 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10308 Use the type's name if its basic type does not have a tag.
10309
10310 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10311
10312 * dwarf2read.c (read_subrange_type): Add comment.
10313
10314 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10315
10316 * dwarf2read.c (update_enumeration_type_from_children): New
10317 function, mostly extracted from process_structure_scope.
10318 (read_enumeration_type): Call update_enumeration_type_from_children.
10319 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10320 and flag_flag_enum fields.
10321
10322 2014-02-26 Pedro Alves <palves@redhat.com>
10323
10324 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10325 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10326 to_xfer_partial method.
10327
10328 2014-02-26 Pedro Alves <palves@redhat.com>
10329
10330 * target.c (complete_target_initialization): Don't install
10331 default_xfer_partial as to_xfer_partial hook.
10332 (nomemory): Delete.
10333 (update_current_target): Don't INHERIT nor de_fault
10334 deprecated_xfer_memory. Delete de_fault macro.
10335 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10336 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10337 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10338 field.
10339
10340 2014-02-26 Pedro Alves <palves@redhat.com>
10341
10342 * go32-nat.c (my_write_child): New function.
10343 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10344 (go32_xfer_partial): New function.
10345 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10346 Instead install a to_xfer_partial hook.
10347
10348 2014-02-26 Pedro Alves <palves@redhat.com>
10349
10350 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10351 to_xfer_partial helper. Rewrite.
10352 (procfs_xfer_partial): New function.
10353 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10354 Install a to_xfer_partial hook.
10355
10356 2014-02-26 Pedro Alves <palves@redhat.com>
10357
10358 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10359 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10360 (m32r_xfer_partial): New function.
10361 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10362 Install a to_xfer_partial hook.
10363
10364 2014-02-26 Pedro Alves <palves@redhat.com>
10365
10366 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10367 helper.
10368 (mips_xfer_partial): New function.
10369 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10370 hook. Install a to_xfer_partial hook.
10371
10372 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10373
10374 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10375 * gdbtypes.c (create_array_type_with_stride): New function,
10376 renaming create_array_type, but with an added parameter
10377 called "bit_stride".
10378 (create_array_type): Re-implement using
10379 create_array_type_with_stride.
10380 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10381 and DW_AT_bit_stride attributes.
10382
10383 2014-02-26 Pedro Alves <palves@redhat.com>
10384
10385 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10386 task-specific breakpoints.
10387
10388 2014-02-25 Pedro Alves <palves@redhat.com>
10389
10390 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10391 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10392
10393 2014-02-25 Stan Shebs <stan@codesourcery.com>
10394
10395 * defs.h: Annotate comments for Doxygen.
10396
10397 2014-02-25 Tom Tromey <tromey@redhat.com>
10398
10399 * target.h (target_ignore): Don't declare.
10400 * target.c (target_ignore): Remove.
10401
10402 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10403
10404 PR gdb/16626
10405 * auto-load.c (auto_load_objfile_script_1): Change filename to
10406 debugfile.
10407
10408 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10409
10410 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10411 documentation. Adjust prototype to match the target_ops
10412 to_xfer_partial method. Adjust implementation accordingly.
10413
10414 2014-02-25 Hui Zhu <hui@codesourcery.com>
10415
10416 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10417 to_traceframe_info.
10418
10419 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10420
10421 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10422 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10423 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10424 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10425 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10426 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10427 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10428 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10429 New constants.
10430 (rl78_register_type): Use a data pointer type for SP and
10431 new pseudo registers mentioned above. Use a 16 bit integer
10432 type for all other register pairs.
10433 (rl78_register_name, rl78_g10_register_name): Update for
10434 new pseudo registers.
10435 (rl78_pseudo_register_read): Likewise.
10436 (rl78_pseudo_register_write): Likewise.
10437 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10438 to the newly added pseudo registers.
10439
10440 2014-02-24 Doug Evans <dje@google.com>
10441
10442 * value.c (record_latest_value): Fix comment.
10443 * printcmd.c (print_command_1): Remove code to handle -1 return from
10444 record_latest_value.
10445
10446 2014-02-24 Pedro Alves <palves@redhat.com>
10447
10448 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10449 deprecated_xfer_memory hook.
10450 (procfs_xfer_partial): Call procfs_xfer_memory instead
10451 of the deprecated_xfer_memory target hook.
10452 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10453 helper.
10454
10455 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10456
10457 * windows-nat.c (windows_xfer_shared_libraries): Return
10458 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10459 requested object is TARGET_OBJECT_LIBRARIES.
10460
10461 2014-02-24 Yao Qi <yao@codesourcery.com>
10462
10463 * target.h (enum target_xfer_status)
10464 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10465 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10466 explicitly. New.
10467 * corefile.c (memory_error_message): User updated.
10468 * exec.c (section_table_read_available_memory): Likewise.
10469 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10470 * target.c (target_xfer_status_to_string): Likewise.
10471 (raw_memory_xfer_partial): Likewise.
10472 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10473 * valops.c (read_value_memory): Likewise.
10474 * exec.h: Update comments.
10475
10476 2014-02-24 Yao Qi <yao@codesourcery.com>
10477
10478 * target.c (target_xfer_status_to_string): Rename argument err
10479 to status.
10480 * target.h (target_xfer_status_to_string): Update declaration.
10481 Replace target_xfer_error_to_string with
10482 target_xfer_status_to_string in comment.
10483
10484 2014-02-24 Yao Qi <yao@codesourcery.com>
10485
10486 * mips-linux-nat.c (super_close): Update its type.
10487 (mips_linux_close): Pass 'self' to super_close.
10488
10489 2014-02-24 Yao Qi <yao@codesourcery.com>
10490
10491 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10492 * corefile.c (read_memory): Adjusted.
10493 * target.c (target_write_with_progress): Adjusted.
10494
10495 2014-02-23 Yao Qi <yao@codesourcery.com>
10496
10497 Revert two patches:
10498
10499 2013-10-25 Yao Qi <yao@codesourcery.com>
10500
10501 * remote.c (remote_traceframe_info): Return early if
10502 traceframe is not selected.
10503
10504 2013-07-19 Yao Qi <yao@codesourcery.com>
10505
10506 * target.c (update_current_target): Change the default action
10507 of 'to_traceframe_info' from tcomplain to return_zero.
10508 * target.h (struct target_ops) <to_traceframe_info>: Add more
10509 comments.
10510
10511 2014-02-23 Yao Qi <yao@codesourcery.com>
10512
10513 * valops.c (read_value_memory): Rewrite it. Call
10514 target_xfer_partial in a loop.
10515 * exec.h (section_table_available_memory): Remove declaration.
10516 Move comments to ...
10517 * exec.c (section_table_available_memory): ... here. Make it
10518 static.
10519
10520 2014-02-23 Yao Qi <yao@codesourcery.com>
10521
10522 * exec.c (section_table_read_available_memory): New function.
10523 * exec.h (section_table_read_available_memory): Declare.
10524 * ctf.c (ctf_xfer_partial): Call
10525 section_table_read_available_memory.
10526 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10527
10528 2014-02-23 Yao Qi <yao@codesourcery.com>
10529
10530 * ctf.c (ctf_xfer_partial): Move code to ...
10531 * exec.c (exec_read_partial_read_only): ... it. New function.
10532 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10533 * tracefile.c: Include "exec.h".
10534 * exec.h (exec_read_partial_read_only): Declare.
10535
10536 2014-02-23 Yao Qi <yao@codesourcery.com>
10537
10538 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10539 (tfile_has_memory): Remove.
10540 (init_tfile_ops): Don't set fields to_has_all_memory and
10541 to_has_memory of tfile_ops.
10542 * tracefile.c (tracefile_has_all_memory): New function.
10543 (tracefile_has_memory): New function.
10544 (init_tracefile_ops): Initialize fields to_has_all_memory and
10545 to_has_memory of 'ops'.
10546
10547 2014-02-23 Yao Qi <yao@codesourcery.com>
10548
10549 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10550 (ctf_thread_alive, ctf_get_trace_status): Remove.
10551 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10552 init_tracefile_ops.
10553 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10554 (tfile_has_stack, tfile_has_registers): Remove.
10555 (tfile_thread_alive): Remove.
10556 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10557 init_tracefile_ops.
10558 * tracefile.c (tracefile_has_stack): New function.
10559 (tracefile_has_registers): New function.
10560 (tracefile_thread_alive): New function.
10561 (tracefile_get_trace_status): New function.
10562 (init_tracefile_ops): New function.
10563 * tracefile.h (init_tracefile_ops): Declare.
10564
10565 2014-02-23 Yao Qi <yao@codesourcery.com>
10566
10567 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10568 (O_LARGEFILE): Likewise.
10569 (tfile_ops): Likewise.
10570 (TRACE_HEADER_SIZE): Likewise.
10571 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10572 (cur_data_size): Likewise.
10573 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10574 (tfile_close, tfile_files_info): Likewise.
10575 (tfile_get_trace_status): Likewise.
10576 (tfile_get_tracepoint_status): Likewise.
10577 (tfile_get_traceframe_address): Likewise.
10578 (tfile_trace_find, match_blocktype): Likewise.
10579 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10580 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10581 (tfile_get_trace_state_variable_value): Likewise.
10582 (tfile_has_all_memory, tfile_has_memory): Likewise.
10583 (tfile_has_stack, tfile_has_registers): Likewise.
10584 (tfile_thread_alive, build_traceframe_info): Likewise.
10585 (tfile_traceframe_info, init_tfile_ops): Likewise.
10586 (_initialize_tracepoint): Don't call init_tfile_ops
10587 and add_target_with_completer.
10588 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10589 exec.h, completer.h and filenames.h.
10590 (_initialize_tracefile_tfile): New function.
10591
10592 2014-02-23 Yao Qi <yao@codesourcery.com>
10593
10594 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10595 tracefile-tfile.o.
10596 (HFILES_NO_SRCDIR): Add tracefile.h.
10597 * ctf.c: Include "tracefile.h".
10598 * tracefile.h: New file.
10599 * tracefile.c: New file
10600 * tracefile-tfile.c: New file.
10601 * tracepoint.c: Include "tracefile.h".
10602 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10603 (stop_reason_names): Add const.
10604 (trace_file_writer_xfree): Move it to tracefile.c.
10605 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10606 (trace_save_ctf): Likewise.
10607 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10608 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10609 (tfile_write_header, tfile_write_regblock_type): Likewise.
10610 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10611 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10612 (tfile_write_raw_data, tfile_end): Likewise.
10613 (tfile_trace_file_writer_new): Likewise.
10614 (free_uploaded_tp): Make it extern.
10615 (free_uploaded_tsv): Make it extern.
10616 (_initialize_tracepoint): Move code to register command 'tsave'
10617 to tracefile.c.
10618 * tracepoint.h (stop_reason_names): Declare.
10619 (struct trace_frame_write_ops): Move it to tracefile.h.
10620 (struct trace_file_write_ops): Likewise.
10621 (struct trace_file_writer): Likewise.
10622 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10623
10624 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10625
10626 PR gdb/16594
10627 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10628 process name.
10629 (get_cores_used_by_process): New parameter num_cores, use it.
10630 (linux_xfer_osdata_processes): Pass num_cores to it.
10631 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10632 process name.
10633
10634 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10635
10636 * target.c (memory_xfer_partial): Fix length arg in call to
10637 breakpoint_xfer_memory.
10638
10639 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10640
10641 PR tdep/16397
10642 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10643 number comes after the + or - signs. Adjust length of register
10644 name to be extracted.
10645
10646 2014-02-20 Tom Tromey <tromey@redhat.com>
10647
10648 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10649 (ada_varobj_ops): Mark "extern".
10650
10651 2014-02-20 Tom Tromey <tromey@redhat.com>
10652
10653 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10654
10655 2014-02-20 Doug Evans <xdje42@gmail.com>
10656
10657 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10658 All callers updated.
10659 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10660 All callers updated.
10661 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10662 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10663
10664 2014-02-20 lin zuojian <manjian2006@gmail.com>
10665 Joel Brobecker <brobecker@adacore.com>
10666 Doug Evans <xdje42@gmail.com>
10667
10668 PR symtab/16581
10669 * dwarf2read.c (struct die_info): New member in_process.
10670 (reset_die_in_process): New function.
10671 (process_die): Set it at the start, reset when returning.
10672 (inherit_abstract_dies): Only call process_die if origin_child_die
10673 not already being processed.
10674
10675 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10676
10677 * windows-nat.c (handle_unload_dll): Add function documentation.
10678 (do_initial_windows_stuff): Add comment explaining why we wait
10679 until after inferior initialization has finished before
10680 processing all DLLs.
10681
10682 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10683
10684 * windows-nat.c (get_module_name): Delete.
10685 (windows_get_exec_module_filename): New function, mostly
10686 inspired from get_module_name.
10687 (windows_pid_to_exec_file): Replace call to get_module_name
10688 by call to windows_get_exec_module_filename.
10689
10690 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10691
10692 * windows-nat.c (handle_load_dll): Rewrite this function's
10693 introductory comment. Remove code using get_module_name
10694 to get the DLL's name.
10695
10696 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10697
10698 * windows-nat.c (get_windows_debug_event): Ignore
10699 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10700 if windows_initialization_done == 0.
10701 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10702 Adjust implementation to always load all DLLs.
10703 (do_initial_windows_stuff): Replace call to
10704 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10705
10706 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10707
10708 * windows-nat.c (_initialize_windows_nat): Deprecate the
10709 "dll-symbols" command. Turn the "add-shared-symbol-files"
10710 and "assf" aliases into commands, and deprecate them as well.
10711 * NEWS: Add entry explaining that "dll-symbols" and its two
10712 aliases are now deprecated.
10713
10714 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10715
10716 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10717 new-line in debug string. Remove trailing spaces.
10718
10719 2014-02-19 Stan Shebs <stan@codesourcery.com>
10720
10721 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10722
10723 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10724
10725 * NEWS: Add entry for the new feature
10726 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10727 and class values.
10728
10729 2014-02-19 Stan Shebs <stan@codesourcery.com>
10730
10731 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10732
10733 2014-02-19 Pedro Alves <palves@redhat.com>
10734
10735 * common/ptid.h (struct ptid): Mention that process_stratum
10736 targets should prefer ptid.lwp.
10737
10738 2014-02-19 Pedro Alves <palves@redhat.com>
10739
10740 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10741 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10742 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10743 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10744 store remote thread ids rather than ptid.tid.
10745 (_initialize_remote): Adjust.
10746
10747 2014-02-19 Tom Tromey <tromey@redhat.com>
10748
10749 * target.c (target_get_unwinder): Rewrite.
10750 (target_get_tailcall_unwinder): Rewrite.
10751 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10752 (record_btrace_to_get_tailcall_unwinder): New function.
10753 (init_record_btrace_ops): Update.
10754 * target.h (struct target_ops) <to_get_unwinder,
10755 to_get_tailcall_unwinder>: Now function pointers. Use
10756 TARGET_DEFAULT_RETURN.
10757
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10761 argument.
10762 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10763
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10767 directly.
10768 * target-delegates.c: Rebuild.
10769 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10770 TARGET_DEFAULT_FUNC.
10771 * target.c (default_target_decr_pc_after_break): Rename from
10772 forward_target_decr_pc_after_break. Simplify.
10773 (target_decr_pc_after_break): Rely on delegation.
10774
10775 2014-02-19 Tom Tromey <tromey@redhat.com>
10776
10777 * target.c (update_current_target): Do not INHERIT to_doc or
10778 to_magic. Do not de_fault to_open or to_close.
10779
10780 2014-02-19 Tom Tromey <tromey@redhat.com>
10781
10782 * gcore.h (objfile_find_memory_regions): Declare.
10783 * gcore.c (objfile_find_memory_regions): No longer static. Add
10784 "self" argument.
10785 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10786 * exec.c: Include gcore.h.
10787 (exec_set_find_memory_regions): Remove.
10788 (exec_find_memory_regions): Remove.
10789 (exec_do_find_memory_regions): Remove.
10790 (init_exec_ops): Update.
10791 * defs.h (exec_set_find_memory_regions): Remove.
10792
10793 2014-02-19 Tom Tromey <tromey@redhat.com>
10794
10795 * target-delegates.c: Rebuild.
10796 * target.h (struct target_ops) <to_extra_thread_info,
10797 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10798 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10799 not 0, in TARGET_DEFAULT_RETURN.
10800
10801 2014-02-19 Tom Tromey <tromey@redhat.com>
10802
10803 * target.c (complete_target_initialization): Remove casts. Use
10804 return_zero_has_execution.
10805 (return_zero): Add "ignore" argument.
10806 (return_zero_has_execution): New function.
10807 (init_dummy_target): Remove casts. Use
10808 return_zero_has_execution.
10809
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10811
10812 * target.c (update_current_target): Update comments. Do not
10813 INHERIT to_stratum.
10814
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10816
10817 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10818 needed.
10819 * corelow.c (core_read_description): Delegate when needed.
10820 * remote.c (remote_read_description): Delegate when needed.
10821 * target-delegates.c: Rebuild.
10822 * target.c (target_read_description): Rewrite.
10823 * target.h (struct target_ops) <to_read_description>: Update
10824 comment. Use TARGET_DEFAULT_RETURN.
10825
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target-delegates.c: Rebuild.
10829 * target.c (update_current_target): Don't inherit or default
10830 to_can_run.
10831 (find_default_run_target): Check against delegate_can_run.
10832 * target.h (struct target_ops) <to_can_run>: Use
10833 TARGET_DEFAULT_RETURN.
10834
10835 2014-02-19 Tom Tromey <tromey@redhat.com>
10836
10837 * target-delegates.c: Rebuild.
10838 * target.c (target_disconnect): Unconditionally delegate.
10839 * target.h (struct target_ops) <to_disconnect>: Use
10840 TARGET_DEFAULT_NORETURN.
10841
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 * record.c (record_stop): Unconditionally delegate.
10845 * target-delegates.c: Rebuild.
10846 * target.c (target_stop_recording): Unconditionally delegate.
10847 * target.h (struct target_ops) <to_stop_recording>: Use
10848 TARGET_DEFAULT_IGNORE.
10849
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target-delegates.c: Rebuild.
10853 * target.c (target_enable_btrace): Unconditionally delegate.
10854 * target.h (struct target_ops) <to_enable_btrace>: Use
10855 TARGET_DEFAULT_NORETURN.
10856
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10858
10859 * target-delegates.c: Rebuild.
10860 * target.c (target_read_btrace): Unconditionally delegate.
10861 * target.h (struct target_ops) <to_read_btrace>: Use
10862 TARGET_DEFAULT_NORETURN.
10863
10864 2014-02-19 Tom Tromey <tromey@redhat.com>
10865
10866 * target-delegates.c: Rebuild.
10867 * target.c (target_teardown_btrace): Unconditionally delegate.
10868 * target.h (struct target_ops) <to_teardown_btrace>: Use
10869 TARGET_DEFAULT_NORETURN.
10870
10871 2014-02-19 Tom Tromey <tromey@redhat.com>
10872
10873 * target-delegates.c: Rebuild.
10874 * target.c (target_disable_btrace): Unconditionally delegate.
10875 * target.h (struct target_ops) <to_disable_btrace>: Use
10876 TARGET_DEFAULT_NORETURN.
10877
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * target-delegates.c: Rebuild.
10881 * target.c (default_search_memory): New function.
10882 (simple_search_memory): Update comment.
10883 (target_search_memory): Unconditionally delegate.
10884 * target.h (struct target_ops) <to_search_memory>: Use
10885 TARGET_DEFAULT_FUNC.
10886
10887 2014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * auxv.c (default_auxv_parse): No longer static.
10890 (target_auxv_parse): Unconditionally delegate.
10891 * auxv.h (default_auxv_parse): Declare.
10892 * target-delegates.c: Rebuild.
10893 * target.c: Include auxv.h.
10894 * target.h (struct target_ops) <to_auxv_parse>: Use
10895 TARGET_DEFAULT_FUNC.
10896
10897 2014-02-19 Tom Tromey <tromey@redhat.com>
10898
10899 * target-delegates.c: Rebuild.
10900 * target.c (target_memory_map): Unconditionally delegate.
10901 * target.h (struct target_ops) <to_memory_map>: Use
10902 TARGET_DEFAULT_RETURN.
10903
10904 2014-02-19 Tom Tromey <tromey@redhat.com>
10905
10906 * target-delegates.c: Rebuild.
10907 * target.c (target_thread_alive): Unconditionally delegate.
10908 * target.h (struct target_ops) <to_thread_alive>: Use
10909 TARGET_DEFAULT_RETURN.
10910
10911 2014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * target-delegates.c: Rebuild.
10914 * target.c (target_save_record): Unconditionally delegate.
10915 * target.h (struct target_ops) <to_save_record>: Use
10916 TARGET_DEFAULT_NORETURN.
10917
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * target-delegates.c: Rebuild.
10921 * target.c (target_delete_record): Unconditionally delegate.
10922 * target.h (struct target_ops) <to_delete_record>: Use
10923 TARGET_DEFAULT_NORETURN.
10924
10925 2014-02-19 Tom Tromey <tromey@redhat.com>
10926
10927 * target-delegates.c: Rebuild.
10928 * target.c (target_record_is_replaying): Unconditionally
10929 delegate.
10930 * target.h (struct target_ops) <to_record_is_replaying>: Use
10931 TARGET_DEFAULT_RETURN.
10932
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target-delegates.c: Rebuild.
10936 * target.c (target_goto_record_begin): Unconditionally delegate.
10937 * target.h (struct target_ops) <to_goto_record_begin>: Use
10938 TARGET_DEFAULT_NORETURN.
10939
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target-delegates.c: Rebuild.
10943 * target.c (target_goto_record_end): Unconditionally delegate.
10944 * target.h (struct target_ops) <to_goto_record_end>: Use
10945 TARGET_DEFAULT_NORETURN.
10946
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10948
10949 * target-delegates.c: Rebuild.
10950 * target.c (target_goto_record): Unconditionally delegate.
10951 * target.h (struct target_ops) <to_goto_record>: Use
10952 TARGET_DEFAULT_NORETURN.
10953
10954 2014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * target-delegates.c: Rebuild.
10957 * target.c (target_insn_history): Unconditionally delegate.
10958 * target.h (struct target_ops) <to_insn_history>: Use
10959 TARGET_DEFAULT_NORETURN.
10960
10961 2014-02-19 Tom Tromey <tromey@redhat.com>
10962
10963 * target-delegates.c: Rebuild.
10964 * target.c (target_insn_history_from): Unconditionally delegate.
10965 * target.h (struct target_ops) <to_insn_history_from>: Use
10966 TARGET_DEFAULT_NORETURN.
10967
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10969
10970 * target-delegates.c: Rebuild.
10971 * target.c (target_insn_history_range): Unconditionally delegate.
10972 * target.h (struct target_ops) <to_insn_history_range>: Use
10973 TARGET_DEFAULT_NORETURN.
10974
10975 2014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target-delegates.c: Rebuild.
10978 * target.c (target_call_history): Unconditionally delegate.
10979 * target.h (struct target_ops) <to_call_history>: Use
10980 TARGET_DEFAULT_NORETURN.
10981
10982 2014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target-delegates.c: Rebuild.
10985 * target.c (target_call_history_from): Unconditionally delegate.
10986 * target.h (struct target_ops) <to_call_history_from>: Use
10987 TARGET_DEFAULT_NORETURN.
10988
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * target-delegates.c: Rebuild.
10992 * target.c (target_call_history_range): Unconditionally delegate.
10993 * target.h (struct target_ops) <to_call_history_range>: Use
10994 TARGET_DEFAULT_NORETURN.
10995
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10997
10998 * target-delegates.c: Rebuild.
10999 * target.c (target_verify_memory): Unconditionally delegate.
11000 * target.h (struct target_ops) <to_verify_memory>: Use
11001 TARGET_DEFAULT_NORETURN.
11002
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11004
11005 * target-delegates.c: Rebuild.
11006 * target.c (target_core_of_thread): Unconditionally delegate.
11007 * target.h (struct target_ops) <to_core_of_thread>: Use
11008 TARGET_DEFAULT_RETURN.
11009
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * target-delegates.c: Rebuild.
11013 * target.c (target_flash_done): Unconditionally delegate.
11014 * target.h (struct target_ops) <to_flash_done>: Use
11015 TARGET_DEFAULT_NORETURN.
11016
11017 2014-02-19 Tom Tromey <tromey@redhat.com>
11018
11019 * target-delegates.c: Rebuild.
11020 * target.c (target_flash_erase): Unconditionally delegate.
11021 * target.h (struct target_ops) <to_flash_erase>: Use
11022 TARGET_DEFAULT_NORETURN.
11023
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11025
11026 * target-delegates.c: Rebuild.
11027 * target.c (target_get_section_table): Unconditionally delegate.
11028 * target.h (struct target_ops) <to_get_section_table>: Use
11029 TARGET_DEFAULT_RETURN.
11030
11031 2014-02-19 Tom Tromey <tromey@redhat.com>
11032
11033 * target-delegates.c: Rebuild.
11034 * target.c (target_pid_to_str): Unconditionally delegate.
11035 (init_dummy_target): Don't initialize to_pid_to_str.
11036 (default_pid_to_str): Rename from dummy_pid_to_str.
11037 * target.h (struct target_ops) <to_pid_to_str>: Use
11038 TARGET_DEFAULT_FUNC.
11039
11040 2014-02-19 Tom Tromey <tromey@redhat.com>
11041
11042 * target-delegates.c: Rebuild.
11043 * target.c (target_find_new_threads): Unconditionally delegate.
11044 * target.h (struct target_ops) <to_find_new_threads>: Use
11045 TARGET_DEFAULT_RETURN.
11046
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target-delegates.c: Rebuild.
11050 * target.c (target_program_signals): Unconditionally delegate.
11051 * target.h (struct target_ops) <to_program_signals>: Use
11052 TARGET_DEFAULT_IGNORE.
11053
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11055
11056 * target-delegates.c: Rebuild.
11057 * target.c (target_pass_signals): Unconditionally delegate.
11058 * target.h (struct target_ops) <to_pass_signals>: Use
11059 TARGET_DEFAULT_IGNORE.
11060
11061 2014-02-19 Tom Tromey <tromey@redhat.com>
11062
11063 * target-delegates.c: Rebuild.
11064 * target.c (default_mourn_inferior): New function.
11065 (target_mourn_inferior): Unconditionally delegate.
11066 * target.h (struct target_ops) <to_mourn_inferior>: Use
11067 TARGET_DEFAULT_FUNC.
11068
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11070
11071 * target-delegates.c: Rebuild.
11072 * target.c (default_follow_fork): New function.
11073 (target_follow_fork): Unconditionally delegate.
11074 * target.h (struct target_ops) <to_follow_fork>: Use
11075 TARGET_DEFAULT_FUNC.
11076
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11078
11079 * target-delegates.c: Rebuild.
11080 * target.c (target_kill): Unconditionally delegate.
11081 * target.h (struct target_ops) <to_kill>: Use
11082 TARGET_DEFAULT_NORETURN.
11083
11084 2014-02-19 Tom Tromey <tromey@redhat.com>
11085
11086 * target-delegates.c: Rebuild.
11087 * target.c (target_masked_watch_num_registers): Unconditionally
11088 delegate.
11089 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11090 Use TARGET_DEFAULT_RETURN.
11091
11092 2014-02-19 Tom Tromey <tromey@redhat.com>
11093
11094 * target-delegates.c: Rebuild.
11095 * target.c (target_remove_mask_watchpoint): Unconditionally
11096 delegate.
11097 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11098 TARGET_DEFAULT_RETURN.
11099
11100 2014-02-19 Tom Tromey <tromey@redhat.com>
11101
11102 * target-delegates.c: Rebuild.
11103 * target.c (target_insert_mask_watchpoint): Unconditionally
11104 delegate.
11105 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11106 TARGET_DEFAULT_RETURN.
11107
11108 2014-02-19 Tom Tromey <tromey@redhat.com>
11109
11110 * target-delegates.c: Rebuild.
11111 * target.c (target_ranged_break_num_registers): Unconditionally
11112 delegate.
11113 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11114 Use TARGET_DEFAULT_RETURN.
11115
11116 2014-02-19 Tom Tromey <tromey@redhat.com>
11117
11118 * target-delegates.c: Rebuild.
11119 * target.c (target_fetch_registers): Unconditionally delegate.
11120 * target.h (struct target_ops) <to_fetch_registers>: Use
11121 TARGET_DEFAULT_NORETURN.
11122
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target-delegates.c: Rebuild.
11126 * target.c (update_current_target): Don't inherit or default
11127 to_stop.
11128 * target.h (struct target_ops) <to_stop>: Use
11129 TARGET_DEFAULT_IGNORE.
11130
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target-delegates.c: Rebuild.
11134 * target.c (update_current_target): Don't inherit or default
11135 to_can_run_breakpoint_commands.
11136 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11137 Use TARGET_DEFAULT_RETURN.
11138
11139 2014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target-delegates.c: Rebuild.
11142 * target.c (update_current_target): Don't inherit or default
11143 to_supports_evaluation_of_breakpoint_conditions.
11144 * target.h (struct target_ops)
11145 <to_supports_evaluation_of_breakpoint_conditions>: Use
11146 TARGET_DEFAULT_RETURN.
11147
11148 2014-02-19 Tom Tromey <tromey@redhat.com>
11149
11150 * target-delegates.c: Rebuild.
11151 * target.c (update_current_target): Don't inherit or default
11152 to_augmented_libraries_svr4_read.
11153 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11154 Use TARGET_DEFAULT_RETURN.
11155
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target-delegates.c: Rebuild.
11159 * target.c (update_current_target): Don't inherit or default
11160 to_can_use_agent.
11161 * target.h (struct target_ops) <to_can_use_agent>: Use
11162 TARGET_DEFAULT_RETURN.
11163
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target-delegates.c: Rebuild.
11167 * target.c (update_current_target): Don't inherit or default
11168 to_use_agent.
11169 * target.h (struct target_ops) <to_use_agent>: Use
11170 TARGET_DEFAULT_NORETURN.
11171
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target-delegates.c: Rebuild.
11175 * target.c (update_current_target): Don't inherit or default
11176 to_traceframe_info.
11177 (return_null): Remove.
11178 * target.h (struct target_ops) <to_traceframe_info>: Use
11179 TARGET_DEFAULT_RETURN.
11180
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target-delegates.c: Rebuild.
11184 * target.c (update_current_target): Don't inherit or default
11185 to_static_tracepoint_markers_by_strid.
11186 * target.h (struct target_ops)
11187 <to_static_tracepoint_markers_by_strid>: Use
11188 TARGET_DEFAULT_NORETURN.
11189
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11191
11192 * target-delegates.c: Rebuild.
11193 * target.c (update_current_target): Don't inherit or default
11194 to_static_tracepoint_marker_at.
11195 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11196 Use TARGET_DEFAULT_RETURN.
11197
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target-delegates.c: Rebuild.
11201 * target.c (update_current_target): Don't inherit or default
11202 to_set_permissions.
11203 * target.h (struct target_ops) <to_set_permissions>: Use
11204 TARGET_DEFAULT_IGNORE.
11205
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11207
11208 * target-delegates.c: Rebuild.
11209 * target.c (update_current_target): Don't inherit or default
11210 to_get_tib_address.
11211 * target.h (struct target_ops) <to_get_tib_address>: Use
11212 TARGET_DEFAULT_NORETURN.
11213
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11215
11216 * target-delegates.c: Rebuild.
11217 * target.c (update_current_target): Don't inherit or default
11218 to_set_trace_notes.
11219 * target.h (struct target_ops) <to_set_trace_notes>: Use
11220 TARGET_DEFAULT_RETURN.
11221
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11223
11224 * target-delegates.c: Rebuild.
11225 * target.c (update_current_target): Don't initialize
11226 to_set_trace_buffer_size.
11227 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11228 TARGET_DEFAULT_IGNORE.
11229
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11231
11232 * target-delegates.c: Rebuild.
11233 * target.c (update_current_target): Don't inherit or default
11234 to_set_circular_trace_buffer.
11235 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11236 TARGET_DEFAULT_IGNORE.
11237
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11239
11240 * target-delegates.c: Rebuild.
11241 * target.c (update_current_target): Don't inherit or default
11242 to_set_disconnected_tracing.
11243 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11244 TARGET_DEFAULT_IGNORE.
11245
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target-delegates.c: Rebuild.
11249 * target.c (update_current_target): Don't inherit or default
11250 to_get_min_fast_tracepoint_insn_len.
11251 (return_minus_one): Remove.
11252 * target.h (struct target_ops)
11253 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11254
11255 2014-02-19 Tom Tromey <tromey@redhat.com>
11256
11257 * target-delegates.c: Rebuild.
11258 * target.c (update_current_target): Don't inherit or default
11259 to_get_raw_trace_data.
11260 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11261 TARGET_DEFAULT_NORETURN.
11262
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * target-delegates.c: Rebuild.
11266 * target.c (update_current_target): Don't inherit or default
11267 to_upload_trace_state_variables.
11268 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11269 Use TARGET_DEFAULT_RETURN.
11270
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * target-delegates.c: Rebuild.
11274 * target.c (update_current_target): Don't inherit or default
11275 to_upload_tracepoints.
11276 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11277 TARGET_DEFAULT_RETURN.
11278
11279 2014-02-19 Tom Tromey <tromey@redhat.com>
11280
11281 * target-delegates.c: Rebuild.
11282 * target.c (update_current_target): Don't inherit or default
11283 to_save_trace_data.
11284 * target.h (struct target_ops) <to_save_trace_data>: Use
11285 TARGET_DEFAULT_NORETURN.
11286
11287 2014-02-19 Tom Tromey <tromey@redhat.com>
11288
11289 * target-delegates.c: Rebuild.
11290 * target.c (update_current_target): Don't inherit or default
11291 to_get_trace_state_variable_value.
11292 * target.h (struct target_ops)
11293 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11294
11295 2014-02-19 Tom Tromey <tromey@redhat.com>
11296
11297 * target-delegates.c: Rebuild.
11298 * target.c (update_current_target): Don't inherit or default
11299 to_trace_find.
11300 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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_trace_stop.
11307 * target.h (struct target_ops) <to_trace_stop>: Use
11308 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
11315 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11316 TARGET_DEFAULT_NORETURN.
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_trace_status.
11323 * target.h (struct target_ops) <to_get_trace_status>: Use
11324 TARGET_DEFAULT_RETURN.
11325
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11327
11328 * target-delegates.c: Rebuild.
11329 * target.c (update_current_target): Don't inherit or default
11330 to_trace_start.
11331 * target.h (struct target_ops) <to_trace_start>: Use
11332 TARGET_DEFAULT_NORETURN.
11333
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target-delegates.c: Rebuild.
11337 * target.c (update_current_target): Don't inherit or default
11338 to_trace_set_readonly_regions.
11339 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11340 Use TARGET_DEFAULT_NORETURN.
11341
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11343
11344 * target-delegates.c: Rebuild.
11345 * target.c (update_current_target): Don't inherit or default
11346 to_disable_tracepoint.
11347 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11348 TARGET_DEFAULT_NORETURN.
11349
11350 2014-02-19 Tom Tromey <tromey@redhat.com>
11351
11352 * target-delegates.c: Rebuild.
11353 * target.c (update_current_target): Don't inherit or default
11354 to_enable_tracepoint.
11355 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11356 TARGET_DEFAULT_NORETURN.
11357
11358 2014-02-19 Tom Tromey <tromey@redhat.com>
11359
11360 * target-delegates.c: Rebuild.
11361 * target.c (update_current_target): Don't inherit or default
11362 to_download_trace_state_variable.
11363 * target.h (struct target_ops) <to_download_trace_state_variable>:
11364 Use TARGET_DEFAULT_NORETURN.
11365
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11367
11368 * target-delegates.c: Rebuild.
11369 * target.c (update_current_target): Don't inherit or default
11370 to_can_download_tracepoint.
11371 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11372 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_download_tracepoint.
11379 * target.h (struct target_ops) <to_download_tracepoint>: 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_trace_init.
11387 * target.h (struct target_ops) <to_trace_init>: Use
11388 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
11395 * target.h (struct target_ops) <to_supports_string_tracing>: 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_supports_enable_disable_tracepoint.
11403 * target.h (struct target_ops)
11404 <to_supports_enable_disable_tracepoint>: Use
11405 TARGET_DEFAULT_RETURN.
11406
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target-delegates.c: Rebuild.
11410 * target.c (update_current_target): Don't inherit or default
11411 to_supports_multi_process.
11412 * target.h (struct target_ops) <to_supports_multi_process>: Use
11413 TARGET_DEFAULT_RETURN.
11414
11415 2014-02-19 Tom Tromey <tromey@redhat.com>
11416
11417 * target-delegates.c: Rebuild.
11418 * target.c (update_current_target): Don't inherit or default
11419 to_get_ada_task_ptid.
11420 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11421 TARGET_DEFAULT_FUNC.
11422
11423 2014-02-19 Tom Tromey <tromey@redhat.com>
11424
11425 * target-delegates.c: Rebuild.
11426 * target.c (update_current_target): Don't inherit or default
11427 to_thread_architecture.
11428 * target.h (struct target_ops) <to_thread_architecture>: Use
11429 TARGET_DEFAULT_FUNC.
11430
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target-delegates.c: Rebuild.
11434 * target.c (update_current_target): Don't inherit or default
11435 to_execution_direction.
11436 * target.h (struct target_ops) <to_execution_direction>: Use
11437 TARGET_DEFAULT_FUNC.
11438
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11443 to_can_execute_reverse.
11444 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11445 TARGET_DEFAULT_RETURN.
11446 (target_can_execute_reverse): Unconditionally delegate.
11447
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11449
11450 * target-delegates.c: Rebuild.
11451 * target.c (update_current_target): Don't inherit or default
11452 to_goto_bookmark.
11453 (dummy_goto_bookmark): Remove.
11454 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11455 * target.h (struct target_ops) <to_goto_bookmark>: Use
11456 TARGET_DEFAULT_NORETURN.
11457
11458 2014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * target-delegates.c: Rebuild.
11461 * target.c (update_current_target): Don't inherit or default
11462 to_get_bookmark.
11463 (dummy_get_bookmark): Remove.
11464 (init_dummy_target): Don't inherit or default to_get_bookmark.
11465 * target.h (struct target_ops) <to_get_bookmark>: Use
11466 TARGET_DEFAULT_NORETURN
11467
11468 2014-02-19 Tom Tromey <tromey@redhat.com>
11469
11470 * target-delegates.c: Rebuild.
11471 * target.c (update_current_target): Don't inherit or default
11472 to_make_corefile_notes.
11473 (init_dummy_target): Don't initialize to_make_corefile_notes.
11474 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11475 TARGET_DEFAULT_FUNC.
11476
11477 2014-02-19 Tom Tromey <tromey@redhat.com>
11478
11479 * target-delegates.c: Rebuild.
11480 * target.c (update_current_target): Don't inherit or default
11481 to_find_memory_regions.
11482 (init_dummy_target): Don't initialize to_find_memory_regions.
11483 * target.h (struct target_ops) <to_find_memory_regions>: Use
11484 TARGET_DEFAULT_FUNC.
11485
11486 2014-02-19 Tom Tromey <tromey@redhat.com>
11487
11488 * target-delegates.c: Rebuild.
11489 * target.c (update_current_target): Don't inherit or default
11490 to_log_command.
11491 * target.h (struct target_ops) <to_log_command>: Use
11492 TARGET_DEFAULT_IGNORE.
11493 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
11500 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11501 TARGET_DEFAULT_RETURN.
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_thread_name.
11508 (target_thread_name): Unconditionally delegate.
11509 * target.h (struct target_ops) <to_thread_name>: Use
11510 TARGET_DEFAULT_RETURN.
11511
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11513
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11516 to_extra_thread_info.
11517 * target.h (struct target_ops) <to_extra_thread_info>: Use
11518 TARGET_DEFAULT_RETURN.
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_has_exited.
11525 * target.h (struct target_ops) <to_has_exited>: Use
11526 TARGET_DEFAULT_RETURN..
11527
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11529
11530 * target-delegates.c: Rebuild.
11531 * target.c (update_current_target): Don't inherit or default
11532 to_set_syscall_catchpoint.
11533 (return_one): Remove.
11534 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11535 TARGET_DEFAULT_RETURN.
11536
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11538
11539 * target-delegates.c: Rebuild.
11540 * target.c (update_current_target): Don't inherit or default
11541 to_insert_exec_catchpoint.
11542 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11543 TARGET_DEFAULT_RETURN.
11544
11545 2014-01-08 Tom Tromey <tromey@redhat.com>
11546
11547 * target-delegates.c: Rebuild.
11548 * target.c (update_current_target): Don't inherit or default
11549 to_insert_exec_catchpoint.
11550 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11551 TARGET_DEFAULT_RETURN.
11552
11553 2014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * target-delegates.c: Rebuild.
11556 * target.c (update_current_target): Don't inherit or default
11557 to_remove_vfork_catchpoint.
11558 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11559 TARGET_DEFAULT_RETURN.
11560
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11562
11563 * target-delegates.c: Rebuild.
11564 * target.c (update_current_target): Don't inherit or default
11565 to_insert_vfork_catchpoint.
11566 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11567 TARGET_DEFAULT_RETURN.
11568
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11570
11571 * target-delegates.c: Rebuild.
11572 * target.c (update_current_target): Don't inherit or default
11573 to_remove_fork_catchpoint.
11574 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11575 TARGET_DEFAULT_RETURN.
11576
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11578
11579 * target-delegates.c: Rebuild.
11580 * target.c (update_current_target): Don't inherit or default
11581 to_insert_fork_catchpoint.
11582 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11583 TARGET_DEFAULT_RETURN.
11584
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target-delegates.c: Rebuild.
11588 * target.c (update_current_target): Don't inherit or default
11589 to_post_startup_inferior.
11590 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11591 TARGET_DEFAULT_IGNORE.
11592
11593 2014-02-19 Tom Tromey <tromey@redhat.com>
11594
11595 * target-delegates.c: Rebuild.
11596 * target.c (update_current_target): Don't inherit or default
11597 to_load.
11598 * target.h (struct target_ops) <to_load>: Use
11599 TARGET_DEFAULT_NORETURN.
11600
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11602
11603 * target-delegates.c: Rebuild.
11604 * target.c (update_current_target): Don't inherit or default
11605 to_terminal_info.
11606 * target.h (struct target_ops) <to_terminal_info>: Use
11607 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
11614 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11615 TARGET_DEFAULT_IGNORE.
11616
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * target-delegates.c: Rebuild.
11620 * target.c (update_current_target): Don't inherit or default
11621 to_terminal_ours.
11622 * target.h (struct target_ops) <to_terminal_ours>: Use
11623 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
11630 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11631 TARGET_DEFAULT_IGNORE.
11632
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target-delegates.c: Rebuild.
11636 * target.c (update_current_target): Don't inherit or default
11637 to_terminal_inferior.
11638 * target.h (struct target_ops) <to_terminal_inferior>: Use
11639 TARGET_DEFAULT_IGNORE.
11640
11641 2014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target-delegates.c: Rebuild.
11644 * target.c (update_current_target): Don't inherit or default
11645 to_terminal_init.
11646 * target.h (struct target_ops) <to_terminal_init>: Use
11647 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
11654 * target.h (struct target_ops)
11655 <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
11662 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11663 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
11670 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11671 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
11678 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11679 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
11686 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11687 TARGET_DEFAULT_RETURN.
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_remove_hw_breakpoint.
11694 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11695 TARGET_DEFAULT_RETURN.
11696
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11698
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_insert_hw_breakpoint.
11702 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11703 TARGET_DEFAULT_RETURN.
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_can_use_hw_breakpoint.
11710 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11711 TARGET_DEFAULT_RETURN.
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_files_info.
11718 * target.h (struct target_ops) <to_files_info>: 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_store.
11726 * target.h (struct target_ops) <to_store>: Use
11727 TARGET_DEFAULT_NORETURN.
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_post_attach.
11734 * target.h (struct target_ops) <to_post_attach>: Use
11735 TARGET_DEFAULT_IGNORE.
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_rcmd.
11742 (default_rcmd): New function.
11743 (do_monitor_command): Unconditionally delegate.
11744 * target.h (struct target_ops) <to_rmcd>: Use
11745 TARGET_DEFAULT_FUNC.
11746
11747 2014-02-19 Tom Tromey <tromey@redhat.com>
11748
11749 * target-delegates.c: Rebuild.
11750 * target.c (init_dummy_target): Don't initialize to_attach.
11751 (target_attach): Unconditionally delegate.
11752 * target.h (struct target_ops) <to_attach>: Use
11753 TARGET_DEFAULT_FUNC.
11754
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11756
11757 * target-delegates.c: Rebuild.
11758 * target.c (target_detach): Unconditionally delegate.
11759 (init_dummy_target): Don't initialize to_detach.
11760 * target.h (struct target_ops) <to_detach>: Use
11761 TARGET_DEFAULT_IGNORE.
11762
11763 2014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11766 Add argument.
11767 (target_augmented_libraries_svr4_read): Add argument.
11768 * target.c (update_current_target): Update.
11769 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11770 argument.
11771
11772 2014-02-19 Tom Tromey <tromey@redhat.com>
11773
11774 * target.h (struct target_ops) <to_call_history_range>: Add
11775 argument.
11776 * target.c (target_call_history_range): Add argument.
11777 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11778 argument.
11779 (record_btrace_call_history_from): Update.
11780
11781 2014-02-19 Tom Tromey <tromey@redhat.com>
11782
11783 * target.h (struct target_ops) <to_call_history_from>: Add
11784 argument.
11785 * target.c (target_call_history_from): Add argument.
11786 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11787 argument.
11788
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target.h (struct target_ops) <to_call_history>: Add argument.
11792 * target.c (target_call_history): Add argument.
11793 * record-btrace.c (record_btrace_call_history): Add 'self'
11794 argument.
11795
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target.h (struct target_ops) <to_insn_history_range>: Add
11799 argument.
11800 * target.c (target_insn_history_range): Add argument.
11801 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11802 argument.
11803 (record_btrace_insn_history_from): Update.
11804
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * target.h (struct target_ops) <to_insn_history_from>: Add
11808 argument.
11809 * target.c (target_insn_history_from): Add argument.
11810 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11811 argument.
11812
11813 2014-02-19 Tom Tromey <tromey@redhat.com>
11814
11815 * target.h (struct target_ops) <to_insn_history>: Add argument.
11816 * target.c (target_insn_history): Add argument.
11817 * record-btrace.c (record_btrace_insn_history): Add 'self'
11818 argument.
11819
11820 2014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * target.h (struct target_ops) <to_goto_record>: Add argument.
11823 * target.c (target_goto_record): Add argument.
11824 * record-full.c (record_full_goto): Add 'self' argument.
11825 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11826
11827 2014-02-19 Tom Tromey <tromey@redhat.com>
11828
11829 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11830 * target.c (target_goto_record_end): Add argument.
11831 * record-full.c (record_full_goto_end): Add 'self' argument.
11832 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11833
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11835
11836 * target.h (struct target_ops) <to_goto_record_begin>: Add
11837 argument.
11838 * target.c (target_goto_record_begin): Add argument.
11839 * record-full.c (record_full_goto_begin): Add 'self' argument.
11840 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11841 argument.
11842
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target.h (struct target_ops) <to_record_is_replaying>: Add
11846 argument.
11847 * target.c (target_record_is_replaying): Add argument.
11848 * record-full.c (record_full_is_replaying): Add 'self' argument.
11849 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11850 argument.
11851 (record_btrace_xfer_partial, record_btrace_store_registers)
11852 (record_btrace_prepare_to_store, record_btrace_resume)
11853 (record_btrace_wait, record_btrace_decr_pc_after_break)
11854 (record_btrace_find_new_threads, record_btrace_thread_alive):
11855 Update.
11856
11857 2014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target.h (struct target_ops) <to_delete_record>: Add argument.
11860 * target.c (target_delete_record): Add argument.
11861 * record-full.c (record_full_delete): Add 'self' argument.
11862
11863 2014-02-19 Tom Tromey <tromey@redhat.com>
11864
11865 * target.h (struct target_ops) <to_save_record>: Add argument.
11866 * target.c (target_save_record): Add argument.
11867 * record-full.c (record_full_save): Add 'self' argument.
11868 (record_full_save): Add 'self' argument.
11869
11870 2014-02-19 Tom Tromey <tromey@redhat.com>
11871
11872 * target.h (struct target_ops) <to_info_record>: Add argument.
11873 * target.c (target_info_record): Add argument.
11874 * record.c (info_record_command): Add argument.
11875 * record-full.c (record_full_info): Add 'self' argument.
11876 * record-btrace.c (record_btrace_info): Add 'self' argument.
11877
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11879
11880 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11881 * target.c (target_stop_recording): Add argument.
11882 * record.c (record_stop): Add argument.
11883 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11884 argument.
11885
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11889 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11890 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11891 argument.
11892 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11893 (_initialize_amd64_linux_nat): Use it.
11894 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11895 (_initialize_i386_linux_nat): Use it.
11896
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11898
11899 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11900 * target.c (target_teardown_btrace): Add argument.
11901 * remote.c (remote_teardown_btrace): Add 'self' argument.
11902 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11903 argument.
11904 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11905 argument.
11906
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11910 * target.c (target_disable_btrace): Add argument.
11911 * remote.c (remote_disable_btrace): Add 'self' argument.
11912 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11913 argument.
11914 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11915 argument.
11916
11917 2014-02-19 Tom Tromey <tromey@redhat.com>
11918
11919 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11920 * target.c (target_enable_btrace): Add argument.
11921 * remote.c (remote_enable_btrace): Add 'self' argument.
11922 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11923 argument.
11924 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11925 argument.
11926
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11928
11929 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11930 (target_can_use_agent): Add argument.
11931 * target.c (update_current_target): Update.
11932 * remote.c (remote_can_use_agent): Add 'self' argument.
11933 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11934
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target.h (struct target_ops) <to_use_agent>: Add argument.
11938 (target_use_agent): Add argument.
11939 * target.c (update_current_target): Update.
11940 * remote.c (remote_use_agent): Add 'self' argument.
11941 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11942
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11946 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11947 (target_traceframe_info): Add argument.
11948 * target.c (update_current_target): Update.
11949 * remote.c (remote_traceframe_info): Add 'self' argument.
11950 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11951
11952 2014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target.h (target_static_tracepoint_markers_by_strid): Add
11955 argument.
11956 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11957 'self' argument.
11958 * target.c (update_current_target): Update.
11959 * remote.c (struct target_ops)
11960 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11961 * linux-nat.c (struct target_ops)
11962 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11963
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11965
11966 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11967 Add argument.
11968 (target_static_tracepoint_marker_at): Add argument.
11969 * target.c (update_current_target): Update.
11970 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11971 argument.
11972
11973 2014-02-19 Tom Tromey <tromey@redhat.com>
11974
11975 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11976 (target_set_permissions): Add argument.
11977 * target.c (update_current_target): Update.
11978 * remote.c (remote_set_permissions): Add 'self' argument.
11979 (remote_start_remote): Update.
11980
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11984 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11985 (target_get_tib_address): Add argument.
11986 * target.c (update_current_target): Update.
11987 * remote.c (remote_get_tib_address): Add 'self' argument.
11988
11989 2014-02-19 Tom Tromey <tromey@redhat.com>
11990
11991 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11992 (target_set_trace_notes): Add argument.
11993 * target.c (update_current_target): Update.
11994 * remote.c (remote_set_trace_notes): Add 'self' argument.
11995
11996 2014-02-19 Tom Tromey <tromey@redhat.com>
11997
11998 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11999 argument.
12000 (target_set_trace_buffer_size): Add argument.
12001 * target.c (update_current_target): Update.
12002 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12003
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12005
12006 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12007 argument.
12008 (target_set_circular_trace_buffer): Add argument.
12009 * target.c (update_current_target): Update.
12010 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12011 argument.
12012
12013 2014-02-19 Tom Tromey <tromey@redhat.com>
12014
12015 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12016 argument.
12017 (target_set_disconnected_tracing): Add argument.
12018 * target.c (update_current_target): Update.
12019 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12020
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * target.h (struct target_ops)
12024 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12025 (target_get_min_fast_tracepoint_insn_len): Add argument.
12026 * target.c (update_current_target): Update.
12027 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12028 argument.
12029
12030 2014-02-19 Tom Tromey <tromey@redhat.com>
12031
12032 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12033 argument.
12034 (target_get_raw_trace_data): Add argument.
12035 * target.c (update_current_target): Update.
12036 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12037
12038 2014-02-19 Tom Tromey <tromey@redhat.com>
12039
12040 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12041 Add argument.
12042 (target_upload_trace_state_variables): Add argument.
12043 * target.c (update_current_target): Update.
12044 * remote.c (remote_upload_trace_state_variables): Add 'self'
12045 argument.
12046 (remote_start_remote): Update.
12047
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12049
12050 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12051 argument.
12052 (target_upload_tracepoints): Add argument.
12053 * target.c (update_current_target): Update.
12054 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12055 (remote_start_remote): Update.
12056
12057 2014-02-19 Tom Tromey <tromey@redhat.com>
12058
12059 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12060 (target_save_trace_data): Add argument.
12061 * target.c (update_current_target): Update.
12062 * remote.c (remote_save_trace_data): Add 'self' argument.
12063
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12067 argument.
12068 * target.h (struct target_ops)
12069 <to_get_trace_state_variable_value>: Add argument.
12070 (target_get_trace_state_variable_value): Add argument.
12071 * target.c (update_current_target): Update.
12072 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12073 argument.
12074 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12075
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12079 * target.h (struct target_ops) <to_trace_find>: Add argument.
12080 (target_trace_find): Add argument.
12081 * target.c (update_current_target): Update.
12082 * remote.c (remote_trace_find): Add 'self' argument.
12083 * ctf.c (ctf_trace_find): Add 'self' argument.
12084
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12086
12087 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12088 (target_trace_stop): Add argument.
12089 * target.c (update_current_target): Update.
12090 * remote.c (remote_trace_stop): Add 'self' argument.
12091
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12095 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12096 argument.
12097 (target_get_tracepoint_status): Add argument.
12098 * target.c (update_current_target): Update.
12099 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12100
12101 2014-02-19 Tom Tromey <tromey@redhat.com>
12102
12103 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12104 * target.h (struct target_ops) <to_get_trace_status>: Add
12105 argument.
12106 (target_get_trace_status): Add argument.
12107 * target.c (update_current_target): Update.
12108 * remote.c (remote_get_trace_status): Add 'self' argument.
12109 (remote_start_remote, remote_can_download_tracepoint): Update.
12110 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12111
12112 2014-02-19 Tom Tromey <tromey@redhat.com>
12113
12114 * target.h (struct target_ops) <to_trace_start>: Add argument.
12115 (target_trace_start): Add argument.
12116 * target.c (update_current_target): Update.
12117 * remote.c (remote_trace_start): Add 'self' argument.
12118
12119 2014-02-19 Tom Tromey <tromey@redhat.com>
12120
12121 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12122 Add argument.
12123 (target_trace_set_readonly_regions): Add argument.
12124 * target.c (update_current_target): Update.
12125 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12126 argument.
12127
12128 2014-02-19 Tom Tromey <tromey@redhat.com>
12129
12130 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12131 argument.
12132 (target_disable_tracepoint): Add argument.
12133 * target.c (update_current_target): Update.
12134 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12135
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12137
12138 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12139 argument.
12140 (target_enable_tracepoint): Add argument.
12141 * target.c (update_current_target): Update.
12142 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12143
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12145
12146 * target.h (struct target_ops) <to_download_trace_state_variable>:
12147 Add argument.
12148 (target_download_trace_state_variable): Add argument.
12149 * target.c (update_current_target): Update.
12150 * remote.c (remote_download_trace_state_variable): Add 'self'
12151 argument.
12152
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12154
12155 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12156 argument.
12157 (target_can_download_tracepoint): Add argument.
12158 * target.c (update_current_target): Update.
12159 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12160
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12162
12163 * target.h (struct target_ops) <to_download_tracepoint>: Add
12164 argument.
12165 (target_download_tracepoint): Add argument.
12166 * target.c (update_current_target): Update.
12167 * remote.c (remote_download_tracepoint): Add 'self' argument.
12168
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target.h (struct target_ops) <to_trace_init>: Add argument.
12172 (target_trace_init): Add argument.
12173 * target.c (update_current_target): Update.
12174 * remote.c (remote_trace_init): Add 'self' argument.
12175
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12177
12178 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12179 * target.c (target_fileio_readlink): Add argument.
12180 * remote.c (remote_hostio_readlink): Add 'self' argument.
12181 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12182
12183 2014-02-19 Tom Tromey <tromey@redhat.com>
12184
12185 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12186 * target.c (target_fileio_unlink): Add argument.
12187 * remote.c (remote_hostio_unlink): Add 'self' argument.
12188 (remote_file_delete): Update.
12189 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12190
12191 2014-02-19 Tom Tromey <tromey@redhat.com>
12192
12193 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12194 * target.c (target_fileio_close): Add argument.
12195 * remote.c (remote_hostio_close): Add 'self' argument.
12196 (remote_hostio_close_cleanup): Update.
12197 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12198 Update.
12199 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12200
12201 2014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12204 * target.c (target_fileio_pread): Add argument.
12205 * remote.c (remote_hostio_pread): Add 'self' argument.
12206 (remote_bfd_iovec_pread, remote_file_get): Update.
12207 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12208
12209 2014-02-19 Tom Tromey <tromey@redhat.com>
12210
12211 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12212 * target.c (target_fileio_pwrite): Add argument.
12213 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12214 (remote_file_put): Update.
12215 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12216
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12220 * target.c (target_fileio_open): Add argument.
12221 * remote.c (remote_hostio_open): Add 'self' argument.
12222 (remote_bfd_iovec_open): Add 'self' argument.
12223 (remote_file_put): Add 'self' argument.
12224 (remote_file_get): Add 'self' argument.
12225 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12226
12227 2014-02-19 Tom Tromey <tromey@redhat.com>
12228
12229 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12230 Add argument.
12231 (target_can_run_breakpoint_commands): Add argument.
12232 * target.c (update_current_target): Update.
12233 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12234 argument.
12235 (remote_insert_breakpoint): Add 'self' argument.
12236 (remote_insert_hw_breakpoint): Add 'self' argument.
12237 (remote_can_run_breakpoint_commands): Add 'self' argument.
12238
12239 2014-02-19 Tom Tromey <tromey@redhat.com>
12240
12241 * target.h (struct target_ops)
12242 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12243 (target_supports_evaluation_of_breakpoint_conditions): Add
12244 argument.
12245 * target.c (update_current_target): Update.
12246 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12247 argument.
12248 (remote_insert_breakpoint): Add 'self' argument.
12249 (remote_insert_hw_breakpoint): Add 'self' argument.
12250 (remote_supports_cond_breakpoints): Add 'self' argument.
12251
12252 2014-02-19 Tom Tromey <tromey@redhat.com>
12253
12254 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12255 argument.
12256 (target_supports_string_tracing): Add argument.
12257 * target.c (update_current_target): Update.
12258 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12259
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12261
12262 * target.h (struct target_ops)
12263 <to_supports_disable_randomization>: Add argument.
12264 * target.c (find_default_supports_disable_randomization): Add
12265 argument.
12266 (target_supports_disable_randomization): Add argument.
12267 (find_default_supports_disable_randomization): Add 'self'
12268 argument.
12269 * remote.c (extended_remote_supports_disable_randomization): Add
12270 'self' argument.
12271 (remote_supports_disable_randomization): Add 'self' argument.
12272 (extended_remote_create_inferior): Update.
12273 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12274 'self' argument.
12275
12276 2014-02-19 Tom Tromey <tromey@redhat.com>
12277
12278 * target.h (struct target_ops)
12279 <to_supports_enable_disable_tracepoint>: Add argument.
12280 (target_supports_enable_disable_tracepoint): Add argument.
12281 * target.c (update_current_target): Update.
12282 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12283 argument.
12284
12285 2014-02-19 Tom Tromey <tromey@redhat.com>
12286
12287 * target.h (struct target_ops) <to_supports_multi_process>: Add
12288 argument.
12289 (target_supports_multi_process): Add argument.
12290 * target.c (update_current_target): Update.
12291 * remote.c (remote_supports_multi_process): Add 'self' argument.
12292 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12293 argument.
12294 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12295 argument.
12296
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12298
12299 * target.h (struct target_ops) <to_execution_direction>: Add
12300 argument.
12301 (target_execution_direction): Add argument.
12302 * target.c (default_execution_direction): Add 'self' argument.
12303 * record-full.c (record_full_execution_direction): Add 'self'
12304 argument.
12305
12306 2014-02-19 Tom Tromey <tromey@redhat.com>
12307
12308 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12309 argument.
12310 (target_can_execute_reverse): Add argument.
12311 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12312 * record-full.c (record_full_can_execute_reverse): Add 'self'
12313 argument.
12314 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12315 argument.
12316
12317 2014-02-19 Tom Tromey <tromey@redhat.com>
12318
12319 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12320 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12321 argument.
12322 (target_get_ada_task_ptid): Add argument.
12323 * target.c (update_current_target): Update.
12324 (default_get_ada_task_ptid): Add 'self' argument.
12325 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12326 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12327 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12328 argument.
12329 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12330 argument.
12331 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12332 argument.
12333 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12334 argument.
12335 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12336 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12337 argument.
12338
12339 2014-02-19 Tom Tromey <tromey@redhat.com>
12340
12341 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12342 (target_goto_bookmark): Add argument.
12343 * target.c (dummy_goto_bookmark): Add 'self' argument.
12344 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12345
12346 2014-02-19 Tom Tromey <tromey@redhat.com>
12347
12348 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12349 (target_get_bookmark): Add argument.
12350 * target.c (dummy_get_bookmark): Add 'self' argument.
12351 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12352
12353 2014-02-19 Tom Tromey <tromey@redhat.com>
12354
12355 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12356 argument.
12357 (target_make_corefile_notes): Add argument.
12358 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12359 * procfs.c (procfs_make_note_section): Add 'self' argument.
12360 (procfs_make_note_section): Add 'self' argument.
12361 (procfs_make_note_section): Add 'self' argument.
12362 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12363 argument.
12364 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12365 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12366 * exec.c (exec_make_note_section): Add 'self' argument.
12367 (exec_make_note_section): Add 'self' argument.
12368
12369 2014-02-19 Tom Tromey <tromey@redhat.com>
12370
12371 * target.h (struct target_ops) <to_find_memory_regions>: Add
12372 argument.
12373 (target_find_memory_regions): Add argument.
12374 * target.c (dummy_find_memory_regions): Add 'self' argument.
12375 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12376 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12377 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12378 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12379 * exec. (exec_do_find_memory_regions): New global.
12380 (exec_set_find_memory_regions): Rewrite.
12381 (exec_find_memory_regions): New function.
12382 (init_exec_ops): Use exec_find_memory_regions.
12383
12384 2014-02-19 Tom Tromey <tromey@redhat.com>
12385
12386 * target.h (struct target_ops) <to_supports_non_stop>: Add
12387 argument.
12388 * target.c (find_default_supports_non_stop): Add argument.
12389 (target_supports_non_stop): Add argument.
12390 (find_default_supports_non_stop): Add 'self' argument.
12391 * remote.c (remote_supports_non_stop): Add 'self' argument.
12392 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12393
12394 2014-02-19 Tom Tromey <tromey@redhat.com>
12395
12396 * target.h (struct target_ops) <to_log_command>: Add argument.
12397 (target_log_command): Add argument.
12398 * serial.h (serial_log_command): Add 'self' argument.
12399 * serial.c (serial_log_command): Add 'self' argument.
12400
12401 2014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12404 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12405 argument.
12406 (target_pid_to_exec_file): Add argument.
12407 * target.c (debug_to_pid_to_exec_file): Add argument.
12408 (update_current_target): Update.
12409 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12410 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12411 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12412 (linux_handle_extended_wait): Update.
12413 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12414 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12415 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12416 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12417
12418 2014-02-19 Tom Tromey <tromey@redhat.com>
12419
12420 * target.h (struct target_ops) <to_rcmd>: Add argument.
12421 (target_rcmd): Add argument.
12422 * target.c (debug_to_rcmd): Add argument.
12423 (update_current_target, do_monitor_command): Update.
12424 * remote.c (remote_rcmd): Add 'self' argument.
12425 * monitor.c (monitor_rcmd): Add 'self' argument.
12426
12427 2014-02-19 Tom Tromey <tromey@redhat.com>
12428
12429 * windows-nat.c (windows_stop): Add 'self' argument.
12430 * target.h (struct target_ops) <to_stop>: Add argument.
12431 * target.c (target_stop): Add argument.
12432 (debug_to_stop): Add argument.
12433 (update_current_target): Update.
12434 * remote.c (remote_stop): Add 'self' argument.
12435 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12436 (gdbsim_cntrl_c): Update.
12437 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12438 * procfs.c (procfs_stop): Add 'self' argument.
12439 * nto-procfs.c (procfs_stop): Add 'self' argument.
12440 * monitor.c (monitor_stop): Add 'self' argument.
12441 (monitor_open): Update.
12442 * linux-nat.c (linux_nat_stop): Add argument.
12443 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12444 * gnu-nat.c (gnu_stop): Add 'self' argument.
12445 * darwin-nat.c (darwin_stop): Add 'self' argument.
12446
12447 2014-02-19 Tom Tromey <tromey@redhat.com>
12448
12449 * target.h (struct target_ops) <to_thread_name>: Add argument.
12450 * target.c (target_thread_name): Add argument.
12451 (update_current_target): Update.
12452 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12453
12454 2014-02-19 Tom Tromey <tromey@redhat.com>
12455
12456 * target.h (struct target_ops) <to_extra_thread_info>: Add
12457 argument.
12458 (target_extra_thread_info): Add argument.
12459 * target.c (update_current_target): Update.
12460 * remote.c (remote_threads_extra_info): Add 'self' argument.
12461 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12462 argument.
12463 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12464 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12465 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12466 argument.
12467 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12468 argument.
12469 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12470 argument.
12471 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12472 argument.
12473
12474 2014-02-19 Tom Tromey <tromey@redhat.com>
12475
12476 * target.h (struct target_ops) <to_program_signals>: Add argument.
12477 * target.c (target_program_signals): Add argument.
12478 * remote.c (remote_program_signals): Add 'self' argument.
12479
12480 2014-02-19 Tom Tromey <tromey@redhat.com>
12481
12482 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12483 * target.c (target_pass_signals): Add argument.
12484 * remote.c (remote_pass_signals): Add 'self' argument.
12485 (remote_start_remote): Update.
12486 * procfs.c (procfs_pass_signals): Add 'self' argument.
12487 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12488 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12489 (linux_nat_create_inferior, linux_nat_attach): Update.
12490
12491 2014-02-19 Tom Tromey <tromey@redhat.com>
12492
12493 * windows-nat.c (windows_can_run): Add 'self' argument.
12494 * target.h (struct target_ops) <to_can_run>: Add argument.
12495 (target_can_run): Add argument.
12496 * target.c (debug_to_can_run): Add argument.
12497 (update_current_target): Update.
12498 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12499 * inf-child.c (inf_child_can_run): Add 'self' argument.
12500 * go32-nat.c (go32_can_run): Add 'self' argument.
12501
12502 2014-02-19 Tom Tromey <tromey@redhat.com>
12503
12504 * target.h (struct target_ops) <to_has_exited>: Add argument.
12505 (target_has_exited): Add argument.
12506 * target.c (debug_to_has_exited): Add argument.
12507 (update_current_target): Update.
12508
12509 2014-02-19 Tom Tromey <tromey@redhat.com>
12510
12511 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12512 argument.
12513 (target_set_syscall_catchpoint): Add argument.
12514 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12515 argument.
12516 * target.c (update_current_target): Update.
12517
12518 2014-02-19 Tom Tromey <tromey@redhat.com>
12519
12520 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12521 argument.
12522 (target_remove_exec_catchpoint): Add argument.
12523 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12524 (update_current_target): Update.
12525 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12526 argument.
12527
12528 2014-02-19 Tom Tromey <tromey@redhat.com>
12529
12530 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12531 argument.
12532 (target_insert_exec_catchpoint): Add argument.
12533 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12534 (update_current_target): Update.
12535 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12536 argument.
12537
12538 2014-02-19 Tom Tromey <tromey@redhat.com>
12539
12540 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12541 argument.
12542 (target_remove_vfork_catchpoint): Add argument.
12543 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12544 (update_current_target): Update.
12545 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12546 argument.
12547
12548 2014-02-19 Tom Tromey <tromey@redhat.com>
12549
12550 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12551 argument.
12552 (target_insert_vfork_catchpoint): Add argument.
12553 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12554 (update_current_target): Update.
12555 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12556 argument.
12557
12558 2014-02-19 Tom Tromey <tromey@redhat.com>
12559
12560 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12561 argument.
12562 (target_remove_fork_catchpoint): Add argument.
12563 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12564 (update_current_target): Update.
12565 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12566 argument.
12567
12568 2014-02-19 Tom Tromey <tromey@redhat.com>
12569
12570 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12571 argument.
12572 (target_insert_fork_catchpoint): Add argument.
12573 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12574 (update_current_target): Update.
12575 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12576 argument.
12577
12578 2014-02-19 Tom Tromey <tromey@redhat.com>
12579
12580 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12581 argument.
12582 (target_post_startup_inferior): Add argument.
12583 * target.c (debug_to_post_startup_inferior): Add argument.
12584 (update_current_target): Update.
12585 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12586 argument.
12587 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12588 argument.
12589 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12590 argument.
12591 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12592 argument.
12593 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12594 'self' argument.
12595 (super_post_startup_inferior): Likewise.
12596 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12597 'self' argument.
12598 (super_post_startup_inferior): Likewise.
12599 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12600 Add 'self' argument.
12601 (super_post_startup_inferior): Likewise.
12602
12603 2014-02-19 Tom Tromey <tromey@redhat.com>
12604
12605 * target.h (struct target_ops) <to_load>: Add argument.
12606 * target.c (target_load): Add argument.
12607 (debug_to_load): Add argument.
12608 (update_current_target): Update.
12609 * remote.c (remote_load): Add 'self' argument.
12610 * remote-sim.c (gdbsim_load): Add 'self' argument.
12611 * remote-mips.c (mips_load): Add 'self' argument.
12612 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12613 * monitor.c (monitor_load): Add 'self' argument.
12614 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12615
12616 2014-02-19 Tom Tromey <tromey@redhat.com>
12617
12618 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12619 (target_terminal_info): Add argument.
12620 * target.c (debug_to_terminal_info): Add argument.
12621 (default_terminal_info): Likewise.
12622 * inflow.c (child_terminal_info): Add 'self' argument.
12623 * inferior.h (child_terminal_info): Add 'self' argument.
12624 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12625
12626 2014-02-19 Tom Tromey <tromey@redhat.com>
12627
12628 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12629 argument.
12630 (target_terminal_save_ours): Add argument.
12631 * target.c (debug_to_terminal_save_ours): Add argument.
12632 (update_current_target): Update.
12633 * inflow.c (terminal_save_ours): Add 'self' argument.
12634 * inferior.h (terminal_save_ours): Add 'self' argument.
12635
12636 2014-02-19 Tom Tromey <tromey@redhat.com>
12637
12638 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12639 (target_terminal_ours): Add argument.
12640 * target.c (debug_to_terminal_ours): Add argument.
12641 (update_current_target): Update.
12642 * remote.c (remote_terminal_ours): Add 'self' argument.
12643 (remote_close): Update.
12644 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12645 * inflow.c (terminal_ours): Add 'self' argument.
12646 * inferior.h (terminal_ours): Add 'self' argument.
12647 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12648
12649 2014-02-19 Pedro Alves <palves@redhat.com>
12650 Tom Tromey <tromey@redhat.com>
12651
12652 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12653 argument.
12654 (target_terminal_ours_for_output): Add argument.
12655 * target.c (debug_to_terminal_ours_for_output): Add argument.
12656 (update_current_target): Update.
12657 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12658 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12659 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12660
12661 2014-02-19 Tom Tromey <tromey@redhat.com>
12662
12663 * target.h (struct target_ops) <to_terminal_inferior>: Add
12664 argument.
12665 * target.c (target_terminal_inferior): Add argument.
12666 (update_current_target): Update.
12667 * remote.c (remote_terminal_inferior): Add 'self' argument.
12668 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12669 * inflow.c (terminal_inferior): Add 'self' argument.
12670 * inferior.h (terminal_inferior): Add 'self' argument.
12671 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12672 (go32_terminal_inferior): Add 'self' argument.
12673
12674 2014-02-19 Tom Tromey <tromey@redhat.com>
12675
12676 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12677 (target_terminal_init): Add argument.
12678 * target.c (debug_to_terminal_init): Add argument.
12679 (update_current_target): Update.
12680 * inflow.c (terminal_init_inferior): Add 'self' argument.
12681 * inferior.h (terminal_init_inferior): Add 'self' argument.
12682 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12683 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12684
12685 2014-02-19 Tom Tromey <tromey@redhat.com>
12686
12687 * target.h (struct target_ops)
12688 <to_can_accel_watchpoint_condition>: Add argument.
12689 (target_can_accel_watchpoint_condition): Add argument.
12690 * target.c (debug_to_can_accel_watchpoint_condition): Add
12691 argument.
12692 (update_current_target): Update.
12693 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12694 'self' argument.
12695
12696 2014-02-19 Tom Tromey <tromey@redhat.com>
12697
12698 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12699 Add argument.
12700 (target_region_ok_for_hw_watchpoint): Add argument.
12701 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12702 (default_region_ok_for_hw_watchpoint): Add argument.
12703 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12704 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12705 argument.
12706 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12707 argument.
12708 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12709 argument.
12710 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12711 'self' argument.
12712 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12713 'self' argument.
12714 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12715 'self' argument.
12716 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12717 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12718 'self' argument.
12719 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12720 Add 'self' argument.
12721
12722 2014-02-19 Tom Tromey <tromey@redhat.com>
12723
12724 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12725 argument.
12726 (target_insert_watchpoint): Add argument.
12727 * target.c (debug_to_insert_watchpoint): Add argument.
12728 (update_current_target): Update.
12729 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12730 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12731 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12732 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12733 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12734 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12735 argument.
12736 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12737 (procfs_insert_hw_watchpoint): Add 'self' argument.
12738 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12739 argument.
12740 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12741 argument.
12742 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12743 argument.
12744 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12745 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12746 argument.
12747 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12748 'self' argument.
12749
12750 2014-02-19 Tom Tromey <tromey@redhat.com>
12751
12752 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12753 argument.
12754 (target_remove_watchpoint): Add argument.
12755 * target.c (debug_to_remove_watchpoint): Add argument.
12756 (update_current_target): Update.
12757 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12758 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12759 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12760 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12761 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12762 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12763 argument.
12764 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12765 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12766 argument.
12767 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12768 argument.
12769 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12770 argument.
12771 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12772 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12773 argument.
12774 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12775 'self' argument.
12776
12777 2014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12780 argument.
12781 (target_remove_hw_breakpoint): Add argument.
12782 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12783 (update_current_target): Update.
12784 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12785 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12786 argument.
12787 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12788 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12789 argument.
12790 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12791 'self' argument.
12792
12793 2014-02-19 Tom Tromey <tromey@redhat.com>
12794
12795 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12796 argument.
12797 (target_insert_hw_breakpoint): Add argument.
12798 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12799 (update_current_target): Update.
12800 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12801 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12802 argument.
12803 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12804 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12805 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12806 argument.
12807 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12808 'self' argument.
12809
12810 2014-02-19 Tom Tromey <tromey@redhat.com>
12811
12812 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12813 argument.
12814 (target_can_use_hardware_watchpoint): Add argument.
12815 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12816 (update_current_target): Update.
12817 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12818 argument.
12819 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12820 argument.
12821 * remote.c (remote_check_watch_resources): Add 'self' argument.
12822 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12823 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12824 argument.
12825 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12826 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12827 argument.
12828 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12829 argument.
12830 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12831 argument.
12832 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12833 argument.
12834 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12835 argument.
12836 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12837 argument.
12838 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12839 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12840 argument.
12841 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12842 'self' argument.
12843
12844 2014-02-19 Tom Tromey <tromey@redhat.com>
12845
12846 * target.h (struct target_ops) <to_post_attach>: Add argument.
12847 (target_post_attach): Add argument.
12848 * target.c (debug_to_post_attach): Add argument.
12849 (update_current_target): Update.
12850 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12851 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12852 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12853 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12854 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12855
12856 2014-02-19 Tom Tromey <tromey@redhat.com>
12857
12858 * windows-nat.c (windows_close): Add 'self' argument.
12859 * tracepoint.c (tfile_close): Add 'self' argument.
12860 * target.h (struct target_ops) <to_close>: Add argument.
12861 * target.c (target_close): Add argument.
12862 (update_current_target): Update.
12863 * remote.c (remote_close): Add 'self' argument.
12864 * remote-sim.c (gdbsim_close): Add 'self' argument.
12865 * remote-mips.c (mips_close): Add 'self' argument.
12866 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12867 * record-full.c (record_full_close): Add 'self' argument.
12868 * record-btrace.c (record_btrace_close): Add 'self' argument.
12869 * monitor.h (monitor_close): Add 'self' argument.
12870 * monitor.c (monitor_close): Add 'self' argument.
12871 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12872 * linux-nat.c (linux_nat_close): Add argument.
12873 * go32-nat.c (go32_close): Add 'self' argument.
12874 * exec.c (exec_close_1): Add 'self' argument.
12875 * ctf.c (ctf_close): Add 'self' argument.
12876 * corelow.c (core_close): Add 'self' argument.
12877 (core_close_cleanup): Update.
12878 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12879 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12880
12881 2014-02-19 Tom Tromey <tromey@redhat.com>
12882
12883 * remote.c (remote_load): New function.
12884 (init_remote_ops): Use it.
12885
12886 2014-02-19 Tom Tromey <tromey@redhat.com>
12887
12888 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12889 argument.
12890 * common/linux-btrace.h (linux_supports_btrace): Update.
12891 * remote.c (remote_supports_btrace): Add "self" argument.
12892 * target-delegates.c: Rebuild.
12893 * target.c (target_supports_btrace): Remove.
12894 * target.h (struct target_ops) <to_supports_btrace>: Add
12895 target_ops argument.
12896 (target_supports_btrace): New define.
12897
12898 2014-02-19 Tom Tromey <tromey@redhat.com>
12899
12900 * record-full.c (record_full_beneath_to_resume_ops)
12901 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12902 (record_full_beneath_to_wait)
12903 (record_full_beneath_to_store_registers_ops)
12904 (record_full_beneath_to_store_registers)
12905 (record_full_beneath_to_xfer_partial_ops)
12906 (record_full_beneath_to_xfer_partial)
12907 (record_full_beneath_to_insert_breakpoint_ops)
12908 (record_full_beneath_to_insert_breakpoint)
12909 (record_full_beneath_to_remove_breakpoint_ops)
12910 (record_full_beneath_to_remove_breakpoint)
12911 (record_full_beneath_to_stopped_by_watchpoint)
12912 (record_full_beneath_to_stopped_data_address)
12913 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12914 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12915 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12916 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12917 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12918 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12919 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12920 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12921 (record_full_resume, record_full_wait_1)
12922 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12923 (record_full_store_registers, record_full_xfer_partial)
12924 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12925 (record_full_async, record_full_core_xfer_partial): Use target
12926 delegation.
12927 * target-delegates.c: Rebuild.
12928 * target.c (current_xfer_partial): Remove.
12929 (update_current_target): Do not INHERIT or de_fault
12930 to_insert_breakpoint, to_remove_breakpoint,
12931 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12932 to_is_async_p, to_async. Do not set to_xfer_partial field.
12933 (default_xfer_partial): Simplify.
12934 (current_xfer_partial): Remove.
12935 (target_wait, target_resume): Simplify.
12936 (find_default_can_async_p, find_default_is_async_p): Update.
12937 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12938 to_xfer_partial, to_stopped_by_watchpoint,
12939 to_stopped_data_address.
12940 (target_store_registers): Simplify.
12941 (forward_target_remove_breakpoint)
12942 (forward_target_insert_breakpoint): Remove.
12943 (target_remove_breakpoint, target_insert_breakpoint)
12944 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12945 * target.h (struct target_ops) <to_resume, to_wait,
12946 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12947 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12948 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12949 markup.
12950 (forward_target_remove_breakpoint)
12951 (forward_target_insert_breakpoint): Remove.
12952 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12953 directly.
12954 (record_btrace_insert_breakpoint): Delegate directly.
12955
12956 2014-02-19 Tom Tromey <tromey@redhat.com>
12957
12958 PR build/7701:
12959 * target-delegates.c: New file.
12960 * target.c: Include target-delegates.c.
12961 (init_dummy_target): Call install_dummy_methods.
12962 (complete_target_initialization): Call install_delegators.
12963 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12964 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12965 * make-target-delegates: New file.
12966
12967 2014-02-19 Tom Tromey <tromey@redhat.com>
12968
12969 * record.c (find_record_target): Use find_target_at.
12970 * target.c (find_target_at): New function.
12971 * target.h (find_target_at): Declare.
12972
12973 2014-02-19 Tom Tromey <tromey@redhat.com>
12974
12975 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12976 Add 'ops' argument.
12977 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12978 'ops' argument.
12979 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12980 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12981 'ops' argument.
12982 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12983 argument.
12984 * linux-nat.c (save_sigtrap): Update.
12985 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12986 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12987 (linux_nat_close): Update.
12988 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12989 argument.
12990 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12991 argument.
12992 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12993 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12994 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12995 (tmp_to_async): Add 'ops' argument.
12996 (record_full_stopped_by_watchpoint, record_full_async)
12997 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12998 argument.
12999 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13000 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13001 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13002 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13003 (remote_is_async_p, remote_async): Add 'ops' argument.
13004 (remote_stopped_data_address): Update.
13005 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13006 * target.c (update_current_target)
13007 (find_default_can_async_p, find_default_is_async_p): Update.
13008 (init_dummy_target): Update.
13009 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13010 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13011 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13012 (target_can_async_p, target_is_async_p, target_async)
13013 (target_stopped_by_watchpoint): Update.
13014
13015 2014-02-19 Yao Qi <yao@codesourcery.com>
13016
13017 PR gdb/16220
13018 * gdbarch.sh: Remove startup_gdbarch.
13019 * gdbarch.c: Regenerated.
13020 * gdbarch.h: Likewise.
13021
13022 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13023
13024 * rl78-tdep.c (rl78_g10_register_name): New function.
13025 (rl78_return_value): Add g10 support.
13026 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13027 g10.
13028
13029 2014-02-17 Doug Evans <xdje42@gmail.com>
13030
13031 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13032 (SUBDIR_GUILE_SRCS): Ditto.
13033 (scm-gsmob.o): Ditto.
13034
13035 2014-02-17 Yao Qi <yao@codesourcery.com>
13036
13037 * gnu-nat.c (ILL_RPC): Declare defined function.
13038
13039 2014-02-17 Yao Qi <yao@codesourcery.com>
13040
13041 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13042 mach_msg_type_number_t.
13043 (gnu_write_inferior): Likewise.
13044
13045 2014-02-17 Yao Qi <yao@codesourcery.com>
13046
13047 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13048 in format string.
13049 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13050 (inf_validate_procs, inf_signal): Likewise.
13051 (S_exception_raise_request): Likewise.
13052 (do_mach_notify_dead_name): Likewise.
13053 (steal_exc_port): Likewise.
13054 (gnu_read_inferior): Change 'copy_count''s type to
13055 mach_msg_type_number_t.
13056 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13057 format string.
13058
13059 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13060
13061 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13062 flag. Adjust all users; in particular...
13063 (gnu_wait): ..., don't decrement its value in here...
13064 (gnu_create_inferior): ..., and instead set the flag in here,
13065 around the startup_inferior call, and call that one with
13066 START_INFERIOR_TRAPS_EXPECTED.
13067
13068 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13069 (ILL_RPC): ... new macro.
13070 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13071 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13072 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13073 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13074 functions with ILL_RPC macro.
13075 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13076 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13077 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13078 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13079 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13080 (S_proc_getlogin_reply, S_proc_getsid_reply)
13081 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13082 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13083 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13084 (S_proc_getnports_reply, S_proc_is_important_reply)
13085 (S_proc_get_code_reply): New stub functions, generated with
13086 ILL_RPC macro.
13087
13088 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13089 collected the type check structures.
13090
13091 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13092
13093 2014-02-14 Doug Evans <dje@google.com>
13094
13095 * target.c (target_write_partial): Fix result type.
13096
13097 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13098
13099 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13100 the proper offsets to access fpregset_t.
13101
13102 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13103
13104 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13105 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13106 * h8300-tdep.c (setmachinelist): Remove global.
13107 * hppa-tdep.c (hppa_sigtramp): Remove global.
13108 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13109 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13110 * ravenscar-thread.c (update_target_observer): Remove global.
13111 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13112
13113 2014-02-12 Tom Tromey <tromey@redhat.com>
13114
13115 * common/rsp-low.c: Update comments.
13116 * common/rsp-low.h: Update comments.
13117
13118 2014-02-12 Tom Tromey <tromey@redhat.com>
13119
13120 * common/rsp-low.c (convert_ascii_to_int): Remove.
13121 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13122
13123 2014-02-12 Tom Tromey <tromey@redhat.com>
13124
13125 * common/rsp-low.h (unhexify): Don't declare.
13126 * common/rsp-low.c (unhexify): Remove.
13127
13128 2014-02-12 Tom Tromey <tromey@redhat.com>
13129
13130 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13131 * common/rsp-low.c (convert_int_to_ascii): Remove.
13132
13133 2014-02-12 Tom Tromey <tromey@redhat.com>
13134
13135 * common/rsp-low.h (hexify): Don't declare.
13136 * common/rsp-low.c (hexify): Remove.
13137
13138 2014-02-12 Tom Tromey <tromey@redhat.com>
13139
13140 * common/rsp-low.c (hexify): Never take strlen of argument.
13141
13142 2014-02-12 Tom Tromey <tromey@redhat.com>
13143
13144 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13145 * remote.c (extended_remote_run, remote_rcmd)
13146 (remote_download_trace_state_variable, remote_save_trace_data)
13147 (remote_set_trace_notes): Update.
13148 * tracepoint.c (encode_source_string, tfile_write_status)
13149 (tfile_write_uploaded_tsv): Update.
13150
13151 2014-02-12 Tom Tromey <tromey@redhat.com>
13152
13153 * tracepoint.c: Include rsp-low.h.
13154 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13155 * remote.c: Include rsp-low.h.
13156 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13157 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13158 (remote_unescape_input): Move to common/rsp-low.c.
13159 * common/rsp-low.h: New file.
13160 * common/rsp-low.c: New file.
13161 * Makefile.in (SFILES): Add common/rsp-low.c.
13162 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13163 (COMMON_OBS): Add rsp-low.o.
13164 (rsp-low.o): New target.
13165
13166 2014-02-12 Tom Tromey <tromey@redhat.com>
13167
13168 * utils.h: Include print-utils.h.
13169 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13170 (int_string, core_addr_to_string, core_addr_to_string_nz)
13171 (hex_string, hex_string_custom): Don't declare.
13172 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13173 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13174 (hex_string_custom, int_string, core_addr_to_string)
13175 (core_addr_to_string_nz, host_address_to_string): Move to
13176 common/print-utils.c.
13177 * common/print-utils.h: New file.
13178 * common/print-utils.c: New file
13179 * Makefile.in (SFILES): Add common/print-utils.c.
13180 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13181 (COMMON_OBS): Add print-utils.o.
13182 (print-utils.o): New target.
13183
13184 2014-02-12 Tom Tromey <tromey@redhat.com>
13185
13186 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13187
13188 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13189
13190 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13191
13192 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13193
13194 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13195 if a PT_IO ptrace request returns sucessfully but indicates that 0
13196 bytes were transferred.
13197
13198 2014-02-12 Pedro Alves <palves@redhat.com>
13199 Kevin Buettner <kevinb@redhat.com>
13200
13201 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13202 TYPE_INSTANCE_FLAG_CODE_SPACE.
13203
13204 2014-02-12 Pedro Alves <palves@redhat.com>
13205
13206 * h8300-tdep.c (pseudo_from_raw_register)
13207 (raw_from_pseudo_register): New functions.
13208 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13209 them.
13210
13211 2014-02-12 Pedro Alves <palves@redhat.com>
13212
13213 * h8300-tdep.c (h8300_register_sim_regno): New function.
13214 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13215 gdbarch_register_sim_regno hook.
13216
13217 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13218
13219 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13220
13221 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13222
13223 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13224
13225 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13226
13227 * obsd-tdep.h (obsd_init_abi): New prototype.
13228 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13229 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13230 (obsd_init_abi): New functions.
13231 * i386obsd-tdep.c: Include "obsd-tdep.h".
13232 (i386obsd_init_abi): Call obsd_init_abi.
13233 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13234 (amd64obsd_init_abi): Call obsd_init_abi.
13235 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13236 obsd-tdep.c to gdb_target_obs.
13237
13238 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13239
13240 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13241 double float arguments to 16-byte in the argument slots.
13242
13243 2014-02-11 Doug Evans <xdje42@gmail.com>
13244
13245 * configure.ac: Don't crash if pkg-config is not found and guile
13246 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13247 in guile checks.
13248 * configure: Regenerate.
13249
13250 2014-02-11 Yao Qi <yao@codesourcery.com>
13251
13252 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13253 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13254 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13255 * gnu-nat.c (gnu_xfer_memory): Likewise.
13256 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13257 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13258 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13259 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13260
13261 2014-02-11 Yao Qi <yao@codesourcery.com>
13262
13263 * target.h (enum target_xfer_error): Rename to ...
13264 (enum target_xfer_status): ... it. New. All users updated.
13265 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13266 New.
13267 (TARGET_XFER_STATUS_ERROR_P): New macro.
13268 (target_xfer_error_to_string): Remove declaration.
13269 (target_xfer_status_to_string): Declare.
13270 (target_xfer_partial_ftype): Adjust it.
13271 (struct target_ops) <to_xfer_partial>: Return
13272 target_xfer_status. Add argument xfered_len. Update
13273 comments.
13274 * target.c (target_xfer_error_to_string): Rename to ...
13275 (target_xfer_status_to_string): ... it. New. All callers
13276 updated.
13277 (target_read_live_memory): Likewise. Call target_xfer_partial
13278 instead of target_read.
13279 (memory_xfer_live_readonly_partial): Return
13280 target_xfer_status. Add argument xfered_len.
13281 (raw_memory_xfer_partial): Likewise.
13282 (memory_xfer_partial_1): Likewise.
13283 (memory_xfer_partial): Likewise.
13284 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13285 properly. Update debug message.
13286 (default_xfer_partial, current_xfer_partial): Likewise.
13287 (target_write_partial): Likewise.
13288 (target_read_partial): Likewise. All callers updated.
13289 (read_whatever_is_readable): Likewise.
13290 (target_write_with_progress): Likewise.
13291 (target_read_alloc_1): Likewise.
13292
13293 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13294 * auxv.c (procfs_xfer_auxv): Likewise.
13295 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13296 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13297 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13298 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13299 * corefile.c (read_memory): Adjust.
13300 * corelow.c (core_xfer_partial): Likewise.
13301 * ctf.c (ctf_xfer_partial): Likewise.
13302 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13303 updated.
13304 (darwin_xfer_partial): Likewise.
13305 * exec.c (section_table_xfer_memory_partial): Likewise. All
13306 callers updated.
13307 (exec_xfer_partial): Likewise.
13308 * exec.h (section_table_xfer_memory_partial): Update
13309 declaration.
13310 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13311 negative.
13312 (gnu_xfer_partial): Likewise.
13313 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13314 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13315 (ia64_hpux_xfer_solib_got): Likewise.
13316 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13317 type of 'partial_len' to ULONGEST.
13318 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13319 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13320 (linux_nat_xfer_partial): Likewise.
13321 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13322 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13323 * monitor.c (monitor_xfer_memory): Likewise.
13324 (monitor_xfer_partial): Likewise.
13325 * procfs.c (procfs_xfer_partial): Likewise.
13326 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13327 * record-full.c (record_full_xfer_partial): Likewise.
13328 (record_full_core_xfer_partial): Likewise.
13329 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13330 (gdbsim_xfer_partial): Likewise.
13331 * remote.c (remote_write_bytes_aux): Likewise. All callers
13332 updated.
13333 (remote_write_bytes, remote_read_bytes): Likewise. All
13334 callers updated.
13335 (remote_flash_erase): Likewise. All callers updated.
13336 (remote_write_qxfer): Likewise. All callers updated.
13337 (remote_read_qxfer): Likewise. All callers updated.
13338 (remote_xfer_partial): Likewise.
13339 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13340 (rs6000_xfer_shared_libraries): Likewise.
13341 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13342 (sol_thread_xfer_partial): Likewise.
13343 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13344 (sparc_xfer_partial): Likewise.
13345 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13346 updated.
13347 (spu_xfer_partial): Likewise.
13348 * spu-multiarch.c (spu_xfer_partial): Likewise.
13349 * tracepoint.c (tfile_xfer_partial): Likewise.
13350 * windows-nat.c (windows_xfer_memory): Likewise.
13351 (windows_xfer_shared_libraries): Likewise.
13352 (windows_xfer_partial): Likewise.
13353 * valprint.c: Replace 'target_xfer_error' with
13354 'target_xfer_status' in comments.
13355
13356 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13357
13358 Checked in by Joel Brobecker <brobecker@adacore.com>.
13359 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13360
13361 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13362
13363 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13364 function parameters.
13365
13366 2014-02-10 Will Newton <will.newton@linaro.org>
13367
13368 * elfread.c (elf_rel_plt_read): Look for a .got section if
13369 looking up .got.plt fails.
13370 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13371 on address passed to elf_gnu_ifunc_record_cache.
13372 (elf_gnu_ifunc_resolve_addr): Likewise.
13373 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13374
13375 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13376
13377 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13378 (X_RETTURN): New macro.
13379 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13380
13381 * sparc64-tdep.c (sparc64_init_abi): Hook
13382 sparc_in_function_epilogue_p.
13383
13384 2014-02-10 Gary Benson <gbenson@redhat.com>
13385
13386 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13387 Rename name_matcher to symbol_matcher.
13388
13389 2014-02-10 Gary Benson <gbenson@redhat.com>
13390
13391 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13392 Use expand_symtabs_file_matcher_ftype and
13393 expand_symtabs_symbol_matcher_ftype.
13394
13395 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13396
13397 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13398 (struct ada_symbol_cache): New.
13399 (ada_free_symbol_cache): Forward declare.
13400 (struct ada_pspace_data): New.
13401 (ada_pspace_data_handle): New static global.
13402 (get_ada_pspace_data, ada_pspace_data_cleanup)
13403 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13404 (cache_space, cache): Delete, now folded inside struct
13405 ada_pspace_data.
13406 (ada_get_symbol_cache): New function.
13407 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13408 implementation.
13409 (_initialize_ada_language): Remove initialization of cache_space.
13410 Move call to observer_attach_inferior_exit up, grouping it
13411 with the other observer registrations inside this function.
13412 Rename command to be more general. Add call to
13413 register_program_space_data_with_cleanup.
13414
13415 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13416
13417 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13418 ada_new_objfile_observer.
13419 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13420 (_initialize_tasks): Update uses of ada_new_objfile_observer
13421 and ada_tasks_normal_stop_observer.
13422
13423 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13424
13425 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13426 returned by the 'Length attribute to integer.
13427
13428 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13429
13430 * ada-lang.c (_initialize_ada_language): Initialize
13431 cache_space obstack.
13432
13433 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13434
13435 * ada-lang.c (HASH_SIZE): New macro.
13436 (struct cache_entry): New type.
13437 (cache_space, cache): New static globals.
13438 (ada_clear_symbol_cache, find_entry): New functions.
13439 (lookup_cached_symbol, cache_symbol): Implement.
13440 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13441 (_initialize_ada_language): Attach ada_new_objfile_observer
13442 and ada_free_objfile_observer.
13443
13444 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13445
13446 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13447 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13448 struct block * parameter.
13449 (ada_lookup_symbol_list_worker): Constify local variable "block".
13450 Remove cast which is no longer necessary.
13451
13452 2014-02-10 Doug Evans <xdje42@gmail.com>
13453
13454 Add Guile as an extension language.
13455 * NEWS: Mention Guile scripting.
13456 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13457 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13458 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13459 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13460 (CLIBS): Add GUILE_LIBS.
13461 (install-guile): New rule.
13462 (guile.o): New rule.
13463 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13464 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13465 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13466 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13467 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13468 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13469 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13470 * configure.ac: New option --with-guile.
13471 * configure: Regenerate.
13472 * config.in: Regenerate.
13473 * auto-load.c: Remove #include "python/python.h". Add #include
13474 "gdb/section-scripts.h".
13475 (source_section_scripts): Handle Guile scripts.
13476 (_initialize_auto_load): Add name of Guile objfile script to
13477 scripts-directory help text.
13478 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13479 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13480 (struct breakpoint): New member scm_bp_object.
13481 * defs.h (enum command_control_type): New value guile_control.
13482 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13483 "extension.h".
13484 (show_user): Update comment.
13485 (_initialize_cli_cmds): Update help text for "show user". Update help
13486 text for max-user-call-depth.
13487 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13488 "extension.h".
13489 (multi_line_command_p): Add guile_control.
13490 (print_command_lines): Handle guile_control.
13491 (execute_control_command, recurse_read_control_structure): Ditto.
13492 (process_next_line): Recognize "guile" commands.
13493 * disasm.c (gdb_disassemble_info): Make non-static.
13494 * disasm.h: #include "dis-asm.h".
13495 (struct gdbarch): Add forward decl.
13496 (gdb_disassemble_info): Declare.
13497 * extension.c: #include "guile/guile.h".
13498 (extension_languages): Add guile.
13499 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13500 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13501 * gdbtypes.c (get_unsigned_type_max): New function.
13502 (get_signed_type_minmax): New function.
13503 * gdbtypes.h (get_unsigned_type_max): Declare.
13504 (get_signed_type_minmax): Declare.
13505 * guile/README: New file.
13506 * guile/guile-internal.h: New file.
13507 * guile/guile.c: New file.
13508 * guile/guile.h: New file.
13509 * guile/scm-arch.c: New file.
13510 * guile/scm-auto-load.c: New file.
13511 * guile/scm-block.c: New file.
13512 * guile/scm-breakpoint.c: New file.
13513 * guile/scm-disasm.c: New file.
13514 * guile/scm-exception.c: New file.
13515 * guile/scm-frame.c: New file.
13516 * guile/scm-gsmob.c: New file.
13517 * guile/scm-iterator.c: New file.
13518 * guile/scm-lazy-string.c: New file.
13519 * guile/scm-math.c: New file.
13520 * guile/scm-objfile.c: New file.
13521 * guile/scm-ports.c: New file.
13522 * guile/scm-pretty-print.c: New file.
13523 * guile/scm-safe-call.c: New file.
13524 * guile/scm-string.c: New file.
13525 * guile/scm-symbol.c: New file.
13526 * guile/scm-symtab.c: New file.
13527 * guile/scm-type.c: New file.
13528 * guile/scm-utils.c: New file.
13529 * guile/scm-value.c: New file.
13530 * guile/lib/gdb.scm: New file.
13531 * guile/lib/gdb/boot.scm: New file.
13532 * guile/lib/gdb/experimental.scm: New file.
13533 * guile/lib/gdb/init.scm: New file.
13534 * guile/lib/gdb/iterator.scm: New file.
13535 * guile/lib/gdb/printing.scm: New file.
13536 * guile/lib/gdb/types.scm: New file.
13537 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13538 (VPATH): Add $(GUILE_SRCDIR).
13539 (GUILE_DIR): New variable.
13540 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13541 (all): Add stamp-guile dependency.
13542 (stamp-guile): New rule.
13543 (clean-guile, install-guile, uninstall-guile): New rules.
13544 (install-only): Add install-guile dependency.
13545 (uninstall): Add uninstall-guile dependency.
13546 (clean): Add clean-guile dependency.
13547
13548 2014-02-09 Doug Evans <xdje42@gmail.com>
13549
13550 Revert this patch (which I approved, mea culpa).
13551
13552 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13553
13554 * Makefile.in (all-lib): Remove.
13555 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13556
13557 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13558
13559 Fix Python stack corruption.
13560 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13561 gdb_py_longest.
13562
13563 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13564
13565 * Makefile.in (all-lib): Remove.
13566 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13567
13568 2014-02-07 Doug Evans <dje@google.com>
13569
13570 * extension-priv.h (extension_language_script_ops): Add comment.
13571 (extension_language_ops): Add comment.
13572 (active_ext_lang_state): Fix typo in comment.
13573
13574 2014-02-07 Pedro Alves <palves@redhat.com>
13575
13576 PR breakpoints/16292
13577 * infrun.c (handle_signal_stop) <signal arrives while stepping
13578 over a breakpoint>: Switch back to the stepping thread.
13579
13580 2014-02-07 Yao Qi <yao@codesourcery.com>
13581
13582 * target.c (target_xfer_partial): Return zero if LEN is zero.
13583
13584 2014-02-07 Yao Qi <yao@codesourcery.com>
13585
13586 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13587 (ld_so_xfer_auxv): Likewise.
13588 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13589 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13590 * corelow.c (core_xfer_partial): Likewise.
13591 * ctf.c (ctf_xfer_partial): Likewise.
13592 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13593 (darwin_xfer_partial): Likewise.
13594 * exec.c (exec_xfer_partial): Likewise.
13595 * gnu-nat.c (gnu_xfer_partial): Likewise.
13596 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13597 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13598 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13599 * linux-nat.c (linux_xfer_siginfo): Likewise.
13600 (linux_proc_xfer_spu): Likewise.
13601 * procfs.c (procfs_xfer_partial): Likewise.
13602 * record-full.c (record_full_xfer_partial): Likewise.
13603 (record_full_core_xfer_partial): Likewise.
13604 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13605 * remote.c (remote_write_qxfer): Likewise.
13606 (remote_write_qxfer, remote_read_qxfer): Likewise.
13607 (remote_xfer_partial): Likewise.
13608 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13609 (rs6000_xfer_shared_libraries): Likewise.
13610 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13611 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13612 (spu_xfer_partial): Likewise.
13613 * target.c (memory_xfer_partial_1): Likewise.
13614 * tracepoint.c (tfile_xfer_partial): Likewise.
13615 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13616 (windows_xfer_partial): Likewise.
13617
13618 2014-02-07 Yao Qi <yao@codesourcery.com>
13619
13620 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13621 comments.
13622 (core_xfer_shared_libraries_aix): Likewise.
13623 * gdbarch.c, gdbarch.h: Regenerated.
13624 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13625 ULONGEST. Change 'len_avail' type to ULONGEST.
13626 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13627 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13628 declaration.
13629 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13630
13631 2014-02-07 Yao Qi <yao@codesourcery.com>
13632
13633 * corefile.c (memory_error): Get 'exception' from ERR and pass
13634 'exception' to throw_error.
13635
13636 2014-02-06 Doug Evans <xdje42@gmail.com>
13637
13638 * configure.ac (libpython checking): Remove all but python.o from
13639 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13640 * configure: Regenerate.
13641
13642 * Makefile.in (SFILES): Add extension.c.
13643 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13644 (COMMON_OBS): Add extension.o.
13645 * extension.h: New file.
13646 * extension-priv.h: New file.
13647 * extension.c: New file.
13648
13649 * python/python-internal.h: #include "extension.h".
13650 (gdbpy_auto_load_enabled): Declare.
13651 (gdbpy_apply_val_pretty_printer): Declare.
13652 (gdbpy_apply_frame_filter): Declare.
13653 (gdbpy_preserve_values): Declare.
13654 (gdbpy_breakpoint_cond_says_stop): Declare.
13655 (gdbpy_breakpoint_has_cond): Declare.
13656 (void source_python_script_for_objfile): Delete.
13657 * python/python.c: #include "extension-priv.h".
13658 Delete inclusion of "observer.h".
13659 (extension_language_python): Moved here and renamed from
13660 script_language_python in py-auto-load.c.
13661 Redefined to be of type extension_language_defn.
13662 (python_extension_script_ops): New global.
13663 (python_extension_ops): New global.
13664 (struct python_env): New member previous_active.
13665 (restore_python_env): Call restore_active_ext_lang.
13666 (ensure_python_env): Call set_active_ext_lang.
13667 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13668 New arg extlang.
13669 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13670 New arg extlang.
13671 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13672 New arg extlang.
13673 (gdbpy_eval_from_control_command): Renamed from
13674 eval_python_from_control_command, made static. New arg extlang.
13675 (gdbpy_source_script) Renamed from source_python_script, made static.
13676 New arg extlang.
13677 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13678 result to int. New arg extlang.
13679 (gdbpy_source_objfile_script): Renamed from
13680 source_python_script_for_objfile, made static. New arg extlang.
13681 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13682 static. New args extlang, extlang_printers. Change result type to
13683 "void".
13684 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13685 static. New arg extlang. Rename arg printers to extlang_printers
13686 and change type to ext_lang_type_printers *.
13687 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13688 static. Replace argument arg with extlang, extlang_printers.
13689 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13690 (!HAVE_PYTHON, source_python_script): Delete.
13691 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13692 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13693 (!HAVE_PYTHON, start_type_printers): Delete.
13694 (!HAVE_PYTHON, apply_type_printers): Delete.
13695 (!HAVE_PYTHON, free_type_printers): Delete.
13696 (_initialize_python): Delete call to observer_attach_before_prompt.
13697 (finalize_python): Set/restore active extension language.
13698 (gdbpy_finish_initialization) Renamed from
13699 finish_python_initialization, made static. New arg extlang.
13700 (gdbpy_initialized): New function.
13701 * python/python.h: #include "extension.h". Delete #include
13702 "value.h", "mi/mi-cmds.h".
13703 (extension_language_python): Declare.
13704 (GDBPY_AUTO_FILE_NAME): Delete.
13705 (enum py_bt_status): Moved to extension.h and renamed to
13706 ext_lang_bt_status.
13707 (enum frame_filter_flags): Moved to extension.h.
13708 (enum py_frame_args): Moved to extension.h and renamed to
13709 ext_lang_frame_args.
13710 (finish_python_initialization): Delete.
13711 (eval_python_from_control_command): Delete.
13712 (source_python_script): Delete.
13713 (apply_val_pretty_printer): Delete.
13714 (apply_frame_filter): Delete.
13715 (preserve_python_values): Delete.
13716 (gdbpy_script_language_defn): Delete.
13717 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13718 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13719
13720 * auto-load.c: #include "extension.h".
13721 (GDB_AUTO_FILE_NAME): Delete.
13722 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13723 (script_language_gdb): Delete, moved to extension.c and renamed to
13724 extension_language_gdb.
13725 (source_gdb_script_for_objfile): Delete.
13726 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13727 (loaded_script): Change type of language member to
13728 struct extension_language_defn *.
13729 (init_loaded_scripts_info): Initialize
13730 unsupported_script_warning_printed.
13731 (maybe_add_script): Make static. Change type of language arg to
13732 struct extension_language_defn *.
13733 (clear_section_scripts): Reset unsupported_script_warning_printed.
13734 (auto_load_objfile_script_1): Rewrite to use extension language API.
13735 (auto_load_objfile_script): Make public. Remove support-compiled-in
13736 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13737 (source_section_scripts): Rewrite to use extension language API.
13738 (load_auto_scripts_for_objfile): Rewrite to use
13739 auto_load_scripts_for_objfile.
13740 (collect_matching_scripts_data): Change type of language member to
13741 struct extension_language_defn *.
13742 (auto_load_info_scripts): Change type of language arg to
13743 struct extension_language_defn *.
13744 (unsupported_script_warning_print): New function.
13745 (script_not_found_warning_print): Make static.
13746 (_initialize_auto_load): Rewrite construction of scripts-directory
13747 help.
13748 * auto-load.h (struct objfile): Add forward decl.
13749 (struct script_language): Delete.
13750 (struct auto_load_pspace_info): Add forward decl.
13751 (struct extension_language_defn): Add forward decl.
13752 (maybe_add_script): Delete.
13753 (auto_load_objfile_script): Declare.
13754 (script_not_found_warning_print): Delete.
13755 (auto_load_info_scripts): Update prototype.
13756 (auto_load_gdb_scripts_enabled): Declare.
13757 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13758 auto_load_python_scripts_enabled and made public.
13759 (script_language_python): Delete, moved to python.c.
13760 (gdbpy_script_language_defn): Delete.
13761 (info_auto_load_python_scripts): Update to use
13762 extension_language_python.
13763
13764 * breakpoint.c (condition_command): Replace call to
13765 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13766 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13767 with call to breakpoint_ext_lang_cond_says_stop.
13768 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13769 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13770 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13771 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13772 New arg slang.
13773 (local_setattro): Print name of extension language with existing
13774 stop condition.
13775
13776 * valprint.c (val_print, value_print): Update to call
13777 apply_ext_lang_val_pretty_printer.
13778 * cp-valprint.c (cp_print_value): Update call to
13779 apply_ext_lang_val_pretty_printer.
13780 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13781 (gdbpy_apply_val_pretty_printer): Renamed from
13782 apply_val_pretty_printer. New arg extlang.
13783 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13784
13785 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13786 extension language API.
13787 * cli/cli-script.c (execute_control_command): Update to call
13788 eval_ext_lang_from_control_command.
13789
13790 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13791 enum ext_lang_bt_status values. Update call to
13792 apply_ext_lang_frame_filter.
13793 (mi_cmd_stack_list_locals): Ditto.
13794 (mi_cmd_stack_list_args): Ditto.
13795 (mi_cmd_stack_list_variables): Ditto.
13796 * mi/mi-main.c: Delete #include "python/python-internal.h".
13797 Add #include "extension.h".
13798 (mi_cmd_list_features): Replace reference to python internal variable
13799 gdb_python_initialized with call to ext_lang_initialized_p.
13800
13801 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13802 Update to use enum ext_lang_frame_args. Update to call
13803 apply_ext_lang_frame_filter.
13804 * python/py-framefilter.c (extract_sym): Update to use enum
13805 ext_lang_bt_status.
13806 (extract_value, py_print_type, py_print_value): Ditto.
13807 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13808 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13809 (py_print_frame): Ditto.
13810 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13811 New arg extlang. Update to use enum ext_lang_bt_status.
13812
13813 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13814 finish_python_initialization. Replace with call to
13815 finish_ext_lang_initialization.
13816
13817 * typeprint.c (do_free_global_table): Update to call
13818 free_ext_lang_type_printers.
13819 (create_global_typedef_table): Update to call
13820 start_ext_lang_type_printers.
13821 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13822 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13823 (type_print_options): Change type of global_printers from "void *"
13824 to "struct ext_lang_type_printers *".
13825
13826 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13827 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13828 (gdbpy_preserve_values): Renamed from preserve_python_values.
13829 New arg extlang.
13830 (!HAVE_PYTHON, preserve_python_values): Delete.
13831
13832 * utils.c (quit_flag): Delete, moved to extension.c.
13833 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13834 extension.c.
13835
13836 * eval.c: Delete #include "python/python.h".
13837 * main.c: Delete #include "python/python.h".
13838
13839 * defs.h: Update comment.
13840
13841 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13842
13843 GDB 7.7 released.
13844
13845 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13846
13847 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13848 defined.
13849
13850 2014-02-05 Yao Qi <yao@codesourcery.com>
13851
13852 * remote.c (remote_pass_signals): Remove local 'buf' and use
13853 rs->buf.
13854 (remote_program_signals): Likewise.
13855
13856 2014-02-05 Yao Qi <yao@codesourcery.com>
13857
13858 * ctf.c: Include "inferior.h" and "gdbthread.h".
13859 (CTF_PID): A new macro.
13860 (ctf_open): Call inferior_appeared and add_thread_silent.
13861 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13862 (ctf_thread_alive): New function.
13863 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13864
13865 2014-02-05 Yao Qi <yao@codesourcery.com>
13866
13867 Revert this patch:
13868
13869 2013-05-24 Yao Qi <yao@codesourcery.com>
13870
13871 * tracepoint.c (TFILE_PID): Remove.
13872 (tfile_open): Don't add thread and inferior.
13873 (tfile_close): Don't set 'inferior_ptid'. Don't call
13874 exit_inferior_silent.
13875 (tfile_thread_alive): Remove.
13876 (init_tfile_ops): Don't set field 'to_thread_alive' of
13877 tfile_ops.
13878
13879 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13880
13881 * remote.c (remote_start_remote): Call remote_check_symbols even
13882 if only symbol-file (not file) has been given.
13883
13884 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13885
13886 * gdbarch.sh (skip_entrypoint): New callback.
13887 * gdbarch.c, gdbarch.h: Regenerate.
13888 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13889 * infrun.c (fill_in_stop_func): Likewise.
13890 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13891 (ppc_elfv2_elf_make_msymbol_special): New function.
13892 (ppc_elfv2_skip_entrypoint): Likewise.
13893 (ppc_linux_init_abi): Install them for ELFv2.
13894
13895 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13896
13897 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13898 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13899 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13900 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13901 structures returned in GPRs.
13902
13903 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13904
13905 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13906 offset to the stack parameter list for the ELFv2 ABI.
13907
13908 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13909
13910 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13911 set_gdbarch_convert_from_func_ptr_addr and
13912 set_gdbarch_elf_make_msymbol_special for ELFv1.
13913 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13914 function descriptors on ELFv1.
13915 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13916 set up r12 at function entry.
13917
13918 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13919
13920 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13921 (struct gdbarch_tdep): New member elf_abi.
13922
13923 * rs6000-tdep.c: Include "elf/ppc64.h".
13924 (rs6000_gdbarch_init): Detect ELF ABI version.
13925
13926 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13927
13928 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13929 within a register pair holding a DFP 128-bit value on little-endian.
13930 (ppc64_sysv_abi_return_value_base): Likewise.
13931 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13932 (dfp_pseudo_register_write): Likewise.
13933
13934 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13935
13936 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13937 offset on little-endian when passing _Decimal32.
13938 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13939
13940 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13941
13942 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13943 of the overlapped FP register within the VSX register on little-
13944 endian platforms.
13945 (efpr_pseudo_register_write): Likewise.
13946
13947 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13948
13949 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13950 offset on little-endian when passing small structures.
13951
13952 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13953
13954 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13955 (struct ppc64_sysv_argpos): New data structure.
13956 (ppc64_sysv_abi_push_float): Remove.
13957 (ppc64_sysv_abi_push_val): New function.
13958 (ppc64_sysv_abi_push_integer): Likewise.
13959 (ppc64_sysv_abi_push_freg): Likewise.
13960 (ppc64_sysv_abi_push_vreg): Likewise.
13961 (ppc64_sysv_abi_push_param): Likewise.
13962 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13963 (ppc64_sysv_abi_return_value_base): New function.
13964 (ppc64_sysv_abi_return_value): Refactor to use it.
13965
13966 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13967
13968 * NEWS: Document new target powerpc64le-*-linux*.
13969
13970 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13971
13972 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13973 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13974 core dumps.
13975 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13976 register set used in ELF core dumps. Add floating-point register set.
13977
13978 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13979
13980 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13981 dwarf2_to_gdb[] table using symbolic constants. Adjust
13982 penultimate entry from number representing the PC register
13983 to symbolic constant representing the MDR register. Add
13984 constant for the PC register to the end of the table.
13985
13986 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13987
13988 * bsd-kvm.c: Include <sys/param.h>
13989
13990 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13991
13992 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13993
13994 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13995
13996 * ada-lang.h (clear_ada_sym_cache): Delete.
13997
13998 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13999
14000 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14001
14002 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14003
14004 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14005 the sigreturn register save area only if the syscall is
14006 sigreturn.
14007
14008 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14009
14010 * valops.c (value_slice): Minor reformatting.
14011
14012 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14013
14014 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14015
14016 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14017
14018 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14019 New static globals.
14020 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14021 (ada_ignore_descriptive_types_p): New static global.
14022 (find_parallel_type_by_descriptive_type): Return immediately
14023 if ada_ignore_descriptive_types_p is set.
14024 (_initialize_ada_language): Register new commands "maintenance
14025 set ada", "maintenance show ada", "maintenance set ada
14026 ignore-descriptive-types" and "maintenance show ada
14027 ignore-descriptive-types".
14028 * NEWS: Add entry for new "maint ada set/show
14029 ignore-descriptive-types" commands.
14030
14031 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14032
14033 * record-btrace.c (record_btrace_close): Call btrace_teardown
14034 for all threads.
14035
14036 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14037
14038 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14039 "ui-out.h".
14040
14041 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14042
14043 * ada-typeprint (type_is_full_subrange_of_target_type):
14044 New function.
14045 (print_range): Add parameter bounds_prefered_p. If not set,
14046 try printing range types using the name of their base type.
14047 (print_range_type): Add parameter bounds_prefered_p.
14048 Use it in call to print_range.
14049 (print_array_type, ada_print_type): Update calls to print_range
14050 and print_range_type.
14051
14052 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14053
14054 * ada-typeprint.c (print_array_type, print_choices, print_range)
14055 (print_range_bound, print_dynamic_range_bound, print_range_type):
14056 Remove declaration.
14057
14058 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14059
14060 * ada-typeprint.c (print_range): Add missing empty line
14061 after local declaration.
14062
14063 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14064
14065 * ada-valprint.c (print_optional_low_bound): Get index_type's
14066 target type for as long as it is a TYPE_CODE_RANGE.
14067
14068 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14069
14070 * procfs.c (procfs_make_note_section): Remove assertion and
14071 associated comment.
14072
14073 2014-01-24 Yao Qi <yao@codesourcery.com>
14074
14075 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14076 * corelow.c (get_core_siginfo): Likewise.
14077
14078 2014-01-24 Yao Qi <yao@codesourcery.com>
14079
14080 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14081 ULONGEST. Don't check 'len' is negative.
14082 (remote_write_bytes): Change type of 'len' to ULONGEST.
14083
14084 2014-01-23 Tom Tromey <tromey@redhat.com>
14085
14086 PR python/16485:
14087 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14088 Handle exception from frame.block.
14089 (FrameVars.fetch_frame_locals): Likewise.
14090
14091 2014-01-23 Tom Tromey <tromey@redhat.com>
14092
14093 PR python/16487:
14094 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14095 on a NULL pointer. Move "goto error" to correct place.
14096
14097 2014-01-23 Tom Tromey <tromey@redhat.com>
14098
14099 PR python/16491:
14100 * python/py-framefilter.c (apply_frame_filter): Call
14101 ensure_python_env after computing gdbarch.
14102
14103 2014-01-23 Yao Qi <yao@codesourcery.com>
14104
14105 * target.c (raw_memory_xfer_partial): Change argument type
14106 from void * to gdb_byte *.
14107 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14108
14109 2014-01-22 Doug Evans <dje@google.com>
14110
14111 New gdbserver option --debug-format=timestamp.
14112 * NEWS: Mention it.
14113
14114 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14115
14116 * syscalls/s390x-linux.xml: New file.
14117 * syscalls/s390-linux.xml: New file.
14118 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14119 (XML_SYSCALL_FILENAME_S390X): Likewise.
14120 (op_svc): New enum value for SVC opcode.
14121 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14122 (s390_linux_get_syscall_number): New function.
14123 (s390_gdbarch_init): Register '*get_syscall_number' and the
14124 syscall xml file name.
14125 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14126 "s390-linux.xml" and "s390x-linux.xml".
14127 * NEWS: Announce new feature.
14128
14129 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14130
14131 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14132
14133 2014-01-22 Pedro Alves <palves@redhat.com>
14134
14135 * xtensa-config.c: Include defs.h.
14136
14137 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14138
14139 * common/common-utils.h: Add "ARI:" comment beside __func__
14140 reference.
14141
14142 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14143
14144 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14145 documentation a bit.
14146
14147 2014-01-21 Roland McGrath <mcgrathr@google.com>
14148
14149 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14150 * configure: Regenerate.
14151 * aclocal.m4: Regenerate.
14152 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14153 New substituted variables.
14154 (install-strip): New target.
14155 (INSTALL_SCRIPT): New substituted variable.
14156 (FLAGS_TO_PASS): Add it.
14157 (install-only): Use $(INSTALL_SCRIPT) rather than
14158 $(INSTALL_PROGRAM) for gcore.
14159
14160 2014-01-20 Tom Tromey <tromey@redhat.com>
14161
14162 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14163 together.
14164
14165 2014-01-20 Tom Tromey <tromey@redhat.com>
14166
14167 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14168 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14169 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14170 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14171 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14172 (struct cmd_list_element) <flags>: Remove.
14173 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14174 doc_allocated>: New fields.
14175 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14176 bitfields.
14177 * maint.c (maintenance_do_deprecate): Update.
14178 * top.c (execute_command): Update.
14179
14180 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14181
14182 * xtensa-linux-nat.c: Include asm/ptrace.h.
14183
14184 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14185
14186 * Makefile.in (SFILES): Add d-support.c.
14187 (COMMON_OBS): Add d-support.o.
14188 * d-lang.h (d_parse_symbol): Add comment, now defined in
14189 d-support.c.
14190 * d-lang.c (parse_call_convention)
14191 (parse_attributes, parse_function_types)
14192 (parse_function_args, parse_type, parse_identifier)
14193 (call_convention_p, d_parse_symbol): Move functions to ...
14194 * d-support.c: ... New file.
14195
14196 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14197
14198 * d-lang.h (d_parse_symbol): Add declaration.
14199 * d-lang.c (extract_identifiers)
14200 (extract_type_info): Remove functions.
14201 (parse_call_convention, parse_attributes)
14202 (parse_function_types, parse_function_args)
14203 (parse_type, parse_identifier, call_convention_p)
14204 (d_parse_symbol): New functions.
14205 (d_demangle): Use d_parse_symbol to demangle D symbols.
14206
14207 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14208
14209 * d-lang.h (struct builtin_d_type): New data type.
14210 (builtin_d_type): Add declaration.
14211 * d-lang.c (d_language_arch_info, build_d_types)
14212 (builtin_d_type): New functions.
14213 (enum d_primitive_types): New data type.
14214 (d_language_defn): Change c_language_arch_info to
14215 d_language_arch_info.
14216 (d_type_data): New static variable.
14217 (_initialize_d_language): Initialize d_type_data.
14218
14219 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14220
14221 * d-lang.h (d_main_name): Add declaration.
14222 * d-lang.c (d_main_name): New function.
14223 * symtab.c (find_main_name): Add call to d_main_name.
14224
14225 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14226
14227 * d-lang.c (d_language_defn): Change macro_expansion_c to
14228 macro_expansion_no.
14229
14230 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14231
14232 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14233
14234 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14235
14236 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14237 gdb_exception" declaration.
14238 * remote.c (getpkt_or_notif_sane): Likewise.
14239
14240 2014-01-17 Doug Evans <dje@google.com>
14241
14242 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14243 function, contents of dirnames_to_char_ptr_vec_append moved here.
14244 (delim_string_to_char_ptr_vec): New function.
14245 (dirnames_to_char_ptr_vec_append): Rewrite.
14246 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14247
14248 2014-01-17 Doug Evans <dje@google.com>
14249
14250 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14251 and moved here ...
14252 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14253 #include "common-utils.h".
14254 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14255 * common/vec.h (VEC_ASSERT_PASS): Update.
14256 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14257 (MACH_CHECK_ERROR): Update.
14258
14259 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14260
14261 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14262 comments.
14263 * gdbarch.h: Regenerate.
14264
14265 2014-01-16 Tom Tromey <tromey@redhat.com>
14266
14267 * value.c (struct value) <regnum>: Move earlier.
14268
14269 2014-01-16 Tom Tromey <tromey@redhat.com>
14270
14271 * remote.c (extended_remote_create_inferior): Rename from
14272 extended_remote_create_inferior_1. Add "ops" argument. Remove
14273 old implementation.
14274
14275 2014-01-16 Pedro Alves <palves@redhat.com>
14276
14277 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14278 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14279 the backchain.
14280
14281 2014-01-16 Doug Evans <dje@google.com>
14282
14283 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14284
14285 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14286
14287 * btrace.h (btrace_thread_flag): New.
14288 (struct btrace_thread_info) <flags>: New.
14289 * record-btrace.c (record_btrace_resume_thread)
14290 (record_btrace_find_thread_to_move, btrace_step_no_history)
14291 (btrace_step_stopped, record_btrace_start_replaying)
14292 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14293 (record_btrace_find_resume_thread): New.
14294 (record_btrace_resume, record_btrace_wait): Extend.
14295 (record_btrace_can_execute_reverse): New.
14296 (record_btrace_open): Fail in non-stop mode.
14297 (record_btrace_set_replay): Split into this, ...
14298 (record_btrace_stop_replaying): ... this, ...
14299 (record_btrace_clear_histories): ... and this.
14300 (init_record_btrace_ops): Init to_can_execute_reverse.
14301 * NEWS: Announce it.
14302
14303 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14304
14305 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14306 (forward_target_decr_pc_after_break)
14307 (target_decr_pc_after_break): New.
14308 * target.c (forward_target_decr_pc_after_break)
14309 (target_decr_pc_after_break): New.
14310 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14311 instead of gdbarch_decr_pc_after_break.
14312 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14313 instead of gdbarch_decr_pc_after_break.
14314 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14315 instead of gdbarch_decr_pc_after_break.
14316 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14317 instead of gdbarch_decr_pc_after_break.
14318 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14319 instead of gdbarch_decr_pc_after_break.
14320 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14321 instead of gdbarch_decr_pc_after_break.
14322
14323 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14324
14325 * btrace.c: Include regcache.h.
14326 (btrace_add_pc): New.
14327 (btrace_enable): Call btrace_add_pc.
14328 (btrace_is_empty): New.
14329 * btrace.h (btrace_is_empty): New.
14330 * record-btrace.c (require_btrace, record_btrace_info): Call
14331 btrace_is_empty.
14332
14333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14334
14335 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14336 Support delta reads.
14337 (linux_disable_btrace): Change return type.
14338 * common/linux-btrace.h (linux_read_btrace): Change parameters
14339 and return type to allow error reporting. Update users.
14340 (linux_disable_btrace): Change return type. Update users.
14341 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14342 New.
14343 (btrace_error): New.
14344 (btrace_block) <begin>: Comment on BEGIN == 0.
14345 * btrace.c (btrace_compute_ftrace): Start from the end of
14346 the current trace.
14347 (btrace_stitch_trace, btrace_clear_history): New.
14348 (btrace_fetch): Read delta trace, return if replaying.
14349 (btrace_clear): Move clear history code to btrace_clear_history.
14350 (parse_xml_btrace): Throw an error if parsing failed.
14351 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14352 and return type to allow error reporting.
14353 (target_read_btrace): Change parameters and return type to allow
14354 error reporting.
14355 * target.c (target_read_btrace): Update.
14356 * remote.c (remote_read_btrace): Support delta reads. Pass
14357 errors on.
14358 * NEWS: Announce it.
14359
14360 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14361
14362 * record.h (record_btrace_frame_unwind)
14363 (record_btrace_tailcall_frame_unwind): New declarations.
14364 * dwarf2-frame: Include record.h
14365 (dwarf2_frame_cfa): Throw an error for btrace frames.
14366 * record-btrace.c: Include hashtab.h.
14367 (btrace_get_bfun_name): New.
14368 (btrace_call_history): Call btrace_get_bfun_name.
14369 (struct btrace_frame_cache): New.
14370 (bfcache): New.
14371 (bfcache_hash, bfcache_eq, bfcache_new): New.
14372 (btrace_get_frame_function): New.
14373 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14374 (record_btrace_frame_this_id): Compute own id.
14375 (record_btrace_frame_prev_register): Provide PC, throw_error
14376 for all other registers.
14377 (record_btrace_frame_sniffer): Detect btrace frames.
14378 (record_btrace_tailcall_frame_sniffer): New.
14379 (record_btrace_frame_dealloc_cache): New.
14380 (record_btrace_frame_unwind): Add new functions.
14381 (record_btrace_tailcall_frame_unwind): New.
14382 (_initialize_record_btrace): Allocate cache.
14383 * btrace.c (btrace_clear): Call reinit_frame_cache.
14384 * NEWS: Announce it.
14385
14386 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14387
14388 * record-btrace.c (record_btrace_set_replay)
14389 (record_btrace_goto_begin, record_btrace_goto_end)
14390 (record_btrace_goto): New.
14391 (init_record_btrace_ops): Initialize them.
14392 * NEWS: Announce it.
14393
14394 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14395
14396 * record-btrace.c (record_btrace_find_new_threads)
14397 (record_btrace_thread_alive): New.
14398 (init_record_btrace_ops): Initialize to_find_new_threads and
14399 to_thread_alive.
14400
14401 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14402
14403 * record-btrace.c (record_btrace_resume): New.
14404 (record_btrace_wait): New.
14405 (init_record_btrace_ops): Initialize to_wait and to_resume.
14406
14407 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14408
14409 * record-btrace.c (record_btrace_xfer_partial)
14410 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14411 (record_btrace_allow_memory_access): New.
14412 (init_record_btrace_ops): Initialize new methods.
14413 * target.c (raw_memory_xfer_partial): Bail out if target reports
14414 that this memory is not available.
14415
14416 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14417
14418 * target.h (target_ops) <to_insert_breakpoint>
14419 <to_remove_breakpoint>: Add target_ops parameter.
14420 (forward_target_insert_breakpoint): New.
14421 (forward_target_remove_breakpoint): New.
14422 (memory_remove_breakpoint, memory_insert_breakpoint):
14423 Add target_ops parameter.
14424 * target.c (target_insert_breakpoint): Split into this and ...
14425 (forward_target_insert_breakpoint): ... this.
14426 (target_remove_breakpoint): Split into this and ...
14427 (forward_target_remove_breakpoint): ... this.
14428 (debug_to_insert_breakpoint): Add target_ops parameter.
14429 Call forward_target_insert_breakpoint.
14430 (debug_to_remove_breakpoint): Add target_ops parameter.
14431 Call forward_target_remove_breakpoint.
14432 (update_current_target): Do not inherit or default to_insert_breakpoint
14433 and to_remove_breakpoint.
14434 * corelow.c (ignore): Add target_ops parameter.
14435 * exec.c (ignore): Add target_ops parameter.
14436 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14437 Add target_ops parameter.
14438 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14439 Add target_ops parameter.
14440 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14441 Add target_ops parameter.
14442 * record-full.c (record_full_beneath_to_insert_breakpoint)
14443 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14444 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14445 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14446 (record_full_core_remove_breakpoint): Add target_ops parameter.
14447 Update users.
14448 (record_full_beneath_to_insert_breakpoint_ops)
14449 (record_full_beneath_to_remove_breakpoint_ops)
14450 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14451 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14452 tmp_to_remove_breakpoint_ops,
14453 record_full_beneath_to_insert_breakpoint_ops, and
14454 record_full_beneath_to_remove_breakpoint_ops.
14455 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14456 (m32r_remove_breakpoint): Add target_ops parameter.
14457 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14458 Add target_ops parameter.
14459 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14460 Add target_ops parameter.
14461
14462 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14463 Markus Metzger <markus.t.metzger@intel.com>
14464
14465 * record-btrace.c: Include frame-unwind.h.
14466 (record_btrace_frame_unwind_stop_reason)
14467 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14468 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14469 New.
14470 (init_record_btrace_ops): Install it.
14471
14472 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14473
14474 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14475 get_prev_frame_1.
14476
14477 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14478
14479 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14480 earlier.
14481
14482 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14483
14484 * frame-unwind.c: Include target.h.
14485 (frame_unwind_try_unwinder): New function with code from ...
14486 (frame_unwind_find_by_frame): ... here. New variable
14487 unwinder_from_target, call also target_get_unwinder)
14488 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14489 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14490 * target.h (struct target_ops): New fields to_get_unwinder and
14491 to_get_tailcall_unwinder.
14492 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14493
14494 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14495
14496 * record-btrace.c (record_btrace_fetch_registers)
14497 (record_btrace_store_registers)
14498 (record_btrace_to_prepare_to_store): New.
14499 (init_record_btrace_ops): Add the above.
14500
14501 2014-01-16 Tom Tromey <tromey@redhat.com>
14502
14503 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14504 * target.h (struct target_ops) <to_prepare_to_store>: Add
14505 argument.
14506 (target_prepare_to_store): Add argument.
14507 * target.c (debug_to_prepare_to_store): Add argument.
14508 (update_current_target): Update.
14509 * remote.c (remote_prepare_to_store): Add 'self' argument.
14510 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14511 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14512 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14513 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14514 argument.
14515 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14516 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14517 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14518 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14519 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14520
14521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14522
14523 * btrace.h (replay) <replay>: New.
14524 (btrace_is_replaying): New.
14525 * btrace.c (btrace_clear): Free replay iterator.
14526 (btrace_is_replaying): New.
14527 * record-btrace.c (record_btrace_is_replaying): New.
14528 (record_btrace_info): Print insn number if replaying.
14529 (record_btrace_insn_history): Start at replay position.
14530 (record_btrace_call_history): Start at replay position.
14531 (init_record_btrace_ops): Init to_record_is_replaying.
14532
14533 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14534
14535 * record-btrace.c (record_btrace_insn_history_range): Include
14536 end.
14537 (record_btrace_insn_history_from): Adjust range.
14538 (record_btrace_call_history_range): Include
14539 end.
14540 (record_btrace_call_history_from): Adjust range.
14541 * NEWS: Announce changes.
14542
14543 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14544
14545 * record.h (enum record_print_flag)
14546 <record_print_indent_calls>: New.
14547 * record.c (get_call_history_modifiers): Recognize /c modifier.
14548 (_initialize_record): Document /c modifier.
14549 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14550 Reorder fields. Optionally indent the function name. Update
14551 all users.
14552 * NEWS: Announce changes.
14553
14554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14555
14556 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14557
14558 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14559
14560 * btrace.c (ftrace_new_function): Start counting at one.
14561 * record-btrace.c (record_btrace_info): Adjust number of calls
14562 and insns.
14563 * NEWS: Announce it.
14564
14565 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14566
14567 * record-btrace.c (btrace_call_history_insn_range): Print
14568 insn range as [begin, end].
14569
14570 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14571
14572 * btrace.h (struct btrace_func_link): New.
14573 (enum btrace_function_flag): New.
14574 (struct btrace_inst): Rename to ...
14575 (struct btrace_insn): ...this. Update all users.
14576 (struct btrace_func) <ibegin, iend>: Remove.
14577 (struct btrace_func_link): New.
14578 (struct btrace_func): Rename to ...
14579 (struct btrace_function): ...this. Update all users.
14580 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14581 (number, level, flags>: New.
14582 (struct btrace_insn_iterator): Rename to ...
14583 (struct btrace_insn_history): ...this.
14584 Update all users.
14585 (struct btrace_insn_iterator, btrace_call_iterator): New.
14586 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14587 (struct btrace_target_info) <begin, end, level>
14588 <insn_history, call_history>: New.
14589 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14590 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14591 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14592 (btrace_call_number, btrace_call_begin, btrace_call_end)
14593 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14594 (btrace_find_function_by_number, btrace_set_insn_history)
14595 (btrace_set_call_history): New.
14596 * btrace.c (btrace_init_insn_iterator)
14597 (btrace_init_func_iterator, compute_itrace): Remove.
14598 (ftrace_print_function_name, ftrace_print_filename)
14599 (ftrace_skip_file): Change
14600 parameter to const.
14601 (ftrace_init_func): Remove.
14602 (ftrace_debug): Use new btrace_function fields.
14603 (ftrace_function_switched): Also consider gaining and
14604 losing symbol information).
14605 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14606 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14607 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14608 New.
14609 (ftrace_new_function): Move. Remove debug print.
14610 (ftrace_update_lines, ftrace_update_insns): New.
14611 (ftrace_update_function): Check for call, ret, and jump.
14612 (compute_ftrace): Renamed to ...
14613 (btrace_compute_ftrace): ...this. Rewritten to compute call
14614 stack.
14615 (btrace_fetch, btrace_clear): Updated.
14616 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14617 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14618 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14619 (btrace_call_number, btrace_call_begin, btrace_call_end)
14620 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14621 (btrace_find_function_by_number, btrace_set_insn_history)
14622 (btrace_set_call_history): New.
14623 * record-btrace.c (require_btrace): Use new btrace thread
14624 info fields.
14625 (record_btrace_info, btrace_insn_history)
14626 (record_btrace_insn_history, record_btrace_insn_history_range):
14627 Use new btrace thread info fields and new iterator.
14628 (btrace_func_history_src_line): Rename to ...
14629 (btrace_call_history_src_line): ...this. Use new btrace
14630 thread info fields.
14631 (btrace_func_history): Rename to ...
14632 (btrace_call_history): ...this. Use new btrace thread info
14633 fields and new iterator.
14634 (record_btrace_call_history, record_btrace_call_history_range):
14635 Use new btrace thread info fields and new iterator.
14636
14637 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14638
14639 * frame.h (frame_id_build_unavailable_stack_special): New.
14640 * frame.c (frame_id_build_unavailable_stack_special): New.
14641
14642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14643
14644 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14645 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14646 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14647 to gdbarch.
14648 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14649 (i386_insn_is_jump, i386_jmp_p): New.
14650 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14651 insn_is_jump to gdbarch.
14652 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14653 * gdbarch.h: Regenerated.
14654 * gdbarch.c: Regenerated.
14655 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14656 (default_insn_is_jump): New.
14657 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14658 (default_insn_is_jump): New.
14659
14660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14661
14662 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14663 Change to ...
14664 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14665 (btrace_read_type) <btrace_read_new>: Change to ...
14666 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14667
14668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14669
14670 * common/linux-btrace.c (linux_read_btrace): Free trace from
14671 previous iteration.
14672
14673 2014-01-15 Doug Evans <dje@google.com>
14674
14675 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14676 uint32_t.
14677
14678 2014-01-15 Tom Tromey <tromey@redhat.com>
14679
14680 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14681 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14682 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14683 (set_objfile_main_name): New function.
14684 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14685 language_of_main>: New fields.
14686 (set_objfile_main_name): Declare.
14687 * symtab.c (find_main_name): Loop over objfiles to find the main
14688 name and language.
14689 (set_main_name): Now static.
14690 (get_main_info): Add comment.
14691 * symtab.h (set_main_name): Don't declare.
14692
14693 2014-01-15 Tom Tromey <tromey@redhat.com>
14694
14695 * symtab.c (main_progspace_key): New global.
14696 (struct main_info): New.
14697 (name_of_main, language_of_main): Remove.
14698 (get_main_info, main_info_cleanup): New function.
14699 (set_main_name, main_name, main_language): Use get_main_info.
14700 (_initialize_symtab): Initialize main_progspace_key.
14701
14702 2014-01-15 Tom Tromey <tromey@redhat.com>
14703
14704 * dbxread.c (process_one_symbol): Update.
14705 * dwarf2read.c (read_partial_die): Update.
14706 * symfile.c (set_initial_language): Call main_language.
14707 * symtab.c (language_of_main): Now static.
14708 (set_main_name): Add 'lang' parameter.
14709 (find_main_name): Update.
14710 (main_language): New function.
14711 (symtab_observer_executable_changed): Update.
14712 * symtab.h (set_main_name): Update.
14713 (language_of_main): Remove.
14714 (main_language): Declare.
14715
14716 2014-01-15 Tom Tromey <tromey@redhat.com>
14717
14718 * symfile.c (init_entry_point_info): Use new "initialized" field.
14719 Update.
14720 * objfiles.h (struct entry_point) <initialized>: New field.
14721 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14722 (struct objfile) <ei>: ...here. Remove.
14723 * objfiles.c (entry_point_address_query): Update.
14724
14725 2014-01-15 Tom Tromey <tromey@redhat.com>
14726
14727 * objfiles.c (entry_point_address_query): Relocate entry point
14728 address.
14729 (objfile_relocate1): Do not relocate entry point address.
14730 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14731 <the_bfd_section_index>: New field.
14732 * symfile.c (init_entry_point_info): Find the entry point's
14733 section.
14734
14735 2014-01-15 Tom Tromey <tromey@redhat.com>
14736
14737 * solib-frv.c (enable_break): Use entry_point_address_query.
14738
14739 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14740
14741 * NEWS: Add note on improved process record-replay on
14742 arm*-linux* targets.
14743
14744 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14745
14746 * arm-tdep.c (enum arm_record_result): New enum.
14747 (arm_record_unsupported_insn): New function.
14748 (arm_record_coproc_data_proc): Removed.
14749 (thumb2_record_ld_st_multiple): New function.
14750 (thumb2_record_ld_st_dual_ex_tbb): New function.
14751 (thumb2_record_data_proc_sreg_mimm): New function.
14752 (thumb2_record_ps_dest_generic): New function.
14753 (thumb2_record_branch_misc_cntrl): New function.
14754 (thumb2_record_str_single_data): New function.
14755 (thumb2_record_ld_mem_hints): New function.
14756 (thumb2_record_ld_word): New function.
14757 (thumb2_record_lmul_lmla_div): New function.
14758 (thumb2_record_decode_insn_handler): New function.
14759 (decode_insn): Add thumb32 instruction handlers.
14760
14761 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14762
14763 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14764 (struct arm_linux_record_tdep): Declare.
14765 (arm_canonicalize_syscall): New function.
14766 (arm_all_but_pc_registers_record): New function.
14767 (arm_linux_syscall_record): New function.
14768 (arm_linux_init_abi): Add syscall recording constructs.
14769 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14770 decoding. (arm_record_coproc_data_proc): Update arm syscall
14771 decoding.
14772 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14773 <arm_syscall_record>: New field.
14774 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14775 gdb_target_obs.
14776
14777 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14778
14779 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14780 register for push instruction recording.
14781
14782 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14783
14784 * arm-tdep.c (thumb_record_misc): Update to correct logical
14785 error while recording ldm, ldmia and pop instructions.
14786
14787 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14788
14789 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14790
14791 2014-01-15 Pedro Alves <palves@redhat.com>
14792
14793 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14794 (go32_resume, go32_fetch_registers, store_register)
14795 (go32_store_registers, go32_prepare_to_store)
14796 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14797 (go32_create_inferior, go32_can_run, go32_terminal_init)
14798 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14799 declarations.
14800
14801 2014-01-15 Tom Tromey <tromey@redhat.com>
14802
14803 * target.h (async_callback_ftype): New typedef.
14804 (struct target_ops) <to_async>: Use it.
14805
14806 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14807
14808 * python/py-value.c (get_field_type): Remove unnecessary curly
14809 braces for single-statement if block.
14810
14811 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14812
14813 * python/py-type.c (convert_field): Add missing empty line
14814 after declarations.
14815
14816 2014-01-14 Doug Evans <dje@google.com>
14817
14818 * symfile.h (expand_symtabs_matching): Renamed from
14819 expand_partial_symbol_names. Update prototype.
14820 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14821 * symfile.c (expand_symtabs_matching): Renamed from
14822 expand_partial_symbol_names. New args file_matcher, kind.
14823 Rename arg fun to symbol_matcher.
14824 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14825 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14826 ada_expand_partial_symbol_name.
14827 (ada_make_symbol_completion_list): Update to call
14828 expand_symtabs_matching.
14829 (ada_add_global_exceptions): Call expand_symtabs_matching.
14830 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14831 call map_symbol_filenames.
14832 * symtab.c (sources_info): Update to call map_symbol_filenames.
14833 (search_symbols): Call expand_symtabs_matching.
14834 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14835 (default_make_symbol_completion_list_break_on): Update to call
14836 expand_symtabs_matching.
14837 (make_source_files_completion_list): Update to call
14838 map_symbol_filenames.
14839
14840 2014-01-14 Doug Evans <dje@google.com>
14841
14842 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14843 (expand_symtabs_symbol_matcher_ftype): New typedef.
14844 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14845 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14846 * symfile.c (expand_partial_symbol_names): Update to use
14847 expand_symtabs_symbol_matcher_ftype.
14848 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14849 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14850 Arg name_matcher renamed to symbol_matcher.
14851 * psymtab.c (recursively_search_psymtabs): Update to use
14852 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14853 sym_matcher.
14854 (expand_symtabs_matching_via_partial): Update to use
14855 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14856 Arg name_matcher renamed to symbol_matcher.
14857
14858 2014-01-14 Doug Evans <dje@google.com>
14859
14860 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14861 (map_partial_symbol_filenames): Ditto.
14862 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14863 (map_partial_symbol_filenames): Ditto.
14864 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14865 (map_partial_symbol_filenames): Ditto.
14866 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14867 (map_partial_symbol_filenames): Ditto.
14868 * symtab.c: Delete #include "psymtab.h".
14869
14870 2014-01-14 Pedro Alves <palves@redhat.com>
14871 Tom Tromey <tromey@redhat.com>
14872
14873 * infrun.c (use_displaced_stepping): Use find_record_target
14874 instead of RECORD_IS_USED.
14875 (adjust_pc_after_break): Use record_full_is_used instead of
14876 RECORD_IS_USED.
14877 * record-btrace.c (record_btrace_open): Call record_preopen
14878 instead of checking RECORD_IS_USED.
14879 * record-full.c (record_full_shortname)
14880 (record_full_core_shortname): New globals.
14881 (record_full_is_used): New function.
14882 (find_full_open): Call record_preopen instead of checking
14883 RECORD_IS_USED.
14884 (init_record_full_ops): Set the target's shortname to
14885 record_full_shortname.
14886 (init_record_full_core_ops): Set the target's shortname to
14887 record_full_core_shortname.
14888 * record-full.h (record_full_is_used): Declare.
14889 * record.c (find_record_target): Make extern.
14890 (record_preopen): New function.
14891 * record.h (RECORD_IS_USED): Delete macro.
14892 (find_record_target, record_preopen): Declare functions.
14893
14894 2014-01-14 Yao Qi <yao@codesourcery.com>
14895
14896 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14897 'len''s type to ULONGEST.
14898 (core_xfer_shared_libraries_aix): Likewise.
14899 * gdbarch.c, gdbarch.h: Regenerated.
14900 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14901 Change type of 'len' to ULONGEST.
14902 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14903 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14904
14905 2014-01-14 Yao Qi <yao@codesourcery.com>
14906
14907 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14908 type of 'len' to ULONGEST.
14909 (linux_xfer_osdata_processgroups): Likewise.
14910 (linux_xfer_osdata_threads): Likewise.
14911 (linux_xfer_osdata_fds): Likewise.
14912 (linux_xfer_osdata_isockets): Likewise.
14913 (linux_xfer_osdata_shm): Likewise.
14914 (linux_xfer_osdata_sem): Likewise.
14915 (linux_xfer_osdata_msg): Likewise.
14916 (linux_common_xfer_osdata): Likewise.
14917 (struct osdata_type) <getter>: Likewise.
14918 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14919 the declaration.
14920
14921 2014-01-14 Yao Qi <yao@codesourcery.com>
14922
14923 * target.h (target_xfer_partial_ftype): Update.
14924 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14925 ULONGEST.
14926 * aix-thread.c (aix_thread_xfer_partial): Change type of
14927 argument 'len' to ULONGEST.
14928 * auxv.c (procfs_xfer_auxv): Likewise.
14929 (ld_so_xfer_auxv): Likewise.
14930 (memory_xfer_auxv): Likewise.
14931 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14932 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14933 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14934 * corelow.c (core_xfer_partial): Likewise.
14935 * ctf.c (ctf_xfer_partial): Likewise.
14936 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14937 '%u'.
14938 (darwin_read_dyld_info): Likewise.
14939 (darwin_xfer_partial): Likewise.
14940 * exec.c (section_table_xfer_memory_partial): Likewise.
14941 (exec_xfer_partial): Likewise.
14942 * exec.h (section_table_xfer_memory_partial): Update
14943 declaration.
14944 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14945 instead of plongest.
14946 (gnu_xfer_partial): Likewise.
14947 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14948 (ia64_hpux_xfer_solib_got): Likewise.
14949 (ia64_hpux_xfer_partial): Likewise.
14950 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14951 * inf-ptrace.c (inf_ptrace_xfer_partial):
14952 * inf-ttrace.c (inf_ttrace_xfer_partial):
14953 * linux-nat.c (linux_xfer_siginfo): Likewise.
14954 (linux_nat_xfer_partial): Likewise.
14955 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14956 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14957 * monitor.c (monitor_xfer_memory): Likewise.
14958 (monitor_xfer_partial): Likewise.
14959 * procfs.c (procfs_xfer_partial): Likewise.
14960 * record-full.c (record_full_xfer_partial): Likewise.
14961 (record_full_core_xfer_partial): Likewise.
14962 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14963 instead of plongest.
14964 (gdbsim_xfer_partial): Likewise.
14965 * remote.c (remote_xfer_partial): Likewise.
14966 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14967 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14968 declaration.
14969 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14970 (rs6000_xfer_shared_libraries): Likewise.
14971 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14972 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14973 (sparc_xfer_partial): Likewise.
14974 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14975 (spu_xfer_partial): Likewise.
14976 * spu-multiarch.c (spu_xfer_partial): Likewise.
14977 * target.c (target_read_live_memory): Likewise.
14978 (memory_xfer_live_readonly_partial): Likewise.
14979 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14980 (target_xfer_partial, default_xfer_partial): Likewise.
14981 (current_xfer_partial): Likewise.
14982 * tracepoint.c (tfile_xfer_partial): Likewise.
14983 * windows-nat.c (windows_xfer_memory): Likewise. Call
14984 pulongest instead of plongest.
14985 (windows_xfer_partial): Likewise.
14986 (windows_xfer_shared_libraries): Likewise.
14987
14988 2014-01-14 Yao Qi <yao@codesourcery.com>
14989
14990 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14991 target_xfer_partial_ftype.
14992
14993 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14994
14995 PR python/15464
14996 PR python/16113
14997 * valops.c (value_struct_elt_bitpos): New function
14998 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14999 object to 'None' if the field name is an empty string ("").
15000 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15001 attribute to look for a field when 'name' is 'None'.
15002 (get_field_type): New function
15003
15004 2014-01-13 Doug Evans <dje@google.com>
15005
15006 PR symtab/16426
15007 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15008 (try_open_dwop_file): Ditto.
15009 * gdb_bfd.c: #include "vec.h".
15010 (bfdp): New typedef.
15011 (struct gdb_bfd_data): New member included_bfds.
15012 (gdb_bfd_unref): Unref all included bfds.
15013 (gdb_bfd_record_inclusion): New function.
15014 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15015
15016 2014-01-13 Tom Tromey <tromey@redhat.com>
15017
15018 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15019
15020 2014-01-13 Tom Tromey <tromey@redhat.com>
15021
15022 * defs.h (use_windows): Remove.
15023 * gdb.c (main): Update.
15024 * main.c (captured_main, gdb_main): Update.
15025 * main.h (struct captured_main_args) <use_windows>: Remove.
15026 * top.c (use_windows): Remove.
15027
15028 2014-01-13 Tom Tromey <tromey@redhat.com>
15029
15030 * defs.h (deprecated_flush_hook): Remove.
15031
15032 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15033
15034 PR threads/16216
15035 * linux-thread-db.c (try_thread_db_load): Add parameter
15036 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15037 (try_thread_db_load_from_pdir_1): Move it there from here.
15038 (try_thread_db_load_from_sdir): Update caller.
15039 (try_thread_db_load_from_dir): Move it there from here.
15040
15041 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15042
15043 * regformats/regdat.sh: Always rewrite the register file.
15044
15045 2014-01-13 Pedro Alves <palves@redhat.com>
15046
15047 * Makefile.in (CHECK_HEADERS): New variable.
15048 (check-headers:): New rule.
15049
15050 2014-01-13 Tom Tromey <tromey@redhat.com>
15051
15052 * cli/cli-setshow.c (do_set_command): Update.
15053 * defs.h (deprecated_set_hook): Remove.
15054 * top.c (deprecated_set_hook): Remove.
15055
15056 2014-01-13 Pedro Alves <palves@redhat.com>
15057
15058 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15059 the tracepoint if the PC is a pseudo-register.
15060
15061 2014-01-13 Tom Tromey <tromey@redhat.com>
15062
15063 * defs.h (XCALLOC): Remove.
15064 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15065 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15066 * dwarf2loc.c (allocate_piece_closure): Likewise.
15067 * elfread.c (elf_symfile_segments): Likewise.
15068 (elf_symfile_segments): Likewise.
15069 * gdbtypes.c (copy_type_recursive): Likewise.
15070 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15071 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15072 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15073 XCALLOC.
15074 * mt-tdep.c (mt_gdbarch_init): Likewise.
15075 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15076 XCALLOC.
15077 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15078 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15079 * registry.c (registry_alloc_data): Likewise.
15080 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15081 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15082 * serial.c (serial_fdopen_ops): Likewise.
15083 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15084 XCALLOC.
15085 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15086 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15087 not XCALLOC.
15088
15089 2014-01-13 Tom Tromey <tromey@redhat.com>
15090
15091 * defs.h (XMALLOC): Remove.
15092 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15093 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15094 * cli-out.c (struct ui_out *): Likewise.
15095 * cli/cli-dump.c (add_dump_command): Likewise.
15096 (add_dump_command): Likewise.
15097 * complaints.c (get_complaints): Likewise.
15098 (find_complaint): Likewise.
15099 * dwarf2-frame.c (execute_cfa_program): Likewise.
15100 * dwarf2read.c (abbrev_table_read_table): Likewise.
15101 * gdbarch.sh: Likewise.
15102 * gdbarch.c: Rebuild.
15103 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15104 * interps.c (interp_new): Likewise.
15105 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15106 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15107 * mi/mi-console.c (mi_console_file_new): Likewise.
15108 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15109 * mi/mi-out.c (mi_out_new): Likewise.
15110 * mi/mi-parse.c (mi_parse): Likewise.
15111 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15112 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15113 * observer.c (xalloc_observer_list_node): Likewise.
15114 * regcache.c (regcache_xmalloc_1): Likewise.
15115 * reggroups.c (reggroup_new): Likewise.
15116 (_initialize_reggroup): Likewise.
15117 * registry.c (register_data_with_cleanup): Likewise.
15118 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15119 * ser-base.c (serial_ttystate): Likewise.
15120 * ser-mingw.c (make_pipe_state): Likewise.
15121 * ser-pipe.c (pipe_open): Likewise.
15122 * serial.c (serial_open): Likewise.
15123 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15124 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15125 (tui_alloc_win_info): Likewise.
15126 (tui_add_content_elements): Likewise.
15127 * tui/tui-file.c (tui_file_new): Likewise.
15128 * tui/tui-out.c (tui_out_new): Likewise.
15129 * ui-file.c (mem_file_new): Likewise.
15130 * ui-out.c (push_level): Likewise.
15131 (make_cleanup_ui_out_end): Likewise.
15132 (append_header_to_list): Likewise.
15133 (ui_out_new): Likewise.
15134 * user-regs.c (user_reg_add_builtin): Likewise.
15135
15136 2014-01-13 Tom Tromey <tromey@redhat.com>
15137
15138 * defs.h (XZALLOC): Remove.
15139 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15140 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15141 (get_ada_tasks_inferior_data): Likewise.
15142 * auto-load.c (get_auto_load_pspace_data): Likewise.
15143 * auxv.c (get_auxv_inferior_data): Likewise.
15144 * bfd-target.c (target_bfd_reopen): Likewise.
15145 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15146 (deprecated_insert_raw_breakpoint): Likewise.
15147 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15148 * corelow.c (core_open): Likewise.
15149 * darwin-nat.c (darwin_check_new_threads): Likewise.
15150 (darwin_attach_pid): Likewise.
15151 * dummy-frame.c (dummy_frame_push): Likewise.
15152 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15153 * dwarf2loc.c (allocate_piece_closure): Likewise.
15154 * elfread.c (elf_symfile_segments): Likewise.
15155 * eval.c (ptrmath_type_p): Likewise.
15156 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15157 * gdbtypes.c (alloc_type_arch): Likewise.
15158 (alloc_type_instance): Likewise.
15159 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15160 * inf-child.c (inf_child_can_use_agent): Likewise.
15161 * inflow.c (get_inflow_inferior_data): Likewise.
15162 * infrun.c (save_infcall_suspend_state): Likewise.
15163 * jit.c (jit_reader_load): Likewise.
15164 (get_jit_objfile_data): Likewise.
15165 (get_jit_program_space_data): Likewise.
15166 (jit_object_open_impl): Likewise.
15167 (jit_symtab_open_impl): Likewise.
15168 (jit_block_open_impl): Likewise.
15169 (jit_frame_sniffer): Likewise.
15170 * linux-fork.c (add_fork): Likewise.
15171 * maint.c (make_command_stats_cleanup): Likewise.
15172 * objfiles.c (get_objfile_pspace_data): Likewise.
15173 * opencl-lang.c (struct lval_closure): Likewise.
15174 * osdata.c (osdata_start_osdata): Likewise.
15175 * progspace.c (new_address_space): Likewise.
15176 (add_program_space): Likewise.
15177 * remote-sim.c (get_sim_inferior_data): Likewise.
15178 * sh-tdep.c (sh_gdbarch_init): Likewise.
15179 * skip.c (Ignore): Likewise.
15180 (skip_delete_command): Likewise.
15181 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15182 (library_list_start_library): Likewise.
15183 (solib_aix_current_sos): Likewise.
15184 * solib-darwin.c (get_darwin_info): Likewise.
15185 (darwin_current_sos): Likewise.
15186 * solib-dsbt.c (get_dsbt_info): Likewise.
15187 * solib-ia64-hpux.c (new_so_list): Likewise.
15188 (ia64_hpux_get_solib_linkage_addr): Likewise.
15189 * solib-spu.c (append_ocl_sos): Likewise.
15190 (spu_current_sos): Likewise.
15191 * solib-svr4.c (get_svr4_info): Likewise.
15192 (svr4_keep_data_in_core): Likewise.
15193 (library_list_start_library): Likewise.
15194 (svr4_default_sos): Likewise.
15195 (svr4_read_so_list): Likewise.
15196 * solib-target.c (library_list_start_library): Likewise.
15197 (solib_target_current_sos): Likewise.
15198 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15199 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15200 * symfile.c (default_symfile_segments): Likewise.
15201 * target-descriptions.c (tdesc_data_init): Likewise.
15202 (tdesc_create_reg): Likewise.
15203 (struct tdesc_type *): Likewise.
15204 (tdesc_create_vector): Likewise.
15205 (tdesc_set_struct_size): Likewise.
15206 (struct tdesc_type *): Likewise.
15207 (tdesc_free_feature): Likewise.
15208 (tdesc_create_feature): Likewise.
15209 * windows-nat.c (windows_add_thread): Likewise.
15210 (windows_make_so): Likewise.
15211 * xml-support.c (gdb_xml_body_text): Likewise.
15212 (gdb_xml_create_parser_and_cleanup): Likewise.
15213 (xml_process_xincludes): Likewise.
15214 * xml-syscall.c (allocate_syscalls_info): Likewise.
15215 (syscall_create_syscall_desc): Likewise.
15216
15217 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15218
15219 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15220 function, with code from i386_stap_parse_special_token.
15221 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15222 (i386_stap_parse_special_token): Move code to the two functions
15223 above; simplify it.
15224
15225 2014-01-09 Pedro Alves <palves@redhat.com>
15226 Hui Zhu <hui@codesourcery.com>
15227
15228 PR gdb/16101
15229 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15230 bp_err_string. Don't mark the location shlib_disabled if the
15231 error thrown wasn't a generic or memory error. Catch errors
15232 thrown while inserting breakpoints in overlayed code. Output
15233 error message of software breakpoints.
15234 * remote.c (remote_insert_breakpoint): If this breakpoint has
15235 target-side commands but this stub doesn't support Z0 packets,
15236 throw NOT_SUPPORTED_ERROR error.
15237 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15238 * target.h (target_insert_breakpoint): Extend comment.
15239 (target_insert_hw_breakpoint): Add comment.
15240
15241 2014-01-08 Pedro Alves <palves@redhat.com>
15242
15243 * remote.c (remote_add_thread): Add threads silently if starting
15244 up.
15245 (remote_notice_new_inferior): If in all-stop, and starting up,
15246 don't call notice_new_inferior.
15247 (get_current_thread): New function, factored out from ...
15248 (add_current_inferior_and_thread): ... this. Adjust.
15249 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15250 found any thread, then select the remote's current thread as GDB's
15251 current thread too.
15252
15253 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15254
15255 * NEWS: Create a new section for the next release branch.
15256 Rename the section of the current branch, now that it has
15257 been cut.
15258
15259 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15260
15261 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15262 * version.in: Bump version to 7.7.50.DATE-cvs.
15263
15264 2014-01-08 Yao Qi <yao@codesourcery.com>
15265
15266 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15267 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15268 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15269
15270 2014-01-08 Yao Qi <yao@codesourcery.com>
15271
15272 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15273 return value of bfd_get_filename to symbol_file_add_from_bfd.
15274
15275 2014-01-08 Pierre Muller <muller@sourceware.org>
15276
15277 Fix PR16201.
15278 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15279 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15280 to prim_record_mininal_symbol_and_info.
15281 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15282 in call to prim_record_minimal_symbol_and_info.
15283 (read_pe_exported_syms): Set index field of section_data.
15284
15285 2014-01-07 Andrew Pinski <apinski@cavium.com>
15286
15287 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15288 * features/aarch64.c: Regenerate.
15289
15290 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15291
15292 * target.c (return_null): Define.
15293 (update_current_target): Use it instead of return_zero for
15294 functions that return a pointer.
15295
15296 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15297
15298 * source.c (add_path): Fix check for duplicated paths in the previously
15299 included paths.
15300
15301 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15302
15303 * ada-lang.c: Remove duplicated include statements.
15304 * alphabsd-nat.c: Ditto.
15305 * amd64-darwin-tdep.c: Ditto.
15306 * amd64fbsd-nat.c: Ditto.
15307 * auto-load.c: Ditto.
15308 * ax-gdb.c: Ditto.
15309 * breakpoint.c: Ditto.
15310 * dbxread.c: Ditto.
15311 * fork-child.c: Ditto.
15312 * gdb_usleep.c: Ditto.
15313 * i386-darwin-tdep.c: Ditto.
15314 * i386fbsd-nat.c: Ditto.
15315 * infcmd.c: Ditto.
15316 * inferior.c: Ditto.
15317 * jv-lang.c: Ditto.
15318 * linux-nat.c: Ditto.
15319 * linux-tdep.c: Ditto.
15320 * m68kbsd-nat.c: Ditto.
15321 * m68klinux-nat.c: Ditto.
15322 * microblaze-tdep.c: Ditto.
15323 * mips-linux-tdep.c: Ditto.
15324 * mn10300-tdep.c: Ditto.
15325 * nto-tdep.c: Ditto.
15326 * opencl-lang.c: Ditto.
15327 * osdata.c: Ditto.
15328 * printcmd.c: Ditto.
15329 * regcache.c: Ditto.
15330 * remote-m32r-sdi.c: Ditto.
15331 * remote.c: Ditto.
15332 * symfile.c: Ditto.
15333 * symtab.c: Ditto.
15334 * tilegx-linux-nat.c: Ditto.
15335 * tilegx-tdep.c: Ditto.
15336 * tracepoint.c: Ditto.
15337 * valops.c: Ditto.
15338 * vaxbsd-nat.c: Ditto.
15339 * windows-nat.c: Ditto.
15340 * xtensa-tdep.c: Ditto.
15341
15342 2014-01-07 Yao Qi <yao@codesourcery.com>
15343
15344 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15345
15346 2014-01-07 Yao Qi <yao@codesourcery.com>
15347 Joel Brobecker <brobecker@adacore.com>
15348
15349 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15350 (pdc_write_regs): Likewise.
15351 (fetch_regs_kernel_thread): Likewise.
15352 (store_regs_kernel_thread): Likewise.
15353
15354 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15355
15356 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15357 tagged type objects to their actual type.
15358
15359 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15360
15361 * ada-valprint.c (print_field_values): Add "language" parameter.
15362 Update calls to print_field_values and print_variant_part.
15363 Pass new parameter "language" in call to val_print instead
15364 of "current_language". Replace call to ada_val_print by call
15365 to val_print.
15366 (print_variant_part): Add "language" parameter.
15367 (ada_val_print_struct_union): Update call to print_field_values.
15368
15369 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15370
15371 * ada-valprint.c (ui_memcpy): Delete.
15372 (ada_print_floating): Update documentation. Add empty line
15373 between between function documentation and implementation.
15374 Delete variable "buffer". Use ui_file_xstrdup in place of
15375 ui_file_put. Minor adjustments following this change.
15376
15377 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15378
15379 * ada-valprint.c (ada_val_print_string): New function,
15380 extracted from ada_val_print_array.
15381 (ada_val_print_array): Replace extracted code by call
15382 to ada_val_print_string followed by a return. Move
15383 "else" branch to the function's top block.
15384
15385 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15386
15387 * ada-valprint.c (ada_val_print_array): Move implementation
15388 down. Rename parameter "offset" and "val" into "offset_aligned"
15389 and "original_value" respectively. Add parameter "offset".
15390
15391 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15392
15393 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15394 re-organizing the code. Change the "???" message printed
15395 when target type is a TYPE_CODE_UNDEF into
15396 "<ref to undefined type>".
15397
15398 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15399
15400 * ada-valprint.c (print_record): Delete, implementation inlined...
15401 (ada_val_print_struct_union): ... here. Remove call to
15402 ada_check_typedef in inlined implementation.
15403
15404 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15405
15406 * ada-valprint.c (ada_val_print_gnat_array): New function,
15407 extracted from ada_val_print_1;
15408 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15409 (ada_val_print_flt, ada_val_print_struct_union)
15410 (ada_val_print_ref): Likewise.
15411 (ada_val_print_1): Delete variables i and elttype.
15412 Replace extracted-out code by call to corresponding
15413 new functions.
15414
15415 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15416
15417 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15418
15419 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15420
15421 * ada-valprint.c (ada_val_print_1): Replace calls to
15422 ada_val_print_1 by calls to val_print.
15423
15424 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15425
15426 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15427 Update calls to self accordingly. Replace calls to c_val_print
15428 by calls to val_print.
15429
15430 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15431
15432 * ada-valprint.c (print_record): Delete declaration.
15433 (adjust_type_signedness, ada_val_print_1): Likewise.
15434 (ada_val_print): Move function implementation down.
15435 (print_variant_part, print_field_values, print_record):
15436 Move function implementation up.
15437
15438 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15439
15440 * python/py-type.c (typy_get_name): New function.
15441 (type_object_getset): Add entry for attribute "name".
15442 * NEWS: Add entry mentioning this new attribute.
15443
15444 2014-01-07 Yao Qi <yao@codesourcery.com>
15445
15446 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15447 statement.
15448
15449 2014-01-07 Yao Qi <yao@codesourcery.com>
15450
15451 * gnu-nat.c (info_port_rights): Add qualifier const to
15452 argument args.
15453
15454 2014-01-07 Yao Qi <yao@codesourcery.com>
15455
15456 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15457
15458 2014-01-07 Yao Qi <yao@codesourcery.com>
15459
15460 * gnu-nat.c (make_inf) Update declaration.
15461 (make_inf): Make it static.
15462 (inf_set_traced): Likewise.
15463 (inf_port_to_thread, inf_task_died_status): Likewise.
15464
15465 2014-01-07 Yao Qi <yao@codesourcery.com>
15466
15467 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15468
15469 2014-01-07 Yao Qi <yao@codesourcery.com>
15470
15471 * gnu-nat.c (_initialize_gnu_nat): Declare.
15472
15473 2014-01-07 Yao Qi <yao@codesourcery.com>
15474
15475 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15476 'enum bfd_endian'.
15477 (struct gdbarch_info) <byte_order>: Change type to
15478 'enum bfd_endian'.
15479 <byte_order_for_code>: Likewise.
15480 * gdbarch.c, gdbarch.h: Regenerated.
15481
15482 2014-01-06 Sasha Smundak <asmundak@google.com>
15483
15484 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15485
15486 2014-01-06 Tom Tromey <tromey@redhat.com>
15487
15488 * doublest.c (convert_doublest_to_floatformat): Use const, not
15489 CONST.
15490 * somread.c (som_symtab_read): Likewise.
15491
15492 2014-01-07 Hui Zhu <hui@codesourcery.com>
15493
15494 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15495 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15496 (gdb_bfd_fopen): Ditto.
15497 (gdb_bfd_openr): Ditto.
15498 (gdb_bfd_openw): Ditto.
15499 (gdb_bfd_openr_iovec): Ditto.
15500 (gdb_bfd_fdopenr): Ditto.
15501 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15502 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15503 with xstrdup.
15504 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15505 with xstrdup.
15506 * symfile-mem.c (symbol_file_add_from_memory): Removed
15507 gdb_bfd_stash_filename.
15508
15509 2014-01-03 Doug Evans <dje@google.com>
15510
15511 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15512 output.
15513
15514 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15515
15516 Update year range in copyright notice of all files.
15517
15518 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15519
15520 * top.c (print_gdb_version): Set copyright year to 2014.
15521
15522 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15523
15524 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15525
15526 For older changes see ChangeLog-2013.
15527 \f
15528 Local Variables:
15529 mode: change-log
15530 left-margin: 8
15531 fill-column: 74
15532 version-control: never
15533 coding: utf-8
15534 End:
This page took 0.59126 seconds and 4 git commands to generate.