Use readlink unconditionally
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bdca27a2
YQ
12014-11-28 Yao Qi <yao@codesourcery.com>
2
3 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
4 * config.in, configure: Re-generate.
5 * inf-child.c (inf_child_fileio_readlink): Don't check
6 HAVE_READLINK is defined.
7
2196f55f
YQ
82014-11-28 Yao Qi <yao@codesourcery.com>
9
10 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
11 * gnulib/aclocal.m4: Re-generated.
12 * gnulib/config.in: Likewise.
13 * gnulib/configure: Likewise.
14 * gnulib/import/Makefile.am: Likewise.
15 * gnulib/import/Makefile.in: Likewise.
16 * gnulib/import/m4/gnulib-cache.m4: Likewise.
17 * gnulib/import/m4/gnulib-comp.m4: Likewise.
18 * gnulib/import/dosname.h: New file
19 * gnulib/import/m4/largefile.m4: New file.
20 * gnulib/import/m4/readlink.m4: New file.
21 * gnulib/import/m4/stat.m4: New file.
22 * gnulib/import/readlink.c: New file.
23 * gnulib/import/stat.c: New file.
24
7014e923 252014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
26
27 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
28 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
29
aa489395
SL
302014-11-25 Sandra Loosemore <sandra@codesourcery.com>
31
32 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
33 that there can be only one stack adjustment in the prologue
34 with tests to detect specific disallowed stack adjustments.
35
7f1659b5
SL
362014-11-25 Sandra Loosemore <sandra@codesourcery.com>
37
38 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
39 adjustments.
40
d53c26c7
SL
412014-11-25 Sandra Loosemore <sandra@codesourcery.com>
42
43 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
44 the instruction as well as reading it from memory.
45 (nios2_match_add): New.
46 (nios2_match_sub): New.
47 (nios2_match_addi): New.
48 (nios2_match_orhi): New.
49 (nios2_match_stw): New.
50 (nios2_match_ldw): New.
51 (nios2_match_rdctl): New.
52 (enum branch_condition): New.
53 (nios2_match_branch): New.
54 (nios2_match_jmpi): New.
55 (nios2_match_calli): New.
56 (nios2_match_jmpr): New.
57 (nios2_match_callr): New.
58 (nios2_match_break): New.
59 (nios2_match_trap): New.
60 (nios2_in_epilogue_p): Rewrite to use new functions.
61 (nios2_analyze_prologue): Likewise.
62 (nios2_skip_prologue): Delete unused local limit_pc.
63 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
64 (nios2_get_next_pc): Rewrite to use new functions.
65
cac9b138
JK
662014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
67
68 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
69
a441dfbc
ST
702014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
71
72 Pushed by Joel Brobecker <brobecker@adacore.com>
73 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
74 elements pi_len by the size of the elements before calling
75 vm_deallocate.
76 (inf_validate_task_sc): Likewise, and properly deallocate the
77 noise array.
78
4c9e8482
DE
792014-11-23 Doug Evans <xdje42@gmail.com>
80
81 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
82 number and name if present. All callers updated.
83 (dump_fn_fieldlists): Fix indentation of args.
84
15ee0bbd
PP
852014-11-23 Patrick Palka <patrick@parcs.ath.cx>
86
87 * MAINTAINERS (Write After Approval): Add myself.
88
e8af5d7a
JB
892014-11-23 Joel Brobecker <brobecker@adacore.com>
90
91 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
92 to a bp_call_dummy breakpoint type.
93
a344fc09
PP
942014-11-23 Patrick Palka <patrick@parcs.ath.cx>
95
96 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
97 registering the signal handler.
98
d64e57fa
PP
992014-11-23 Patrick Palka <patrick@parcs.ath.cx>
100
101 * event-top.h (call_stdin_event_handler_again_p): Declare.
102 * event-top.c (call_stdin_event_handler_again_p): Define.
103 (stdin_event_handler): Use it.
104 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
105 handler again if there is pending input following a
106 start sequence.
107
6f9d33d8
PP
1082014-11-23 Patrick Palka <patrick@parcs.ath.cx>
109
110 Pushed by Joel Brobecker <brobecker@adacore.com>
111 * linux-fork.c (checkpoint_command): Print index of new
112 checkpoint in response message.
113
88db67ef
YQ
1142014-11-23 Yao Qi <yao@codesourcery.com>
115
116 * valprint.c (read_string): Move local variables 'found_nul',
117 'chunksize' and 'limit' to inner scope. Update comments.
118
01465b56
DE
1192014-11-22 Doug Evans <xdje42@gmail.com>
120
121 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
122 function comment.
123 (search_symbols): Fix comments and whitespace.
124
07a1c2c3
DE
1252014-11-22 Doug Evans <xdje42@gmail.com>
126
127 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
128
b2a919a8
DE
1292014-11-21 Doug Evans <dje@google.com>
130
131 * psymtab.c (psymtab_search_name): Fix whitespace.
132
278289d5
YQ
1332014-11-21 Yao Qi <yao@codesourcery.com>
134
135 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
136 errno.
137 * gnulib/import/Makefile.am: Re-generated.
138 * gnulib/import/Makefile.in: Likewise.
139 * gnulib/import/m4/gnulib-cache.m4: Likewise.
140
e01e2baa
YQ
1412014-11-21 Yao Qi <yao@codesourcery.com>
142
143 * gdb_wchar.h: Include wchar.h and wctype.h.
144 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
145 include wchar.h and wctype.h.
146 Don't check HAVE_WCHAR_H.
147
f0c00af8
YQ
1482014-11-21 Yao Qi <yao@codesourcery.com>
149
150 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
151 and wctype-h.
152 * gnulib/import/Makefile.am: Re-generated.
153 * gnulib/import/Makefile.in: Likewise.
154 * gnulib/import/m4/gnulib-cache.m4: Likewise.
155
0cae13bb
YQ
1562014-11-21 Yao Qi <yao@codesourcery.com>
157
158 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
159 memchr.
160 * gnulib/import/Makefile.am: Re-generated.
161 * gnulib/import/Makefile.in: Likewise.
162 * gnulib/import/m4/gnulib-cache.m4: Likewise.
163
9c232dda
YQ
1642014-11-21 Yao Qi <yao@codesourcery.com>
165
166 * common/common-defs.h: Include alloca.h
167 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
168 * configure: Re-generated.
169 * defs.h: Remove code handling alloca.
170 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
171 or not.
172
00d7f58f
YQ
1732014-11-21 Yao Qi <yao@codesourcery.com>
174
175 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
176 alloca.
177 * gnulib/import/Makefile.am: Re-generated.
178 * gnulib/import/Makefile.in: Likewise..
179 * gnulib/import/m4/gnulib-cache.m4: Likewise.
180
6068ad5d
YQ
1812014-11-21 Yao Qi <yao@codesourcery.com>
182
183 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
184 alphabetical order.
185
45e44d27
JB
1862014-11-21 Joel Brobecker <brobecker@adacore.com>
187
188 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
189 flag_unsigned if HIGH_BOUND is constant and negative.
190
7e7cbeb3
SDJ
1912014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
192
193 PR breakpoints/10737
194 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
195 modifier from "struct gdbarch" when compiling without Expat (XML)
196 support.
197 (get_syscall_by_number): Likewise.
198 (get_syscall_by_name): Likewise.
199 (get_syscall_names): Likewise.
200
458c8db8
SDJ
2012014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
202
203 PR breakpoints/10737
204 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
205 set_xml_syscall_file_name to provide gdbarch.
206 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
207 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
208 * breakpoint.c (print_it_catch_syscall): Adjust call to
209 get_syscall_by_number to provide gdbarch.
210 (print_one_catch_syscall): Likewise.
211 (print_mention_catch_syscall): Likewise.
212 (print_recreate_catch_syscall): Likewise.
213 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
214 and get_syscall_by_name to provide gdbarch.
215 (catch_syscall_completer): Adjust call to get_syscall_names to
216 provide gdbarch.
217 * gdbarch.c: Regenerate.
218 * gdbarch.h: Likewise.
219 * gdbarch.sh: Forward declare "struct syscalls_info".
220 (xml_syscall_file): New variable.
221 (syscalls_info): Likewise.
222 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
223 set_xml_syscall_file_name to provide gdbarch.
224 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
225 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
226 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
227 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
228 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
229 * xml-syscall.c: Include gdbarch.h.
230 (set_xml_syscall_file_name): Accept gdbarch parameter.
231 (get_syscall_by_number): Likewise.
232 (get_syscall_by_name): Likewise.
233 (get_syscall_names): Likewise.
234 (my_gdb_datadir): Delete global variable.
235 (struct syscalls_info) <my_gdb_datadir>: New variable.
236 (struct syscalls_info) <sysinfo>: Rename variable to
237 "syscalls_info".
238 (sysinfo): Delete global variable.
239 (have_initialized_sysinfo): Likewise.
240 (xml_syscall_file): Likewise.
241 (sysinfo_free_syscalls_desc): Rename to...
242 (syscalls_info_free_syscalls_desc): ... this.
243 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
244 code to the new layout of "struct syscalls_info".
245 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
246 "syscalls_info".
247 (syscall_create_syscall_desc): Likewise.
248 (syscall_start_syscall): Likewise.
249 (syscall_parse_xml): Likewise.
250 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
251 (init_sysinfo): Rename to...
252 (init_syscalls_info): ...this. Add gdbarch as a parameter.
253 Adjust function to deal with gdbarch.
254 (xml_get_syscall_number): Delete parameter sysinfo. Accept
255 gdbarch as a parameter. Adjust code.
256 (xml_get_syscall_name): Likewise.
257 (xml_list_of_syscalls): Likewise.
258 (set_xml_syscall_file_name): Accept gdbarch as parameter.
259 (get_syscall_by_number): Likewise.
260 (get_syscall_by_name): Likewise.
261 (get_syscall_names): Likewise.
262 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
263 (get_syscall_by_number): Likewise.
264 (get_syscall_by_name): Likewise.
265 (get_syscall_names): Likewise.
266
43f3e411
DE
2672014-11-20 Doug Evans <xdje42@gmail.com>
268
269 Split struct symtab into two: struct symtab and compunit_symtab.
270 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
271 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
272 to "struct compunit_symtab *". All callers updated.
273 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
274 "struct symtab *" argument to "struct compunit_symtab *".
275 All callers updated.
276 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
277 result to "struct compunit_symtab *". All callers updated.
278 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
279 Change result to "struct compunit_symtab *". All callers updated.
280 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
281 hange type to "struct compunit_symtab *". All uses updated.
282 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
283 Change type to "struct compunit_symtab *". All uses updated.
284 * buildsym.c (struct buildsym_compunit): New struct.
285 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
286 (buildsym_compunit): New static global.
287 (finish_block_internal): Update to fetch objfile from
288 buildsym_compunit.
289 (make_blockvector): Delete objfile argument.
290 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
291 debugformat, producer.
292 (start_buildsym_compunit): New function.
293 (free_buildsym_compunit): Renamed from free_subfiles_list.
294 All callers updated.
295 (patch_subfile_names): Rewrite to use buildsym_compunit.
296 (get_compunit_symtab): New function.
297 (get_macro_table): Delete argument comp_dir. All callers updated.
298 (start_symtab): Change result to "struct compunit_symtab *".
299 All callers updated. Create the subfile of the main source file.
300 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
301 (reset_symtab_globals): Update.
302 (end_symtab_get_static_block): Update to use buildsym_compunit.
303 (end_symtab_without_blockvector): Rewrite.
304 (end_symtab_with_blockvector): Change result to
305 "struct compunit_symtab *". All callers updated.
306 Update to use buildsym_compunit. Don't set symtab->dirname,
307 instead set it in the compunit.
308 Explicitly make sure main symtab is first in its list.
309 Set debugformat, producer, blockvector, block_line_section, and
310 macrotable in the compunit.
311 (end_symtab_from_static_block): Change result to
312 "struct compunit_symtab *". All callers updated.
313 (end_symtab, end_expandable_symtab): Ditto.
314 (set_missing_symtab): Change symtab argument to
315 "struct compunit_symtab *". All callers updated.
316 (augment_type_symtab): Ditto.
317 (record_debugformat): Update to use buildsym_compunit.
318 (record_producer): Update to use buildsym_compunit.
319 * buildsym.h (struct subfile) <dirname>: Delete.
320 <producer, debugformat>: Delete.
321 <buildsym_compunit>: New member.
322 (get_compunit_symtab): Declare.
323 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
324 from primary_symtab. Change type to "struct compunit_symtab *".
325 All uses updated.
326 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
327 All callers updated.
328 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
329 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
330 symtab. Change type to "struct compunit_symtab *". All uses updated.
331 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
332 All callers updated.
333 (dw2_find_last_source_symtab): Ditto.
334 (dw2_lookup_symbol): Ditto.
335 (recursively_find_pc_sect_compunit_symtab): Renamed from
336 recursively_find_pc_sect_symtab. Change result to
337 "struct compunit_symtab *". All callers updated.
338 (dw2_find_pc_sect_compunit_symtab): Renamed from
339 dw2_find_pc_sect_symtab. Change result to
340 "struct compunit_symtab *". All callers updated.
341 (get_compunit_symtab): Renamed from get_symtab. Change result to
342 "struct compunit_symtab *". All callers updated.
343 (recursively_compute_inclusions): Change type of immediate_parent
344 argument to "struct compunit_symtab *". All callers updated.
345 (compute_compunit_symtab_includes): Renamed from
346 compute_symtab_includes. All callers updated. Rewrite to compute
347 includes of compunit_symtabs and not symtabs.
348 (process_full_comp_unit): Update to work with struct compunit_symtab.
349 (process_full_type_unit): Ditto.
350 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
351 (dwarf_decode_lines): Remove special case handling of main subfile.
352 (macro_start_file): Delete argument comp_dir. All callers updated.
353 (dwarf_decode_macro_bytes): Ditto.
354 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
355 use struct compunit_symtab.
356 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
357 * jit.c (finalize_symtab): Build compunit_symtab.
358 * jv-lang.c (get_java_class_symtab): Change result to
359 "struct compunit_symtab *". All callers updated.
360 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
361 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
362 comp_dir. Change type to "struct compunit_symtab *".
363 All uses updated.
364 (new_macro_table): Change comp_dir argument to cust,
365 "struct compunit_symtab *". All callers updated.
366 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
367 nr_primary_symtabs. All uses updated.
368 (count_symtabs_and_blocks): Update to handle compunits.
369 (report_command_stats): Update output, "primary symtabs" renamed to
370 "compunits".
371 * mdebugread.c (new_symtab): Change result to
372 "struct compunit_symtab *". All callers updated.
373 (parse_procedure): Change type of search_symtab argument to
374 "struct compunit_symtab *". All callers updated.
375 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
376 separate loop.
377 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
378 symtabs. Change type to "struct compunit_symtab *". All uses updated.
379 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
380 All uses updated.
381 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
382 All uses updated.
383 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
384 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
385 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
386 symtab. Change type to "struct compunit_symtab *". All uses updated.
387 * psymtab.c (psymtab_to_symtab): Change result type to
388 "struct compunit_symtab *". All callers updated.
389 (find_pc_sect_compunit_symtab_from_partial): Renamed from
390 find_pc_sect_symtab_from_partial. Change result type to
391 "struct compunit_symtab *". All callers updated.
392 (lookup_symbol_aux_psymtabs): Change result type to
393 "struct compunit_symtab *". All callers updated.
394 (find_last_source_symtab_from_partial): Ditto.
395 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
396 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
397 and macro_table from compunit.
398 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
399 type to "struct compunit_symtab *". All callers updated.
400 (debug_qf_lookup_symbol): Ditto.
401 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
402 debug_qf_find_pc_sect_symtab, change result type to
403 "struct compunit_symtab *". All callers updated.
404 * symfile.c (allocate_symtab): Delete objfile argument.
405 New argument cust.
406 (allocate_compunit_symtab): New function.
407 (add_compunit_symtab_to_objfile): New function.
408 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
409 Change result type to "struct compunit_symtab *". All uses updated.
410 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
411 Change result type to "struct compunit_symtab *". All uses updated.
412 * symmisc.c (print_objfile_statistics): Compute blockvector count in
413 separate loop.
414 (dump_symtab_1): Update test for primary source symtab.
415 (maintenance_info_symtabs): Update to handle compunit symtabs.
416 (maintenance_check_symtabs): Ditto.
417 * symtab.c (set_primary_symtab): Delete.
418 (compunit_primary_filetab): New function.
419 (compunit_language): New function.
420 (iterate_over_some_symtabs): Change type of arguments "first",
421 "after_last" to "struct compunit_symtab *". All callers updated.
422 Update to loop over symtabs in each compunit.
423 (error_in_psymtab_expansion): Rename symtab argument to cust,
424 and change type to "struct compunit_symtab *". All callers updated.
425 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
426 Change result type to "struct compunit_symtab *". All callers updated.
427 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
428 Change result type to "struct compunit_symtab *". All callers updated.
429 (find_pc_sect_line): Only loop over symtabs within selected compunit
430 instead of all symtabs in the objfile.
431 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
432 <compunit_symtab> New member.
433 <block_line_section>: Moved to compunit_symtab.
434 <locations_valid>: Ditto.
435 <epilogue_unwind_valid>: Ditto.
436 <macro_table>: Ditto.
437 <dirname>: Ditto.
438 <debugformat>: Ditto.
439 <producer>: Ditto.
440 <objfile>: Ditto.
441 <call_site_htab>: Ditto.
442 <includes>: Ditto.
443 <user>: Ditto.
444 <primary>: Delete
445 (SYMTAB_COMPUNIT): New macro.
446 (SYMTAB_BLOCKVECTOR): Update definition.
447 (SYMTAB_OBJFILE): Update definition.
448 (SYMTAB_DIRNAME): Update definition.
449 (struct compunit_symtab): New type. Common members among all source
450 symtabs within a compilation unit moved here. All uses updated.
451 (COMPUNIT_OBJFILE): New macro.
452 (COMPUNIT_FILETABS): New macro.
453 (COMPUNIT_DEBUGFORMAT): New macro.
454 (COMPUNIT_PRODUCER): New macro.
455 (COMPUNIT_DIRNAME): New macro.
456 (COMPUNIT_BLOCKVECTOR): New macro.
457 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
458 (COMPUNIT_LOCATIONS_VALID): New macro.
459 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
460 (COMPUNIT_CALL_SITE_HTAB): New macro.
461 (COMPUNIT_MACRO_TABLE): New macro.
462 (ALL_COMPUNIT_FILETABS): New macro.
463 (compunit_symtab_ptr): New typedef.
464 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
465
005e2509
JB
4662014-11-20 Joel Brobecker <brobecker@adacore.com>
467
468 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
469 if the TYPE_CODE of range_type's base type does not match
470 the TYPE_CODE of encoding_type's base type.
471
2b0f535a
JB
4722014-11-19 Joel Brobecker <brobecker@adacore.com>
473
474 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
475 it starts with '<'.
476
8908fca5
JB
4772014-11-19 Joel Brobecker <brobecker@adacore.com>
478
479 * ada-lang.c (ada_is_redundant_range_encoding): New function.
480 (ada_is_redundant_index_type_desc): New function.
481 (to_fixed_array_type): Ignore parallel XA type if redundant.
482
4a46959e
JB
4832014-11-19 Joel Brobecker <brobecker@adacore.com>
484
485 * ada-lang.c (constrained_packed_array_type): Set the length
486 of the return array as if both bounds where zero if that
487 returned array's index type is dynamic.
488
2acf986b
YQ
4892014-11-19 Yao Qi <yao@codesourcery.com>
490
491 * config/i386/go32.mh (CC): Remove.
492
439247b6
DE
4932014-11-18 Doug Evans <xdje42@gmail.com>
494
495 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
496 updated.
497
4d663531
DE
4982014-11-18 Doug Evans <xdje42@gmail.com>
499
500 * buildsym.c (buildsym_objfile): New static global.
501 (buildsym_comp_dir): New static global.
502 (finish_block_internal): Delete arg objfile. All callers updated.
503 (finish_block): Delete arg objfile. All callers updated.
504 (start_subfile): Delete arg dirname. All callers updated.
505 (patch_subfile_names): Update buildsym_comp_dir.
506 (get_macro_table): Delete arg objfile. All callers updated.
507 (start_symtab): New arg objfile. All callers updated.
508 Rename arg dirname to comp_dir.
509 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
510 (end_symtab_get_static_block): Delete arg objfile. All callers
511 updated.
512 (end_symtab_without_blockvector): Ditto.
513 (end_symtab_with_blockvector): Ditto.
514 (end_symtab_from_static_block): Ditto.
515 (end_symtab): Ditto.
516 (end_expandable_symtab): Ditto.
517 (augment_type_symtab): Ditto.
518 * coffread.c (coff_start_symtab): New arg objfile. All callers
519 updated.
520
8435453b
DE
5212014-11-18 Doug Evans <xdje42@gmail.com>
522
523 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
524 updated.
525
ee6f8984
DE
5262014-11-18 Doug Evans <xdje42@gmail.com>
527
528 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
529 symtab.dirname updated to use it.
530
eb822aa6
DE
5312014-11-18 Doug Evans <xdje42@gmail.com>
532
533 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
534 symtab.objfile updated to use it.
535
98387a29
DE
5362014-11-18 Doug Evans <xdje42@gmail.com>
537
538 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
539
aff08958
DE
5402014-11-18 Doug Evans <xdje42@gmail.com>
541
542 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
543 SYMBOL_OBJFILE.
544 * findvar.c (default_read_var_value): Ditto.
545 * jv-lang.c (add_class_symtab_symbol): Ditto.
546 * parse.c (operator_check_standard): Ditto.
547 * printcmd.c (address_info): Ditto.
548 * symtab.c (fixup_symbol_section): Ditto.
549 (skip_prologue_sal): Ditto.
550 * tracepoint.c (scope_info): Ditto.
551 * valops.c (find_function_in_inferior): Ditto.
552 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
553 * python/py-symbol.c (set_symbol): Ditto.
554
7bab9b58
DE
5552014-11-18 Doug Evans <xdje42@gmail.com>
556
557 * buildsym.c (main_subfile): New static global.
558 (free_subfiles_list): New function.
559 (start_symtab): Set main_subfile.
560 (restart_symtab): Replace init of subfiles, current_subfile with
561 call to free_subfiles_list.
562 (watch_main_source_file_lossage): Use main_subfile.
563 (reset_symtab_globals): Replace init of current_subfile with call
564 to free_subfiles_list.
565 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
566 functions, split out from ...
567 (end_symtab_from_static_block): ... here. Rewrite to call them.
568
f194fefb
DE
5692014-11-18 Doug Evans <xdje42@gmail.com>
570
571 The result of symtab expansion is always a primary symtab.
572 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
573 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
574 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
575 (psymtab_to_symtab): Add comment and assert.
576 (map_matching_symbols_psymtab): Remove unnecessary test for
577 non-primary symtab.
578
34248c3a
DE
5792014-11-15 Doug Evans <xdje42@gmail.com>
580
581 PR symtab/17559
582 * symtab.c (find_pc_line_symtab): New function.
583 * symtab.h (find_pc_line_symtab): Declare.
584 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
585 find_pc_symtab.
586 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
587 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
588 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
589 * tui/tui-win.c (make_visible_with_new_height): Ditto.
590 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
591 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
592
2097ae25
DE
5932014-11-15 Doug Evans <xdje42@gmail.com>
594
595 * symtab.c (expand_symtab_containing_pc): Renamed from
596 find_pc_sect_symtab_via_partial. All callers updated.
597
1ada499f
YQ
5982014-11-15 Yao Qi <yao@codesourcery.com>
599
600 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
601
355e2102
JB
6022014-11-14 Joel Brobecker <brobecker@adacore.com>
603
604 * common/common-defs.h: Move <stdarg.h> #include ahead of
605 <stdio.h> #include.
606
83030110
PA
6072014-11-14 Pedro Alves <palves@redhat.com>
608
609 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
610 [!PHONY_ICONV] (gdb_iconv): New function.
611 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
612
a8719064
DE
6132014-11-13 Doug Evans <dje@google.com>
614
615 PR symtab/17591
616 * dwarf2read.c (find_slot_in_mapped_hash): Handle
617 "(anonymous namespace)".
618
60f7655a
DE
6192014-11-13 Doug Evans <dje@google.com>
620
621 * dwarf2read.c (update_enumeration_type_from_children): Avoid
622 infinite loop.
623
5784b3ca
JK
6242014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
625
626 * NEWS (maint set target-async): Fix typo.
627
6218dc4b
PA
6282014-11-12 Pedro Alves <palves@redhat.com>
629
630 * infrun.c (enum infwait_states, infwait_state): Delete.
631
af48d08f
PA
6322014-11-12 Pedro Alves <palves@redhat.com>
633
634 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
635 Rewrite stepping over a permanent breakpoint.
636 (thread_still_needs_step_over, proceed): Don't set
637 stepping_over_breakpoint for permanent breakpoints.
638 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
639 single-step breakpoints out of the target on hardware step
640 targets.
641 (process_event_stop_test): If stepping a permanent breakpoint
642 doesn't hit the step-resume breakpoint, delete the step-resume
643 breakpoint.
644 (switch_back_to_stepped_thread): Also check if the stepped thread
645 has advanced already on hardware step targets.
646 (currently_stepping): Return true if the thread stepped a
647 breakpoint.
648
1a853c52
PA
6492014-11-12 Pedro Alves <palves@redhat.com>
650
651 Mark locations as permanent, not the whole breakpoint.
652 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
653 (mark_breakpoints_out): Don't mark permanent breakpoints as
654 uninserted.
655 (breakpoint_init_inferior): Use mark_breakpoints_out.
656 (breakpoint_here_p): Adjust.
657 (bpstat_stop_status, describe_other_breakpoints): Remove handling
658 of permanent breakpoints.
659 (make_breakpoint_permanent): Mark each location as permanent,
660 instead of marking the breakpoint.
661 (add_location_to_breakpoint): If the location is permanent, mark
662 it as such, and as inserted.
663 (init_breakpoint_sal): Don't make the breakpoint permanent here.
664 (bp_location_compare, update_global_location_list): Adjust.
665 (update_breakpoint_locations): Don't make the breakpoint permanent
666 here.
667 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
668 breakpoints.
669 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
670 (struct bp_location) <permanent>: New field.
671 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
672 reference to bp_permanent.
673
ae9bb220
PA
6742014-11-12 Pedro Alves <palves@redhat.com>
675
676 * arch-utils.c (default_skip_permanent_breakpoint): New function.
677 * arch-utils.h (default_skip_permanent_breakpoint): New
678 declaration.
679 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
680 Install default_skip_permanent_breakpoint as default method.
681 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
682 (i386_gdbarch_init): Don't install it.
683 * infrun.c (resume): Assume there's always a
684 gdbarch_skip_permanent_breakpoint implementation.
685 * gdbarch.h, gdbarch.c: Regenerate.
686
015de688
DC
6872014-11-11 Daniel Colascione <dancol@dancol.org>
688
689 Warn about cross-PID-namespace debugging.
690 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
691 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
692 * linux-thread-db.c (check_pid_namespace_match): New function.
693 (thread_db_inferior_created): Call it.
694
26a84859
DE
6952014-11-10 Doug Evans <xdje42@gmail.com>
696
697 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
698 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
699
712a2e6d
DE
7002014-11-10 Doug Evans <xdje42@gmail.com>
701
702 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
703
af3768e9
DE
7042014-11-10 Doug Evans <xdje42@gmail.com>
705
706 PR symtab/17564
707 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
708 (lookup_static_symbol): Move definition to new location and rewrite.
709 (lookup_symbol_in_objfile): New function.
710 (lookup_symbol_global_iterator_cb): Call it.
711
b1f28d99
UW
7122014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
713
714 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
715
b7a084be
PA
7162014-11-07 Pedro Alves <palves@redhat.com>
717
718 * infrun.c (process_event_stop_test) <subroutine check>: Don't
719 check if we did a "nexti" inside a prologue.
720 * symtab.c (in_prologue): Delete function.
721 * symtab.h (in_prologue): Delete declaration.
722
67be31e5
DE
7232014-11-06 Doug Evans <xdje42@gmail.com>
724
725 * symtab.h (lookup_global_symbol): Improve function comment.
726
08724ab7
DE
7272014-11-06 Doug Evans <xdje42@gmail.com>
728
729 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
730 All callers updated.
731 * symtab.h (lookup_global_symbol): Update decl.
732 (lookup_static_symbol): Move decl to better location.
733
d9060ba6
DE
7342014-11-06 Doug Evans <xdje42@gmail.com>
735
736 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
737
74016e12
DE
7382014-11-06 Doug Evans <xdje42@gmail.com>
739
740 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
741 All callers updated.
742 (lookup_symbol_in_all_objfiles): Renamed from
743 lookup_symbol_aux_symtabs. All callers updated.
744 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
745 All callers updated.
746 (lookup_symbol_in_objfile_symtabs): Renamed from
747 lookup_symbol_aux_objfile. All callers updated.
748
d1a2d36d
DE
7492014-11-06 Doug Evans <xdje42@gmail.com>
750
751 * symtab.c (lookup_symbol_in_block): Renamed from
752 lookup_symbol_aux_block. All callers updated.
753
24d864bb
DE
7542014-11-06 Doug Evans <xdje42@gmail.com>
755
756 * symtab.c (lookup_static_symbol): Renamed from
757 lookup_static_symbol_aux. All callers updated.
758 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
759 All callers updated.
760
358d6ab3
DE
7612014-11-06 Doug Evans <xdje42@gmail.com>
762
763 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
764 * block.c (block_lookup_symbol): Use it.
765 * cp-support.c (make_symbol_overload_list_block): Use it.
766 * symtab.c (iterate_over_symbols): Use it.
767
16b2eaa1
DE
7682014-11-06 Doug Evans <xdje42@gmail.com>
769
770 * symtab.c (lookup_block_symbol): Moved to ...
771 * block.c (block_lookup_symbol): ... here and renamed.
772 All callers updated.
773 * block.h (block_lookup_symbol): Declare.
774 * symtab.h (lookup_block_symbol): Delete.
775
2dd2cd1c
DE
7762014-11-06 Doug Evans <xdje42@gmail.com>
777
778 * ada-lang.c (ada_make_symbol_completion_list): Use
779 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
780 * symtab.c (lookup_objfile_from_block): Ditto.
781
d4c58915
DE
7822014-11-06 Doug Evans <xdje42@gmail.com>
783
784 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
785 TYPE_CODE_STRUCT.
786
9c1877ea
DE
7872014-11-06 Doug Evans <xdje42@gmail.com>
788
789 * objfiles.c (get_objfile_arch): Constify.
790 * objfiles.h (get_objfile_arch): Update prototype.
791 * solib.c (solib_global_lookup): Fetch arch from objfile,
792 not target_gdbarch.
793
426a4079
SL
7942014-11-06 Sandra Loosemore <sandra@codesourcery.com>
795
796 * nios2-tdep.c (wild_insn): Delete.
797 (profiler_insn, irqentry_insn): Delete.
798 (nios2_match_sequence): Delete.
799 (nios2_analyze_prologue): Update comments. Remove matching
800 of obsolete profiler_insn and irqentry_insn sequences.
801
ee11262d
AM
8022014-11-05 Alan Modra <amodra@gmail.com>
803
804 * charset.c (convert_between_encodings): Shrink obstack using
805 obstack_blank_fast.
806 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
807 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
808 to char* before doing pointer arithmetic.
ee11262d 809
c87e6d00
SM
8102014-11-04 Simon Marchi <simon.marchi@ericsson.com>
811
812 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
813
441ef17f
PA
8142014-11-04 Pedro Alves <palves@redhat.com>
815
816 * breakpoint.c (breakpoint_thread_match): Delete function.
817 * breakpoint.h (breakpoint_thread_match): Delete declaration.
818
e0f52461
SC
8192014-11-03 Siva Chandra Reddy <sivachandra@google.com>
820
821 PR c++/17494
822 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
823 the method args also under EVAL_SKIP when evaluating method
824 calls under EVAL_SKIP.
825
a0b4d890
YQ
8262014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
827
828 * dwarf2loc.c (read_pieced_value): Do big endian
829 processing only if gdb_regnum is not -1.
830 (write_pieced_value): Ditto.
831
8322014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
833
834 * arm-linux-tdep.c (arm_linux_init_abi): Use
835 info.byte_order_for_code to choose endianity of breakpoint
836 instructions snippets.
837
8382014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
839
840 * arm-tdep.c (extract_arm_insn): Use
841 gdbarch_byte_order_for_code to read arm instruction.
842
e82149ff
DE
8432014-11-02 Doug Evans <xdje42@gmail.com>
844
845 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
846
d7ee84f1
DE
8472014-11-02 Doug Evans <xdje42@gmail.com>
848
849 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
850 main_subfile before returning.
851
4f072d17
DE
8522014-10-31 Doug Evans <xdje42@gmail.com>
853
854 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
855 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
856
8301c89e
DE
8572014-10-31 Doug Evans <xdje42@gmail.com>
858
859 * valops.c (value_cast_pointers): Fix whitespace.
860 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
861 Ditto.
862
02be9a71
DE
8632014-10-30 Doug Evans <dje@google.com>
864
865 * NEWS: Mention ability add attributes to gdb.Objfile and
866 gdb.Progspace objects.
867 * python/py-objfile.c (objfile_object): New member dict.
868 (objfpy_dealloc): Py_XDECREF dict.
869 (objfpy_initialize): Initialize dict.
870 (objfile_getset): Add __dict__.
871 (objfile_object_type): Set tp_dictoffset member.
872 * python/py-progspace.c (progspace_object): New member dict.
873 (pspy_dealloc): Py_XDECREF dict.
874 (pspy_initialize): Initialize dict.
875 (pspace_getset): Add __dict__.
876 (pspace_object_type): Set tp_dictoffset member.
877
6427bef6
YQ
8782014-10-30 Yao Qi <yao@codesourcery.com>
879
880 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
881 replace '\\' with '\\\\'.
882
f60325be
JB
8832014-10-29 Joel Brobecker <brobecker@adacore.com>
884
885 GDB 7.8.1 released.
886
ab917dfb
PA
8872014-10-29 Pedro Alves <palves@redhat.com>
888
889 PR gdb/17408
890 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
891 instead of assuming a thread with a stepping range is always
892 stepping.
893
d3d4baed
PA
8942014-10-29 Pedro Alves <palves@redhat.com>
895
896 PR python/17372
897 * event-top.c (change_line_handler): Call
898 gdb_rl_callback_handler_remove instead of
899 rl_callback_handler_remove.
900 (callback_handler_installed): New global.
901 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
902 (gdb_rl_callback_handler_reinstall): New functions.
903 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
904 gdb_rl_callback_handler_install instead of
905 rl_callback_handler_remove and rl_callback_handler_install.
906 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
907 instead of rl_callback_handler_remove.
908 * event-top.h (gdb_rl_callback_handler_remove)
909 (gdb_rl_callback_handler_install)
910 (gdb_rl_callback_handler_reinstall): New declarations.
911 * infrun.c (reinstall_readline_callback_handler_cleanup): New
912 cleanup function.
913 (fetch_inferior_event): Install it.
914 * top.c (gdb_readline_wrapper_line) Call
915 gdb_rl_callback_handler_remove instead of
916 rl_callback_handler_remove.
917 (gdb_readline_wrapper_cleanup): Don't call
918 rl_callback_handler_install.
919
6e5d7f39
PA
9202014-10-29 Pedro Alves <palves@redhat.com>
921
922 * event-top.c (command_line_handler): Clear the first byte of
923 linebuffer, when it is first allocated.
924
551cb6a5
PA
9252014-10-29 Pedro Alves <palves@redhat.com>
926
927 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
928 TRY_CATCH.
929
1e1e619b
PA
9302014-10-29 Pedro Alves <palves@redhat.com>
931
932 PR tui/16138
933 PR tui/17519
934 * tui/tui-interp.c (tui_is_toplevel): Delete global.
935 (tui_allowed_p): Delete function.
936 * tui/tui.c: Include "interps.h".
937 (tui_enable): Don't use tui_allowed_p. Error out here with
938 detailed error messages if the TUI is the top level interpreter,
939 or if output is not a terminal. Use newterm instead of initscr,
940 and error out if initializing the terminal fails. Also error out if
941 the terminal doesn't support cursor addressing.
942 * tui/tui.h (tui_allowed_p): Delete declaration.
943
6041179a
JB
9442014-10-29 Joel Brobecker <brobecker@adacore.com>
945
946 * arm-tdep.c (arm_skip_stack_protector): Return early if
947 address loaded by first "ldr" instruction does not have
948 a corresponding minimal symbol. Update comment.
949
6ae274b7
YQ
9502014-10-29 Yao Qi <yao@codesourcery.com>
951
952 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
953 loaded address correctly of ldr instruction.
954
7f5ef605
PA
9552014-10-28 Pedro Alves <palves@redhat.com>
956
957 PR gdb/12623
958 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
959 field.
960 * infrun.c (resume) <stepping breakpoint instruction>: Set the
961 thread's stepped_breakpoint field. Skip if reverse debugging.
962 Add comment.
963 (init_thread_stepping_state, handle_signal_stop): Clear the
964 thread's stepped_breakpoint field.
965
7d1a114c
PA
9662014-10-27 Pedro Alves <palves@redhat.com>
967
968 * remote.c (remote_thread_alive): New, factored out from ...
969 (remote_thread_alive): ... this.
970 (remote_update_thread_list): Bail out before deleting threads if
971 the target returned an empty list, and, the current thread has a
972 magic/fake ptid.
973
e5f8a7cc
PA
9742014-10-27 Pedro Alves <palves@redhat.com>
975
976 * infrun.c (handle_signal_stop): Also skip handlers when a random
977 signal arrives while handling a "stepi" or a "nexti". Set the
978 thread's 'step_after_step_resume_breakpoint' flag.
979
71e396f9
LM
9802014-10-27 Luis Machado <lgustavo@codesourcery.com>
981
982 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
983 (arm_record_ld_st_imm_offset): Reimplement to cover all
984 load/store cases for ARM opcode 010.
985 (arm_record_ld_st_multiple): Reimplement to cover all
986 load/store cases for ARM opcode 100.
987
3aee438b
DE
9882014-10-26 Doug Evans <xdje42@gmail.com>
989
990 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
991
f88cb4b6
DE
9922014-10-26 Doug Evans <xdje42@gmail.com>
993
994 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
995 parameter "kind" to "block_index".
996 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
997 "block_index".
998 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
999
a023a30f
DE
10002014-10-26 Doug Evans <xdje42@gmail.com>
1001
1002 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1003
4c35218e
DE
10042014-10-26 Doug Evans <xdje42@gmail.com>
1005
1006 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1007 obstack_alloc.
1008
f08e8df3
DE
10092014-10-26 Doug Evans <xdje42@gmail.com>
1010
1011 * parser-defs.h (block_found): Move decl from here ...
1012 * symtab.h (block_found): ... to here.
1013
cf901d3b
DE
10142014-10-26 Doug Evans <xdje42@gmail.com>
1015
1016 * symtab.h (struct field_of_this_result): Fix typo in comment.
1017 (lookup_symbol_in_language): Move function comment here.
1018 (lookup_symbol): Improve function comment.
1019 (basic_lookup_symbol_nonlocal): Ditto.
1020 (lookup_symbol_static, lookup_symbol_global): Ditto.
1021 (lookup_symbol_aux_block): Ditto.
1022 (lookup_language_this): Add function comment.
1023 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1024 function comment.
1025 (lookup_block_symbol): Improve function comment.
1026 (lookup_struct): Fix capitalization in function comment.
1027 (lookup_transparent_type): Add function comment.
1028 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1029 Improve function comment.
1030 (lookup_objfile_from_block): Add function comment.
1031 * symtab.c (lookup_symbol_in_language): Update function comment.
1032 (lookup_symbol, lookup_language_this): Ditto.
1033 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1034 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1035 (basic_lookup_symbol_nonlocal): Ditto.
1036 (lookup_symbol_static, lookup_symbol_global): Ditto.
1037 (lookup_transparent_type, lookup_block_symbol): Ditto.
1038
ff6c39cf
DE
10392014-10-25 Doug Evans <xdje42@gmail.com>
1040
1041 * symtab.c (types_info): Delete forward decl.
1042 (functions_info, variables_info, sources_info): Ditto.
1043 (_initialize_symtab): Rewrite forward decl to use
1044 initialize_file_ftype.
1045
ec201f0c
DE
10462014-10-25 Doug Evans <xdje42@gmail.com>
1047
1048 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1049
ca040673
DE
10502014-10-25 Doug Evans <xdje42@gmail.com>
1051
1052 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1053 of local var child_die.
1054
6f259a23
DB
10552014-10-24 Don Breazeal <donb@codesourcery.com>
1056
1057 * infrun.c (follow_fork_inferior): Update fork message printing
1058 to use target_terminal_ours_for_output instead of
1059 target_terminal_ours, to use _() for all format strings, to print
1060 "vfork" instead of "fork" for vforks, and to add a detach message.
1061 (handle_vfork_child_exec_or_exit): Update message printing to use
1062 target_terminal_ours_for_output instead of target_terminal_ours, to
1063 use _() for all format strings, and to fix some formatting.
1064
09dd9a69
PA
10652014-10-24 Pedro Alves <palves@redhat.com>
1066
1067 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1068 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1069 * config/vax/vax.mh: Delete.
1070 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1071 obsolete configurations section.
1072 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1073 * vax-nat.c: Delete file.
1074
5ab806de
PA
10752014-10-24 Pedro Alves <palves@redhat.com>
1076
1077 * NEWS (Removed targets): Add OS/arch column.
1078
3433cfa5
SC
10792014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1080
1081 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1082 on the arg type of a constructor only if it is of reference type.
1083
96ba4233
SL
10842014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1085
1086 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1087 accessors and constants from nios2 opcodes update.
1088 (nios2_get_next_pc): Likewise.
1089
28153fd3
DE
10902014-10-19 Doug Evans <xdje42@gmail.com>
1091
1092 * gdbthread.h (set_running): Fix comment.
1093 (set_executing, finish_thread_state): Fix comment.
1094
fc9b8e47
DE
10952014-10-18 Doug Evans <xdje42@gmail.com>
1096
1097 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1098
4ffbba72
DE
10992014-10-17 Doug Evans <dje@google.com>
1100
1101 * NEWS: Mention new event gdb.clear_objfiles.
1102 * python/py-event.h (emit_clear_objfiles_event): Clear
1103 * python/py-events.h (events_object): New member clear_objfiles.
1104 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1105 event.
1106 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1107 emit clear_objfiles event.
1108 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1109 function.
1110 (emit_clear_objfiles_event): New function.
1111 (clear_objfiles): New event.
1112 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1113 Declare.
1114 * python/python.c (_initialize_python): Call
1115 gdbpy_initialize_clear_objfiles_event.
1116
d096d8c1
DE
11172014-10-17 Doug Evans <dje@google.com>
1118
1119 * NEWS: Mention new gdb.Objfile.progspace attribute.
1120 * python/py-objfile.c (objfpy_get_progspace): New function.
1121 (objfile_getset): New entry for "progspace".
1122
6c4486e6
PA
11232014-10-17 Pedro Alves <palves@redhat.com>
1124
1125 PR gdb/17471
1126 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1127 returns a copy of the input.
1128 (run_command_1, continue_command, step_1, jump_command)
1129 (signal_command, until_command, advance_command, finish_command)
1130 (attach_command): Adjust and install a cleanup to free the
1131 stripped args.
1132
0ff33695
PA
11332014-10-17 Pedro Alves <palves@redhat.com>
1134
1135 PR gdb/17300
1136 * infcmd.c (continue_1): If continuing all threads in the
1137 foreground, make sure the inferior's terminal settings are put in
1138 effect.
1139
6fdebc3d
PA
11402014-10-17 Pedro Alves <palves@redhat.com>
1141
1142 PR gdb/17472
1143 * annotate.c (annotate_breakpoints_invalid): Use
1144 target_terminal_our_for_output instead of target_terminal_ours.
1145 Give back the terminal to the target.
1146 (annotate_frames_invalid): Likewise.
1147
5842f62a
PA
11482014-10-17 Pedro Alves <palves@redhat.com>
1149
1150 * target.c (enum terminal_state): New enum.
1151 (terminal_state): New global.
1152 (target_terminal_init): New function.
1153 (target_terminal_inferior): Skip if inferior already owns the
1154 terminal.
1155 (target_terminal_ours, target_terminal_ours_for_output): New
1156 functions.
1157 * target.h (target_terminal_init): Convert to function prototype.
1158 (target_terminal_ours_for_output): Convert to function prototype
1159 and tweak comment.
1160 (target_terminal_ours): Convert to function prototype and tweak
1161 comment.
1162 * windows-nat.c (do_initial_windows_stuff): Call
1163 target_terminal_init instead of child_terminal_init_with_pgrp.
1164
32a8097b
PA
11652014-10-17 Pedro Alves <palves@redhat.com>
1166
1167 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1168 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1169 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1170 solib-osf.c.
1171 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1172 * ada-lang.h [__alpha__ && __osf__]
1173 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1174 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1175 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1176 GDB_OSABI_OSF1.
1177 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1178 files.
1179 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1180 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1181 * configure: Regenerate.
1182 * configure.ac: Remove references to osf.
1183 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1184 section. Remove all other references to osf.
1185 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1186 Remove all other references to osf.
1187 * dec-thread.c: Delete file.
1188 * defs.h (GDB_OSABI_OSF1): Delete.
1189 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1190 defined.
1191 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1192 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1193 Delete code.
1194 (unconditionally_kill_inferior)
1195 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1196 * solib-osf.c: Delete file.
1197
80134cf5
PA
11982014-10-17 Pedro Alves <palves@redhat.com>
1199
1200 * remote.c (clear_threads_listing_context): Move higher up, out of
1201 the HAVE_LIBEXPAT guard.
1202
89c7137f
TG
12032014-10-16 Tristan Gingold <gingold@adacore.com>
1204
1205 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1206 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1207 on amd64.
1208
44ee4a52
PA
12092014-10-15 Pedro Alves <palves@redhat.com>
1210
1211 * dec-thread.c (dec_thread_count_gdb_threads)
1212 (dec_thread_add_gdb_thread): Delete.
1213 (dec_thread_update_thread_list): Delete.
1214 (dec_thread_find_new_threads): Rename to ...
1215 (dec_thread_update_thread_list): ... this. Delete GDB-size
1216 threads that are no longer found in dec_thread_list.
1217 (resync_thread_list): Delete.
1218 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1219 resync_thread_list.
1220
ab970af1
PA
12212014-10-15 Pedro Alves <palves@redhat.com>
1222
1223 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1224 * remote.c (remote_update_thread_list): Skip calling prune_threads
1225 if any thread listing method is supported, and instead walk over
1226 the set of remote threads listed, deleting those that are not
1227 found in GDB's thread list.
1228
e8032dde
PA
12292014-10-15 Pedro Alves <palves@redhat.com>
1230
1231 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1232 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1233 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1234 (bsd_uthread_target): Adjust.
1235 * corelow.c (core_open): Adjust.
1236 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1237 (dec_thread_update_thread_list): New function.
1238 (init_dec_thread_ops): Adjust.
1239 * gdbthread.h (prune_threads): New declaration.
1240 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1241 (thread_db_update_thread_list): ... this. Call prune_threads.
1242 (init_thread_db_ops): Adjust.
1243 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1244 (procfs_update_thread_list): ... this. Call prune_threads.
1245 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1246 Adjust.
1247 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1248 (obsd_update_thread_list): ... this. Call prune_threads.
1249 (obsd_add_target): Adjust.
1250 * procfs.c (procfs_target): Adjust.
1251 (procfs_notice_thread): Update comment.
1252 (procfs_find_new_threads): Rename to ...
1253 (procfs_update_thread_list): ... this. Call prune_threads.
1254 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1255 comment.
1256 (ravenscar_wait): Adjust.
1257 (ravenscar_find_new_threads): Rename to ...
1258 (ravenscar_update_thread_list): ... this. Call prune_threads.
1259 (init_ravenscar_thread_ops): Adjust.
1260 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1261 (record_btrace_update_thread_list): ... this. Adjust comment.
1262 (init_record_btrace_ops): Adjust.
1263 * remote.c (remote_threads_info): Rename to ...
1264 (remote_update_thread_list): ... this. Call prune_threads.
1265 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1266 Adjust.
1267 * sol-thread.c (check_for_thread_db): Adjust.
1268 (sol_find_new_threads_callback): Rename to ...
1269 (sol_update_thread_list_callback): ... this.
1270 (sol_find_new_threads): Rename to ...
1271 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1272 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1273 * target-delegates.c: Regenerate.
1274 * target.c (target_find_new_threads): Rename to ...
1275 (target_update_thread_list): ... this.
1276 * target.h (struct target_ops): Rename to_find_new_threads field
1277 to to_update_thread_list.
1278 (target_find_new_threads): Rename to ...
1279 (target_update_thread_list): ... this.
1280 * thread.c (prune_threads): Make extern.
1281 (update_thread_list): Adjust.
1282
6dc54d91
PA
12832014-10-15 Pedro Alves <palves@redhat.com>
1284
1285 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1286 Add describing comment. Return -1 if the qL packet is not
1287 supported.
1288 (struct thread_item, thread_item_t): Move higher up in
1289 the file. Add comments.
1290 (struct threads_parsing_context): Move higher up in
1291 the file, add comments, and remote to ...
1292 (struct threads_listing_context): ... this.
1293 (remote_newthread_step): Don't add the thread to GDB's thread
1294 database here. Instead push it to the thread_listing_context
1295 list.
1296 (remote_find_new_threads): Rename to ...
1297 (remote_get_threads_with_ql): ... this. Add target_ops and
1298 targets_listing_context parameters. Pass down context.
1299 (start_thread): Adjust.
1300 (clear_threads_parsing_context): Rename to ...
1301 (clear_threads_listing_context): ... this.
1302 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1303 remote_threads_info.
1304 (remote_get_threads_with_qthreadinfo): Ditto.
1305 (remote_threads_info): Reimplement.
1306
36728e82
PA
13072014-10-15 Pedro Alves <palves@redhat.com>
1308
1309 * infrun.c (resume): Don't force displaced-stepping for all
1310 single-steps on software single-stepping archs.
1311
34b7e8a6
PA
13122014-10-15 Pedro Alves <palves@redhat.com>
1313
1314 * breakpoint.c (single_step_breakpoints): Delete global.
1315 (insert_single_step_breakpoint): Adjust to store the breakpoint
1316 pointer in the current thread.
1317 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1318 (cancel_single_step_breakpoints): Delete functions.
1319 (breakpoint_has_location_inserted_here): Make extern.
1320 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1321 breakpoint list.
1322 * breakpoint.h (breakpoint_has_location_inserted_here): New
1323 declaration.
1324 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1325 (cancel_single_step_breakpoints): Remove declarations.
1326 * gdbthread.h (struct thread_control_state)
1327 <single_step_breakpoints>: New field.
1328 (delete_single_step_breakpoints)
1329 (thread_has_single_step_breakpoints_set)
1330 (thread_has_single_step_breakpoint_here): New declarations.
1331 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1332 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1333 (singlestep_pc): Delete globals.
1334 (infrun_thread_ptid_changed): Remove references to removed
1335 globals.
1336 (resume_cleanups): Delete the current thread's single-step
1337 breakpoints.
1338 (maybe_software_singlestep): Remove references to removed globals.
1339 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1340 delete_single_step_breakpoints.
1341 (init_wait_for_inferior): Remove references to removed globals.
1342 (delete_thread_infrun_breakpoints): Delete the thread's
1343 single-step breakpoints too.
1344 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1345 single-step breakpoints here.
1346 (delete_stopped_threads_single_step_breakpoints): New function.
1347 (adjust_pc_after_break): Adjust to use
1348 thread_has_single_step_breakpoints_set.
1349 (handle_inferior_event): Remove references to removed globals.
1350 Use delete_stopped_threads_single_step_breakpoints.
1351 (handle_signal_stop): Adjust to per-thread single-step
1352 breakpoints. Swap test order to do cheaper tests first.
1353 (switch_back_to_stepped_thread): Extend debug output. Remove
1354 references to removed globals.
1355 * record-full.c (record_full_wait_1): Adjust to per-thread
1356 single-step breakpoints.
1357 * thread.c (delete_single_step_breakpoints)
1358 (thread_has_single_step_breakpoints_set)
1359 (thread_has_single_step_breakpoint_here): New functions.
1360 (clear_thread_inferior_resources): Also delete the thread's
1361 single-step breakpoints.
1362
5b834a0a
PA
13632014-10-15 Pedro Alves <palves@redhat.com>
1364
1365 * thread.c (delete_thread_breakpoint): New function.
1366 (delete_step_resume_breakpoint)
1367 (delete_exception_resume_breakpoint): Use it.
1368 (delete_at_next_stop): New function.
1369 (clear_thread_inferior_resources): Use delete_at_next_stop.
1370
a1fd2fa5
PA
13712014-10-15 Pedro Alves <palves@redhat.com>
1372
1373 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1374 (breakpoint_inserted_here_p): ... here. Remove special case for
1375 software single-step breakpoints.
1376 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1377 (software_breakpoint_inserted_here_p): ... here. Remove special
1378 case for software single-step breakpoints.
1379 (bp_target_info_copy_insertion_state)
1380 (deprecated_insert_raw_breakpoint)
1381 (deprecated_remove_raw_breakpoint): Delete functions.
1382 * breakpoint.h (deprecated_insert_raw_breakpoint)
1383 (deprecated_remove_raw_breakpoint): Remove declarations.
1384
7c16b83e
PA
13852014-10-15 Pedro Alves <palves@redhat.com>
1386
1387 PR breakpoints/9649
1388 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1389 Delete array globals.
1390 (single_step_breakpoints): New global.
1391 (breakpoint_xfer_memory): Remove special handling for single-step
1392 breakpoints.
1393 (update_breakpoints_after_exec): Delete bp_single_step
1394 breakpoints.
1395 (detach_breakpoints): Remove special handling for single-step
1396 breakpoints.
1397 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1398 (bpstat_stop_status): Add comment.
1399 (bpstat_what, bptype_string, print_one_breakpoint_location)
1400 (adjust_breakpoint_address, init_bp_location): Handle
1401 bp_single_step.
1402 (new_single_step_breakpoint): New function.
1403 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1404 handling for single-step breakpoints.
1405 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1406 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1407 Rewrite.
1408 (detach_single_step_breakpoints, find_single_step_breakpoint):
1409 Delete functions.
1410 (breakpoint_has_location_inserted_here): New function.
1411 (single_step_breakpoint_inserted_here_p): Rewrite.
1412 * breakpoint.h: Remove FIXME.
1413 (enum bptype) <bp_single_step>: New enum value.
1414 (insert_single_step_breakpoint): Update comment.
1415 * infrun.c (resume_cleanups)
1416 (delete_step_thread_step_resume_breakpoint): Remove single-step
1417 breakpoints.
1418 (fetch_inferior_event): Install a cleanup that removes infrun
1419 breakpoints.
1420 (switch_back_to_stepped_thread) <expect thread advanced also>:
1421 Clear step-over info.
1422
0cbcdb96
PA
14232014-10-15 Pedro Alves <palves@redhat.com>
1424
1425 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1426 (delete_thread_infrun_breakpoints): New function, with parts
1427 salvaged from delete_step_resume_breakpoint_callback.
1428 (delete_step_thread_step_resume_breakpoint): Delete.
1429 (for_each_just_stopped_thread_callback_func): New typedef.
1430 (for_each_just_stopped_thread): New function.
1431 (delete_just_stopped_threads_infrun_breakpoints): New function.
1432 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1433 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1434 ... this. Adjust.
1435 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1436
963f9c80
PA
14372014-10-15 Pedro Alves <palves@redhat.com>
1438
1439 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1440 trying to step past a non-steppable watchpoint.
1441 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1442 field.
1443 * infrun.c (struct step_over_info): Add new field
1444 'nonsteppable_watchpoint_p' and adjust comments.
1445 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1446 Adjust.
1447 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1448 (stepping_past_nonsteppable_watchpoint): New function.
1449 (step_over_info_valid_p): Also return true if stepping past a
1450 nonsteppable watchpoint.
1451 (proceed): Adjust call to set_step_over_info. Remove reference to
1452 init_infwait_state.
1453 (init_wait_for_inferior): Remove reference to init_infwait_state.
1454 (waiton_ptid): Delete global.
1455 (struct execution_control_state)
1456 <stepped_after_stopped_by_watchpoint>: Delete field.
1457 (wait_for_inferior, fetch_inferior_event): Always pass
1458 minus_one_ptid to target_wait.
1459 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1460 field.
1461 (init_infwait_state): Delete function.
1462 (handle_inferior_event): Remove infwait_state handling.
1463 (handle_signal_stop) <watchpoints handling>: Adjust after
1464 stepped_after_stopped_by_watchpoint removal. Don't remove
1465 breakpoints here nor set infwait_state. Set the thread's
1466 stepping_over_watchpoint flag, and call keep_going instead.
1467 (keep_going): Handle stepping_over_watchpoint. Adjust
1468 set_step_over_info calls.
1469 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1470 function.
1471
6cc83d2a
PA
14722014-10-15 Pedro Alves <palves@redhat.com>
1473
1474 * infrun.c (step_over_info_valid_p): New function.
1475 (resume): Use step_over_info_valid_p instead of checking the
1476 threads's trap_expected flag.
1477
6979730b
DE
14782014-10-15 Doug Evans <dje@google.com>
1479 Walfred Tedeschi <walfred.tedeschi@intel.com>
1480
1481 PR python/17364
1482 * python/lib/gdb/__init__.py (packages): Add "printer".
1483 * python/lib/gdb/command/bound_registers.py: Moved to ...
1484 * python/lib/gdb/printer/bound_registers.py: ... here.
1485 Add printer to global set of builtin printers. Rename printer from
1486 "bound" to "mpx_bound128".
1487 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1488 registered as global "builtin" printer.
1489 (add_builtin_pretty_printer): New function.
1490 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1491 gdb/printer/__init__.py.
1492
35a49624
IB
14932014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1494
1495 * Makefile.in (SFILES): Remove d-support.c.
1496 (COMMON_OBS): Remove d-support.o.
1497 * d-lang.h (d_parse_symbol): Remove declaration.
1498 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1499 * d-support.c: Remove file.
1500
8fa0c4f8
AA
15012014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1502
1503 * gdb/infrun.c (process_event_stop_test): Apply
1504 gdbarch_addr_bits_remove to longjmp resume address.
1505
3666da81
PA
15062014-10-15 Pedro Alves <palves@redhat.com>
1507
1508 * regformats/microblaze.dat: Delete file.
1509
449aa9df
AKA
15102014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1511
1512 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1513 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1514
ebb8ece2
SC
15152014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1516
1517 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1518 as non-trivial.
1519
82c48ac7
SC
15202014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1521
1522 PR c++/13403
1523 PR c++/15154
1524 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1525 with qualified args.
1526
c40cc657
JB
15272014-10-14 Joel Brobecker <brobecker@adacore.com>
1528
1529 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1530 of the case where the second operand is a pointer.
1531 <BINOP_SUB>: Likewise.
1532
0ea5cda8
SDJ
15332014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1534
1535 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1536 only if it is not NULL.
1537 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1538 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1539 (struct probe_ops) <clear_semaphore>: Likewise.
1540 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1541 not NULL.
1542 (stop_tracing): Likewise, for clear_semaphore.
1543
f7088df3
SDJ
15442014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1545
1546 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1547 using language_c, instead of current_language.
1548
4e1bbde0
DE
15492014-10-13 Doug Evans <dje@google.com>
1550
6ff5a0f6 1551 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1552 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1553 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1554 (pspy_new, pspace_to_pspace_object): Call it.
1555
c780cc2f
JK
15562014-10-13 Miroslav Franc <mfranc@redhat.com>
1557 Jan Kratochvil <jan.kratochvil@redhat.com>
1558
1559 Fix "save breakpoints" for "catch" command.
1560 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1561 newline.
1562
99894e11
JK
15632014-10-12 Miroslav Franc <mfranc@redhat.com>
1564
1565 Fix "save breakpoints" for "disable $bpnum" command.
1566 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1567
3831839c
PA
15682014-10-10 Pedro Alves <palves@redhat.com>
1569
1570 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1571 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1572 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1573 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1574 and been removed.
1575 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1576 * configure.ac: Remove references to IRIX.
1577 * configure.host: Add *-*-irix* to the obsolete hosts section.
1578 Remove all other references to irix.
1579 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1580 Delete files.
1581
cc3afae2
AKA
15822014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1583
1584 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1585 isn't valid, release the tdesc arch data and return NULL.
1586
cdfa0b0a
PA
15872014-10-10 Pedro Alves <palves@redhat.com>
1588
1589 * linux-tdep.c: Include observer.h.
1590 (linux_inferior_data): New global.
1591 (struct linux_info): New structure.
1592 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1593 (get_linux_inferior_data): New functions.
1594 (linux_vsyscall_range): Rename to ...
1595 (linux_vsyscall_range_raw): ... this.
1596 (linux_vsyscall_range): New function; handles caching.
1597 (_initialize_linux_tdep): Register linux_inferior_data. Install
1598 inferior_exit and inferior_appeared observers.
1599
8b9a549d
PA
16002014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1601 Pedro Alves <palves@redhat.com>
1602
1603 PR symtab/14466
1604 * solib-svr4.c (svr4_read_so_list): Rename to ...
1605 (svr4_current_sos_1): ... this and change the function comment.
1606 (svr4_current_sos): New function.
1607
3437254d
PA
16082014-10-10 Pedro Alves <palves@redhat.com>
1609
1610 * arch-utils.c (default_vsyscall_range): New function.
1611 * arch-utils.h (default_vsyscall_range): New declaration.
1612 * gdbarch.sh (vsyscall_range): New hook.
1613 * gdbarch.h, gdbarch.c: Regenerate.
1614 * linux-tdep.c (linux_vsyscall_range): New function.
1615 (linux_init_abi): Install linux_vsyscall_range as
1616 vsyscall_range gdbarch hook.
1617 * memrange.c (address_in_mem_range): New function.
1618 * memrange.h (address_in_mem_range): New declaration.
1619 * symfile-mem.c (find_vdso_size): Delete function.
1620 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1621
31cc0b80
PA
16222014-10-10 Pedro Alves <palves@redhat.com>
1623
1624 * infrun.c (normal_stop): Fix typo in comment.
1625
3e3286a2
SDJ
16262014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1627
1628 PR tdep/9390
1629 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1630 typo when using logical AND to determine instruction type.
1631
fcbdedf8
YQ
16322014-10-09 Yao Qi <yao@codesourcery.com>
1633
1634 * infrun.c (handle_signal_stop): Remove local variable
1635 'printed'.
1636
db984616
SS
16372014-10-08 Stan Shebs <stan@codesourcery.com>
1638
1639 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1640
3ba37e6c
GB
16412014-10-08 Gary Benson <gbenson@redhat.com>
1642
1643 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1644
a442d071
GB
16452014-10-08 Gary Benson <gbenson@redhat.com>
1646
1647 * common/common-defs.h: Include common-exceptions.h.
1648 * exceptions.h: Do not include common-exceptions.h.
1649
6f1947e8
GB
16502014-10-08 Gary Benson <gbenson@redhat.com>
1651
1652 * common/common-defs.h: Include cleanups.h.
1653 * common/common-exceptions.c: Do not include cleanups.h.
1654 * utils.h: Likewise.
1655
c765fdb9
GB
16562014-10-08 Gary Benson <gbenson@redhat.com>
1657
1658 * ada-lang.c: Do not include exceptions.h.
1659 * ada-valprint.c: Likewise.
1660 * amd64-tdep.c: Likewise.
1661 * auto-load.c: Likewise.
1662 * block.c: Likewise.
1663 * break-catch-throw.c: Likewise.
1664 * breakpoint.c: Likewise.
1665 * btrace.c: Likewise.
1666 * c-lang.c: Likewise.
1667 * cli/cli-cmds.c: Likewise.
1668 * cli/cli-interp.c: Likewise.
1669 * cli/cli-script.c: Likewise.
1670 * completer.c: Likewise.
1671 * corefile.c: Likewise.
1672 * corelow.c: Likewise.
1673 * cp-abi.c: Likewise.
1674 * cp-support.c: Likewise.
1675 * cp-valprint.c: Likewise.
1676 * darwin-nat.c: Likewise.
1677 * dwarf2-frame-tailcall.c: Likewise.
1678 * dwarf2-frame.c: Likewise.
1679 * dwarf2loc.c: Likewise.
1680 * dwarf2read.c: Likewise.
1681 * eval.c: Likewise.
1682 * event-loop.c: Likewise.
1683 * event-top.c: Likewise.
1684 * f-valprint.c: Likewise.
1685 * frame-unwind.c: Likewise.
1686 * frame.c: Likewise.
1687 * gdbtypes.c: Likewise.
1688 * gnu-v2-abi.c: Likewise.
1689 * gnu-v3-abi.c: Likewise.
1690 * guile/scm-auto-load.c: Likewise.
1691 * guile/scm-breakpoint.c: Likewise.
1692 * guile/scm-cmd.c: Likewise.
1693 * guile/scm-frame.c: Likewise.
1694 * guile/scm-lazy-string.c: Likewise.
1695 * guile/scm-param.c: Likewise.
1696 * guile/scm-symbol.c: Likewise.
1697 * guile/scm-type.c: Likewise.
1698 * hppa-hpux-tdep.c: Likewise.
1699 * i386-tdep.c: Likewise.
1700 * inf-loop.c: Likewise.
1701 * infcall.c: Likewise.
1702 * infcmd.c: Likewise.
1703 * infrun.c: Likewise.
1704 * interps.c: Likewise.
1705 * interps.h: Likewise.
1706 * jit.c: Likewise.
1707 * linespec.c: Likewise.
1708 * linux-nat.c: Likewise.
1709 * linux-thread-db.c: Likewise.
1710 * m32r-rom.c: Likewise.
1711 * main.c: Likewise.
1712 * memory-map.c: Likewise.
1713 * mi/mi-cmd-break.c: Likewise.
1714 * mi/mi-cmd-stack.c: Likewise.
1715 * mi/mi-interp.c: Likewise.
1716 * mi/mi-main.c: Likewise.
1717 * monitor.c: Likewise.
1718 * nto-procfs.c: Likewise.
1719 * objc-lang.c: Likewise.
1720 * p-valprint.c: Likewise.
1721 * parse.c: Likewise.
1722 * ppc-linux-tdep.c: Likewise.
1723 * printcmd.c: Likewise.
1724 * probe.c: Likewise.
1725 * python/py-auto-load.c: Likewise.
1726 * python/py-breakpoint.c: Likewise.
1727 * python/py-cmd.c: Likewise.
1728 * python/py-finishbreakpoint.c: Likewise.
1729 * python/py-frame.c: Likewise.
1730 * python/py-framefilter.c: Likewise.
1731 * python/py-function.c: Likewise.
1732 * python/py-gdb-readline.c: Likewise.
1733 * python/py-inferior.c: Likewise.
1734 * python/py-infthread.c: Likewise.
1735 * python/py-lazy-string.c: Likewise.
1736 * python/py-linetable.c: Likewise.
1737 * python/py-param.c: Likewise.
1738 * python/py-prettyprint.c: Likewise.
1739 * python/py-symbol.c: Likewise.
1740 * python/py-type.c: Likewise.
1741 * python/py-value.c: Likewise.
1742 * python/python-internal.h: Likewise.
1743 * python/python.c: Likewise.
1744 * record-btrace.c: Likewise.
1745 * record-full.c: Likewise.
1746 * regcache.c: Likewise.
1747 * remote-fileio.c: Likewise.
1748 * remote-mips.c: Likewise.
1749 * remote.c: Likewise.
1750 * rs6000-aix-tdep.c: Likewise.
1751 * rs6000-nat.c: Likewise.
1752 * skip.c: Likewise.
1753 * solib-darwin.c: Likewise.
1754 * solib-dsbt.c: Likewise.
1755 * solib-frv.c: Likewise.
1756 * solib-ia64-hpux.c: Likewise.
1757 * solib-spu.c: Likewise.
1758 * solib-svr4.c: Likewise.
1759 * solib.c: Likewise.
1760 * spu-tdep.c: Likewise.
1761 * stack.c: Likewise.
1762 * stap-probe.c: Likewise.
1763 * symfile-mem.c: Likewise.
1764 * symmisc.c: Likewise.
1765 * target.c: Likewise.
1766 * thread.c: Likewise.
1767 * top.c: Likewise.
1768 * tracepoint.c: Likewise.
1769 * tui/tui-interp.c: Likewise.
1770 * typeprint.c: Likewise.
1771 * utils.c: Likewise.
1772 * valarith.c: Likewise.
1773 * valops.c: Likewise.
1774 * valprint.c: Likewise.
1775 * value.c: Likewise.
1776 * varobj.c: Likewise.
1777 * windows-nat.c: Likewise.
1778 * xml-support.c: Likewise.
1779
484933d1
MR
17802014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1781
1782 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1783 name implies.
1784 (extended_mips16_next_pc): Update accordingly.
1785
ab50adb6
MR
17862014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1787
1788 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1789 function.
1790 (micromips_instruction_is_compact_branch): Likewise.
1791 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1792 or a compact jump, reaching a jump delay slot, or seeing a
1793 second non-prologue instruction.
1794 (micromips_scan_prologue): Also terminate scanning upon seeing a
1795 compact branch or jump, or reaching a branch or jump delay slot.
1796 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1797 or jump delay slot, or seeing a second non-prologue instruction.
1798 (mips32_instruction_has_delay_slot): Retain instruction
1799 examination code only, update arguments accordingly and move
1800 instruction fetch pieces to...
1801 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1802 (micromips_instruction_has_delay_slot): Likewise and to...
1803 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1804 (mips16_instruction_has_delay_slot): Likewise and to...
1805 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1806 (mips_single_step_through_delay): Update accordingly.
1807 (mips_adjust_breakpoint_address): Likewise.
1808
ae790652
MR
18092014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1810
1811 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1812 !mustbe32 also return 1 for 32-bit instructions.
1813 (mips16_instruction_has_delay_slot): Likewise. Add an
1814 explanatory comment.
1815
9b807e7b
MR
18162014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1817
1818 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1819 symbols special.
1820
0d5ed153
MR
18212014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1822
1823 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1824 update comments.
1825 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1826 for the breakpoint's address. Don't preinitialize `placed_size'.
1827 (insert_bp_location): Set `reqstd_address' rather than
1828 `placed_address'.
1829 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1830 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1831 address.
1832 (bkpt_remove_location): Likewise.
1833 (deprecated_insert_raw_breakpoint): Likewise.
1834 (deprecated_remove_raw_breakpoint): Likewise.
1835 (find_single_step_breakpoint): Likewise.
1836 * mem-break.c (default_memory_insert_breakpoint): Use
1837 `reqstd_address' for the breakpoint's address. Don't set
1838 `placed_address' or `placed_size' if breakpoint contents couldn't
1839 have been determined.
1840 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1841 the breakpoint's address.
1842 (remote_insert_hw_breakpoint): Likewise. Don't set
1843 `placed_address' or `placed_size' if breakpoint couldn't have been
1844 set.
1845 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1846 `reqstd_address' for the breakpoint's address.
1847 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1848 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1849 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1850 * microblaze-linux-tdep.c
1851 (microblaze_linux_memory_remove_breakpoint): Likewise.
1852 * monitor.c (monitor_insert_breakpoint): Likewise.
1853 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1854 (procfs_insert_hw_breakpoint): Likewise.
1855 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1856 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1857 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1858 * remote-mips.c (mips_insert_breakpoint): Likewise.
1859 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1860
3e871532
LM
18612014-10-03 Luis Machado <lgustavo@codesourcery.com>
1862
1863 * valops.c (value_assign): Check for bit field assignments
1864 before calling architecture-specific register value
1865 conversion functions.
1866
ec48dc8b
PM
18672014-10-03 Pierre Muller <muller@sourceware.org>
1868
1869 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1870
b57bacec
PA
18712014-10-02 Pedro Alves <palves@redhat.com>
1872
1873 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1874 threads_are_executing.
1875 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1876 describing comment.
1877 * gdbthread.h (threads_are_executing): Declare.
1878 (handle_signal_stop) <random signals>: Don't print about the
1879 signal here if stopping.
1880 (end_stepping_range): Don't notify observers here.
1881 (normal_stop): Update the thread list. If stopped by a random
1882 signal or a stepping range ended, notify observers.
1883 * thread.c (threads_executing): New global.
1884 (init_thread_list): Clear 'threads_executing'.
1885 (set_executing): Set or clear 'threads_executing'.
1886 (threads_are_executing): New function.
1887 (update_threads_executing): New function.
1888 (update_thread_list): Use it.
1889
13fd3ff3
PA
18902014-10-02 Pedro Alves <palves@redhat.com>
1891
1892 PR breakpoints/17431
1893 * breakpoint.c (update_breakpoints_after_exec): Don't create
1894 overlay, longjmp, std terminate nor exception breakpoints here.
1895
32990ada
PA
18962014-10-02 Pedro Alves <palves@redhat.com>
1897
1898 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1899 Adjust comments.
1900 * inferior.c (find_inferior_for_program_space): Give preference to
1901 the current inferior.
1902 * inferior.h (find_inferior_for_program_space): Update comment.
1903 * progspace.c (switch_to_program_space_and_thread): Prefer the
1904 current inferior if it's bound to the program space requested. If
1905 the inferior found doesn't have a PID yet, don't bother looking up
1906 a thread.
1907 * progspace.h (switch_to_program_space_and_thread): Adjust
1908 comment.
1909 * thread.c (any_thread_of_process, any_live_thread_of_process):
1910 Give preference to the current thread.
1911
0fec99e8
PA
19122014-10-01 Pedro Alves <palves@redhat.com>
1913
1914 * breakpoint.c (insert_bp_location): Error out if inserting a
1915 software breakpoint at a read-only address.
1916 * target.c (memory_xfer_check_region): New function, factored out
1917 from ...
1918 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1919 ULONGEST.
1920 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1921 against the memory region attributes.
1922
2ddf4301
SM
19232014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1924
1925 * NEWS: Announce new exit-code field in -list-thread-groups
1926 output.
1927 * inferior.c (exit_inferior_1): Don't clear exit code.
1928 (inferior_appeared): Clear exit code.
1929 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1930 code.
1931
5fdeec1d
PA
19322014-10-01 Pedro Alves <palves@redhat.com>
1933
1934 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1935 GENERATED" along with emacs/vi read-only markers.
1936 * regformats/aarch64.dat: Regenerate.
1937 * regformats/arm-with-iwmmxt.dat: Regenerate.
1938 * regformats/arm-with-neon.dat: Regenerate.
1939 * regformats/arm-with-vfpv2.dat: Regenerate.
1940 * regformats/arm-with-vfpv3.dat: Regenerate.
1941 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1942 * regformats/i386/amd64-avx.dat: Regenerate.
1943 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1944 * regformats/i386/amd64-avx512.dat: Regenerate.
1945 * regformats/i386/amd64-linux.dat: Regenerate.
1946 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1947 * regformats/i386/amd64-mpx.dat: Regenerate.
1948 * regformats/i386/amd64.dat: Regenerate.
1949 * regformats/i386/i386-avx-linux.dat: Regenerate.
1950 * regformats/i386/i386-avx.dat: Regenerate.
1951 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1952 * regformats/i386/i386-avx512.dat: Regenerate.
1953 * regformats/i386/i386-linux.dat: Regenerate.
1954 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1955 * regformats/i386/i386-mmx.dat: Regenerate.
1956 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1957 * regformats/i386/i386-mpx.dat: Regenerate.
1958 * regformats/i386/i386.dat: Regenerate.
1959 * regformats/i386/x32-avx-linux.dat: Regenerate.
1960 * regformats/i386/x32-avx.dat: Regenerate.
1961 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1962 * regformats/i386/x32-avx512.dat: Regenerate.
1963 * regformats/i386/x32-linux.dat: Regenerate.
1964 * regformats/i386/x32.dat: Regenerate.
1965 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1966 * regformats/mips-dsp-linux.dat: Regenerate.
1967 * regformats/mips-linux.dat: Regenerate.
1968 * regformats/mips64-dsp-linux.dat: Regenerate.
1969 * regformats/mips64-linux.dat: Regenerate.
1970 * regformats/nios2-linux.dat: Regenerate.
1971 * regformats/rs6000/powerpc-32.dat: Regenerate.
1972 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1973 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1974 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1975 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1976 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1977 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1978 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1979 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1980 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1981 * regformats/s390-linux32.dat: Regenerate.
1982 * regformats/s390-linux32v1.dat: Regenerate.
1983 * regformats/s390-linux32v2.dat: Regenerate.
1984 * regformats/s390-linux64.dat: Regenerate.
1985 * regformats/s390-linux64v1.dat: Regenerate.
1986 * regformats/s390-linux64v2.dat: Regenerate.
1987 * regformats/s390-te-linux64.dat: Regenerate.
1988 * regformats/s390x-linux64.dat: Regenerate.
1989 * regformats/s390x-linux64v1.dat: Regenerate.
1990 * regformats/s390x-linux64v2.dat: Regenerate.
1991 * regformats/s390x-te-linux64.dat: Regenerate.
1992 * regformats/tic6x-c62x-linux.dat: Regenerate.
1993 * regformats/tic6x-c62x.dat: Regenerate.
1994 * regformats/tic6x-c64x-linux.dat: Regenerate.
1995 * regformats/tic6x-c64x.dat: Regenerate.
1996 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1997 * regformats/tic6x-c64xp.dat: Regenerate.
1998
db74e4ba
PA
19992014-10-01 Pedro Alves <palves@redhat.com>
2000
2001 * features/Makefile: Update comments.
2002 (XMLTOC): List all xml files we build C files from.
2003 (clean-cfiles): New rule.
2004
d63f2f84
PA
20052014-10-01 Pedro Alves <palves@redhat.com>
2006
2007 * features/i386/amd64-avx512-linux.c: Regenerate.
2008 * features/i386/amd64-avx512.c: Regenerate.
2009 * features/i386/x32-avx512-linux.c: Regenerate.
2010 * features/i386/x32-avx512.c: Regenerate.
2011
20ad026d
PA
20122014-10-01 Pedro Alves <palves@redhat.com>
2013
2014 * features/Makefile (WHICH): Remove arm-with-m,
2015 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2016
acc9fe45
PA
20172014-10-01 Pedro Alves <palves@redhat.com>
2018
2019 * features/Makefile (clean): New rule.
2020
e001e535
PA
20212014-10-01 Pedro Alves <palves@redhat.com>
2022
2023 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2024 (zmm14h): Add missing end quotes.
2025
bdc14417
PA
20262014-10-01 Pedro Alves <palves@redhat.com>
2027
2028 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2029 * features/aarch64.c: Regenerate.
2030
d83ad864
DB
20312014-09-30 Don Breazeal <donb@codesourcery.com>
2032
2033 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2034 code so as to work with follow_fork_inferior.
2035 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2036 (inf_ttrace_create_inferior): Remove reference to
2037 inf_ttrace_vfork_ppid.
2038 (inf_ttrace_attach): Ditto.
2039 (inf_ttrace_detach): Ditto.
2040 (inf_ttrace_kill): Use current_inferior instead of
2041 inf_ttrace_vfork_ppid.
2042 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2043 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2044 inferior away from the parent.
2045 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2046 target_follow_fork.
2047 (follow_fork_inferior): New function.
2048 (follow_inferior_reset_breakpoints): Make function static.
2049 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2050 * linux-nat.c (linux_child_follow_fork): Move target-independent
2051 code to infrun.c:follow_fork_inferior.
2052
29082443
AA
20532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2054
2055 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2056 * gdbarch.c: Regenerate.
2057 * gdbarch.h: Likewise.
2058 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2059 gdbarch method 'regset_from_core_section'.
2060 (get_core_register_section): Remove handling for the case that
2061 regset == NULL and regset_from_core_section is defined.
2062 (get_core_registers): Drop check for deleted method.
2063 * procfs.c (procfs_do_thread_registers): Adjust comment.
2064
f968fe80
AA
20652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2066
2067 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2068 (linux_nat_make_corefile_notes): Remove.
2069 (linux_target_install_ops): Do not set target method
2070 'make_corefile_notes'.
2071 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2072 Remove field.
2073 (linux_corefile_thread_callback): Instead of args->collect, call
2074 linux_collect_thread_registers.
2075 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2076 NULL unless there is a regset iterator.
2077 (linux_make_corefile_notes_1): Remove.
2078 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2079 by linux_make_corefile_notes.
2080 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2081
174ad59a
AA
20822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2083
2084 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2085 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2086 Remove.
2087 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2088
97094034
AA
20892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2090
2091 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2092 (xtensa_iterate_over_regset_sections): New.
2093 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2094
f73d3ce7
AA
20952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2096
2097 * vax-tdep.c (vax_regset_from_core_section): Remove.
2098 (vax_iterate_over_regset_sections): New.
2099 (vax_gdbarch_init): Adjust gdbarch initialization.
2100
cb24567a
AA
21012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2102
2103 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2104 (tilegx_regset_from_core_section): Remove.
2105 (tilegx_iterate_over_regset_sections): New.
2106 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2107
e5139de8
AA
21082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2109
2110 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2111 (sparc_iterate_over_regset_sections): New.
2112 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2113 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2114 targets.
2115 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2116 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2117 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2118 target method 'make_corefile_notes'.
2119
c6d41a6f
AA
21202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2121
2122 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2123 'sizeof_gregset' and 'sizeof_fpregset'.
2124 * sh-tdep.c (sh_regset_from_core_section): Remove.
2125 (sh_iterate_over_regset_sections): New.
2126 (sh_gdbarch_init): Adjust gdbarch initialization.
2127 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2128 sizeof_fpregset.
2129 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2130 'sizeof_gregset'.
2131
9845a0b5
AA
21322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2133
2134 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2135 (score7_linux_iterate_over_regset_sections): New.
2136 (score_gdbarch_init): Adjust gdbarch initialization.
2137
23ea9aeb
AA
21382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2139
2140 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2141 FreeBSD targets.
2142 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2143 method 'make_corefile_notes'.
2144 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2145 (ppcfbsd_regset_from_core_section): Remove.
2146 (ppcfbsd_iterate_over_regset_sections): New.
2147 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2148 initialization.
2149 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2150 (ppcnbsd_iterate_over_regset_sections): New.
2151 (ppcnbsd_init_abi): Adjust.
2152 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2153 (ppcobsd_iterate_over_regset_sections): New.
2154 (ppcobsd_init_abi): Adjust.
2155 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2156 (rs6000_aix_iterate_over_regset_sections): New.
2157 (rs6000_aix_init_osabi): Adjust.
2158
c5b8d704
AA
21592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2160
2161 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2162 (nios2_regset_from_core_section): Remove.
2163 (nios2_iterate_over_regset_sections): New.
2164 (nios2_linux_init_abi): Adjust gdbarch initialization.
2165
3636e608
AA
21662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2167
2168 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2169 (am33_iterate_over_regset_sections): New.
2170 (am33_linux_init_osabi): Adjust gdbarch initialization.
2171
d4036235
AA
21722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2173
2174 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2175 (mips_linux_iterate_over_regset_sections): New.
2176 (mips_linux_init_abi): Adjust gdbarch initialization.
2177 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2178 (mips64obsd_iterate_over_regset_sections): New.
2179 (mips64obsd_init_abi): Adjust.
2180 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2181 (mipsnbsd_iterate_over_regset_sections): New.
2182 (mipsnbsd_init_abi): Adjust.
2183
b61ddd6e
AA
21842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2185
2186 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2187 (m88k_iterate_over_regset_sections): New.
2188 (m88k_gdbarch_init): Adjust gdbarch initialization.
2189
55a2906a
AA
21902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2191
2192 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2193 (ia64_linux_iterate_over_regset_sections): New.
2194 (ia64_linux_init_abi): Adjust gdbarch initialization.
2195
022c98ab
AA
21962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2197
2198 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2199 (m68kbsd_iterate_over_regset_sections): New.
2200 (m68kbsd_init_abi): Adjust gdbarch initialization.
2201 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2202 (m68k_linux_iterate_over_regset_sections): New.
2203 (m68k_linux_init_abi): Adjust gdbarch initialization.
2204
5fac247f
AA
22052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2206
2207 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2208 (m32r_linux_regset_from_core_section): Remove.
2209 (m32r_linux_iterate_over_regset_sections): New.
2210 (m32r_linux_init_abi): Adjust gdbarch initialization.
2211
490496c3
AA
22122014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2213
2214 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2215 (amd64obsd_iterate_over_regset_sections): New.
2216 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2217 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2218 Remove.
2219 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2220 regset_from_core_section initialization.
2221 * i386-tdep.c (i386_regset_from_core_section): Remove.
2222 (i386_iterate_over_regset_sections): New.
2223 (i386_gdbarch_init): Adjust gdbarch initialization.
2224 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2225 (i386_iterate_over_regset_sections): New prototype.
2226 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2227 Remove.
2228 (i386obsd_aout_iterate_over_regset_sections): New.
2229 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2230 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2231 targets.
2232 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2233 (amd64fbsd_init_abi): Call fbsd_init_abi.
2234 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2235 (i386fbsd4_init_abi): Call fbsd_init_abi.
2236 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2237 target method 'make_corefile_notes'.
2238 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2239
50c5eb53
AA
22402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2241
2242 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2243 (hppa_hpux_iterate_over_regset_sections): New.
2244 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2245 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2246 (hppa_linux_iterate_over_regset_sections): New.
2247 (hppa_linux_init_abi): Adjust.
2248 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2249 (hppanbsd_iterate_over_regset_sections): New.
2250 (hppanbsd_init_abi): Adjust.
2251 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2252 (hppaobsd_iterate_over_regset_sections): New.
2253 (hppaobsd_init_abi): Adjust.
2254
66afae4f
AA
22552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2256
2257 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2258 (frv_linux_iterate_over_regset_sections): New.
2259 (frv_linux_init_abi): Adjust gdbarch initialization.
2260
ed09174e
AA
22612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2262
2263 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2264 (armbsd_iterate_over_regset_sections): New prototype.
2265 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2266 (armbsd_iterate_over_regset_sections): New.
2267 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2268 initialization.
2269
dff2166e
AA
22702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2271
2272 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2273 (alpha_linux_iterate_over_regset_sections): New.
2274 (alpha_linux_init_abi): Adjust gdbarch initialization.
2275 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2276 prototype.
2277 (alphanbsd_iterate_over_regset_sections): New prototype.
2278
4108500a
AA
22792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2280
2281 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2282 Remove.
2283 (aarch64_linux_iterate_over_regset_sections): New.
2284 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2285
a904c024
AA
22862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2287
2288 * fbsd-tdep.c: New file.
2289 * fbsd-tdep.h: New file.
2290 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2291 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2292 (ALLDEPFILES): Add fbsd-tdep.c.
2293
8f0435f7
AA
22942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2295
2296 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2297 parameter.
2298 * gdbarch.h: Regenerate.
2299 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2300 iterator.
2301 (get_core_register_section): Add parameter 'regset' and use it, if
2302 set. Add parameter 'min_size' and verify the bfd section size
2303 against it.
2304 (get_core_registers_cb): Add parameter 'regset' and pass it to
2305 get_core_register section. For the "standard" register sections
2306 ".reg" and ".reg2", set an appropriate default for human_name.
2307 (get_core_registers): Don't abort when the gdbarch has an iterator
2308 but no regset_from_core_section. Add NULL/0 for parameters
2309 'regset'/'min_size' in calls to get_core_register_section.
2310 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2311 'regset' and use it instead of calling the
2312 regset_from_core_section gdbarch method.
2313 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2314 * i386-tdep.c (i386_supply_xstateregset)
2315 (i386_collect_xstateregset, i386_xstateregset): Moved to
2316 i386-linux-tdep.c.
2317 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2318 .reg-xstate.
2319 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2320 core file support only if the regset iterator hasn't been set.
2321 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2322 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2323 Moved from i386-tdep.c and renamed to *_linux*.
2324 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2325 each callback invocation. Allow any .reg-xstate size when reading
2326 from a core file.
2327 * amd64-tdep.c (amd64_supply_xstateregset)
2328 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2329 amd64-linux-tdep.c.
2330 (amd64_regset_from_core_section): Remove.
2331 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2332 install an amd64-specific regset_from_core_section gdbarch method.
2333 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2334 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2335 Moved from amd64-tdep.c and renamed to *_linux*.
2336 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2337 to each callback invocation. Allow any .reg-xstate size when
2338 reading from a core file.
2339 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2340 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2341 each callback invocation.
2342 (arm_linux_init_abi): No longer set the regset_from_core_section
2343 gdbarch method.
2344 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2345 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2346 each callback invocation.
2347 (ppc_linux_init_abi): No longer set the regset_from_core_section
2348 gdbarch method.
2349 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2350 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2351 (s390_regset_from_core_section): Remove.
2352 (s390_iterate_over_regset_sections): Add regset parameter to each
2353 callback invocation.
2354 (s390_gdbarch_init): No longer set the regset_from_core_section
2355 gdbarch method. Drop initialization of deleted tdep fields.
2356
5aa82d05
AA
23572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2358
2359 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2360 (amd64_linux_iterate_over_regset_sections): New.
2361 (amd64_linux_init_abi_common): Don't install the regset section
2362 list, but the new iterator in gdbarch.
2363 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2364 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2365 (arm_linux_iterate_over_regset_sections): ...here. New function.
2366 (arm_linux_init_abi): Set iterator instead of section list.
2367 * corelow.c (get_core_registers_cb): New function, logic moved
2368 from...
2369 (get_core_registers): ...loop body here. Use new iterator method
2370 instead of walking through the regset section list.
2371 * gdbarch.sh: Remove 'core_regset_sections'. New method
2372 'iterate_over_regset_sections'. New typedef
2373 'iterate_over_regset_sections_cb'.
2374 * gdbarch.c: Regenerate.
2375 * gdbarch.h: Likewise.
2376 * i386-linux-tdep.c (i386_linux_regset_sections)
2377 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2378 Remove.
2379 (i386_linux_iterate_over_regset_sections): New.
2380 (i386_linux_init_abi): Don't choose a regset section list, but
2381 install new iterator in gdbarch.
2382 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2383 (linux_collect_regset_section_cb): New function, logic moved
2384 from...
2385 (linux_collect_thread_registers): ...loop body here. Use iterator
2386 method instead of walking through list.
2387 (linux_make_corefile_notes_1): Check for presence of iterator
2388 method instead of regset section list.
2389 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2390 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2391 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2392 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2393 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2394 (ppc_linux_init_abi): Don't choose from above regset section
2395 lists, but install new iterator in gdbarch.
2396 * regset.h (struct core_regset_section): Remove.
2397 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2398 have_linux_v1, have_linux_v2, and have_tdb.
2399 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2400 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2401 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2402 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2403 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2404 (s390_iterate_over_regset_sections): ...here. New function. Use
2405 new tdep fields.
2406 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2407 regset section lists, but install new iterator.
2408
2eca4a8d
JK
24092014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2410
2411 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2412
a73c2b56
SM
24132014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2414
2415 * progspace.c (print_program_space): Don't prune program spaces
2416 before printing them.
2417
03d46957
PA
24182014-09-25 Pedro Alves <palves@redhat.com>
2419
2420 * infrun.c (user_visible_resume_ptid): Don't check
2421 singlestep_breakpoints_inserted_p.
2422
e558d7c1
PA
24232014-09-25 Pedro Alves <palves@redhat.com>
2424
2425 * breakpoint.c (should_be_inserted): Add debug output.
2426
7f89fd65
PA
24272014-09-25 Pedro Alves <palves@redhat.com>
2428
2429 * infrun.c (stepping_past_instruction_at)
2430 (clear_exit_convenience_vars): Point at infrun.h instead of
2431 inferior.h.
2432 (handle_signal_stop): Fix typo.
2433
b7576e5c
YQ
24342014-09-24 Yao Qi <yao@codesourcery.com>
2435
2436 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2437 bitmask.
2438
9a6cf368
GB
24392014-09-22 Gary Benson <gbenson@redhat.com>
2440
2441 * target.c (target_stop): Updated comment.
2442
03f4463b
GB
24432014-09-22 Gary Benson <gbenson@redhat.com>
2444
2445 * target/target.h (target_stop_ptid): Renamed as...
2446 (target_stop_and_wait): New function. Updated comment.
2447 All uses updated.
2448 (target_continue_ptid): Renamed as...
2449 (target_continue_no_signal): New function. Updated comment.
2450 All uses updated.
2451
a25a5a45
PA
24522014-09-22 Pedro Alves <palves@redhat.com>
2453
2454 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2455 and "auto" merged.
2456 * breakpoint.c (enum ugll_insert_mode): New enum.
2457 (always_inserted_mode): Now a plain boolean.
2458 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2459 (breakpoints_always_inserted_mode): Delete.
2460 (breakpoints_should_be_inserted_now): New function.
2461 (insert_breakpoints): Pass UGLL_INSERT to
2462 update_global_location_list instead of calling
2463 insert_breakpoint_locations manually.
2464 (create_solib_event_breakpoint_1): New, factored out from ...
2465 (create_solib_event_breakpoint): ... this.
2466 (create_and_insert_solib_event_breakpoint): Use
2467 create_solib_event_breakpoint_1 instead of calling
2468 insert_breakpoint_locations manually.
2469 (update_global_location_list): Change parameter type from boolean
2470 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2471 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2472 (update_global_location_list_nothrow): Change parameter type from
2473 boolean to enum ugll_insert_mode.
2474 (_initialize_breakpoint): "breakpoint always-inserted" option is
2475 now a boolean command. Update help text.
2476 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2477 (breakpoints_should_be_inserted_now): New declaration.
2478 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2479 Remove breakpoints_always_inserted_mode check.
2480 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2481 * remote.c (remote_start_remote): Likewise.
2482
04086b45
PA
24832014-09-22 Pedro Alves <palves@redhat.com>
2484
2485 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2486 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2487 Instead, pass UGLL_INSERT to update_global_location_list.
2488 (update_global_location_list): Change parameter type from boolean
2489 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2490 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2491 (create_solib_event_breakpoint_1): New, factored out from ...
2492 (create_solib_event_breakpoint): ... this.
2493 (create_and_insert_solib_event_breakpoint): Use
2494 create_solib_event_breakpoint_1 instead of calling
2495 insert_breakpoint_locations manually.
2496 (update_global_location_list): Handle UGLL_INSERT.
2497
44702360
PA
24982014-09-22 Pedro Alves <palves@redhat.com>
2499
2500 * breakpoint.c (enum ugll_insert_mode): New enum.
2501 (update_global_location_list)
2502 (update_global_location_list_nothrow): Change parameter type from
2503 boolean to enum ugll_insert_mode. All callers adjusted.
2504
93c6145a
JB
25052014-09-19 Joel Brobecker <brobecker@adacore.com>
2506
2507 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2508 SystemTap support in GDB.
2509
89a5711c
DB
25102014-09-19 Don Breazeal <donb@codesourcery.com>
2511
2512 * linux-nat.c (linux_handle_extended_wait): Call
2513 linux_ptrace_get_extended_event.
2514 (wait_lwp): Call linux_is_extended_waitstatus.
2515 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2516 and linux_is_extended_waitstatus.
2517 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2518 linux_ptrace_get_extended_event.
2519 (linux_ptrace_get_extended_event): New function.
2520 (linux_is_extended_waitstatus): New function.
2521 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2522 (linux_is_extended_waitstatus): New declarations.
2523
c3b7b696
YQ
25242014-09-19 Yao Qi <yao@codesourcery.com>
2525
2526 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2527 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2528 comments. Callers update.
2529 (dwarf_decode_lines): Likewise.
2530 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2531 comments. Skip the line table if 'lowpc' is greater than
2532 'address'. Don't check
2533 dwarf2_per_objfile->has_section_at_zero.
2534
2b4fd423
DE
25352014-09-18 Doug Evans <dje@google.com>
2536
2537 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2538 * python/py-symtab.c (stpy_get_producer): New function.
2539 (symtab_object_getset): Add "producer" attribute.
2540
5e43d467
UW
25412014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2542
2543 PR gdb/17384
2544 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2545 (do_captured_read_memory_integer): Remove.
2546 (safe_read_memory_integer): Use target_read_memory directly instead
2547 of catching errors in do_captured_read_memory_integer.
2548
04e79979
MR
25492014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2550
2551 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2552 not gdb/doc.
2553
76aeec5b
SDJ
25542014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2555
2556 * objc-lang.c (find_implementation_from_class): Remove dead code.
2557
2f693f9d
SDJ
25582014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2559
2560 PR cli/7233
2561 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2562 "fprintf_unfiltered (gdb_stdlog...)".
2563
bb9d5f81
PP
25642014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2565
2566 PR breakpoints/12526
2567 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2568 val_bitsize.
2569 * breakpoint.c (watch_command_1): Use these fields to retain
2570 bitfield information.
2571 (extract_bitfield_from_watchpoint_value): New function.
2572 (watchpoint_check): Use it.
2573 (update_watchpoint): Use it. Optimize the address and length of a
2574 HW watchpoint pointing to a bitfield.
2575 * value.h (unpack_value_bitfield): New prototype.
2576 * value.c (unpack_value_bitfield): Make extern.
2577
05db5edd
ST
25782014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2579
2580 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2581 x86-dregs.o.
2582 * gnu-nat.c (inf_threads): New function.
2583 * gnu-nat.h (inf_threads_ftype): New typedef.
2584 (inf_threads): New declaration.
2585 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2586 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2587 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2588 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2589 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2590 (i386_gnu_dr_get_control): New functions.
2591 (reg_addr): New structure.
2592 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2593 i386 debugging register hooks.
2594 * NEWS: Mention this.
2595
5a578da5
OJ
25962014-08-13 Omair Javaid <omair.javaid@linaro.org>
2597
2598 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2599 vector data transfer instructions.
2600 (arm_record_coproc_data_proc): Updated.
2601
f20f80dd
OJ
26022014-08-13 Omair Javaid <omair.javaid@linaro.org>
2603
2604 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2605 arm_record_exreg_ld_st_insn.
2606 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2607 load/store insns.
2608
851f26ae
OJ
26092014-08-13 Omair Javaid <omair.javaid@linaro.org>
2610
2611 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2612 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2613 processing instructions.
2614
1e1b6563
OJ
26152014-08-13 Omair Javaid <omair.javaid@linaro.org>
2616
2617 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2618 for advance SIMD struct ld/st insn.
2619 (thumb2_record_decode_insn_handler): Replace stub handler with
2620 thumb2_record_asimd_struct_ld_st.
2621
60cc5e93
OJ
26222014-08-13 Omair Javaid <omair.javaid@linaro.org>
2623
2624 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2625 for asimd, vfp and coprocessor insns.
2626 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2627 and coprocessor insns.
2628 (thumb2_record_coproc_insn): New function.
2629 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2630 handlers.
2631 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2632 opcode 110 insns.
2633
81219e53
DE
26342014-09-13 Doug Evans <xdje42@gmail.com>
2635
2636 * NEWS: Mention new "queue-signal" command.
2637 * infcmd.c (queue_signal_command): New function.
2638 (_initialize_infcmd): Add new queue-signal command.
2639
d36bf488
DE
26402014-09-13 Doug Evans <xdje42@gmail.com>
2641
2642 * linux-nat.c (wait_lwp): Add debugging printf.
2643 (linux_nat_wait_1): Ditto.
2644
f37f681c
PA
26452014-09-12 Pedro Alves <palves@redhat.com>
2646
2647 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2648 (create_and_insert_solib_event_breakpoint): New functions.
2649 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2650 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2651 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2652 (remove_dbx_link_breakpoint): Delete function.
2653 (insert_dbx_link_bpt_in_file): Use
2654 create_and_insert_solib_event_breakpoint instead of
2655 deprecated_insert_raw_breakpoint.
2656 (procfs_wait): Don't check whether we hit __dbx_link here.
2657 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2658 here.
2659 * solib-irix.c (base_breakpoint): Delete global.
2660 (disable_break): Delete function.
2661 (enable_break): Use create_solib_event_breakpoint
2662 instead of deprecated_insert_raw_breakpoint.
2663 (irix_solib_handle_event): New function.
2664 (irix_solib_create_inferior_hook): Don't run the target or disable
2665 the mapping-complete breakpoint here.
2666 (_initialize_irix_solib): Install irix_solib_handle_event as
2667 so_ops->handle_event hook.
2668
9d9bf2df
EBM
26692014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2670 Ulrich Weigand  <uweigand@de.ibm.com>
2671
2672 PR tdep/17379
2673 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2674 instead of read_memory_unsigned_integer.
2675
b006a80e
GB
26762014-09-12 Gary Benson <gbenson@redhat.com>
2677
2678 * nat/linux-waitpid.c: Include common-defs.h.
2679 [GDBSERVER]: Add FIXME comment.
2680 [!GDBSERVER]: Don't include defs.h or signal.h.
2681 (linux_debug) [!GDBSERVER]: Remove empty block.
2682
296b1496
GB
26832014-09-12 Gary Benson <gbenson@redhat.com>
2684
2685 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2686 Don't include defs.h or server.h.
2687
53f81362
GB
26882014-09-12 Gary Benson <gbenson@redhat.com>
2689
2690 * nat/linux-btrace.c: Include common-defs.h.
2691 Don't include defs.h, server.h or gdbthread.h.
2692 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2693
727605ca
GB
26942014-09-12 Gary Benson <gbenson@redhat.com>
2695
2696 * common/agent.c: Include common-defs.h.
2697 Don't include defs.h or server.h.
2698 * common/buffer.c: Likewise.
2699 * common/common-debug.c: Likewise.
2700 * common/common-utils.c: Likewise.
2701 * common/errors.c: Likewise.
2702 * common/filestuff.c: Likewise.
2703 * common/format.c: Likewise.
2704 * common/gdb_vecs.c: Likewise.
2705 * common/print-utils.c: Likewise.
2706 * common/ptid.c: Likewise.
2707 * common/rsp-low.c: Likewise.
2708 * common/signals.c: Likewise.
2709 * common/vec.c: Likewise.
2710 * common/xml-utils.c: Likewise.
2711 * nat/linux-osdata.c: Likewise.
2712 * nat/linux-procfs.c: Likewise.
2713 * nat/linux-ptrace.c: Likewise.
2714 * nat/mips-linux-watch.c: Likewise.
2715 * target/waitstatus.c: Likewise.
2716
361c8ade
GB
27172014-09-12 Tom Tromey <tromey@redhat.com>
2718 Gary Benson <gbenson@redhat.com>
2719
2720 * common/common-regcache.h: New file.
2721 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2722 * regcache.h: Include common-regcache.h.
2723 (regcache_read_pc): Don't declare.
2724 * regcache.c (get_thread_regcache_for_ptid): New function.
2725 * nat/linux-btrace.c: Don't include regcache.h.
2726 Include common-regcache.h.
2727 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2728
a01cbb49
TS
27292014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2730
2731 * regcache.h (struct regset): Declare.
2732
98880d46
PA
27332014-09-11 Pedro Alves <palves@redhat.com>
2734
2735 PR gdb/17347
2736 * main.c: Include "infrun.h".
2737 (catch_command_errors, catch_command_errors_const): Wait for the
2738 foreground command to complete.
2739 * top.c (maybe_wait_sync_command_done): New function, factored out
2740 from ...
2741 (maybe_wait_sync_command_done): ... here.
2742 * top.h (maybe_wait_sync_command_done): New declaration.
2743
bd9269f7
GB
27442014-09-11 Tom Tromey <tromey@redhat.com>
2745 Gary Benson <gbenson@redhat.com>
2746
2747 * common/symbol.h: New file.
2748 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2749 * minsyms.c (find_minimal_symbol_address): New function.
2750 * common/agent.c: Include common/symbol.h.
2751 [!GDBSERVER]: Don't include objfiles.h.
2752 (agent_look_up_symbols): Use find_minimal_symbol_address.
2753
f8c1d06b
GB
27542014-09-11 Gary Benson <gbenson@redhat.com>
2755
2756 * target/target.h (target_stop_ptid, target_continue_ptid):
2757 Declare.
2758 * target.c (target_stop_ptid, target_continue_ptid): New
2759 functions.
2760 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2761 (agent_run_command): Always use target_stop_ptid and
2762 target_continue_ptid.
2763
721ec300
GB
27642014-09-11 Tom Tromey <tromey@redhat.com>
2765 Gary Benson <gbenson@redhat.com>
2766
2767 * target/target.h: New file.
2768 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2769 * target.h: Include target/target.h.
2770 (target_read_memory, target_write_memory): Don't declare.
2771 * target.c (target_read_uint32): New function.
2772 * common/agent.c: Include target/target.h.
2773 [!GDBSERVER]: Don't include target.h.
2774 (helper_thread_id): Type changed to uint32_t.
2775 (agent_get_helper_thread_id): Use target_read_uint32.
2776 (agent_run_command): Always use target_read_memory and
2777 target_write_memory.
2778 (agent_capability): Type changed to uint32_t.
2779 (agent_capability_check): Use target_read_uint32.
2780
c5e92cca
GB
27812014-09-11 Gary Benson <gbenson@redhat.com>
2782
2783 * common/common-debug.h (show_debug_regs): Declare.
2784 * common/common-debug.c (show_debug_regs): Define.
2785 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2786 all uses with show_debug_regs. Replace all uses that considered
2787 debug_hw_points as a multi-value integer with straight boolean
2788 uses.
2789 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2790 with show_debug_regs.
2791 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2792 all uses with show_debug_regs.
2793 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2794 uses with show_debug_regs.
2795
eeef931a
UW
27962014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2797
2798 * findvar.c (address_from_register): Handle targets requiring
2799 a special conversion routine even for plain pointer types.
2800
8efa9855
UW
28012014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2802
2803 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2804 (store_register): Do not call exec_one_dummy_insn.
2805
eb479039
JB
28062014-09-10 Joel Brobecker <brobecker@adacore.com>
2807
2808 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2809 dereference it first. Use value_enclosing_type instead of
2810 value_type.
2811 (ada_array_length): Likewise.
2812
deede10c
JB
28132014-09-10 Joel Brobecker <brobecker@adacore.com>
2814
2815 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2816 Adjust function implementation and documentation accordingly.
2817 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2818 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2819 Update call to ada_value_ptr_subscript.
2820
7828a5f5
JB
28212014-09-10 Joel Brobecker <brobecker@adacore.com>
2822
2823 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2824 instead of VAL's type.
2825
35782f14
JB
28262014-09-10 Joel Brobecker <brobecker@adacore.com>
2827
2828 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2829
d342a0da
DE
28302014-09-09 Doug Evans <xdje42@gmail.com>
2831
2832 PR guile/17367
2833 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2834 last parameter to pkg-config, not first.
2835 * configure.ac: Pass --with-guile provided pkg-config path to
2836 GDB_GUILE_PROGRAM_NAMES.
2837 * configure: Regenerate.
2838
b4a3d263
GKB
28392014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2840
2841 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2842 Bertazi".
2843
6e466374
MR
28442014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2845
2846 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2847 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2848 the list of sections determining GDB_OSABI_IRIX.
2849
a1ada89a
JH
28502014-09-09 James Hogan <james.hogan@imgtec.com>
2851
2852 * MAINTAINERS (Write After Approval): Add "James Hogan".
2853
86db008d
JH
28542014-09-09 James Hogan <james.hogan@imgtec.com>
2855
2856 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2857
72fde3df
JB
28582014-09-09 Joel Brobecker <brobecker@adacore.com>
2859
2860 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2861
92d8d229
DE
28622014-09-08 Doug Evans <xdje42@gmail.com>
2863
2864 PR 17247
2865 * guile.c: #include <signal.h>.
2866 (_initialize_guile): Block SIGCHLD while initializing Guile.
2867
2868 Replaces the following, which is reverted.
2869
2870 2014-07-26 Doug Evans <xdje42@gmail.com>
2871
2872 PR 17185
2873 * configure.ac: Add check for header gc/gc.h.
2874 Add check for function setenv.
2875 * configure: Regenerate.
2876 * config.in: Regenerate.
2877 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2878
d81412aa
DE
28792014-09-08 Doug Evans <xdje42@gmail.com>
2880
2881 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2882 with named constant. Fix style of pointer comparison.
2883 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2884
a9f116cb
GKB
28852014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2886
2887 PR gdb/17035
2888 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2889 decide whether we display the command on "show user".
2890 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2891 printing command name.
2892 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2893 * cli/cli-decode.c (cli_user_command_p): Create helper function
2894 to verify whether cmd_list_element is a user-defined command.
2895
c75bd3a2
JK
28962014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2897
2898 PR python/17355
2899 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2900 Fix goto out of TRY_CATCH.
2901
faa42425 29022014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2903 Tom Tromey <tromey@redhat.com>
faa42425
DE
2904
2905 PR 15276
2906 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2907 $_any_caller_matches.
2908 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2909 * python/lib/gdb/function/caller_is.py: New file.
2910
0d41ba00
DE
29112014-09-06 Doug Evans <xdje42@gmail.com>
2912
2913 * infcmd.c (program_info): Fix typo.
2914
474ca4f6
SDJ
29152014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2916
2917 PR gdb/17235
2918 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2919 'number'. New variable 'has_digit'. Rewrite code to deal with
2920 subexpressions on SDT probes.
2921
ebf13736
PA
29222014-09-04 Pedro Alves <palves@redhat.com>
2923
2924 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2925 the input is only one character long.
2926
eb0b0463
SDJ
29272014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2928
2929 PR fortran/17237
2930 * f-valprint.c (f_val_print): Specify the correct print option to
2931 use when printing integer values.
2932
5ee44bfa
GB
29332014-09-04 Gary Benson <gbenson@redhat.com>
2934
2935 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2936 Remove code to cope with LWPs wrapped as PIDs.
2937 Add assertions to ensure no wrapped LWPs are passed.
2938
4875ffdb
PA
29392014-09-04 Pedro Alves <palves@redhat.com>
2940
2941 * value.c (value_ranges_copy_adjusted): New function, factored out
2942 from ...
2943 (value_contents_copy_raw): ... here.
2944 (unpack_value_bits_as_long_1): Rename back to ...
2945 (unpack_bits_as_long): ... this. Remove 'original_value' and
2946 'result' parameters. Change return type to LONGEST.
2947 (unpack_value_bits_as_long): Delete.
2948 (unpack_value_field_as_long_1): Delete.
2949 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2950 (unpack_value_bitfield): New function.
2951 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2952 (value_fetch_lazy): Use unpack_value_bitfield.
2953 * value.h (unpack_value_bits_as_long): Delete declaration.
2954
5f3b99cf
SS
29552014-09-03 Sasha Smundak <asmundak@google.com>
2956
2957 * python/py-frame.c (frapy_read_register): New function.
2958
ac740bc7
JH
29592014-09-03 James Hogan <james.hogan@imgtec.com>
2960
2961 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2962 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2963
7d793aa9
SDJ
29642014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2965
2966 PR python/16699
2967 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2968 function.
2969 (add_cmd): Set "completer_handle_brkchars" to NULL.
2970 * cli/cli-decode.h (struct cmd_list_element)
2971 <completer_handle_brkchars>: New field.
2972 * command.h (completer_ftype_void): New typedef.
2973 (set_cmd_completer_handle_brkchars): New prototype.
2974 * completer.c (set_gdb_completion_word_break_characters): New
2975 function.
2976 (complete_line_internal): Call "completer_handle_brkchars"
2977 callback from command.
2978 * completer.h: Include "command.h".
2979 (set_gdb_completion_word_break_characters): New prototype.
2980 * python/py-cmd.c (cmdpy_completer_helper): New function.
2981 (cmdpy_completer_handle_brkchars): New function.
2982 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2983 (cmdpy_init): Set completer_handle_brkchars to
2984 cmdpy_completer_handle_brkchars.
2985
97ea6506
GB
29862014-09-03 Gary Benson <gbenson@redhat.com>
2987
2988 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2989 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2990 Loop conditions changed to equivalent form.
2991 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2992 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2993 ALL_DEBUG_ADDRESS_REGISTERS.
2994
d1437815
JB
29952014-09-03 Joel Brobecker <brobecker@adacore.com>
2996
2997 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2998 description fix.
2999
9b94fcf1
DE
30002014-09-02 Doug Evans <dje@google.com>
3001
3002 * typeprint.c (find_global_typedef): Fix comment.
3003
df7e5265
GB
30042014-09-02 Gary Benson <gbenson@redhat.com>
3005
3006 * i386-nat.h: Renamed as...
3007 * x86-nat.h: New file. All type, function and variable name
3008 prefixes changed from "i386_" to "x86_". All references updated.
3009 * i386-nat.c: Renamed as...
3010 * x86-nat.c: New file. All type, function and variable name
3011 prefixes changed from "i386_" to "x86_". All references updated.
3012 * common/i386-xstate.h: Renamed as...
3013 * common/x86-xstate.h: New file. All type, function and variable
3014 name prefixes changed from "i386_" to "x86_". All references
3015 updated.
3016 * nat/i386-cpuid.h: Renamed as...
3017 * nat/x86-cpuid.h: New file. All type, function and variable name
3018 prefixes changed from "i386_" to "x86_". All references updated.
3019 * nat/i386-gcc-cpuid.h: Renamed as...
3020 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3021 name prefixes changed from "i386_" to "x86_". All references
3022 updated.
3023 * nat/i386-dregs.h: Renamed as...
3024 * nat/x86-dregs.h: New file. All type, function and variable name
3025 prefixes changed from "i386_" to "x86_". All references updated.
3026 * nat/i386-dregs.c: Renamed as...
3027 * nat/x86-dregs.c: New file. All type, function and variable name
3028 prefixes changed from "i386_" to "x86_". All references updated.
3029
1c3569d4
MR
30302014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3031
3032 * varobj.c (_initialize_varobj): Move to the end of file.
3033
ff55e1b5
GB
30342014-08-29 Gary Benson <gbenson@redhat.com>
3035
3036 * common/common-exceptions.h: New file.
3037 * common/common-exceptions.c: Likewise.
3038 * Makefile.in (SFILES): Add common/common-exceptions.c.
3039 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3040 (COMMON_OBS): Add common-exceptions.o.
3041 (common-exceptions.o): New rule.
3042 * exceptions.h (common-exceptions.h): Include.
3043 (gdb_setjmp.h): Do not include.
3044 (return_reason): Moved to common-exceptions.h.
3045 (enum return_reason): Likewise.
3046 (RETURN_MASK): Likewise.
3047 (typedef return_mask): Likewise.
3048 (enum errors): Likewise.
3049 (struct gdb_exception): Likewise.
3050 (exceptions_state_mc_init): Likewise.
3051 (exceptions_state_mc_action_iter): Likewise.
3052 (exceptions_state_mc_action_iter_1): Likewise.
3053 (TRY_CATCH): Likewise.
3054 (throw_exception): Likewise.
3055 (throw_verror): Likewise.
3056 (throw_vquit): Likewise.
3057 (throw_error): Likewise.
3058 (throw_quit): Likewise.
3059 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3060 (enum catcher_action): Likewise.
3061 (struct catcher): Likewise.
3062 (current_catcher): Likewise.
3063 (catcher_list_size): Likewise.
3064 (exceptions_state_mc_init): Likewise.
3065 (catcher_pop): Likewise.
3066 (exceptions_state_mc): Likewise.
3067 (exceptions_state_mc_action_iter): Likewise.
3068 (exceptions_state_mc_action_iter_1): Likewise.
3069 (throw_exception): Likewise.
3070 (exception_messages): Likewise.
3071 (exception_messages_size): Likewise.
3072 (throw_it): Likewise.
3073 (throw_verror): Likewise.
3074 (throw_vquit): Likewise.
3075 (throw_error): Likewise.
3076 (throw_quit): Likewise.
3077 (prepare_to_throw_exception): New function.
3078
e9bcb658
GB
30792014-08-29 Gary Benson <gbenson@redhat.com>
3080
3081 * common/gdb_setjmp.h: New file.
3082 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3083 * configure.ac: Move sigsetjmp check...
3084 * common/common.m4: ...here.
3085 * configure: Regenerate.
3086 * cp-support.c (SIGJMP_BUF): Delete.
3087 (SIGSETJMP): Likewise.
3088 (SIGLONGJMP): Likewise.
3089 * exceptions.h (gdb_setjmp.h): Include.
3090 (setjmp.h): Do not include.
3091 (EXCEPTIONS_SIGJMP_BUF): Delete.
3092 (EXCEPTIONS_SIGSETJMP): Likewise.
3093 (EXCEPTIONS_SIGLONGJMP): Likewise.
3094 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3095 from gdb_setjmp.h.
3096 * exceptions.c: Likewise.
3097
e3180625
GB
30982014-08-29 Gary Benson <gbenson@redhat.com>
3099
3100 * cleanups.h: Moved to...
3101 * common/cleanups.h: New file.
3102 * cleanups.c: Moved to...
3103 * common/cleanups.c: New file. Include common-defs.h and
3104 cleanups.h. Do not include defs.h.
3105 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3106 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3107 (cleanups.o): New rule.
3108
e3d6ba5d
GB
31092014-08-29 Gary Benson <gbenson@redhat.com>
3110
3111 * common/errors.h (internal_warning): New declaration.
3112 (internal_vwarning): Likewise.
3113 * common/errors.c (internal_warning): New function.
3114 * utils.h (internal_warning): Don't declare.
3115 (internal_vwarning): Likewise.
3116 * utils.c (internal_warning): Removed.
3117
075c7033
GB
31182014-08-29 Gary Benson <gbenson@redhat.com>
3119
3120 * main.c (captured_main): Use warning during startup.
3121 Prefix startup warning messages with command name.
3122
91b35fd0
GB
31232014-08-29 Gary Benson <gbenson@redhat.com>
3124
3125 * main.c (captured_main): Handle usage errors with error.
3126
b1ec390e
GB
31272014-08-29 Gary Benson <gbenson@redhat.com>
3128
3129 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3130 exit pair with a call to error. Wrap the message with _().
3131
fd0ef3dd
GB
31322014-08-29 Gary Benson <gbenson@redhat.com>
3133
3134 * main.c (captured_main): Replace a fprintf/exit
3135 pair with a call to error. Wrap the message with _().
3136
e0e6bcab
GB
31372014-08-29 Gary Benson <gbenson@redhat.com>
3138
3139 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3140 pairs with calls to error. Wrap the message with _().
3141
0d2f5c07
GB
31422014-08-29 Gary Benson <gbenson@redhat.com>
3143
3144 * utils.c (vwarning): Protect calls to target_terminal_ours
3145 and wrap_here.
3146
5df43998
GB
31472014-08-29 Gary Benson <gbenson@redhat.com>
3148
3149 * exceptions.c (print_flush): Protect calls to
3150 target_terminal_ours and wrap_here.
3151
2437fd32
GB
31522014-08-29 Gary Benson <gbenson@redhat.com>
3153
3154 * utils.h (filtered_printing_initialized): New declaration.
3155 * utils.c (abort_with_message): New function.
3156 (internal_vproblem): Use abort_with_message for first level
3157 recursive internal problems, and if gdb_stderr is not set up.
3158 Protect calls to target_terminal_ours, begin_line and query.
3159
f1f58506
DE
31602014-08-28 Doug Evans <dje@google.com>
3161
3162 * symtab.c (in_prologue): Move definition to better spot.
3163 (skip_prologue_using_sal): Ditto.
3164
aab2f208
DE
31652014-08-28 Doug Evans <dje@google.com>
3166
3167 * symtab.c (find_function_start_sal): Move definition to better spot.
3168
6b65d1b6
YQ
31692014-08-28 Yao Qi <yao@codesourcery.com>
3170
3171 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3172 found_stack_adjust in forward scan. Remove condition check
3173 on found_stack_adjust which is always true. Indent the code.
3174
a1b34d15
YQ
31752014-08-28 Yao Qi <yao@codesourcery.com>
3176
3177 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3178 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3179 (dwarf_decode_lines): Remove argument
3180 want_line_info. Remove condition check on want_line_info.
3181 Callers update.
3182
d5962de5
DE
31832014-08-27 Doug Evans <dje@google.com>
3184
3185 * dwarf2read.c (dwarf_record_line): Fix typo.
3186
9b139002
SDJ
31872014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3188
3189 * target.h (struct target_ops::to_terminal_save_ours): Remove
3190 declaration.
3191 (target_terminal_save_ours): Remove macro.
3192 * target-delegates.c: Regenerate.
3193 * inf-child.c (inf_child_target): Don't set the nonexistent
3194 field to_terminal_save_ours.
3195 * inferior.h (child_terminal_save_ours): Remove declaration.
3196 * terminal.h (gdb_save_tty_state): New declaration.
3197 * inflow.c (child_terminal_save_ours): Rename to ...
3198 (gdb_save_tty_state): ... this.
3199 * tui/tui.c: Include terminal.h.
3200 (tui_enable): Use gdb_save_tty_state instead of
3201 target_terminal_save_ours.
3202 (tui_disable): Likewise.
3203
9debeba0
DE
32042014-08-25 Doug Evans <dje@google.com>
3205
3206 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3207 Pass NULL instead of 0 for context pointer.
3208
428fc5fc
YQ
32092014-08-25 Yao Qi <yao@codesourcery.com>
3210
3211 * dwarf2read.c: Fix grammatical error.
3212
cdc07690
YQ
32132014-08-24 Yao Qi <yao@codesourcery.com>
3214
3215 * dwarf2read.c (scan_partial_symbols): Update comments.
3216 Rename argument 'need_pc' with 'set_addrmap'.
3217 (add_partial_namespace): Rename argument 'need_pc' with
3218 'set_addrmap'.
3219 (add_partial_module): Likewise.
3220 (add_partial_subprogram): Likewise. Update comments.
3221 (dwarf2_name): Fix typo.
3222
a05a36a5
DE
32232014-08-22 Doug Evans <dje@google.com>
3224
3225 PR 17276
3226 * dwarf2read.c (dwarf_record_line_p): New function.
3227 (dwarf_decode_lines_1): Ignore subsequent line number entries
3228 for the same line if any entry had a non-zero discriminator.
3229
252a6764
DE
32302014-08-22 Doug Evans <dje@google.com>
3231
3232 * buildsym.h (record_line_ftype): New typedef.
3233 (record_line): Use it.
3234 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3235 (dwarf_decode_lines_1): Call them.
3236
510db052
YQ
32372014-08-22 Yao Qi <yao@codesourcery.com>
3238
3239 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3240 (ctf_end): Remove code.
3241
22fd09ae
JK
32422014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3243
3244 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3245 (linux_make_corefile_notes): call update_thread_list, protected against
3246 exceptions.
3247
656e8868
PA
32482014-08-21 Pedro Alves <palves@redhat.com>
3249
3250 * infcmd.c (attach_command): Remove comment.
3251
de589d04
WN
32522014-08-21 Bin Cheng <bin.cheng@arm.com>
3253
3254 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3255 unsigned LONGEST to ULONGEST.
3256
2a31c623
PA
32572014-08-20 Pedro Alves <palves@redhat.com>
3258
3259 * Makefile.in (check-read1): New rule.
3260
d36430db
JB
32612014-08-20 Joel Brobecker <brobecker@adacore.com>
3262
3263 * value.c (value_from_contents_and_address): Strip resolved_type's
3264 typedef layers before checking its TYPE_DATA_LOCATION.
3265
000339af
PA
32662014-08-20 Pedro Alves <palves@redhat.com>
3267
3268 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3269
5f52445b
YQ
32702014-08-20 Yao Qi <yao@codesourcery.com>
3271
3272 * amd64-tdep.c (amd64_classify): Add a blank line after the
3273 example. Move "*/" to a new line.
3274 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3275 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3276 * dwarf2read.c (psymtab_include_file_name): Likewise.
3277
9a0dc9e3
PA
32782014-08-19 Andrew Burgess <aburgess@broadcom.com>
3279 Pedro Alves <palves@redhat.com>
3280
3281 PR symtab/14604
3282 PR symtab/14605
3283 * ada-lang.c (coerce_unspec_val_to_type): Use
3284 value_contents_copy_raw.
3285 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3286 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3287 * cp-valprint.c (cp_print_value_fields): Let the common printing
3288 code handle optimized out values.
3289 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3290 * d-valprint.c (dynamic_array_type): Use
3291 value_bits_any_optimized_out.
3292 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3293 check_any_valid fields.
3294 (check_pieced_value_bits): Delete and inline ...
3295 (check_pieced_synthetic_pointer): ... here.
3296 (check_pieced_value_validity): Delete.
3297 (check_pieced_value_invalid): Delete.
3298 (pieced_value_funcs): Remove check_validity and check_any_valid
3299 fields.
3300 (read_pieced_value): Use mark_value_bits_optimized_out.
3301 (write_pieced_value): Switch to use
3302 mark_value_bytes_optimized_out.
3303 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3304 of assuming the whole value is optimized out.
3305 * findvar.c (read_frame_register_value): Remove special handling
3306 of optimized out registers.
3307 (value_from_register): Use mark_value_bytes_optimized_out.
3308 * frame-unwind.c (frame_unwind_got_optimized): Use
3309 mark_value_bytes_optimized_out.
3310 * jv-valprint.c (java_value_print): Adjust.
3311 (java_print_value_fields): Let the common printing code handle
3312 optimized out values.
3313 * mips-tdep.c (mips_print_register): Remove special handling of
3314 optimized out registers.
3315 * opencl-lang.c (lval_func_check_validity): Delete.
3316 (lval_func_check_any_valid): Delete.
3317 (opencl_value_funcs): Remove check_validity and check_any_valid
3318 fields.
3319 * p-valprint.c (pascal_object_print_value_fields): Let the common
3320 printing code handle optimized out values.
3321 * stack.c (read_frame_arg): Remove special handling of optimized
3322 out values. Fetch both VAL and ENTRYVAL before comparing
3323 contents. Adjust to value_available_contents_eq rename.
3324 * valprint.c (valprint_check_validity)
3325 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3326 (val_print_array_elements): Adjust.
3327 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3328 (value_bits_any_optimized_out): New function.
3329 (value_entirely_covered_by_range_vector): New function, factored
3330 out from value_entirely_unavailable.
3331 (value_entirely_unavailable): Reimplement.
3332 (value_entirely_optimized_out): New function.
3333 (insert_into_bit_range_vector): New function, factored out from
3334 mark_value_bits_unavailable.
3335 (mark_value_bits_unavailable): Reimplement.
3336 (struct ranges_and_idx): New struct.
3337 (find_first_range_overlap_and_match): New function, factored out
3338 from value_available_contents_bits_eq.
3339 (value_available_contents_bits_eq): Rename to ...
3340 (value_contents_bits_eq): ... this. Check both unavailable
3341 contents and optimized out contents.
3342 (value_available_contents_eq): Rename to ...
3343 (value_contents_eq): ... this.
3344 (allocate_value_lazy): Remove reference to the old optimized_out
3345 boolean.
3346 (allocate_optimized_out_value): Use
3347 mark_value_bytes_optimized_out.
3348 (require_not_optimized_out): Adjust to check whether the
3349 optimized_out vec is empty.
3350 (ranges_copy_adjusted): New function, factored out from
3351 value_contents_copy_raw.
3352 (value_contents_copy_raw): Also copy the optimized out ranges.
3353 Assert the destination ranges aren't optimized out.
3354 (value_contents_copy): Update comment, remove call to
3355 require_not_optimized_out.
3356 (value_contents_equal): Adjust to check whether the optimized_out
3357 vec is empty.
3358 (set_value_optimized_out, value_optimized_out_const): Delete.
3359 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3360 New functions.
3361 (value_entirely_optimized_out, value_bits_valid): Delete.
3362 (value_copy): Take a VEC copy of the 'optimized_out' field.
3363 (value_primitive_field): Remove special handling of optimized out.
3364 (value_fetch_lazy): Assert that lazy values have no unavailable
3365 regions. Use value_bits_any_optimized_out. Remove some special
3366 handling for optimized out values.
3367 * value.h: Add intro comment about <optimized out> and
3368 <unavailable>.
3369 (struct lval_funcs): Remove check_validity and check_any_valid
3370 fields.
3371 (set_value_optimized_out, value_optimized_out_const): Remove.
3372 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3373 New declarations.
3374 (value_bits_any_optimized_out): New declaration.
3375 (value_bits_valid): Delete declaration.
3376 (value_available_contents_eq): Rename to ...
3377 (value_contents_eq): ... this, and extend comments.
3378
6694c411
JK
33792014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3380
3381 Fix -fsanitize=address on unreadable inferior strings.
3382 * valprint.c (val_print_string): Fix access before BUFFER.
3383
89a1c21a
SM
33842014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3385
3386 * target.c (target_struct_size): Remove.
3387 (target_struct_allocsize): Remove.
3388 (DEFAULT_ALLOCSIZE): Remove.
3389 (target_ops_p): New typedef.
3390 (DEF_VEC_P (target_ops_p)): New vector type.
3391 (target_structs): Change type to VEC (target_ops_p).
3392 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3393 (find_default_run_target): Rewrite for loop following changes to
3394 target_structs.
3395
cb417230
JB
33962014-08-19 Joel Brobecker <brobecker@adacore.com>
3397
3398 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3399 Adjust code accordingly. Adjust function description comment.
3400
817e0957
YQ
34012014-08-19 Yao Qi <yao@codesourcery.com>
3402
3403 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3404 types.
3405
2974be62
AM
34062014-08-19 Alan Modra <amodra@gmail.com>
3407
3408 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3409 * config.in: Regenerate.
3410 * configure: Regenerate.
3411
34abf635
GB
34122014-08-19 Tom Tromey <tromey@redhat.com>
3413 Gary Benson <gbenson@redhat.com>
3414
3415 * common/common-debug.h: New file.
3416 * common/common-debug.c: Likewise.
3417 * debug.c: Likewise.
3418 * Makefile.in (SFILES): Add common/common-debug.c.
3419 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3420 (COMMON_OBS): Add common-debug.o and debug.o.
3421 (common-debug.o): New rule.
3422 * common/common-defs.h: Include common-debug.h.
3423 * common/agent.c (debug_agent_printf): New function.
3424 (DEBUG_AGENT): Redefine.
3425 * nat/i386-dregs.c (debug_printf): Undefine.
3426
f6e94d78
GB
34272014-08-19 Gary Benson <gbenson@redhat.com>
3428
3429 * common/common-defs.h: Include print-utils.h.
3430 * utils.h: Do not include print-utils.h.
3431
9239eeab
GB
34322014-08-19 Tom Tromey <tromey@redhat.com>
3433 Gary Benson <gbenson@redhat.com>
3434
3435 * common/common-types.h: New file.
3436 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3437 * common/common-defs.h: Include common-types.h.
3438 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3439 (ULONGEST): Remove.
3440
ef87c8bb
GB
34412014-08-19 Tom Tromey <tromey@redhat.com>
3442 Gary Benson <gbenson@redhat.com>
3443
3444 * common/errors.h: New file.
3445 * common/errors.c: Likewise.
3446 * Makefile.in (SFILES): Add common/errors.c.
3447 (HFILES_NO_SRCDIR): Add common/errors.h.
3448 (COMMON_OBS): Add errors.o.
3449 (errors.o): New rule.
3450 * common/common-defs.h: Include errors.h.
3451 * utils.h (perror_with_name, error, verror, warning, vwarning):
3452 Don't declare.
3453 * common/common-utils.h: (malloc_failure, internal_error):
3454 Likewise.
3455
196a707b
GB
34562014-08-19 Gary Benson <gbenson@redhat.com>
3457
3458 * utils.c (internal_vproblem): Always print the message.
3459
ded4fc8f
DE
34602014-08-18 Doug Evans <dje@google.com>
3461
3462 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3463
950c97d8
JB
34642014-08-18 Joel Brobecker <brobecker@adacore.com>
3465
3466 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3467 Return 0 if TYPE is dynamic.
3468 (print_range): Add handling of dynamic ranges.
3469
3cdcd0ce
JB
34702014-08-18 Keven Boell <keven.boell@intel.com>
3471 Joel Brobecker <brobecker@adacore.com>
3472
3473 * gdbtypes.h (struct main_type): Add field "data_location".
3474 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3475 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3476 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3477 a dynamic data location.
3478 (resolve_dynamic_type): Add DW_AT_data_location handling.
3479 (copy_recursive, copy_type): Copy the data_location information
3480 when present.
3481 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3482 * value.c (value_from_contents_and_address): Add
3483 DW_AT_data_location handling.
3484
08412b07
JB
34852014-08-18 Keven Boell <keven.boell@intel.com>
3486 Joel Brobecker <brobecker@adacore.com>
3487
3488 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3489 field "get_object_address".
3490 * dwarf2expr.c (execute_stack_op): Add handling for
3491 DW_OP_push_object_address.
3492 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3493 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3494 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3495 (dwarf_expr_get_obj_addr): New function.
3496 (dwarf_expr_ctx_funcs): Add get_object_address field.
3497 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3498 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3499 (dwarf2_evaluate_property): Add parameter "address". Use it.
3500 (needs_get_obj_addr): New function.
3501 (needs_frame_ctx_funcs): Add get_object_address field.
3502 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3503 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3504 (resolve_dynamic_array): Likewise.
3505
84754697
JB
35062014-08-18 Joel Brobecker <brobecker@adacore.com>
3507
3508 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3509 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3510 fixed value for records and unions for which some GNAT encodings
3511 are present.
3512
da5c522f
JB
35132014-08-18 Joel Brobecker <brobecker@adacore.com>
3514
3515 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3516 rewrite to avoid "else if" and "else" constructs. Should be
3517 a no-op in practice.
3518
0d72a7c3
JB
35192014-08-18 Joel Brobecker <brobecker@adacore.com>
3520
3521 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3522 of lexical block.
3523
e66d4446
SC
35242014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3525
3526 PR c++/17132
3527 * eval.c: Update all calls to find_overload_match.
3528 * valarith.c: Likewise.
3529 (value_user_defined_cpp_op, value_user_defined_op): New
3530 argument NOSIDE. Update all callers.
3531 * valops.c (find_overload_match): New argument NOSIDE.
3532 * value.h (find_overload_match): Update signature.
3533
940df408
SC
35342014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3535
3536 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3537 'items' methods instead of 'iteritems' method on dictionaries.
3538
699ca60a
DE
35392014-08-15 Doug Evans <dje@google.com>
3540
3541 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3542 closer to use.
3543
37780ee5
DE
35442014-08-15 Doug Evans <dje@google.com>
3545
3546 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3547
0ad93d4f
DE
35482014-08-15 Doug Evans <dje@google.com>
3549
3550 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3551
20d8c372
DE
35522014-08-15 Doug Evans <dje@google.com>
3553
3554 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3555 unused.
3556
cb039ba4
EZ
35572014-08-15 Eli Zaretskii <eliz@gnu.org>
3558
3559 * dcache.h: Include target.h, to avoid compile time warnings.
3560
eb7a547a
JB
35612014-08-15 Joel Brobecker <brobecker@adacore.com>
3562
3563 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3564 frame_info" partial declaration.
3565 * gdbarch.h: Regenerate.
3566
783cecc8
YQ
35672014-08-15 Yao Qi <yao@codesourcery.com>
3568
3569 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3570 Add parameter 'decode_for_pst_p'. Callers update.
3571
65c749e7
YQ
35722014-08-13 Yao Qi <yao@codesourcery.com>
3573
3574 PR build/17104
3575 * configure.ac: Use local variable 'pos'.
3576 * configure: Regenerated.
3577
d769e349
DE
35782014-08-11 Doug Evans <dje@google.com>
3579
3580 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3581 message, it is redundant with "Reading symbols from ..." message.
3582
24f1235e
DE
35832014-08-10 Doug Evans <xdje42@gmail.com>
3584
3585 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3586
dcd2e6ef
YQ
35872014-08-09 Yao Qi <yao@codesourcery.com>
3588
3589 PR remote/9053
3590 * remote.c (remote_xfer_partial): Remove dead code.
3591
070bdf0b
AA
35922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3593
3594 * ia64-linux-tdep.c: Include "regset.h".
3595 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3596 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3597 (ia64_linux_supply_fpregset): New function.
3598 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3599 (ia64_linux_regset_from_core_section): New function.
3600 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3601 method.
3602
08f9f542
AA
36032014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3604
3605 * m68klinux-tdep.c: Include "regset.h".
3606 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3607 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3608 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3609 (m68k_linux_regset_from_core_section): New function.
3610 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3611 method.
3612
8f1cee41
AA
36132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3614
3615 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3616 function. Move logic to...
3617 (tilegx_linux_regmap): ... this new register map.
3618 (tilegx_linux_regset): Refer to register map, replace supply
3619 method by regcache_supply_regset, and add collect method.
3620 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3621 TILEGX_FIRST_EASY_REGNUM.
3622
c5741217
AA
36232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3624
3625 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3626 that calls regcache_supply_regset and handles the EPC register
3627 separately. Move main logic to...
3628 (score7_linux_gregmap): ... this new register map.
3629 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3630 (score7_linux_gregset): Refer to register map. Add collect method.
3631 (score7_linux_regset_from_core_section): Replace
3632 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3633 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3634 (struct regset): Delete unused forward declaraction.
3635 (struct pt_regs): Delete structure definition.
3636 (elf_gregset_t): Delete typedef.
3637
81580573
AA
36382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3639
3640 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3641 (nios2_core_regset): Add collect method.
3642
ba199d7d
AA
36432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3644
3645 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3646 platform-independent and don't write to read-only input buffer.
3647 (m32r_linux_collect_gregset): New function.
3648 (m32r_linux_gregset): Add collect method.
3649
0006a9da
AA
36502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3651
3652 * hppa-linux-tdep.c (greg_map): Rename to...
3653 (hppa_linux_gregmap): ... this. Also convert to
3654 regcache_map_entry format.
3655 (hppa_linux_supply_regset): Delete function.
3656 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3657 (hppa_linux_fpregmap): ... this new register map.
3658 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3659 register map, replace supply method by regcache_supply_regset, and
3660 add collect method regcache_collect_regset.
3661
901e1b23
AA
36622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3663
3664 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3665 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3666 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3667 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3668 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3669 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3670 (frv_linux_supply_gregset): Replace main logic by call to
3671 regcache_supply_regset, but keep clearing gr32-gr63.
3672 (frv_linux_supply_fpregset): Delete function.
3673 (frv_linux_gregset): Refer to appropriate register map and add
3674 regcache_collect_regset as the collect method.
3675 (frv_linux_fpregset): Likewise. Also exchange the supply method
3676 by regcache_supply_regset.
3677
1d6e7555
AA
36782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3679
3680 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3681 by call to alpha_supply_int_regs.
3682 (alpha_linux_collect_gregset): New function.
3683 (alpha_linux_supply_fpregset): Replace logic by call to
3684 alpha_supply_fp_regs.
3685 (alpha_linux_collect_fpregset): New function.
3686 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3687
d4d793bf
AA
36882014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3689
3690 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3691 by call to regcache_collect_regset.
3692 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3693 instead of aarch64_linux_supply_gregset/_fpregset.
3694 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3695 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3696 header file instead.
3697 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3698 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3699 functions. Move logic to ...
3700 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3701 register maps.
3702 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3703 refer to new register maps, replace *_regset_from_core by
3704 regcache_supply_regset, and also use regcache_collect_regset.
3705 * aarch64-linux-tdep.h: Include "regset.h".
3706 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3707 Delete prototypes.
3708 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3709 macros, moved from C source file.
3710 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3711 variable declarations.
3712
99b7da5d
AA
37132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3714
3715 * s390-linux-nat.c: Include "regset.h".
3716 (regmap_gregset): Delete macro.
3717 (s390_64_regmap_gregset): New register map for
3718 regcache_supply/_collect_regset.
3719 (s390_64_gregset): New regset.
3720 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3721 (regmap_fpregset): Delete macro.
3722 (s390_native_supply, s390_native_collect): Delete functions.
3723 (supply_gregset, fill_gregset): Replace s390-specific regmap
3724 handling by a call to regcache_supply/_collect_regset.
3725 (supply_fpregset, fill_fpregset): Call regcache_supply/
3726 _collect_regset instead of s390_native_supply/_collect.
3727 (fetch_regset, store_regset): Likewise. Also change the last
3728 parameter to a regset instead of a regmap.
3729 (s390_linux_fetch_inferior_registers)
3730 (390_linux_store_inferior_registers): Adjust last parameter in
3731 calls to fetch_regset and store_regset.
3732 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3733 (s390_gregmap): ... this. Also make static const and convert to
3734 regcache_map_entry format.
3735 (s390x_regmap_gregset): Delete.
3736 (s390_regmap_fpregset): Rename to...
3737 (s390_fpregmap): ... this. Make static const and convert to
3738 regcache_map_entry format.
3739 (s390_regmap_upper, s390_regmap_last_break)
3740 (s390x_regmap_last_break, s390_regmap_system_call)
3741 (s390_regmap_tdb): Likewise.
3742 (s390_supply_regset, s390_collect_regset): Remove functions.
3743 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3744 s390_supply_regset.
3745 (s390_gregset, s390_fpregset, s390_upper_regset)
3746 (s390_last_break_regset, s390x_last_break_regset)
3747 (s390_system_call_regset, s390_tdb_regset): Make global and
3748 replace s390_supply/_collect_regset by regcache_supply/
3749 _collect_regset.
3750 (s390x_gregset): Delete.
3751 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3752 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3753 (s390_regmap_fpregset, s390_regmap_last_break)
3754 (s390x_regmap_last_break, s390_regmap_system_call)
3755 (s390_regmap_tdb): Delete global variable declarations.
3756 (s390_gregset, s390_fpregset, s390_last_break_regset)
3757 (s390x_last_break_regset, s390_system_call_regset)
3758 (s390_tdb_regset): New global variable declarations.
3759
0b309272
AA
37602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3761
3762 * regcache.c: Include "regset.h".
3763 (regcache_transfer_regset): New local function.
3764 (regcache_supply_regset, regcache_collect_regset): New functions.
3765 * regcache.h (struct regcache_map_entry): New structure.
3766 (REGCACHE_MAP_SKIP): New enum value.
3767 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3768
7fefa8d7
AA
37692014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3770
3771 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3772 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3773 (ppc_linux_collect_gregset ): Likewise.
3774 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3775 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3776 (ppc_collect_vrregset): Likewise.
3777 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3778 Likewise.
3779
96c4f946
YQ
37802014-08-07 Yao Qi <yao@codesourcery.com>
3781
3782 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3783 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3784 * remote.c (remote_read_bytes): Likewise.
3785
fffbe6a8
YQ
37862014-08-07 Yao Qi <yao@codesourcery.com>
3787
3788 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3789
5ee8a82c
YQ
37902014-08-07 Yao Qi <yao@codesourcery.com>
3791
3792 PR remote/17230
3793 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3794 TARGET_XFER_OK instead of 0.
3795
bb974a24
GB
37962014-08-07 Gary Benson <gbenson@redhat.com>
3797
3798 * common/common-defs.h: Include errno.h.
3799 * defs.h: Do not include errno.h.
3800 * ada-typeprint.c: Likewise.
3801 * c-typeprint.c: Likewise.
3802 * core-regset.c: Likewise.
3803 * corefile.c: Likewise.
3804 * corelow.c: Likewise.
3805 * event-loop.c: Likewise.
3806 * f-typeprint.c: Likewise.
3807 * gnu-nat.c: Likewise.
3808 * go32-nat.c: Likewise.
3809 * i386gnu-nat.c: Likewise.
3810 * m2-typeprint.c: Likewise.
3811 * nat/linux-btrace.c: Likewise.
3812 * p-typeprint.c: Likewise.
3813 * procfs.c: Likewise.
3814 * remote-sim.c: Likewise.
3815 * rs6000-nat.c: Likewise.
3816 * target.c: Likewise.
3817 * typeprint.c: Likewise.
3818 * ui-file.c: Likewise.
3819 * valops.c: Likewise.
3820 * valprint.c: Likewise.
3821
6d3d12eb
GB
38222014-08-07 Gary Benson <gbenson@redhat.com>
3823
3824 * common/common-defs.h: Include string.h.
3825 * aarch64-tdep.c: Do not include string.h.
3826 * ada-exp.y: Likewise.
3827 * ada-lang.c: Likewise.
3828 * ada-lex.l: Likewise.
3829 * ada-typeprint.c: Likewise.
3830 * ada-valprint.c: Likewise.
3831 * aix-thread.c: Likewise.
3832 * alpha-linux-tdep.c: Likewise.
3833 * alpha-mdebug-tdep.c: Likewise.
3834 * alpha-nat.c: Likewise.
3835 * alpha-osf1-tdep.c: Likewise.
3836 * alpha-tdep.c: Likewise.
3837 * alphanbsd-tdep.c: Likewise.
3838 * amd64-dicos-tdep.c: Likewise.
3839 * amd64-linux-tdep.c: Likewise.
3840 * amd64-nat.c: Likewise.
3841 * amd64-sol2-tdep.c: Likewise.
3842 * amd64fbsd-tdep.c: Likewise.
3843 * amd64obsd-tdep.c: Likewise.
3844 * arch-utils.c: Likewise.
3845 * arm-linux-nat.c: Likewise.
3846 * arm-linux-tdep.c: Likewise.
3847 * arm-tdep.c: Likewise.
3848 * arm-wince-tdep.c: Likewise.
3849 * armbsd-tdep.c: Likewise.
3850 * armnbsd-nat.c: Likewise.
3851 * armnbsd-tdep.c: Likewise.
3852 * armobsd-tdep.c: Likewise.
3853 * avr-tdep.c: Likewise.
3854 * ax-gdb.c: Likewise.
3855 * ax-general.c: Likewise.
3856 * bcache.c: Likewise.
3857 * bfin-tdep.c: Likewise.
3858 * breakpoint.c: Likewise.
3859 * build-id.c: Likewise.
3860 * buildsym.c: Likewise.
3861 * c-exp.y: Likewise.
3862 * c-lang.c: Likewise.
3863 * c-typeprint.c: Likewise.
3864 * c-valprint.c: Likewise.
3865 * charset.c: Likewise.
3866 * cli-out.c: Likewise.
3867 * cli/cli-cmds.c: Likewise.
3868 * cli/cli-decode.c: Likewise.
3869 * cli/cli-dump.c: Likewise.
3870 * cli/cli-interp.c: Likewise.
3871 * cli/cli-logging.c: Likewise.
3872 * cli/cli-script.c: Likewise.
3873 * cli/cli-setshow.c: Likewise.
3874 * cli/cli-utils.c: Likewise.
3875 * coffread.c: Likewise.
3876 * common/agent.c: Likewise.
3877 * common/buffer.c: Likewise.
3878 * common/buffer.h: Likewise.
3879 * common/common-utils.c: Likewise.
3880 * common/filestuff.c: Likewise.
3881 * common/filestuff.c: Likewise.
3882 * common/format.c: Likewise.
3883 * common/print-utils.c: Likewise.
3884 * common/rsp-low.c: Likewise.
3885 * common/signals.c: Likewise.
3886 * common/vec.h: Likewise.
3887 * common/xml-utils.c: Likewise.
3888 * core-regset.c: Likewise.
3889 * corefile.c: Likewise.
3890 * corelow.c: Likewise.
3891 * cp-abi.c: Likewise.
3892 * cp-name-parser.y: Likewise.
3893 * cp-support.c: Likewise.
3894 * cp-valprint.c: Likewise.
3895 * cris-tdep.c: Likewise.
3896 * d-exp.y: Likewise.
3897 * darwin-nat.c: Likewise.
3898 * dbxread.c: Likewise.
3899 * dcache.c: Likewise.
3900 * demangle.c: Likewise.
3901 * dicos-tdep.c: Likewise.
3902 * disasm.c: Likewise.
3903 * doublest.c: Likewise.
3904 * dsrec.c: Likewise.
3905 * dummy-frame.c: Likewise.
3906 * dwarf2-frame.c: Likewise.
3907 * dwarf2loc.c: Likewise.
3908 * dwarf2read.c: Likewise.
3909 * elfread.c: Likewise.
3910 * environ.c: Likewise.
3911 * eval.c: Likewise.
3912 * event-loop.c: Likewise.
3913 * exceptions.c: Likewise.
3914 * exec.c: Likewise.
3915 * expprint.c: Likewise.
3916 * f-exp.y: Likewise.
3917 * f-lang.c: Likewise.
3918 * f-typeprint.c: Likewise.
3919 * f-valprint.c: Likewise.
3920 * fbsd-nat.c: Likewise.
3921 * findcmd.c: Likewise.
3922 * findvar.c: Likewise.
3923 * fork-child.c: Likewise.
3924 * frame.c: Likewise.
3925 * frv-linux-tdep.c: Likewise.
3926 * frv-tdep.c: Likewise.
3927 * gdb.c: Likewise.
3928 * gdb_bfd.c: Likewise.
3929 * gdbarch.c: Likewise.
3930 * gdbarch.sh: Likewise.
3931 * gdbtypes.c: Likewise.
3932 * gnu-nat.c: Likewise.
3933 * gnu-v2-abi.c: Likewise.
3934 * gnu-v3-abi.c: Likewise.
3935 * go-exp.y: Likewise.
3936 * go-lang.c: Likewise.
3937 * go32-nat.c: Likewise.
3938 * guile/guile.c: Likewise.
3939 * guile/scm-auto-load.c: Likewise.
3940 * hppa-hpux-tdep.c: Likewise.
3941 * hppa-linux-nat.c: Likewise.
3942 * hppanbsd-tdep.c: Likewise.
3943 * hppaobsd-tdep.c: Likewise.
3944 * i386-cygwin-tdep.c: Likewise.
3945 * i386-dicos-tdep.c: Likewise.
3946 * i386-linux-tdep.c: Likewise.
3947 * i386-nto-tdep.c: Likewise.
3948 * i386-sol2-tdep.c: Likewise.
3949 * i386-tdep.c: Likewise.
3950 * i386bsd-tdep.c: Likewise.
3951 * i386gnu-nat.c: Likewise.
3952 * i386nbsd-tdep.c: Likewise.
3953 * i386obsd-tdep.c: Likewise.
3954 * i387-tdep.c: Likewise.
3955 * ia64-libunwind-tdep.c: Likewise.
3956 * ia64-linux-nat.c: Likewise.
3957 * inf-child.c: Likewise.
3958 * inf-ptrace.c: Likewise.
3959 * inf-ttrace.c: Likewise.
3960 * infcall.c: Likewise.
3961 * infcmd.c: Likewise.
3962 * inflow.c: Likewise.
3963 * infrun.c: Likewise.
3964 * interps.c: Likewise.
3965 * iq2000-tdep.c: Likewise.
3966 * irix5-nat.c: Likewise.
3967 * jv-exp.y: Likewise.
3968 * jv-lang.c: Likewise.
3969 * jv-typeprint.c: Likewise.
3970 * jv-valprint.c: Likewise.
3971 * language.c: Likewise.
3972 * linux-fork.c: Likewise.
3973 * linux-nat.c: Likewise.
3974 * lm32-tdep.c: Likewise.
3975 * m2-exp.y: Likewise.
3976 * m2-typeprint.c: Likewise.
3977 * m32c-tdep.c: Likewise.
3978 * m32r-linux-nat.c: Likewise.
3979 * m32r-linux-tdep.c: Likewise.
3980 * m32r-rom.c: Likewise.
3981 * m32r-tdep.c: Likewise.
3982 * m68hc11-tdep.c: Likewise.
3983 * m68k-tdep.c: Likewise.
3984 * m68kbsd-tdep.c: Likewise.
3985 * m68klinux-nat.c: Likewise.
3986 * m68klinux-tdep.c: Likewise.
3987 * m88k-tdep.c: Likewise.
3988 * machoread.c: Likewise.
3989 * macrocmd.c: Likewise.
3990 * main.c: Likewise.
3991 * mdebugread.c: Likewise.
3992 * mem-break.c: Likewise.
3993 * memattr.c: Likewise.
3994 * memory-map.c: Likewise.
3995 * mep-tdep.c: Likewise.
3996 * mi/mi-cmd-break.c: Likewise.
3997 * mi/mi-cmd-disas.c: Likewise.
3998 * mi/mi-cmd-env.c: Likewise.
3999 * mi/mi-cmd-stack.c: Likewise.
4000 * mi/mi-cmd-var.c: Likewise.
4001 * mi/mi-cmds.c: Likewise.
4002 * mi/mi-console.c: Likewise.
4003 * mi/mi-getopt.c: Likewise.
4004 * mi/mi-interp.c: Likewise.
4005 * mi/mi-main.c: Likewise.
4006 * mi/mi-parse.c: Likewise.
4007 * microblaze-rom.c: Likewise.
4008 * microblaze-tdep.c: Likewise.
4009 * mingw-hdep.c: Likewise.
4010 * minidebug.c: Likewise.
4011 * minsyms.c: Likewise.
4012 * mips-irix-tdep.c: Likewise.
4013 * mips-linux-tdep.c: Likewise.
4014 * mips-tdep.c: Likewise.
4015 * mips64obsd-tdep.c: Likewise.
4016 * mipsnbsd-tdep.c: Likewise.
4017 * mipsread.c: Likewise.
4018 * mn10300-linux-tdep.c: Likewise.
4019 * mn10300-tdep.c: Likewise.
4020 * monitor.c: Likewise.
4021 * moxie-tdep.c: Likewise.
4022 * mt-tdep.c: Likewise.
4023 * nat/linux-btrace.c: Likewise.
4024 * nat/linux-osdata.c: Likewise.
4025 * nat/linux-procfs.c: Likewise.
4026 * nat/linux-ptrace.c: Likewise.
4027 * nat/linux-waitpid.c: Likewise.
4028 * nbsd-tdep.c: Likewise.
4029 * nios2-linux-tdep.c: Likewise.
4030 * nto-procfs.c: Likewise.
4031 * nto-tdep.c: Likewise.
4032 * objc-lang.c: Likewise.
4033 * objfiles.c: Likewise.
4034 * opencl-lang.c: Likewise.
4035 * osabi.c: Likewise.
4036 * osdata.c: Likewise.
4037 * p-exp.y: Likewise.
4038 * p-lang.c: Likewise.
4039 * p-typeprint.c: Likewise.
4040 * parse.c: Likewise.
4041 * posix-hdep.c: Likewise.
4042 * ppc-linux-nat.c: Likewise.
4043 * ppc-sysv-tdep.c: Likewise.
4044 * ppcfbsd-tdep.c: Likewise.
4045 * ppcnbsd-tdep.c: Likewise.
4046 * ppcobsd-tdep.c: Likewise.
4047 * printcmd.c: Likewise.
4048 * procfs.c: Likewise.
4049 * prologue-value.c: Likewise.
4050 * python/py-auto-load.c: Likewise.
4051 * python/py-gdb-readline.c: Likewise.
4052 * ravenscar-thread.c: Likewise.
4053 * regcache.c: Likewise.
4054 * registry.c: Likewise.
4055 * remote-fileio.c: Likewise.
4056 * remote-m32r-sdi.c: Likewise.
4057 * remote-mips.c: Likewise.
4058 * remote-notif.c: Likewise.
4059 * remote-sim.c: Likewise.
4060 * remote.c: Likewise.
4061 * reverse.c: Likewise.
4062 * rs6000-aix-tdep.c: Likewise.
4063 * ser-base.c: Likewise.
4064 * ser-go32.c: Likewise.
4065 * ser-mingw.c: Likewise.
4066 * ser-pipe.c: Likewise.
4067 * ser-tcp.c: Likewise.
4068 * ser-unix.c: Likewise.
4069 * serial.c: Likewise.
4070 * sh-tdep.c: Likewise.
4071 * sh64-tdep.c: Likewise.
4072 * shnbsd-tdep.c: Likewise.
4073 * skip.c: Likewise.
4074 * sol-thread.c: Likewise.
4075 * solib-dsbt.c: Likewise.
4076 * solib-frv.c: Likewise.
4077 * solib-osf.c: Likewise.
4078 * solib-som.c: Likewise.
4079 * solib-spu.c: Likewise.
4080 * solib-target.c: Likewise.
4081 * solib.c: Likewise.
4082 * somread.c: Likewise.
4083 * source.c: Likewise.
4084 * sparc-nat.c: Likewise.
4085 * sparc-sol2-tdep.c: Likewise.
4086 * sparc-tdep.c: Likewise.
4087 * sparc64-tdep.c: Likewise.
4088 * sparc64fbsd-tdep.c: Likewise.
4089 * sparc64nbsd-tdep.c: Likewise.
4090 * sparcnbsd-tdep.c: Likewise.
4091 * spu-linux-nat.c: Likewise.
4092 * spu-multiarch.c: Likewise.
4093 * spu-tdep.c: Likewise.
4094 * stabsread.c: Likewise.
4095 * stack.c: Likewise.
4096 * std-regs.c: Likewise.
4097 * symfile.c: Likewise.
4098 * symmisc.c: Likewise.
4099 * symtab.c: Likewise.
4100 * target.c: Likewise.
4101 * thread.c: Likewise.
4102 * tilegx-linux-nat.c: Likewise.
4103 * tilegx-tdep.c: Likewise.
4104 * top.c: Likewise.
4105 * tracepoint.c: Likewise.
4106 * tui/tui-command.c: Likewise.
4107 * tui/tui-data.c: Likewise.
4108 * tui/tui-disasm.c: Likewise.
4109 * tui/tui-file.c: Likewise.
4110 * tui/tui-layout.c: Likewise.
4111 * tui/tui-out.c: Likewise.
4112 * tui/tui-regs.c: Likewise.
4113 * tui/tui-source.c: Likewise.
4114 * tui/tui-stack.c: Likewise.
4115 * tui/tui-win.c: Likewise.
4116 * tui/tui-windata.c: Likewise.
4117 * tui/tui-winsource.c: Likewise.
4118 * typeprint.c: Likewise.
4119 * ui-file.c: Likewise.
4120 * ui-out.c: Likewise.
4121 * user-regs.c: Likewise.
4122 * utils.c: Likewise.
4123 * v850-tdep.c: Likewise.
4124 * valarith.c: Likewise.
4125 * valops.c: Likewise.
4126 * valprint.c: Likewise.
4127 * value.c: Likewise.
4128 * varobj.c: Likewise.
4129 * vax-tdep.c: Likewise.
4130 * vaxnbsd-tdep.c: Likewise.
4131 * vaxobsd-tdep.c: Likewise.
4132 * windows-nat.c: Likewise.
4133 * xcoffread.c: Likewise.
4134 * xml-support.c: Likewise.
4135 * xstormy16-tdep.c: Likewise.
4136 * xtensa-linux-nat.c: Likewise.
4137
dccbb609
GB
41382014-08-07 Gary Benson <gbenson@redhat.com>
4139
4140 * common/common-defs.h: Include gdb_assert.h.
4141 * aarch64-tdep.c: Do not include gdb_assert.h.
4142 * addrmap.c: Likewise.
4143 * aix-thread.c: Likewise.
4144 * alpha-linux-tdep.c: Likewise.
4145 * alpha-mdebug-tdep.c: Likewise.
4146 * alphanbsd-tdep.c: Likewise.
4147 * amd64-nat.c: Likewise.
4148 * amd64-tdep.c: Likewise.
4149 * amd64bsd-nat.c: Likewise.
4150 * amd64fbsd-nat.c: Likewise.
4151 * amd64fbsd-tdep.c: Likewise.
4152 * amd64nbsd-nat.c: Likewise.
4153 * amd64nbsd-tdep.c: Likewise.
4154 * amd64obsd-nat.c: Likewise.
4155 * amd64obsd-tdep.c: Likewise.
4156 * arch-utils.c: Likewise.
4157 * arm-tdep.c: Likewise.
4158 * armbsd-tdep.c: Likewise.
4159 * auxv.c: Likewise.
4160 * bcache.c: Likewise.
4161 * bfin-tdep.c: Likewise.
4162 * blockframe.c: Likewise.
4163 * breakpoint.c: Likewise.
4164 * bsd-kvm.c: Likewise.
4165 * bsd-uthread.c: Likewise.
4166 * buildsym.c: Likewise.
4167 * c-exp.y: Likewise.
4168 * c-lang.c: Likewise.
4169 * charset.c: Likewise.
4170 * cleanups.c: Likewise.
4171 * cli-out.c: Likewise.
4172 * cli/cli-decode.c: Likewise.
4173 * cli/cli-dump.c: Likewise.
4174 * cli/cli-logging.c: Likewise.
4175 * cli/cli-script.c: Likewise.
4176 * cli/cli-utils.c: Likewise.
4177 * coffread.c: Likewise.
4178 * common/common-utils.c: Likewise.
4179 * common/queue.h: Likewise.
4180 * common/signals.c: Likewise.
4181 * common/vec.h: Likewise.
4182 * complaints.c: Likewise.
4183 * completer.c: Likewise.
4184 * corelow.c: Likewise.
4185 * cp-abi.c: Likewise.
4186 * cp-name-parser.y: Likewise.
4187 * cp-namespace.c: Likewise.
4188 * cp-support.c: Likewise.
4189 * cris-tdep.c: Likewise.
4190 * dbxread.c: Likewise.
4191 * dictionary.c: Likewise.
4192 * doublest.c: Likewise.
4193 * dsrec.c: Likewise.
4194 * dummy-frame.c: Likewise.
4195 * dwarf2-frame-tailcall.c: Likewise.
4196 * dwarf2-frame.c: Likewise.
4197 * dwarf2expr.c: Likewise.
4198 * dwarf2loc.c: Likewise.
4199 * dwarf2read.c: Likewise.
4200 * eval.c: Likewise.
4201 * event-loop.c: Likewise.
4202 * exceptions.c: Likewise.
4203 * expprint.c: Likewise.
4204 * f-valprint.c: Likewise.
4205 * fbsd-nat.c: Likewise.
4206 * findvar.c: Likewise.
4207 * frame-unwind.c: Likewise.
4208 * frame.c: Likewise.
4209 * frv-tdep.c: Likewise.
4210 * gcore.c: Likewise.
4211 * gdb-dlfcn.c: Likewise.
4212 * gdb_bfd.c: Likewise.
4213 * gdbarch.c: Likewise.
4214 * gdbarch.sh: Likewise.
4215 * gdbtypes.c: Likewise.
4216 * gnu-nat.c: Likewise.
4217 * gnu-v3-abi.c: Likewise.
4218 * go-lang.c: Likewise.
4219 * guile/scm-exception.c: Likewise.
4220 * guile/scm-gsmob.c: Likewise.
4221 * guile/scm-lazy-string.c: Likewise.
4222 * guile/scm-math.c: Likewise.
4223 * guile/scm-pretty-print.c: Likewise.
4224 * guile/scm-safe-call.c: Likewise.
4225 * guile/scm-utils.c: Likewise.
4226 * guile/scm-value.c: Likewise.
4227 * h8300-tdep.c: Likewise.
4228 * hppa-hpux-nat.c: Likewise.
4229 * hppa-tdep.c: Likewise.
4230 * hppanbsd-tdep.c: Likewise.
4231 * hppaobsd-tdep.c: Likewise.
4232 * i386-darwin-nat.c: Likewise.
4233 * i386-darwin-tdep.c: Likewise.
4234 * i386-nto-tdep.c: Likewise.
4235 * i386-tdep.c: Likewise.
4236 * i386bsd-nat.c: Likewise.
4237 * i386fbsd-tdep.c: Likewise.
4238 * i386gnu-nat.c: Likewise.
4239 * i386nbsd-tdep.c: Likewise.
4240 * i386obsd-tdep.c: Likewise.
4241 * i387-tdep.c: Likewise.
4242 * ia64-libunwind-tdep.c: Likewise.
4243 * ia64-tdep.c: Likewise.
4244 * inf-ptrace.c: Likewise.
4245 * inf-ttrace.c: Likewise.
4246 * infcall.c: Likewise.
4247 * infcmd.c: Likewise.
4248 * infrun.c: Likewise.
4249 * inline-frame.c: Likewise.
4250 * interps.c: Likewise.
4251 * jv-lang.c: Likewise.
4252 * jv-typeprint.c: Likewise.
4253 * linux-fork.c: Likewise.
4254 * linux-nat.c: Likewise.
4255 * linux-thread-db.c: Likewise.
4256 * m32c-tdep.c: Likewise.
4257 * m32r-linux-nat.c: Likewise.
4258 * m32r-tdep.c: Likewise.
4259 * m68k-tdep.c: Likewise.
4260 * m68kbsd-nat.c: Likewise.
4261 * m68kbsd-tdep.c: Likewise.
4262 * m88k-tdep.c: Likewise.
4263 * machoread.c: Likewise.
4264 * macroexp.c: Likewise.
4265 * macrotab.c: Likewise.
4266 * maint.c: Likewise.
4267 * mdebugread.c: Likewise.
4268 * memory-map.c: Likewise.
4269 * mep-tdep.c: Likewise.
4270 * mi/mi-common.c: Likewise.
4271 * microblaze-tdep.c: Likewise.
4272 * mingw-hdep.c: Likewise.
4273 * mips-linux-nat.c: Likewise.
4274 * mips-linux-tdep.c: Likewise.
4275 * mips-tdep.c: Likewise.
4276 * mips64obsd-tdep.c: Likewise.
4277 * mipsnbsd-tdep.c: Likewise.
4278 * mn10300-linux-tdep.c: Likewise.
4279 * mn10300-tdep.c: Likewise.
4280 * moxie-tdep.c: Likewise.
4281 * mt-tdep.c: Likewise.
4282 * nat/linux-btrace.c: Likewise.
4283 * nat/linux-osdata.c: Likewise.
4284 * nat/linux-ptrace.c: Likewise.
4285 * nat/mips-linux-watch.c: Likewise.
4286 * nios2-linux-tdep.c: Likewise.
4287 * nios2-tdep.c: Likewise.
4288 * objc-lang.c: Likewise.
4289 * objfiles.c: Likewise.
4290 * obsd-nat.c: Likewise.
4291 * opencl-lang.c: Likewise.
4292 * osabi.c: Likewise.
4293 * parse.c: Likewise.
4294 * ppc-linux-nat.c: Likewise.
4295 * ppc-sysv-tdep.c: Likewise.
4296 * ppcfbsd-nat.c: Likewise.
4297 * ppcfbsd-tdep.c: Likewise.
4298 * ppcnbsd-nat.c: Likewise.
4299 * ppcnbsd-tdep.c: Likewise.
4300 * ppcobsd-nat.c: Likewise.
4301 * ppcobsd-tdep.c: Likewise.
4302 * printcmd.c: Likewise.
4303 * procfs.c: Likewise.
4304 * prologue-value.c: Likewise.
4305 * psymtab.c: Likewise.
4306 * python/py-lazy-string.c: Likewise.
4307 * python/py-value.c: Likewise.
4308 * regcache.c: Likewise.
4309 * reggroups.c: Likewise.
4310 * registry.c: Likewise.
4311 * remote-sim.c: Likewise.
4312 * remote.c: Likewise.
4313 * rs6000-aix-tdep.c: Likewise.
4314 * rs6000-tdep.c: Likewise.
4315 * s390-linux-tdep.c: Likewise.
4316 * score-tdep.c: Likewise.
4317 * ser-base.c: Likewise.
4318 * ser-mingw.c: Likewise.
4319 * sh-tdep.c: Likewise.
4320 * sh64-tdep.c: Likewise.
4321 * solib-darwin.c: Likewise.
4322 * solib-spu.c: Likewise.
4323 * solib-svr4.c: Likewise.
4324 * source.c: Likewise.
4325 * sparc-nat.c: Likewise.
4326 * sparc-sol2-tdep.c: Likewise.
4327 * sparc-tdep.c: Likewise.
4328 * sparc64-sol2-tdep.c: Likewise.
4329 * sparc64-tdep.c: Likewise.
4330 * sparc64fbsd-tdep.c: Likewise.
4331 * sparc64nbsd-tdep.c: Likewise.
4332 * sparc64obsd-tdep.c: Likewise.
4333 * sparcnbsd-tdep.c: Likewise.
4334 * sparcobsd-tdep.c: Likewise.
4335 * spu-multiarch.c: Likewise.
4336 * spu-tdep.c: Likewise.
4337 * stabsread.c: Likewise.
4338 * stack.c: Likewise.
4339 * symfile.c: Likewise.
4340 * symtab.c: Likewise.
4341 * target-descriptions.c: Likewise.
4342 * target-memory.c: Likewise.
4343 * target.c: Likewise.
4344 * tic6x-linux-tdep.c: Likewise.
4345 * tic6x-tdep.c: Likewise.
4346 * tilegx-linux-nat.c: Likewise.
4347 * tilegx-tdep.c: Likewise.
4348 * top.c: Likewise.
4349 * tramp-frame.c: Likewise.
4350 * tui/tui-out.c: Likewise.
4351 * tui/tui-winsource.c: Likewise.
4352 * ui-out.c: Likewise.
4353 * user-regs.c: Likewise.
4354 * utils.c: Likewise.
4355 * v850-tdep.c: Likewise.
4356 * valops.c: Likewise.
4357 * value.c: Likewise.
4358 * varobj.c: Likewise.
4359 * vax-nat.c: Likewise.
4360 * xml-syscall.c: Likewise.
4361 * xml-tdesc.c: Likewise.
4362 * xstormy16-tdep.c: Likewise.
4363 * xtensa-linux-nat.c: Likewise.
4364 * xtensa-tdep.c: Likewise.
4365
e76df0d0
GB
43662014-08-07 Gary Benson <gbenson@redhat.com>
4367
4368 * common/common-defs.h: Include common-utils.h.
4369 * defs.h: Do not include common-utils.h.
4370 * common/gdb_assert.h: Likewise.
4371 * darwin-nat.h: Likewise.
4372 * nat/linux-btrace.c: Likewise.
4373 * target/waitstatus.h: Likewise.
4374
4cb9c816
GB
43752014-08-07 Gary Benson <gbenson@redhat.com>
4376
4377 * common/common-defs.h: Include ptid.h.
4378 * defs.h: Do not include ptid.h.
4379 * inferior.h: Likewise.
4380 * infrun.h: Likewise.
4381 * nat/linux-btrace.h: Likewise.
4382 * nat/linux-osdata.h: Likewise.
4383 * target/waitstatus.h: Likewise.
4384
3995eeee
GB
43852014-08-07 Gary Benson <gbenson@redhat.com>
4386
4387 * common/common-defs.h: Include gdb_locale.h.
4388 * defs.h: Do not include gdb_locale.h.
4389
cb9f1a9b
GB
43902014-08-07 Gary Benson <gbenson@redhat.com>
4391
4392 * common/common-defs.h: Include gdb/signals.h.
4393 * defs.h: Do not include gdb/signals.h.
4394
a5fceff8
GB
43952014-08-07 Gary Benson <gbenson@redhat.com>
4396
4397 * common/common-defs.h: Include pathmax.h.
4398 * defs.h: Do not include pathmax.h.
4399
b9391142
GB
44002014-08-07 Gary Benson <gbenson@redhat.com>
4401
4402 * common/common-defs.h: Include libiberty.h.
4403 * defs.h: Do not include libiberty.h.
4404 * common/queue.h: Likewise.
4405 * cp-name-parser.y: Likewise.
4406 * mi/mi-cmd-catch.c: Likewise.
4407 * python/python.c: Likewise.
4408
0e443c87
GB
44092014-08-07 Gary Benson <gbenson@redhat.com>
4410
4411 * common/common-defs.h: Include ansidecl.h.
4412 * defs.h: Do not include ansidecl.h.
4413 * common/buffer.h: Likewise.
4414 * common/common-utils.h: Likewise.
4415
8ebb3f56
GB
44162014-08-07 Gary Benson <gbenson@redhat.com>
4417
4418 * common/common-defs.h: Include stddef.h.
4419 * defs.h: Do not include stddef.h.
4420 * common/common-utils.h: Likewise.
4421 * amd64fbsd-nat.c: Likewise.
4422 * bcache.c: Likewise.
4423 * charset.c: Likewise.
4424 * common/buffer.h: Likewise.
4425 * common/vec.h: Likewise.
4426 * i386bsd-nat.c: Likewise.
4427 * nat/linux-btrace.h: Likewise.
4428 * ppcfbsd-nat.c: Likewise.
4429 * ppcnbsd-tdep.h: Likewise.
4430 * ppcobsd-nat.c: Likewise.
4431 * ppcobsd-tdep.h: Likewise.
4432 * python/py-gdb-readline.c: Likewise.
4433
8980bdf6
GB
44342014-08-07 Gary Benson <gbenson@redhat.com>
4435
4436 * common/common-defs.h: Include stdarg.h.
4437 * defs.h: Do not include stdarg.h.
4438 * ada-lang.c: Likewise.
4439 * common/common-utils.h: Likewise.
4440 * guile/scm-string.c: Likewise.
4441 * guile/scm-utils.c: Likewise.
4442 * m32c-tdep.c: Likewise.
4443
d7096f71
GB
44442014-08-07 Gary Benson <gbenson@redhat.com>
4445
4446 * common/common-defs.h: Include stdlib.h.
4447 * defs.h: Do not include stdlib.h.
4448 * addrmap.c: Likewise.
4449 * bcache.c: Likewise.
4450 * common/buffer.c: Likewise.
4451 * common/common-utils.c: Likewise.
4452 * cp-name-parser.y: Likewise.
4453 * go32-nat.c: Likewise.
4454 * mn10300-linux-tdep.c: Likewise.
4455 * nat/linux-osdata.c: Likewise.
4456 * tui/tui.c: Likewise.
4457 * windows-nat.c: Likewise.
4458
d02f550d
GB
44592014-08-07 Gary Benson <gbenson@redhat.com>
4460
4461 * common/common-defs.h: Include stdio.h.
4462 * defs.h: Do not include stdio.h.
4463 * ada-lang.c: Likewise.
4464 * common/buffer.c: Likewise.
4465 * common/common-utils.c: Likewise.
4466 * cp-name-parser.y: Likewise.
4467 * gnu-nat.c: Likewise.
4468 * go32-nat.c: Likewise.
4469 * i386gnu-nat.c: Likewise.
4470 * proc-api.c: Likewise.
4471 * proc-events.c: Likewise.
4472 * proc-flags.c: Likewise.
4473 * proc-why.c: Likewise.
4474 * python/python-internal.h: Likewise.
4475 * target-memory.c: Likewise.
4476 * tui/tui-io.c: Likewise.
4477 * tui/tui.c: Likewise.
4478
b6d7a4bf
SM
44792014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4480
4481 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4482 (scan_dyntag_auxv): Same.
4483
af19829b
YQ
44842014-08-06 Yao Qi <yao@codesourcery.com>
4485
4486 * amd64-linux-nat.c: Remove duplicated include
4487 "x86-linux-nat.h".
4488 * i386-linux-nat.c: Likewise.
4489
8e07a239
YQ
44902014-08-06 Yao Qi <yao@codesourcery.com>
4491
4492 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4493 operand" with "Special opcode" in comments.
4494
7bfe8241
GB
44952014-08-05 Gary Benson <gbenson@redhat.com>
4496
4497 * interps.c (initialize_interps): Remove prototype.
4498 (interpreter_initialized): Remove static global.
4499 (interp_add): Do not call initialize_interps.
4500 (initialize_interps): Remove function.
4501
d6c95504
GB
45022014-08-05 Gary Benson <gbenson@redhat.com>
4503
4504 * utils.c (vwarning): Remove spurious va_end.
4505
241fd515
AM
45062014-08-05 Alan Modra <amodra@gmail.com>
4507
4508 * charset.c (convert_between_encodings): Cast result of obstack_base.
4509 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4510 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4511 (read_unwind_info): Use size_t for some locals.
4512 * jit.c (finalize_symtab): Likewise.
4513 * utils.c (hashtab_obstack_allocate): Likewise.
4514 * symmisc.c (print_objfile_statistics): Update format strings.
4515
dc304a94
JK
45162014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4517
4518 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4519 (Changes in GDB 7.8): ... here.
4520
3cecbbbe
TT
45212014-08-04 Tom Tromey <tromey@redhat.com>
4522
4523 * target.c (set_targetdebug): New function.
4524 (initialize_targets): Pass set_targetdebug when creating "set
4525 debug target".
4526
6908c509
JB
45272014-08-01 Joel Brobecker <brobecker@adacore.com>
4528
4529 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4530 if detecting a variable-sized field that is not the last field.
4531 Fix struct type length computation.
4532
53e8f97d
JB
45332014-08-01 Joel Brobecker <brobecker@adacore.com>
4534
4535 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4536 Add debug trace.
4537
e068c55d
JB
45382014-08-01 Joel Brobecker <brobecker@adacore.com>
4539
4540 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4541 Remove "+ 8" offset in computation of CHAIN_VMA.
4542
4d4ca2a1
DE
45432014-07-31 Doug Evans <dje@google.com>
4544
4545 * inflow.c (child_terminal_inferior): Add comment.
4546 (child_terminal_ours_for_output): Add comment.
4547 (child_terminal_ours): Add comment.
4548 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4549 (linux_nat_terminal_ours): Add comment.
4550
462f517e
GB
45512014-07-31 Gary Benson <gbenson@redhat.com>
4552
4553 * common/btrace-common.h: Do not include defs.h or server.h.
4554 * nat/mips-linux-watch.h: Likewise.
4555 * gdb-dlfcn.h: Do not include defs.h.
4556 * tracefile.h: Likewise.
4557
74228e77
RM
45582014-07-30 Roland McGrath <mcgrathr@google.com>
4559
4560 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4561
014f9477
TT
45622014-07-30 Tom Tromey <tromey@redhat.com>
4563
4564 * bsd-kvm.c (bsd_kvm_open): Constify.
4565 * corelow.c (core_open): Constify.
4566 * ctf.c (ctf_open): Constify.
4567 * dbug-rom.c (dbug_open): Constify.
4568 * exec.c (exec_open): Constify.
4569 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4570 * microblaze-rom.c (picobug_open): Constify.
4571 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4572 Constify.
4573 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4574 * record-btrace.c (record_btrace_open): Constify.
4575 * record-full.c (record_full_core_open_1, record_full_open_1)
4576 (record_full_open): Constify.
4577 * remote-m32r-sdi.c (m32r_open): Constify.
4578 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4579 (rockhopper_open, lsi_open): Constify.
4580 * remote-sim.c (gdbsim_open): Constify.
4581 * remote.c (remote_open, extended_remote_open, remote_open_1):
4582 Constify.
4583 * target.h (struct target_ops) <to_open>: Make "arg" const.
4584 * tracefile-tfile.c (tfile_open): Constify.
4585
e799154c
TT
45862014-07-30 Tom Tromey <tromey@redhat.com>
4587
4588 * breakpoint.c (map_breakpoint_numbers): Update.
4589 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4590 (get_number_const): New function.
4591 (get_number): Rewrite using get_number_const.
4592 (init_number_or_range): Make "string" const.
4593 (number_is_in_list): Make "list" const.
4594 * cli/cli-utils.h (get_number_const): Declare.
4595 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4596 (init_number_or_range, number_is_in_list): Update.
4597 * printcmd.c (map_display_numbers): Update.
4598 * value.c (value_from_history_ref): Constify.
4599 * value.h (value_from_history_ref): Update.
4600
5f08566b
TT
46012014-07-30 Tom Tromey <tromey@redhat.com>
4602
4603 * corefile.c (hook_type, call_extra_exec_file_hooks)
4604 (specify_exec_file_hook): Constify.
4605 * exec.c (exec_file_attach): Make "filename" const.
4606 * gdbcore.h (deprecated_exec_file_display_hook)
4607 (specify_exec_file_hook, exec_file_attach): Constify.
4608 * main.c (captured_main): Use catch_command_errors_const.
4609
8981c758
TT
46102014-07-30 Tom Tromey <tromey@redhat.com>
4611
4612 * target.c (open_target): New function.
4613 (add_target_with_completer, add_deprecated_target_alias): Use
4614 set_cmd_sfunc, set_cmd_context.
4615 (debug_to_open): Remove.
4616 (setup_target_debug): Update.
4617
a1c7835a
YQ
46182014-07-30 Yao Qi <yao@codesourcery.com>
4619
4620 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4621 comments.
4622 * parse.c (exp_iterate): Update comments.
4623
976411d6
GB
46242014-07-30 Gary Benson <gbenson@redhat.com>
4625
4626 * common/common-defs.h: New file.
4627 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4628 * defs.h: Include common-defs.h.
4629 Do not include config.h or build-gnulib/config.h.
4630
5d4848a4
GB
46312014-07-30 Gary Benson <gbenson@redhat.com>
4632
4633 * common/common-utils.h: Do not include config.h.
4634 * nat/linux-btrace.h: Likewise.
4635
d41f6d8e
GB
46362014-07-30 Gary Benson <gbenson@redhat.com>
4637
4638 * btrace.c: Include defs.h.
4639 * common/ptid.c: Include defs.h or server.h as appropriate.
4640 * nat/mips-linux-watch.c: Likewise.
4641
84202f9c
TT
46422014-07-29 Tom Tromey <tromey@redhat.com>
4643
4644 * target.c (target_is_pushed): Simplify.
4645
2530441c
JB
46462014-07-29 Joel Brobecker <brobecker@adacore.com>
4647
4648 GDB 7.8 released.
4649
7e09a223
YQ
46502014-07-29 Yao Qi <yao@codesourcery.com>
4651
4652 PR gdb/17206
4653 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4654
7ebdbe92
DE
46552014-07-28 Doug Evans <xdje42@gmail.com>
4656
4657 PR guile/17203
4658 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4659 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4660 parameters.
4661
f347ffc9
WN
46622014-07-28 Will Newton <will.newton@linaro.org>
4663
4664 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4665 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4666 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4667 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4668 (THUMB2_EABI_SYSCALL): Likewise.
4669 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4670 struct tramp_frame.
4671 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4672 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4673
37c5f1f7
DE
46742014-07-27 Doug Evans <xdje42@gmail.com>
4675
4676 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4677
0c3abbc7
DE
46782014-07-27 Doug Evans <xdje42@gmail.com>
4679
4680 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4681
e76c5d17
DE
46822014-07-26 Ludovic Courtès <ludo@gnu.org>
4683 Doug Evans <xdje42@gmail.com>
4684
4685 PR guile/17146
4686 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4687 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4688 * configure.ac: Try to use guild to compile an scm file, if it fails
4689 then disable guile support.
4690 * configure: Regenerate.
4691 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4692 GUILE_FILE_LIST.
4693 (GUILE_COMPILED_FILES): New variable.
4694 (GUILE_FILES) Update.
4695 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4696 (stamp-guile): Compile scm files.
4697 * guile/guile.c (boot_guile_support): New function.
4698 (standard_throw_args_p): New function.
4699 (print_standard_throw_error, print_throw_error): New functions.
4700 (handle_boot_error): New function.
4701 (initialize_scheme_side): Rewrite to call boot_guile_support.
4702 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4703 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4704
186fcde0
DE
47052014-07-26 Ludovic Courtès <ludo@gnu.org>
4706 Doug Evans <xdje42@gmail.com>
4707
4708 PR guile/17146
4709 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4710 * guile/lib/gdb/support.scm: New file.
4711 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4712 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4713 All uses updated.
4714 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4715 All uses updated.
4716 (%assert-type): Ditto, and renamed to assert-type.
4717 (%exception-print-style): Delete.
4718
4df42755
DE
47192014-07-26 Doug Evans <xdje42@gmail.com>
4720
4721 PR build/17105
4722 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4723 * configure: Regenerate.
4724 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4725 PYTHON_FILES.
4726 (PYTHON_FILES): New variable.
4727 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4728 (GUILE_FILES): New variable.
4729 (stamp-python, install-python, uninstall-python): Handle empty
4730 file list.
4731 (stamp-guile, install-guile, uninstall-guile): Ditto.
4732
ee7333ae
DE
47332014-07-26 Doug Evans <xdje42@gmail.com>
4734
4735 PR guile/17177
4736 * guile/lib/gdb.scm (pretty-printers): Export.
4737 (set-pretty-printers!): Export.
4738 * guile/lib/gdb/printing.scm (gdb module): Update.
4739 (prepend-pretty-printer!, append-pretty-printer!): Update.
4740 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4741 (pretty_printer_list_var): Delete.
4742 (pretty_printer_list): New static global.
4743 (gdbscm_pretty_printers): New function.
4744 (gdbscm_set_pretty_printers_x): New function.
4745 (ppscm_find_pretty_printer_from_gdb): Update.
4746 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4747 (gdbscm_initialize_pretty_printers): Update.
4748
74edf516
DE
47492014-07-26 Doug Evans <xdje42@gmail.com>
4750
4751 PR 17185
4752 * configure.ac: Add check for header gc/gc.h.
4753 Add check for function setenv.
4754 * configure: Regenerate.
4755 * config.in: Regenerate.
4756 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4757
d54398a7
MR
47582014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4759
4760 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4761 variation in gdbarch matching.
4762
ab16fce8
TT
47632014-07-25 Tom Tromey <tromey@redhat.com>
4764
4765 * exec.c (using_exec_ops): Remove.
4766 (exec_close_1): Update. Remove extraneous block, reindent.
4767 (add_target_sections): Use target_is_pushed.
4768
88056fbb
PA
47692014-07-25 Pedro Alves <palves@redhat.com>
4770
4771 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4772 * monitor.c (monitor_create_inferior): Likewise.
4773 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4774 * remote-sim.c (gdbsim_create_inferior): Likewise.
4775 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4776 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4777 * windows-nat.c (do_initial_windows_stuff): Likewise.
4778
70509625
PA
47792014-07-25 Pedro Alves <palves@redhat.com>
4780
4781 * NEWS: Mention signal passing and "signal" command changes.
4782 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4783 comment.
4784 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4785 call.
4786 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4787 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4788 (jump_command): Adjust clear_proceed_status call.
4789 (signal_command): Warn if other thread that are resumed have
4790 signals that will be delivered. Adjust clear_proceed_status call.
4791 (until_next_command, finish_command)
4792 (proceed_after_attach_callback, attach_command_post_wait)
4793 (attach_command): Adjust clear_proceed_status call.
4794 * infrun.c (proceed_after_vfork_done): Likewise.
4795 (proceed_after_attach_callback): Adjust comment.
4796 (clear_proceed_status_thread): Clear stop_signal if not in pass
4797 state.
4798 (clear_proceed_status_callback): Delete.
4799 (clear_proceed_status): New 'step' parameter. Only clear the
4800 proceed status of threads the command being prepared is about to
4801 resume.
4802 (proceed): If passed in an explicit signal, override stop_signal
4803 with it. Don't pass the last stop signal to the thread we're
4804 resuming.
4805 (init_wait_for_inferior): Adjust clear_proceed_status call.
4806 (switch_back_to_stepped_thread): Clear the signal if it should not
4807 be passed.
4808 * infrun.h (clear_proceed_status): New 'step' parameter.
4809 (user_visible_resume_ptid): Add comment.
4810 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4811 signal is in pass state.
4812 * remote.c (append_pending_thread_resumptions): Likewise.
4813 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4814
d8be2939
TT
48152014-07-25 Tom Tromey <tromey@redhat.com>
4816
4817 * target.h (target_stopped_data_address)
4818 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4819 parentheses.
4820
7d0d9d2b
PL
48212014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4822
4823 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4824 comments.
4825 (avr_pointer_to_address): Likewise.
4826
e9e7f724
TT
48272014-07-24 Tom Tromey <tromey@redhat.com>
4828
4829 * monitor.c (compile_pattern): Update.
4830 * target.h (struct target_ops) <to_shortname, to_longname,
4831 to_doc>: Now const.
4832
1947513d
TT
48332014-07-24 Tom Tromey <tromey@redhat.com>
4834
4835 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4836 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4837 (add_info_alias, add_com): Make "doc" const.
4838 (print_doc_line): Make "str" const.
4839 (delete_cmd): Update.
4840 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4841 (print_doc_line): Update.
4842 * cli/cli-script.c (document_command): Update.
4843 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4844 (add_com, add_info, add_info_alias): Update.
4845 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4846 * python/py-cmd.c (cmdpy_destroyer): Update.
4847
64e61d29
TT
48482014-07-24 Tom Tromey <tromey@redhat.com>
4849
4850 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4851 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4852 (help_cmd_list): Constify.
4853 (lookup_cmd): Update.
4854 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4855 const.
4856 (help_cmd_list, apropos_cmd): Update.
4857 * cli/cli-script.c (show_user): Update.
4858 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4859 * cli/cli-setshow.h (cmd_show_list): Update.
4860 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4861 (cmd_show_list): Update.
4862 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4863 * python/py-cmd.c (cmdpy_destroyer): Update.
4864
429e55ea
TT
48652014-07-24 Tom Tromey <tromey@redhat.com>
4866
4867 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4868 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4869 const.
4870 * command.h (deprecate_cmd): Update.
4871 * maint.c (maintenance_do_deprecate): Add casts.
4872
64669f3b
TT
48732014-07-24 Tom Tromey <tromey@redhat.com>
4874
4875 * cli/cli-decode.c (help_cmd): Make parameter "const".
4876 * cli/cli-decode.h (help_cmd): Update.
4877
d3d3328b
TT
48782014-07-24 Tom Tromey <tromey@redhat.com>
4879
4880 * stack.c (up_silently_base, down_silently_base): Make argument
4881 const.
4882
414842dc
TT
48832014-07-24 Tom Tromey <tromey@redhat.com>
4884
4885 * solib.c (solib_add): Make "pattern" const.
4886 * solib.h (solib_add): Update.
4887
baa336ce
TT
48882014-07-24 Tom Tromey <tromey@redhat.com>
4889
4890 * remote.c (remote_serial_open, print_packet, putpkt)
4891 (putpkt_binary): Constify.
4892 * remote.h (putpkt): Update.
4893
5a19e2d0
TT
48942014-07-24 Tom Tromey <tromey@redhat.com>
4895
4896 * monitor.c (monitor_open): Make "args" const.
4897 * monitor.h (monitor_open): Update.
4898
fc4baa5e
TT
48992014-07-24 Tom Tromey <tromey@redhat.com>
4900
4901 * maint.c (match_bfd_flags): Make "string" const.
4902 (print_bfd_section_info): Remove casts.
4903 (print_objfile_section_info): Make "string" const.
4904
0d5f0dbe
TT
49052014-07-24 Tom Tromey <tromey@redhat.com>
4906
4907 * inf-child.c (inf_child_open_target): Make "arg" const.
4908 * inf-child.h (inf_child_open_target): Update.
4909
41c77899
TT
49102014-07-24 Tom Tromey <tromey@redhat.com>
4911
4912 * environ.c (unset_in_environ): Make "var" const.
4913 * environ.h (unset_in_environ): Update.
4914
93db0d79
TT
49152014-07-24 Tom Tromey <tromey@redhat.com>
4916
4917 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4918 Make "cmd" const.
4919 (scan_filename_with_cleanup): Likewise.
4920 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4921 Make arguments const.
4922 (restore_command): Update.
4923
36d6eb95
PA
49242014-07-24 Pedro Alves <palves@redhat.com>
4925
4926 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4927
8009206a
TT
49282014-07-24 Tom Tromey <tromey@redhat.com>
4929 Gary Benson <gbenson@redhat.com>
4930
4931 * nat/linux-ptrace.c (additional_flags): New global.
4932 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4933 additional_flags; don't check GDBSERVER.
4934 (linux_ptrace_set_additional_flags): New function.
4935 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4936 Declare.
4937 * linux-nat.c (_initialize_linux_nat): Call
4938 linux_ptrace_set_additional_flags.
4939
a7068b60
TT
49402014-07-24 Tom Tromey <tromey@redhat.com>
4941
4942 * make-target-delegates (munge_type, write_debugmethod): New
4943 functions.
4944 (debug_names): New global.
4945 ($TARGET_DEBUG_PRINTER): New global.
4946 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4947 name.
4948 Write debug methods. Generate init_debug_target.
4949 * target-debug.h: New file.
4950 * target-delegates.c: Rebuild.
4951 * target.c: Include target-debug.h.
4952 (debug_target): Hoist definition.
4953 (target_kill, target_get_section_table, target_memory_map)
4954 (target_flash_erase, target_flash_done, target_detach)
4955 (target_disconnect, target_wait, target_resume)
4956 (target_pass_signals, target_program_signals, target_follow_fork)
4957 (target_mourn_inferior, target_search_memory)
4958 (target_thread_address_space, target_close)
4959 (target_find_new_threads, target_core_of_thread)
4960 (target_verify_memory, target_insert_mask_watchpoint)
4961 (target_remove_mask_watchpoint): Remove targetdebug code.
4962 (debug_to_post_attach, debug_to_prepare_to_store)
4963 (debug_to_files_info, debug_to_insert_breakpoint)
4964 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4965 (debug_to_region_ok_for_hw_watchpoint)
4966 (debug_to_can_accel_watchpoint_condition)
4967 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4968 (debug_to_watchpoint_addr_within_range)
4969 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4970 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4971 (debug_to_terminal_init, debug_to_terminal_inferior)
4972 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4973 (debug_to_terminal_save_ours, debug_to_terminal_info)
4974 (debug_to_load, debug_to_post_startup_inferior)
4975 (debug_to_insert_fork_catchpoint)
4976 (debug_to_remove_fork_catchpoint)
4977 (debug_to_insert_vfork_catchpoint)
4978 (debug_to_remove_vfork_catchpoint)
4979 (debug_to_insert_exec_catchpoint)
4980 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4981 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4982 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4983 (setup_target_debug): Call init_debug_target.
4984 * target.h (TARGET_DEBUG_PRINTER): New macro.
4985 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4986 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4987
2c51604d
GB
49882014-07-24 Gary Benson <gbenson@redhat.com>
4989
4990 * exceptions.h (throw_vfatal): Renamed to...
4991 (throw_vquit): New declaration.
4992 (throw_quit): Likewise.
4993 * exceptions.c (throw_vfatal): Renamed to...
4994 (throw_vquit): New function.
4995 (throw_quit): Likewise.
4996 (throw_error): Call throw_verror rather than throw_it.
4997 * utils.h (vfatal): Removed.
4998 (fatal): Likewise.
4999 * utils.c (vfatal): Removed.
5000 (fatal): Likewise.
5001 (internal_verror): Replaced call to fatal with call to throw_quit.
5002 (quit): Replaced calls to fatal with calls to throw_quit.
5003
34211963
ME
50042014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5005
5006 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5007 target_read_code.
5008
a52b4d3e
ME
50092014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5010
5011 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5012 less than zero in conditional expression.
5013
a8bdc56b
TT
50142014-07-23 Tom Tromey <tromey@redhat.com>
5015
5016 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5017 ($INTRO_PART): Don't match whitespace.
5018 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5019 argument matching.
5020 ($METHOD): Add $METHOD_TRAILER.
5021 (trim): Rewrite.
5022 (scan_target_h): New sub.
5023 Change main loop not to collect state.
5024 * target-delegates.c: Rebuild.
5025
91b52240
GB
50262014-07-23 Gary Benson <gbenson@redhat.com>
5027
5028 * cp-support.c (gdb_demangle): Fix build on systems without
5029 sigaltstack.
5030
45326f6f
JK
50312014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5032
5033 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5034 for reference entry value target data value.
5035
e214cf6c
JK
50362014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5037
5038 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5039 value_available_contents_eq.
5040
bddbbedd
PA
50412014-07-22 Pedro Alves <palves@redhat.com>
5042
5043 * value.c (allocate_optimized_out_value): Don't mark value as
5044 non-lazy.
5045
45c71484
JW
50462014-07-22 Jiong Wang <jiong.wang@arm.com>
5047
5048 * MAINTAINERS (Write After Approval): Update my email address.
5049
9597b22a
DE
50502014-07-20 Doug Evans <dje@google.com>
5051
5052 PR server/17147
5053 * remote.c (putpkt_binary): Add text to error message.
5054
91101fe5
YQ
50552014-07-20 Yao Qi <yao@codesourcery.com>
5056
5057 * eval.c: Remove "Chill" from comments.
5058 * gdbtypes.h: Likewise.
5059 * symtab.h: Likewise.
5060
c9402c95
YQ
50612014-07-20 Yao Qi <yao@codesourcery.com>
5062
5063 * std-operator.def: Update comments to TERNOP_SLICE.
5064
ae8fddda
YQ
50652014-07-20 Yao Qi <yao@codesourcery.com>
5066
5067 * std-operator.def: Remove BINOP_RANGE.
5068 * breakpoint.c (watchpoint_exp_is_const): Update.
5069 * expprint.c (dump_subexp_body_standard): Likewise.
5070 * eval.c (init_array_element): Remove dead code.
5071 (evaluate_subexp_standard): Likewise.
5072
9c816640
YQ
50732014-07-20 Yao Qi <yao@codesourcery.com>
5074
5075 * std-operator.def: Remove BINOP_IN.
5076 * breakpoint.c (watchpoint_exp_is_const): Update.
5077 * eval.c (evaluate_subexp_standard): Likewise.
5078 * expprint.c (dump_subexp_body_standard): Likewise.
5079
164224e9
ME
50802014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5081
5082 * microblaze-tdep.c (microblaze_register_names): Add
5083 the rshr and rslr register names.
5084 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5085 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5086 Use of tdesc_numbered_register. Use of
5087 microblaze_register_g_packet_guesses. Use of
5088 tdesc_use_registers. Use of set_gdbarch_register_type.
5089 (microblaze_register_g_packet_guesses): New.
5090 * microblaze-tdep.h (microblaze_reg_num): Add
5091 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5092 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5093 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5094 * features/microblaze-core.xml: New file.
5095 * features/microblaze-stack-protect.xml: New file.
5096 * features/microblaze-with-stack-protect.c: New file.
5097 * features/microblaze-with-stack-protect.xml: New file.
5098 * features/microblaze.xml: New file.
5099 * features/microblaze.c: New file.
5100 * features/Makefile (microblaze-with-stack-protect): Add
5101 microblaze-with-stack-protect microblaze and microblaze-expedite.
5102 * regformats/microblaze-with-stack-protect.dat: New file.
5103 * regformats/microblaze.dat: New file.
5104 * doc/gdb.texinfo (MicroBlaze Features): Added.
5105
e8b2341c
TT
51062014-07-18 Tom Tromey <tromey@redhat.com>
5107
5108 * exec.c (exec_ops): Now static.
5109 * exec.h (exec_ops): Don't declare.
5110
44e89118
TT
51112014-07-18 Tom Tromey <tromey@redhat.com>
5112
5113 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5114 to find_target_beneath.
5115 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5116 find_target_beneath.
5117 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5118
b0ed115f
TT
51192014-07-18 Tom Tromey <tromey@redhat.com>
5120
5121 PR gdb/17130:
5122 * utils.c (quit): Use target_supports_terminal_ours.
5123 * target.h (target_supports_terminal_ours): Declare.
5124 * target.c (target_supports_delete_record): Don't check
5125 to_delete_record against NULL.
5126 (target_supports_terminal_ours): New function.
5127
e75fdfca
TT
51282014-07-18 Tom Tromey <tromey@redhat.com>
5129
5130 PR gdb/17130:
5131 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5132 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5133 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5134 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5135 * windows-nat.c (windows_xfer_partial): Always delegate.
5136 * record-btrace.c (record_btrace_xfer_partial): Simplify
5137 delegation.
5138 (record_btrace_fetch_registers, record_btrace_store_registers)
5139 (record_btrace_prepare_to_store, record_btrace_resume)
5140 (record_btrace_wait, record_btrace_find_new_threads)
5141 (record_btrace_thread_alive): Likewise.
5142 * procfs.c (procfs_xfer_partial): Always delegate.
5143 * corelow.c (core_xfer_partial): Always delegate.
5144 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5145
83814951
TT
51462014-07-18 Tom Tromey <tromey@redhat.com>
5147
5148 * exec.c (exec_make_note_section): Move earlier.
5149
b8b8facf
DE
51502014-07-17 Doug Evans <dje@google.com>
5151
74b49205 5152 PR gdb/17170
b8b8facf
DE
5153 * maint.c (count_symtabs_and_blocks): Handle NULL
5154 current_program_space.
5155 (report_command_stats): Check global enabled flag in addition to
5156 recorded enabled flag.
5157 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5158
69ff6be5
PA
51592014-07-16 Pedro Alves <palves@redhat.com>
5160
5161 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5162
252db1b5
TT
51632014-07-16 Tom Tromey <tromey@redhat.com>
5164
5165 * target.h (struct target_ops) <to_delete_record>: Reformat
5166 comment.
5167
a432721e
TT
51682014-07-16 Tom Tromey <tromey@redhat.com>
5169
5170 * target-delegates.c: Rebuild.
5171
487d9753
PL
51722014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5173
5174 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5175 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5176 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5177 (avr_pointer_to_address): Likewise.
5178 (avr_address_class_type_flags): New function.
5179 (avr_address_class_type_flags_to_name): Likewise.
5180 (avr_address_class_name_to_type_flags): Likewise.
5181 (avr_gdbarch_init): Set address_class_type_flags,
5182 address_class_type_flags_to_name and
5183 address_class_name_to_type_flags.
5184
57745c90
PA
51852014-07-15 Pedro Alves <palves@redhat.com>
5186
5187 * linux-nat.c (kill_callback): Save errno and work with saved
5188 copy.
5189
2d40be18
SM
51902014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5191
5192 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5193
572f6555
EBM
51942014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5195
5196 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5197 breakpoint support correctly.
5198
cc1c52ad
PA
51992014-07-14 Pedro Alves <palves@redhat.com>
5200
5201 * utils.c (prompt_for_continue): Call target_terminal_ours.
5202
1e973570
PA
52032014-07-14 Pedro Alves <palves@redhat.com>
5204
5205 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5206 catch_errors. Don't re-enable stdin or notify observers where,
5207 and rethrow error.
5208 (fetch_inferior_event_wrapper): Delete.
5209
93d6eb10
PA
52102014-07-14 Pedro Alves <palves@redhat.com>
5211
5212 PR gdb/17072
5213 * top.c: Include "inf-loop.h".
5214 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5215 field.
5216 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5217 was async before.
5218 (gdb_readline_wrapper): Store whether the target is async, and
5219 make it sync.
5220
0017922d
PA
52212014-07-14 Pedro Alves <palves@redhat.com>
5222
5223 PR gdb/17072
5224 * top.c (gdb_readline_wrapper_line): Tweak comment.
5225 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5226 the input handler callback.
5227
94696ad3
PA
52282014-07-14 Pedro Alves <palves@redhat.com>
5229
5230 PR gdb/17072
5231 * main.c: Include event-top.h.
5232 (handle_command_errors): New function.
5233 (catch_command_errors, catch_command_errors_const): Use it.
5234
9d1e69a2
PA
52352014-07-14 Pedro Alves <palves@redhat.com>
5236
5237 * exceptions.c (catch_command_errors, catch_command_errors_const):
5238 Moved to main.c.
5239 * exceptions.h (catch_command_errors_ftype)
5240 (catch_command_errors_const_ftype): Moved to main.c.
5241 (catch_command_errors, catch_command_errors_const): Delete
5242 declarations.
5243 * main.c (catch_command_errors_ftype)
5244 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5245 (catch_command_errors, catch_command_errors_const)): Moved here
5246 from exceptions.c and make static.
5247
feefc97b
PA
52482014-07-14 Pedro Alves <palves@redhat.com>
5249
5250 * exceptions.c (print_any_exception): Delete.
5251 (catch_exceptions_with_msg): Use exception_print instead of
5252 print_any_exception.
5253 (catch_errors): Use exception_fprintf instead of
5254 print_any_exception.
5255 (catch_command_errors, catch_command_errors_const): Use
5256 exception_print instead of print_any_exception.
5257
c933f875
PA
52582014-07-14 Pedro Alves <palves@redhat.com>
5259
5260 * infcall.c (run_inferior_call): Set 'sync_execution' while
5261 running the inferior call.
5262
feb6f816
PA
52632014-07-14 Pedro Alves <palves@redhat.com>
5264
5265 * value.c (value_contents_equal): Delete function.
5266 * value.h (value_contents_equal): Delete declaration.
5267
d98b7a16
TT
52682014-07-14 Tom Tromey <tromey@redhat.com>
5269
5270 PR exp/17106:
5271 * gdbtypes.c (is_dynamic_type_internal): New function, from
5272 is_dynamic_type.
5273 (is_dynamic_type): Rewrite.
5274 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5275 (resolve_dynamic_struct): Likewise.
5276 (resolve_dynamic_type_internal): New function, from
5277 resolve_dynamic_type.
5278 (resolve_dynamic_type): Rewrite.
5279
548740d6
TT
52802014-07-14 Tom Tromey <tromey@redhat.com>
5281
5282 * target.c (target_require_runnable): Also check record_stratum.
5283 Update comment.
5284
808f7ab1
YQ
52852014-07-11 Yao Qi <yao@codesourcery.com>
5286
5287 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5288 thumb_instruction_restores_sp return true.
5289
540314bd
YQ
52902014-07-11 Yao Qi <yao@codesourcery.com>
5291
5292 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5293 (thumb_in_function_epilogue_p): Call
5294 thumb_instruction_restores_sp.
5295
1db01f22
YQ
52962014-07-11 Yao Qi <yao@codesourcery.com>
5297
5298 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5299 'add sp, #imm'.
5300 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5301
3116063b
GB
53022014-07-11 Gary Benson <gbenson@redhat.com>
5303
5304 * amd64-linux-nat.c (gdbcore.h): Remove include.
5305 (regset.h): Likewise.
5306 (nat/linux-btrace.h): Likewise.
5307 (btrace.h): Likewise.
5308 (gdb_assert.h): Likewise.
5309 (string.h): Likewise.
5310 (sys/uio.h): Likewise.
5311 (sys/debugreg.h): Likewise.
5312 (sys/syscall.h): Likewise.
5313 (sys/procfs.h): Likewise.
5314 (sys/user.h): Likewise.
5315 (asm/ptrace.h): Likewise.
5316 (i386-nat.h): Likewise.
5317 * i386-linux-nat.c (i386-nat.h): Likewise.
5318 (regset.h): Likewise.
5319 (target.h): Likewise.
5320 (linux-nat.h): Likewise.
5321 (nat/linux-btrace.h): Likewise.
5322 (btrace.h): Likewise.
5323 (gdb_assert.h): Likewise.
5324 (string.h): Likewise.
5325 (sys/uio.h): Likewise.
5326 (sys/user.h): Likewise.
5327 (sys/procfs.h): Likewise.
5328 (sys/reg.h): Likewise.
5329 (sys/debugreg.h): Likewise.
5330 (ORIG_EAX): Remove definition.
5331
040baaf6
GB
53322014-07-11 Gary Benson <gbenson@redhat.com>
5333
5334 * i386-linux-nat.h: New file.
5335 * x86-linux-nat.h: Likewise.
5336 * x86-linux-nat.c: Likewise.
5337 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5338 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5339 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5340 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5341 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5342 (PTRACE_SETREGSET): Likewise.
5343 (arch_lwp_info): Now in x86-linux-nat.c.
5344 (have_ptrace_getregset): Now in x86-linux-nat.h.
5345 (x86_linux_dr_get): Now in x86-linux-nat.c.
5346 (x86_linux_dr_set): Likewise.
5347 (x86_linux_dr_get_addr): Likewise.
5348 (x86_linux_dr_get_control): Likewise.
5349 (x86_linux_dr_get_status): Likewise.
5350 (update_debug_registers_callback): Likewise.
5351 (x86_linux_dr_set_control): Likewise.
5352 (x86_linux_dr_set_addr): Likewise.
5353 (x86_linux_prepare_to_resume): Likewise.
5354 (x86_linux_new_thread): Likewise.
5355 (x86_linux_new_fork): Likewise.
5356 (x86_linux_get_thread_area): Likewise.
5357 (super_post_startup_inferior): Likewise.
5358 (x86_linux_child_post_startup_inferior): Likewise.
5359 (AMD64_LINUX_USER64_CS): Likewise.
5360 (AMD64_LINUX_X32_DS): Likewise.
5361 (x86_linux_read_description): Likewise.
5362 (x86_linux_enable_btrace): Likewise.
5363 (x86_linux_disable_btrace): Likewise.
5364 (x86_linux_teardown_btrace): Likewise.
5365 (x86_linux_read_btrace): Likewise.
5366 (x86_linux_create_target): Likewise.
5367 (x86_linux_add_target): Likewise.
5368 * i386-linux-nat.c (x86-linux-nat.h): New include.
5369 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5370 (PTRACE_SETREGSET): Likewise.
5371 (arch_lwp_info): Now in x86-linux-nat.c.
5372 (have_ptrace_getregset): Now in x86-linux-nat.h.
5373 (x86_linux_dr_get): Now in x86-linux-nat.c.
5374 (x86_linux_dr_set): Likewise.
5375 (x86_linux_dr_get_addr): Likewise.
5376 (x86_linux_dr_get_control): Likewise.
5377 (x86_linux_dr_get_status): Likewise.
5378 (update_debug_registers_callback): Likewise.
5379 (x86_linux_dr_set_control): Likewise.
5380 (x86_linux_dr_set_addr): Likewise.
5381 (x86_linux_prepare_to_resume): Likewise.
5382 (x86_linux_new_thread): Likewise.
5383 (x86_linux_new_fork): Likewise.
5384 (x86_linux_get_thread_area): Likewise.
5385 (super_post_startup_inferior): Likewise.
5386 (x86_linux_child_post_startup_inferior): Likewise.
5387 (AMD64_LINUX_USER64_CS): Likewise.
5388 (AMD64_LINUX_X32_DS): Likewise.
5389 (x86_linux_read_description): Likewise.
5390 (x86_linux_enable_btrace): Likewise.
5391 (x86_linux_disable_btrace): Likewise.
5392 (x86_linux_teardown_btrace): Likewise.
5393 (x86_linux_read_btrace): Likewise.
5394 (x86_linux_create_target): Likewise.
5395 (x86_linux_add_target): Likewise.
5396
1aa7e42c
GB
53972014-07-11 Gary Benson <gbenson@redhat.com>
5398
5399 * amd64-linux-nat.c: Comment and whitespace changes.
5400 * i386-linux-nat.c: Comment and whitespace changes.
5401
c1e246a0
GB
54022014-07-11 Gary Benson <gbenson@redhat.com>
5403
5404 * amd64-linux-nat.c (x86_linux_create_target): New function.
5405 (x86_linux_add_target): Likewise.
5406 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5407 * i386-linux-nat.c (x86_linux_create_target): New function.
5408 (x86_linux_add_target): Likewise.
5409 (_initialize_i386_linux_nat): Delegate to the above new functions.
5410
8c420b8d
GB
54112014-07-11 Gary Benson <gbenson@redhat.com>
5412
5413 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5414 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5415 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5416 (ps_get_thread_area): Delegate to the above.
5417
cb1da100
GB
54182014-07-11 Gary Benson <gbenson@redhat.com>
5419
5420 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5421 x86_linux_read_description. All uses updated. amd64-specific
5422 code conditionalized. Conditionalized i386-specific code added.
5423 Redundant cast removed.
5424 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5425 x86_linux_read_description. All uses updated. i386-specific
5426 code conditionalized. Conditionalized amd64-specific code added.
5427 One sizeof replaced with the actual type it is describing.
5428
2acf3cd0
GB
54292014-07-11 Gary Benson <gbenson@redhat.com>
5430
5431 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5432 x86_linux_dr_get. All uses updated.
5433 (amd64_linux_dr_set): Renamed to
5434 x86_linux_dr_set. All uses updated.
5435 (amd64_linux_dr_get_addr): Renamed to
5436 x86_linux_dr_get_addr. All uses updated.
5437 (amd64_linux_dr_get_control): Renamed to
5438 x86_linux_dr_get_control. All uses updated.
5439 (amd64_linux_dr_get_status): Renamed to
5440 x86_linux_dr_get_status. All uses updated.
5441 (amd64_linux_dr_set_control): Renamed to
5442 x86_linux_dr_set_control. All uses updated.
5443 (amd64_linux_dr_set_addr): Renamed to
5444 x86_linux_dr_set_addr. All uses updated.
5445 (amd64_linux_prepare_to_resume): Renamed to
5446 x86_linux_prepare_to_resume. All uses updated.
5447 (amd64_linux_new_thread): Renamed to
5448 x86_linux_new_thread. All uses updated.
5449 (amd64_linux_new_fork): Renamed to
5450 x86_linux_new_fork. All uses updated.
5451 (amd64_linux_child_post_startup_inferior): Renamed to
5452 x86_linux_child_post_startup_inferior. All uses updated.
5453 (amd64_linux_enable_btrace): Renamed to
5454 x86_linux_enable_btrace. All uses updated.
5455 (amd64_linux_disable_btrace): Renamed to
5456 x86_linux_disable_btrace. All uses updated.
5457 (amd64_linux_teardown_btrace): Renamed to
5458 x86_linux_teardown_btrace. All uses updated.
5459 (amd64_linux_read_btrace): Renamed to
5460 x86_linux_read_btrace. All uses updated.
5461 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5462 x86_linux_dr_get. All uses updated.
5463 (i386_linux_dr_set): Renamed to
5464 x86_linux_dr_set. All uses updated.
5465 (i386_linux_dr_get_addr): Renamed to
5466 x86_linux_dr_get_addr. All uses updated.
5467 (i386_linux_dr_get_control): Renamed to
5468 x86_linux_dr_get_control. All uses updated.
5469 (i386_linux_dr_get_status): Renamed to
5470 x86_linux_dr_get_status. All uses updated.
5471 (i386_linux_dr_set_control): Renamed to
5472 x86_linux_dr_set_control. All uses updated.
5473 (i386_linux_dr_set_addr): Renamed to
5474 x86_linux_dr_set_addr. All uses updated.
5475 (i386_linux_prepare_to_resume): Renamed to
5476 x86_linux_prepare_to_resume. All uses updated.
5477 (i386_linux_new_thread): Renamed to
5478 x86_linux_new_thread. All uses updated.
5479 (i386_linux_new_fork): Renamed to
5480 x86_linux_new_fork. All uses updated.
5481 (i386_linux_child_post_startup_inferior): Renamed to
5482 x86_linux_child_post_startup_inferior. All uses updated.
5483 (i386_linux_enable_btrace): Renamed to
5484 x86_linux_enable_btrace. All uses updated.
5485 (i386_linux_disable_btrace): Renamed to
5486 x86_linux_disable_btrace. All uses updated.
5487 (i386_linux_teardown_btrace): Renamed to
5488 x86_linux_teardown_btrace. All uses updated.
5489 (i386_linux_read_btrace): Renamed to
5490 x86_linux_read_btrace. All uses updated.
5491
b9c1d481
AS
54922014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5493
5494 * remote.c (extended_remote_post_attach): New function.
5495 (init_extended_remote_ops): Install it as to_post_attach method.
5496
7180e04a
PA
54972014-07-09 Pedro Alves <palves@redhat.com>
5498
5499 * infcmd.c (attach_command_post_wait): Don't call
5500 target_terminal_inferior here.
5501 (attach_command): Call it here instead.
5502
9a9a7608
AB
55032014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5504
5505 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5506 field.
5507 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5508 from varobj.c, with additional checks.
5509 (c_varobj_ops): Fill in is_path_expr_parent field.
5510 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5511 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5512 field.
5513 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5514 ops method.
5515 (varobj_default_is_path_expr_parent): New function.
5516 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5517 (varobj_default_is_path_expr_parent): Declare new function.
5518
1f267ae3
MM
55192014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5520
5521 * infcmd.c (finish_backward): Turn internal error into normal error.
5522
b2ee242b
PA
55232014-07-07 Pedro Alves <palves@redhat.com>
5524
8a869bca 5525 PR gdb/17096
b2ee242b
PA
5526 * remote.c (async_handle_remote_sigint)
5527 (async_handle_remote_sigint_twice): Call
5528 gdb_call_async_signal_handler instead of
5529 mark_async_signal_handler.
5530
38e229b2
TT
55312014-07-07 Tom Tromey <tromey@redhat.com>
5532
5533 * target-delegates.c: Rebuild.
5534 * target.c (target_info_record): Remove.
5535 * record.c (info_record_command): Unconditionally call
5536 to_info_record.
5537 * target.h (struct target_ops) <to_info_record>: Use
5538 TARGET_DEFAULT_IGNORE.
5539 (target_info_record): Remove.
5540
f0f9ff95
TT
55412014-07-07 Tom Tromey <tromey@redhat.com>
5542
5543 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5544 TARGET_DEFAULT_NORETURN.
5545 * target.c (generic_tls_error): New function.
5546 (target_translate_tls_address): Don't search target stack.
5547 * target-delegates.c: Rebuild.
5548 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5549 stack.
5550 * linux-thread-db.c (thread_db_get_thread_local_address):
5551 Unconditionally call beneath target.
5552
4a5be5ee
MK
55532014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5554
5555 * cli/cli-logging.c (pop_output_files): Assign targerr to
5556 gdb_stdtargerr.
5557
92c3b204
AB
55582014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5559
5560 * MAINTAINERS (Write After Approval): Update my email address.
5561
9b11e3a7
GB
55622014-07-02 Gary Benson <gbenson@redhat.com>
5563
5564 * proc-service.c (ps_xfer_memory): Update comment.
5565 (ps_pstop): Remove unused function.
5566 (ps_pcontinue): Likewise.
5567 (ps_lstop): Likewise.
5568 (ps_lcontinue): Likewise.
5569 (ps_lgetxregsize): Likewise.
5570 (ps_lgetxregs): Likewise.
5571 (ps_lsetxregs): Likewise.
5572 (ps_plog): Likewise.
5573 (ps_ptread): Likewise.
5574 (ps_ptwrite): Likewise.
5575
cf363f18
MW
55762014-07-01 Mark Wielaard <mjw@redhat.com>
5577
5578 * dwarf2read.c (add_array_cv_type): New function.
5579 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5580 (read_tag_volatile_type): Likewise.
5581
82ae6c8d
TT
55822014-07-01 Tom Tromey <tromey@redhat.com>
5583
5584 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5585 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5586 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5587 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5588 * command.h (cmd_cfunc_ftype): Move earlier.
5589 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5590 (add_com, add_info): Use cmd_cfunc_ftype.
5591
96142726
TT
55922014-06-30 Tom Tromey <tromey@redhat.com>
5593
5594 * symtab.c (operator_chars): Make parameters and return type
5595 const.
5596 (file_matches): Make "files" const.
5597 (struct search_symbols_data) <files>: Now const.
5598 (search_symbols): Make "regexp" and "files" parameters const.
5599 Update.
5600 (symtab_symbol_info): Remove cast.
5601 (rbreak_command): Update.
5602 * symtab.h (search_symbols): Update.
5603
b67a2c6f
YQ
56042014-06-27 Yao Qi <yao@codesourcery.com>
5605
5606 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5607 Change parameter type to 'struct thread_info *'. Caller
5608 updated.
5609 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5610 Update declaration.
5611 * dummy-frame.c (struct dummy_frame_id): New.
5612 (dummy_frame_id_eq): New function.
5613 (struct dummy_frame) <id>: Change its type to 'struct
5614 dummy_frame_id'.
5615 (dummy_frame_push): Add parameter ptid and save it in
5616 dummy_frame_id.
5617 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5618 inferior_ptid.
5619 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5620 to inferior_ptid.
5621 (lookup_dummy_frame): Change parameter type to 'struct
5622 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5623 instead of frame_id_eq.
5624 (dummy_frame_pop): Add parameter ptid. Callers updated.
5625 Update comments. Compose dummy_frame_id and pass it to
5626 lookup_dummy_frame.
5627 (dummy_frame_discard): Add parameter ptid.
5628 (dummy_frame_sniffer): Compose dummy_frame_id and call
5629 dummy_frame_id_eq instead of frame_id_eq.
5630 (fprint_dummy_frames): Print ptid.
5631 * dummy-frame.h: Remove comments.
5632 (dummy_frame_push): Add ptid in declaration.
5633 (dummy_frame_pop, dummy_frame_discard): Likewise.
5634
5b10184c
TT
56352014-06-26 Tom Tromey <tromey@redhat.com>
5636
5637 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5638 * command.h (error_no_arg): Update.
5639
06900326
TT
56402014-06-26 Tom Tromey <tromey@redhat.com>
5641
5642 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5643 (do_show_command): Make "arg" const.
5644 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5645
c2bcbb1d
TT
56462014-06-26 Tom Tromey <tromey@redhat.com>
5647
5648 * record-full.c (record_full_get_bookmark): Make "args" const.
5649 (record_full_goto_bookmark): Make "raw_bookmark" const.
5650 * record.c (record_goto): New function.
5651 (cmd_record_goto): Use it. Now static.
5652 * record.h (record_goto): Declare.
5653 (cmd_record_goto): Remove declaration.
5654 * target-delegates.c: Rebuild.
5655 * target.h (struct target_ops) <to_get_bookmark,
5656 to_goto_bookmark>: Make parameter const.
5657
9cbe5fff
TT
56582014-06-26 Tom Tromey <tromey@redhat.com>
5659
5660 * defs.h (generic_load): Update.
5661 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5662 * monitor.c (monitor_load): Make "args" const.
5663 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5664 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5665 const.
5666 (mips_load): Make "file" const.
5667 * remote-sim.c (gdbsim_load): Make "args" const.
5668 * remote.c (remote_load): Make "name" const.
5669 * symfile.c (generic_load): Make "args" const.
5670 * target-delegates.c: Rebuild.
5671 * target.c (target_load): Make "arg" const.
5672 (debug_to_load): Make "args" const.
5673 * target.h (struct target_ops) <to_load>: Make parameter const.
5674 (target_load): Update.
5675
34a68019
TT
56762014-06-26 Tom Tromey <tromey@redhat.com>
5677
5678 PR symtab/16902:
5679 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5680 (dwarf2_physname, read_partial_die)
5681 (guess_partial_die_structure_name, fixup_partial_die)
5682 (guess_full_die_structure_name, anonymous_struct_prefix)
5683 (dwarf2_name): Use per-BFD obstack.
5684
efc889c1
YQ
56852014-06-26 Yao Qi <yao@codesourcery.com>
5686
5687 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5688 dummyframe and this_id into inner block below.
5689
4395285e
YQ
56902014-06-26 Yao Qi <yao@codesourcery.com>
5691
5692 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5693 with "signal_pass[0]" in the initialization of signal_pass.
5694
aef92902
MM
56952014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5696
5697 * record-btrace.c (record_btrace_generating_corefile)
5698 (record_btrace_prepare_to_generate_core)
5699 (record_btrace_done_generating_core): New.
5700 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5701 (record_btrace_store_registers, record_btrace_prepare_to_store):
5702 Forward request when generating a core file.
5703 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5704 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5705 to_done_generating_core.
5706
5fff78c4
MM
57072014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5708
5709 * target.h (target_ops) <to_prepare_to_generate_core>
5710 <to_done_generating_core>: New.
5711 (target_prepare_to_generate_core, target_done_generating_core): New.
5712 * target.c (target_prepare_to_generate_core)
5713 (target_done_generating_core): New.
5714 * target-delegates.c: Regenerate.
5715 * gcore.c: (write_gcore_file): Rename to ...
5716 (write_gcore_file_1): ...this.
5717 (write_gcore_file): Call target_prepare_to_generate_core
5718 and target_done_generating_core.
5719
1d1f1ccb
MM
57202014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5721
5722 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5723 * gcore.c (write_gcore_file): Free memory returned from
5724 make_corefile_notes.
5725 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5726 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5727
3343ef86
YQ
57282014-06-24 Yao Qi <yao@codesourcery.com>
5729
5730 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5731 (arm_linux_init_abi): Set skip_trampoline_code with
5732 gdbarch_skip_trampoline_code instead of
5733 find_solib_trampoline_target.
5734
18d18ac8
YQ
57352014-06-24 Yao Qi <yao@codesourcery.com>
5736
5737 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5738 arm_skip_bx_reg returns non-zero.
5739
80d8d390
YQ
57402014-06-24 Yao Qi <yao@codesourcery.com>
5741
5742 * arm-tdep.c (arm_skip_bx_reg): New function.
5743 (arm_skip_stub): Call arm_skip_bx_reg.
5744
6a18a01c
DB
57452014-06-23 Don Breazeal <donb@codesourcery.com>
5746
5747 * MAINTAINERS: Add myself as write-after-approval maintainer.
5748
8e9db26e
PA
57492014-06-23 Pedro Alves <palves@redhat.com>
5750
5751 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5752 DR_CONTROL before setting DR0..DR3.
5753 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5754 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5755 bits of DR_CONTROL related to the debug register slot being
5756 disabled. If all slots are vacant, clear local slowdown as well,
5757 and assert DR_CONTROL is 0.
5758
70afc5b7
SC
57592014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5760
5761 * python/lib/gdb/command/xmethods.py
5762 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5763 current progspace only if the string "progspace" matches LOCUS_RE.
5764
840ed64d
JK
57652014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5766
5767 Fix --with-system-readline with readline-6.3 patch 5.
5768 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5769 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5770 types.
5771
26f2dc30
TT
57722014-06-20 Tom Tromey <tromey@redhat.com>
5773
5774 * dwarf2read.c (dw2_get_real_path): Use correct type in
5775 OBSTACK_CALLOC.
5776 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5777
125f8a3d
GB
57782014-06-20 Gary Benson <gbenson@redhat.com>
5779
5780 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5781 * common/glibc_thread_db.h: Likewise.
5782 * common/i386-cpuid.h: Likewise.
5783 * common/i386-gcc-cpuid.h: Likewise.
5784 * common/linux-btrace.h: Likewise.
5785 * common/linux-osdata.h: Likewise.
5786 * common/linux-procfs.h: Likewise.
5787 * common/linux-ptrace.h: Likewise.
5788 * common/mips-linux-watch.h: Likewise.
5789 * common/linux-btrace.c: Moved to nat.
5790 * common/linux-osdata.c: Likewise.
5791 * common/linux-procfs.c: Likewise.
5792 * common/linux-ptrace.c: Likewise.
5793 * common/mips-linux-watch.c: Likewise.
5794 * nat/gdb_thread_db.h: Moved from common.
5795 * nat/glibc_thread_db.h: Likewise.
5796 * nat/i386-cpuid.h: Likewise.
5797 * nat/i386-gcc-cpuid.h: Likewise.
5798 * nat/linux-btrace.c: Likewise.
5799 * nat/linux-btrace.h: Likewise.
5800 * nat/linux-osdata.c: Likewise.
5801 * nat/linux-osdata.h: Likewise.
5802 * nat/linux-procfs.c: Likewise.
5803 * nat/linux-procfs.h: Likewise.
5804 * nat/linux-ptrace.c: Likewise.
5805 * nat/linux-ptrace.h: Likewise.
5806 * nat/mips-linux-watch.c: Likewise.
5807 * nat/mips-linux-watch.h: Likewise.
5808 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5809 (object file files): Reordered.
5810 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5811 of glibc_thread_db.h.
5812
42995dbd
GB
58132014-06-20 Gary Benson <gbenson@redhat.com>
5814
5815 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5816 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5817 (i386_dr_low): Likewise.
5818 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5819 (i386_dr_low_set_addr): Likewise.
5820 (i386_dr_low_get_addr): Likewise.
5821 (i386_dr_low_can_set_control): Likewise.
5822 (i386_dr_low_set_control): Likewise.
5823 (i386_dr_low_get_control): Likewise.
5824 (i386_dr_low_get_status): Likewise.
5825 (i386_get_debug_register_length): Likewise.
5826 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5827 (i386_dr_low): Likewise.
5828 * nat/i386-dregs.c (i386-low.h): Remove include.
5829 (i386-nat.h): Likewise.
5830 (nat/i386-dregs.h): New include.
5831 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5832 (i386_dr_low_set_addr): Likewise.
5833 (i386_dr_low_get_addr): Likewise.
5834 (i386_dr_low_can_set_control): Likewise.
5835 (i386_dr_low_set_control): Likewise.
5836 (i386_dr_low_get_control): Likewise.
5837 (i386_dr_low_get_status): Likewise.
5838 (i386_get_debug_register_length): Likewise.
5839 (debug_hw_points): Likewise.
5840
3ed9baed
IB
58412014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5842
5843 * Makefile.in (SFILES): Add d-exp.y.
5844 (YYFILES): Add d-exp.c.
5845 (YYOBJ): Add d-exp.o.
5846 (local-maintainer-clean): Delete d-exp.c.
5847 * d-exp.y: New file.
5848 * d-lang.h (d_parse): New declaration.
5849 (d_error): New declaration.
5850 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5851 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5852 PREC_ORDER operators.
5853 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5854
78c164b0
YQ
58552014-06-19 Yao Qi <yao@codesourcery.com>
5856
5857 * gdbthread.h (any_running): Remove the declaration.
5858 * thread.c (any_running): Remove.
5859
f6e29b6e
YQ
58602014-06-19 Yao Qi <yao@codesourcery.com>
5861
5862 * gdbthread.h (struct thread_info) <state>: Change its type to
5863 'enum thread_state'. Update comments.
5864
034f788c
PA
58652014-06-19 Pedro Alves <palves@redhat.com>
5866
5867 * gdbthread.h (ALL_THREADS): Delete.
5868 (ALL_NON_EXITED_THREADS): New macro.
5869 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5870 instead of ALL_THREADS.
5871 * infrun.c (find_thread_needs_step_over)
5872 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5873 instead of ALL_THREADS.
5874 * record-btrace.c (record_btrace_open)
5875 (record_btrace_stop_recording, record_btrace_close)
5876 (record_btrace_is_replaying, record_btrace_resume)
5877 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5878 * remote.c (append_pending_thread_resumptions): Likewise.
5879 * thread.c (thread_apply_all_command): Likewise.
5880
46e33252
GB
58812014-06-19 Gary Benson <gbenson@redhat.com>
5882
5883 * i386-nat.c (i386_stopped_by_watchpoint):
5884 Use i386_dr_stopped_by_watchpoint.
5885 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5886 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5887
3a8ee006
GB
58882014-06-19 Gary Benson <gbenson@redhat.com>
5889
5890 * nat/i386-dregs.c: New file.
5891 * Makefile.in (i386-dregs.o): New rule.
5892 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5893 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5894 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5895 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5896 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5897 * config/i386/go32.mh (NATDEPFILES): Likewise.
5898 * config/i386/linux.mh (NATDEPFILES): Likewise.
5899 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5900 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5901 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5902 * i386-nat.h (debug_hw_points): New declaration.
5903 * i386-nat.c (breakpoint.h): Remove include.
5904 (command.h): Likewise.
5905 (target.h): Likewise.
5906 (gdb_assert.h): Likewise.
5907 (debug_hw_points): Made nonstatic.
5908 (debug_printf): Now in i386-dregs.c.
5909 (TARGET_HAS_DR_LEN_8): Likewise.
5910 (DR_CONTROL_SHIFT): Likewise.
5911 (DR_CONTROL_SIZE): Likewise.
5912 (DR_RW_EXECUTE): Likewise.
5913 (DR_RW_WRITE): Likewise.
5914 (DR_RW_READ): Likewise.
5915 (DR_RW_IORW): Likewise.
5916 (DR_LEN_1): Likewise.
5917 (DR_LEN_2): Likewise.
5918 (DR_LEN_4): Likewise.
5919 (DR_LEN_8): Likewise.
5920 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5921 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5922 (DR_ENABLE_SIZE): Likewise.
5923 (DR_LOCAL_SLOWDOWN): Likewise.
5924 (DR_GLOBAL_SLOWDOWN): Likewise.
5925 (DR_CONTROL_RESERVED): Likewise.
5926 (I386_DR_CONTROL_MASK): Likewise.
5927 (I386_DR_VACANT): Likewise.
5928 (I386_DR_LOCAL_ENABLE): Likewise.
5929 (I386_DR_GLOBAL_ENABLE): Likewise.
5930 (I386_DR_DISABLE): Likewise.
5931 (I386_DR_SET_RW_LEN): Likewise.
5932 (I386_DR_GET_RW_LEN): Likewise.
5933 (I386_DR_WATCH_HIT): Likewise.
5934 (i386_wp_op_t): Likewise.
5935 (i386_show_dr): Likewise.
5936 (i386_length_and_rw_bits): Likewise.
5937 (i386_insert_aligned_watchpoint): Likewise.
5938 (i386_remove_aligned_watchpoint): Likewise.
5939 (i386_handle_nonaligned_watchpoint): Likewise.
5940 (i386_update_inferior_debug_regs): Likewise.
5941 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5942 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5943 (i386_region_ok_for_watchpoint):
5944 Use i386_dr_region_ok_for_watchpoint.
5945 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5946
322a8e06
GB
59472014-06-19 Gary Benson <gbenson@redhat.com>
5948
5949 * i386-nat.c (i386_insert_hw_breakpoint): Use
5950 i386_insert_watchpoint.
5951 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5952
8f26655c
GB
59532014-06-19 Gary Benson <gbenson@redhat.com>
5954
5955 * i386-nat.c (i386_dr_show): Renamed to
5956 i386_show_dr and made static. All uses updated.
5957 (i386_dr_length_and_rw_bits): Renamed to
5958 i386_length_and_rw_bits and made static.
5959 All uses updated.
5960 (i386_dr_insert_aligned_watchpoint): Renamed to
5961 i386_insert_aligned_watchpoint and made static.
5962 All uses updated.
5963 (i386_dr_remove_aligned_watchpoint): Renamed to
5964 i386_remove_aligned_watchpoint and made static.
5965 All uses updated.
5966 (i386_dr_update_inferior_debug_regs): Renamed to
5967 i386_update_inferior_debug_regs and made static.
5968 All uses updated.
5969 * nat/i386-dregs.h (i386_dr_show): Removed.
5970 (i386_dr_length_and_rw_bits): Likewise.
5971 (i386_dr_insert_aligned_watchpoint): Likewise.
5972 (i386_dr_remove_aligned_watchpoint): Likewise.
5973 (i386_dr_update_inferior_debug_regs): Likewise.
5974
992c7d70
GB
59752014-06-19 Gary Benson <gbenson@redhat.com>
5976
5977 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5978 * configure: Regenerate.
5979 * config.in: Likewise.
5980 * main.c (signal.h): New include.
5981 (setup_alternate_signal_stack): New function.
5982 (captured_main): Call the above.
5983 * cp-support.c (signal.h): New include.
5984 (catch_demangler_crashes): New flag.
5985 (SIGJMP_BUF): New define.
5986 (SIGSETJMP): Likewise.
5987 (SIGLONGJMP): Likewise.
5988 (gdb_demangle_jmp_buf): New static global.
5989 (gdb_demangle_attempt_core_dump): Likewise.
5990 (gdb_demangle_signal_handler): New function.
5991 (gdb_demangle): If catch_demangler_crashes is set, install the
5992 above signal handler before calling bfd_demangle, and restore
5993 the original signal handler afterwards. Display the offending
5994 symbol and call demangler_warning the first time a segmentation
5995 fault is caught.
5996 (_initialize_cp_support): New maint set/show command.
5997
eae7090b
GB
59982014-06-19 Gary Benson <gbenson@redhat.com>
5999
6000 * utils.h (resource_limit_kind): New enum.
6001 (can_dump_core): New declaration.
6002 (warn_cant_dump_core): Likewise.
6003 (dump_core): Likewise.
6004 * utils.c (dump_core): Made nonstatic. Added new
6005 parameter "limit_kind".
6006 (can_dump_core): Made nonstatic. Moved printing code to...
6007 (warn_cant_dump_core): New function.
6008 (can_dump_core_warn): Likewise.
6009 (internal_vproblem): Replace calls to can_dump_core with
6010 calls to can_dump_core_warn. Supply new argument to each.
6011
57fcfb1b
GB
60122014-06-19 Gary Benson <gbenson@redhat.com>
6013
6014 * utils.h (demangler_vwarning): New declaration.
6015 (demangler_warning): Likewise.
6016 * utils.c (struct internal_problem)
6017 <user_settable_should_quit>: New field.
6018 <user_settable_should_dump_core>: Likewise
6019 (internal_error_problem): Add values for above new fields.
6020 (internal_warning_problem): Likewise.
6021 (demangler_warning_problem): New static global.
6022 (demangler_vwarning): New function.
6023 (demangler_warning): Likewise.
6024 (add_internal_problem_command): Selectively add commands.
6025 (_initialize_utils): New internal problem command.
6026 * maint.c (maintenance_demangler_warning): New function.
6027 (_initialize_maint_cmds): New command.
6028
17a40b44
TT
60292014-06-18 Tom Tromey <tromey@redhat.com>
6030
6031 * f-valprint.c (info_common_command_for_block): Update.
6032 * symtab.h (struct general_symbol_info) <common_block>: Now
6033 const.
6034
346d1dfe
TT
60352014-06-18 Tom Tromey <tromey@redhat.com>
6036
6037 * symtab.h (struct symtab) <blockvector>: Now const.
6038 * ada-lang.c (ada_add_global_exceptions): Update.
6039 * buildsym.c (augment_type_symtab): Update.
6040 * dwarf2read.c (dw2_lookup_symbol): Update.
6041 * jit.c (finalize_symtab): Update.
6042 * jv-lang.c (add_class_symtab_symbol): Update.
6043 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6044 Update.
6045 * objfiles.c (objfile_relocate1): Update.
6046 * psymtab.c (lookup_symbol_aux_psymtabs)
6047 (maintenance_check_psymtabs): Update.
6048 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6049 Update.
6050 * spu-tdep.c (spu_catch_start): Update.
6051 * symmisc.c (dump_symtab_1): Update.
6052 * symtab.c (lookup_global_symbol_from_objfile)
6053 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6054 (basic_lookup_transparent_type_quick)
6055 (basic_lookup_transparent_type, find_pc_sect_symtab)
6056 (find_pc_sect_line, search_symbols): Update.
6057 * block.c (find_block_in_blockvector): Make "bl" const.
6058 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6059 const.
6060 (blockvector_contains_pc): Make "bv" const.
6061 (block_for_pc_sect): Update.
6062 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6063 (blockvector_contains_pc): Update.
6064 * breakpoint.c (resolve_sal_pc): Update.
6065 * inline-frame.c (block_starting_point_at): Update.
6066
1834676b
TT
60672014-06-18 Tom Tromey <tromey@redhat.com>
6068
6069 * completer.c (complete_line): Make "line_buffer" const.
6070 * completer.h (complete_line): Update.
6071
ac1a991b
TT
60722014-06-18 Tom Tromey <tromey@redhat.com>
6073
6074 * symtab.c (add_macro_name): Remove unneeded cast.
6075
5bc98e52
TT
60762014-06-18 Tom Tromey <tromey@redhat.com>
6077
6078 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6079 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6080
8236def8
TT
60812014-06-18 Tom Tromey <tromey@redhat.com>
6082
6083 * probe.c (info_probes_for_ops): Make "arg" const.
6084 * probe.h (info_probes_for_ops): Update.
6085
3977b71f
TT
60862014-06-18 Tom Tromey <tromey@redhat.com>
6087
6088 * varobj.c (varobj_create): Update.
6089 * valops.c (value_of_this): Update.
6090 * tracepoint.c (add_local_symbols, scope_info): Update.
6091 * symtab.h (struct general_symbol_info) <block>: Now const.
6092 * symtab.c (skip_prologue_sal)
6093 (default_make_symbol_completion_list_break_on)
6094 (skip_prologue_using_sal): Update.
6095 * stack.h (iterate_over_block_locals)
6096 (iterate_over_block_local_vars): Update.
6097 * stack.c (print_frame_args): Update.
6098 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6099 parameter const.
6100 (get_selected_block): Make return type const.
6101 * python/py-frame.c (frapy_block): Update.
6102 * python/py-block.c (gdbpy_block_for_pc): Update.
6103 * p-exp.y (%union) <bval>: Now const.
6104 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6105 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6106 * m2-exp.y (%union) <bval>: Now const.
6107 * linespec.c (get_current_search_block): Make return type const.
6108 (create_sals_line_offset, find_label_symbols): Update.
6109 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6110 Update.
6111 (block_starting_point_at): Make "block" const.
6112 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6113 (check_exception_resume): Update.
6114 * guile/scm-frame.c (gdbscm_frame_block): Update.
6115 * guile/scm-block.c (gdbscm_lookup_block): Update.
6116 * frame.h (get_frame_block): Update.
6117 (get_selected_block): Make return type const.
6118 * frame.c (frame_id_inner): Update.
6119 * f-valprint.c (info_common_command_for_block)
6120 (info_common_command): Update.
6121 * dwarf2loc.c (dwarf2_find_location_expression)
6122 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6123 (locexpr_describe_location_piece): Update.
6124 * c-exp.y (%union) <bval>: Now const.
6125 * breakpoint.c (resolve_sal_pc): Update.
6126 * blockframe.c (get_frame_block):Make return type const.
6127 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6128 (block_innermost_frame): Update.
6129 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6130 (block_for_pc, block_for_pc_sect): Update.
6131 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6132 'pblock' const.
6133 (block_for_pc_sect, block_for_pc): Make return type const.
6134 * ax-gdb.c (gen_expr): Update.
6135 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6136 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6137 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6138 (ada_read_var_value): Update.
6139 * ada-exp.y (struct name_info) <block>: Now const.
6140 (%union): Likewise.
6141 (block_lookup): Constify.
6142
b9228891
GB
61432014-06-18 Gary Benson <gbenson@redhat.com>
6144
6145 * nat/i386-dregs.h: New file.
6146 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6147 * i386-nat.h (i386-dregs.h): New include.
6148 (DR_FIRSTADDR): Now in i386-dregs.h.
6149 (DR_LASTADDR): Likewise.
6150 (DR_NADDR): Likewise.
6151 (DR_STATUS): Likewise.
6152 (DR_CONTROL): Likewise.
6153 (i386_debug_reg_state): Likewise.
6154 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6155
a1aa2221
LM
61562014-06-18 Don Breazeal <donb@codesourcery.com>
6157
6158 * breakpoint.c (set_longjmp_breakpoint): Call
6159 momentary_breakpoint_from_master with additional argument.
6160 (set_longjmp_breakpoint_for_call_dummy): Call
6161 momentary_breakpoint_from_master with additional argument.
6162 (set_std_terminate_breakpoint): Call
6163 momentary_breakpoint_from_master with additional argument.
6164 (momentary_breakpoint_from_master): Add argument to function
6165 definition and use it to initialize structure member flag.
74228e77 6166 (clone_momentary_breakpoint): Call
a1aa2221
LM
6167 momentary_breakpoint_from_master with additional argument.
6168 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6169 member flags set in momentary_breakpoint_from_master.
6170
4be83cc2
GB
61712014-06-18 Gary Benson <gbenson@redhat.com>
6172
6173 * i386-nat.c (i386_show_dr): Renamed to
6174 i386_dr_show and made nonstatic. All uses updated.
6175 (i386_length_and_rw_bits): Renamed to
6176 i386_dr_length_and_rw_bits and made nonstatic.
6177 All uses updated.
6178 (i386_insert_aligned_watchpoint): Renamed to
6179 i386_dr_insert_aligned_watchpoint and made nonstatic.
6180 All uses updated.
6181 (i386_remove_aligned_watchpoint): Renamed to
6182 i386_dr_remove_aligned_watchpoint and made nonstatic.
6183 All uses updated.
6184 (i386_update_inferior_debug_regs): Renamed to
6185 i386_dr_update_inferior_debug_regs and made nonstatic.
6186 All uses updated.
6187
131aa0d4
GB
61882014-06-18 Gary Benson <gbenson@redhat.com>
6189
6190 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6191 (i386_dr_low_can_set_control): Likewise.
6192 (i386_dr_low_set_addr): Likewise.
6193 (i386_dr_low_set_control): Likewise.
6194 (i386_dr_low_get_addr): Likewise.
6195 (i386_dr_low_get_status): Likewise.
6196 (i386_dr_low_get_control): Likewise.
6197 (i386_insert_aligned_watchpoint): Use new macros.
6198 (i386_update_inferior_debug_regs): Likewise.
6199 (i386_stopped_data_address): Likewise.
6200
d9305f7f
GB
62012014-06-18 Gary Benson <gbenson@redhat.com>
6202
6203 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6204 New parameter. All uses updated.
6205
ea008da4
GB
62062014-06-18 Gary Benson <gbenson@redhat.com>
6207
6208 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6209 All uses updated.
6210
1b6d4134
GB
62112014-06-18 Gary Benson <gbenson@redhat.com>
6212
6213 * i386-nat.c (debug_printf): New macro.
6214 (i386_get_debug_register_length): Likewise.
6215 (TARGET_HAS_DR_LEN_8): Use above macro.
6216 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6217 and printf_unfiltered. Use phex to format values.
6218
9b4550ef
GB
62192014-06-18 Gary Benson <gbenson@redhat.com>
6220
6221 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6222 Make const.
6223
6e62758f
GB
62242014-06-18 Gary Benson <gbenson@redhat.com>
6225
6226 * i386-nat.c: Comment changes.
6227
51c79e94
GB
62282014-06-18 Gary Benson <gbenson@redhat.com>
6229
6230 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6231
3e11889a
GB
62322014-06-18 Gary Benson <gbenson@redhat.com>
6233
6234 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6235 (i386_insert_aligned_watchpoint): Likewise.
6236 (i386_remove_aligned_watchpoint): Likewise.
6237 (i386_handle_nonaligned_watchpoint): Likewise.
6238
fc6e2f03
GB
62392014-06-18 Gary Benson <gbenson@redhat.com>
6240
6241 * i386-nat.c: Whitespace changes.
6242
2afe7d50
SB
62432014-06-17 Samuel Bronson <naesten@gmail.com>
6244
6245 * MAINTAINERS: Update Roland McGrath's email address.
6246 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6247 Red Hat a while ago, and giving me a current address.
2afe7d50 6248
3bca49ee
TT
62492014-06-17 Tom Tromey <tromey@redhat.com>
6250
6251 * utils.h (savestring): Remove declaration.
6252
6e366df1
TT
62532014-06-17 Tom Tromey <tromey@redhat.com>
6254
6255 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6256
6be47f0c
KS
62572014-06-16 Keith Seitz <keiths@redhat.com>
6258
6259 PR mi/15863
6260 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6261 to update the varobj if inferior_ptid is null_ptid.
6262
7bc112c1
TT
62632014-06-16 Tom Tromey <tromey@redhat.com>
6264
6265 * target.h (struct target_ops) <to_info_proc>: Make parameter
6266 const.
6267 (target_info_proc): Update.
6268 * target.c (target_info_proc): Make "args" const.
6269 * procfs.c (procfs_info_proc): Update.
6270 * linux-tdep.c (linux_info_proc): Update.
6271 (linux_core_info_proc_mappings): Make "args" const.
6272 (linux_core_info_proc): Update.
6273 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6274 * gdbarch.c: Rebuild.
6275 * gdbarch.h: Rebuild.
6276 * corelow.c (core_info_proc): Update.
6277
fee354ee
TT
62782014-06-16 Tom Tromey <tromey@redhat.com>
6279
6280 * target.h (struct target_ops) <to_disconnect>: Make parameter
6281 const.
6282 (target_disconnect): Update.
6283 * target.c (target_disconnect): Make "args" const.
6284 * target-delegates.c: Rebuild.
6285 * remote.c (remote_disconnect): Update.
6286 * record.h (record_disconnect): Update.
6287 * record.c (record_disconnect): Update.
6288 * inf-child.c (inf_child_disconnect): Update.
6289
a30bf1f1
TT
62902014-06-16 Tom Tromey <tromey@redhat.com>
6291
6292 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6293 * target.c (debug_to_rcmd, default_rcmd): Update.
6294 * target-delegates.c: Rebuild.
6295 * remote.c (remote_rcmd): Update.
6296 * monitor.c (monitor_rcmd): Update.
6297
d03de421
PA
62982014-06-16 Pedro Alves <palves@redhat.com>
6299
6300 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6301 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6302 have OBJF_SHARED set.
6303 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6304 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6305 instead of OBJF_USERLOADED.
6306 * objfiles.h (OBJF_SHARED): Update comment.
6307 (userloaded_objfile_contains_address_p): Rename to ...
6308 (shared_objfile_contains_address_p): ... this, and update
6309 comments.
6310 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6311 new objfile.
6312 (remove_symbol_file_command): Skip objfiles that don't have
6313 OBJF_SHARED set.
6314
99f4262f
TT
63152014-06-16 Tom Tromey <tromey@redhat.com>
6316
6317 * minsyms.h (prim_record_minimal_symbol)
6318 (prim_record_minimal_symbol_and_info): Update comments.
6319
97d66cc6
EZ
63202014-06-14 Eli Zaretskii <eliz@gnu.org>
6321
6322 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6323 or --without-guile, according to how GDB was built.
6324
635c7e8a
TT
63252014-06-13 Tom Tromey <tromey@redhat.com>
6326
6327 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6328 to help_list.
6329 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6330 to help_list.
6331 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6332 help_list.
6333 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6334 help_list.Pass all_commands, not -1, to help_list.
6335 * cli/cli-dump.c (dump_command, append_command)
6336 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6337 (binary_dump_command, binary_append_command): Pass all_commands,
6338 not -1, to help_list.
6339 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6340 -1, to help_list.
6341 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6342 -1, to help_list.
6343 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6344 help_list.
6345 * top.c (set_history): Pass all_commands, not -1, to help_list.
6346 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6347 all_commands, not -1, to help_list.
6348 * symfile.c (overlay_command): Pass all_commands, not -1, to
6349 help_list.
6350 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6351 help_list.
6352 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6353 help_list.
6354 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6355 -1, to help_list.
6356 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6357 not -1, to help_list.
6358 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6359 not -1, to help_list.
6360 * maint.c (maintenance_command, maintenance_info_command)
6361 (maintenance_print_command, maintenance_set_cmd): Pass
6362 all_commands, not -1, to help_list.
6363 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6364 help_list.
6365 * language.c (set_check): Pass all_commands, not -1, to help_list.
6366 * infcmd.c (unset_command): Pass all_commands, not -1, to
6367 help_list.
6368 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6369 help_list.
6370 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6371 help_list.
6372 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6373 help_list.
6374 * breakpoint.c (save_command): Pass all_commands, not -1, to
6375 help_list.
6376 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6377 all_commands, not -1, to help_list.
6378
b94ade42
PL
63792014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6380
6381 * regcache.c (struct register_to_invalidate): New structure.
6382 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6383 functions.
6384 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6385
31f628ae
YQ
63862014-06-12 Yao Qi <yao@codesourcery.com>
6387
6388 * varobj.c (varobj_get_num_children): Call
6389 varobj_is_dynamic_p.
6390 (varobj_list_children): Likewise.
6391 (varobj_update): Likewise. Update comments.
6392
cde5ef40
YQ
63932014-06-12 Yao Qi <yao@codesourcery.com>
6394
6395 * varobj.c (varobj_pretty_printed_p): Rename to ...
6396 (varobj_is_dynamic_p): ... this. New function.
6397 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6398 (varobj_is_dynamic_p): Declare.
6399 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6400 (mi_print_value_p, varobj_update_one): Likewise.
6401
576ea091
YQ
64022014-06-12 Pedro Alves <pedro@codesourcery.com>
6403 Yao Qi <yao@codesourcery.com>
6404
6405 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6406 (varobj_get_iterator): Wrap up code for pretty-printer by
6407 "#if HAVE_PYTHON" and "#endif".
6408 (update_dynamic_varobj_children): Likewise.
6409
827f100c
YQ
64102014-06-12 Pedro Alves <pedro@codesourcery.com>
6411 Yao Qi <yao@codesourcery.com>
6412
6413 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6414 gdb_python_initialized is false. Move some code from varobj.c.
6415 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6416 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6417 (struct varobj_item): Moved to varobj-iter.h".
6418 (varobj_clear_saved_item): New function.
6419 (update_dynamic_varobj_children): Move python-related code to
6420 py-varobj.c.
6421 (free_variable): Call varobj_clear_saved_item and
6422 varobj_iter_delete.
6423
e5250216
YQ
64242014-06-12 Pedro Alves <pedro@codesourcery.com>
6425 Yao Qi <yao@codesourcery.com>
6426
6427 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6428 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6429 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6430 (py-varobj.o): New rule.
6431 * python/py-varobj.c: New file.
6432 * python/python-internal.h (py_varobj_get_iterator): Declare.
6433 * varobj-iter.h: New file.
6434 * varobj.c: Include "varobj-iter.h"
6435 (struct varobj) <child_iter>: Change its type from "PyObject *"
6436 to "struct varobj_iter *".
6437 <saved_item>: Likewise.
6438 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6439 [HAVE_PYTHON] (varobj_get_iterator): New function.
6440 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6441 python-specific code to python/py-varobj.c.
6442 (install_visualizer): Call varobj_iter_delete instead of
6443 Py_XDECREF.
6444 * varobj.h (varobj_ensure_python_env): Declare.
6445
5a2e0d6e
YQ
64462014-06-12 Yao Qi <yao@codesourcery.com>
6447
6448 * varobj.c (struct varobj_item): New structure.
6449 (create_child_with_value): Update declaration.
6450 (varobj_add_child): Replace arguments 'name' and 'value' with
6451 'item'. All callers updated.
6452 (install_dynamic_child): Likewise.
6453 (update_dynamic_varobj_children): Likewise.
6454 (varobj_add_child): Likewise.
6455 (create_child_with_value): Likewise.
6456
919b9a93
JB
64572014-06-11 Joel Brobecker <brobecker@adacore.com>
6458
6459 * NEWS: Create a new section for the next release branch.
6460 Rename the section of the current branch, now that it has
6461 been cut.
6462
71a55bdf
JB
64632014-06-11 Joel Brobecker <brobecker@adacore.com>
6464
6465 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6466 * version.in: Bump version to 7.8.50.DATE-cvs.
6467
364fe1f7
PA
64682014-06-11 Pedro Alves <palves@redhat.com>
6469
6470 PR remote/17028
6471 * ser-mingw.c (net_windows_socket_check_pending): New function.
6472 (net_windows_select_thread): Ignore spurious wakeups. Use
6473 net_windows_socket_check_pending.
6474 (net_windows_wait_handle): Check for pending events with
6475 ioctlsocket, through net_windows_socket_check_pending, instead of
6476 checking the socket's event.
6477
5a6c7709
SC
64782014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6479
6480 * python/python-internal.h (gdb_PyObject_GetAttrString)
6481 (gdb_PyObject_HasAttrString): New inline function definitions.
6482 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6483 char * of the second argument to PyObject_GetAttrString.
74228e77 6484
0e58ee40
JB
64852014-06-10 Joel Brobecker <brobecker@adacore.com>
6486
6487 * serial.c (serial_write): Fix index of character to be printed
6488 in call to serial_logchar when serial debug traces are enabled.
6489
d190df30
JB
64902014-06-10 Joel Brobecker <brobecker@adacore.com>
6491
6492 * gdbtypes (resolve_dynamic_range): Add function description.
6493
b4b01d36
PA
64942014-06-09 Pedro Alves <palves@redhat.com>
6495
6496 * linux-nat.c (linux_child_follow_fork): Initialize status with
6497 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6498 inner block. Only pass the signal to PTRACE_DETACH if in pass
6499 state.
6500
3657956b
GB
65012014-06-09 Gary Benson <gbenson@redhat.com>
6502
6503 * common/signals.c (gdb_signal_from_host): Reorder to separate
6504 the always-available ANSI-standard signals from the signals that
6505 require checking.
6506 (do_gdb_signal_to_host): Likewise.
6507 * proc-events.c (signal_table): Likewise.
6508
c077881a
HZ
65092014-06-08 Hui Zhu <hui@codesourcery.com>
6510
6511 * common/linux-ptrace.c (linux_disable_event_reporting): New
6512 function.
6513 * common/linux-ptrace.h (linux_disable_event_reporting): New
6514 declaration.
6515 * linux-nat.c (linux_child_follow_fork): Do a single step before
6516 detach.
6517
4186eb54
KS
65182014-06-07 Keith Seitz <keiths@redhat.com>
6519
6520 Revert:
6521 PR c++/16253
6522 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6523 from symbol_matches_domain in symtab.c. All local callers
6524 of symbol_matches_domain updated.
6525 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6526 search STRUCT_DOMAIN.
6527 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6528 independently. standard_lookup will do that automatically.
6529 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6530 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6531 (cp_lookup_symbol_in_namespace): Likewise.
6532 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6533 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6534 may return a STRUCT_DOMAIN match.
6535 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6536 * cp-support.c: Include language.h.
6537 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6538 VAR_DOMAIN.
6539 * psymtab.c (match_partial_symbol): Compare the requested
6540 domain with the symbol's domain directly.
6541 (lookup_partial_symbol): Likewise.
6542 * symtab.c (lookup_symbol_in_language): Explain when/why
6543 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6544 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6545 appropriate languages.
6546 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6547 and moved to ada-lang.c
6548 (lookup_block_symbol): Explain that this function only returns
6549 symbol matching the requested DOMAIN.
6550 Compare the requested domain with the symbol's domain directly.
6551 (iterate_over_symbols): Compare the requested domain with the
6552 symbol's domain directly.
6553 * symtab.h (symbol_matches_domain): Remove.
6554
25326a28 65552014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6556
6557 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6558 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6559 (gdbscm_guile_version_is_at_least): Declare.
6560 (gdbscm_scm_string_to_int): Declare.
6561 * guile/guile.c (gdbscm_guile_major_version): New global.
6562 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6563 (guile_datadir): New static global.
6564 (gdbscm_guile_data_directory): New function.
6565 (initialize_scheme_side): Update.
6566 (misc_guile_functions): Add guile-data-directory.
6567 (initialize_gdb_module): Fetch guile version number.
6568 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6569 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6570 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6571 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6572 comments.
6573 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6574 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6575 * guile/scm-value.c (gdbscm_value_to_string): Only call
6576 scm_port_conversion_strategy if Guile version >= 2.0.6.
6577
0a770bb2 65782014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6579
6580 * main.c (print_gdb_help): Add -q and --silent.
6581
73ba372c
GB
65822014-06-06 Gary Benson <gbenson@redhat.com>
6583
6584 * common/signals.c: Remove preprocessor conditionals for
6585 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6586 SIGSEGV and SIGTERM.
6587 * proc-events.c: Likewise.
6588
c33b2f12
MM
65892014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6590
6591 * symfile.c (symfile_free_objfile): Remove restriction to
6592 OBJF_USERLOADED.
6593 * symfile-mem.c (symbol_file_add_from_memory): Call
6594 add_target_sections_of_objfile.
6595
fb934770
LC
65962014-06-05 Ludovic Courtès <ludo@gnu.org>
6597
6598 * guile/scm-value.c (gdbscm_history_append_x): Use
6599 'vlscm_get_value_smob_arg_unsafe' instead of
6600 'vlscm_scm_to_value'.
6601
6ef284bd
SM
66022014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6603
6604 PR mi/15806
6605 * utils.c (printchar): Don't escape at all if quoter is NUL.
6606 Update function documentation to clarify effect of parameter
6607 QUOTER.
6608 * remote.c (escape_buffer): Pass '\\' as the quoter to
6609 fputstrn_unfiltered.
6610 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6611 generate the output.
6612 (mi_solib_unloaded): Same.
6613
270c9937
JB
66142014-06-05 Joel Brobecker <brobecker@adacore.com>
6615
6616 * development.sh: Delete.
6617 * Makefile.in (config.status): Adjust dependency on development.sh.
6618 * configure.ac: Adjust development.sh source call.
6619 * configure: Regenerate.
6620
16f691fb
DE
66212014-06-04 Doug Evans <xdje42@gmail.com>
6622
6623 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6624 is_scheme_bkpt, spec.
6625 (bpscm_make_breakpoint_smob): Initialize new members.
6626 (gdbscm_create_breakpoint_x): Split into two ...
6627 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6628 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6629 (scheme_function breakpoint_functions): Update.
6630 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6631 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6632 register-breakpoint!.
6633
ef7cab6b
JB
66342014-06-04 Joel Brobecker <brobecker@adacorer.com>
6635
6636 PR server/17023
6637 * mem-break.c (z_type_supported): Return zero if
6638 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6639
012370f6
TT
66402014-06-04 Tom Tromey <tromey@redhat.com>
6641
6642 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6643 value_from_contents_and_address_unresolved.
6644 (ada_template_to_fixed_record_type_1): Likewise.
6645 (ada_which_variant_applies): Likewise.
6646 * value.h (value_from_contents_and_address_unresolved): Declare.
6647 * value.c (value_from_contents_and_address_unresolved): New
6648 function.
6649 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6650 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6651 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6652
92e2a17f
TT
66532014-06-04 Tom Tromey <tromey@redhat.com>
6654
6655 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6656
c0939df1
TT
66572014-06-04 Tom Tromey <tromey@redhat.com>
6658
6659 * procfs.c (procfs_attach): Make "args" const.
6660 * windows-nat.c (windows_attach): Make "args" const.
6661 * nto-procfs.c (procfs_attach): Make "args" const.
6662 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6663 * go32-nat.c (go32_attach): Make "args" const.
6664 * gnu-nat.c (gnu_attach): Make "args" const.
6665 * darwin-nat.c (darwin_attach): Make "args" const.
6666 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6667 * linux-nat.c (linux_nat_attach): Make "args" const.
6668 * remote.c (extended_remote_attach_1, extended_remote_attach):
6669 Make "args" const.
6670 * target.h (struct target_ops) <to_attach>: Make "args" const.
6671 (find_default_attach): Likewise.
6672 * utils.c (parse_pid_to_attach): Make "args" const.
6673 * utils.h (parse_pid_to_attach): Update.
6674
8eaff7cd
TT
66752014-06-04 Tom Tromey <tromey@redhat.com>
6676
6677 * target-delegates.c: Rebuild.
6678 * target.c (default_thread_address_space): New function.
6679 (target_thread_address_space): Simplify.
6680 * target.h (struct target_ops) <to_thread_address_space>: Add
6681 TARGET_DEFAULT_FUNC.
6682
1913f160
DE
66832014-06-04 Doug Evans <xdje42@gmail.com>
6684
6685 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6686
70ad5bff
MM
66872014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6688
6689 * record-btrace.c: Include event-loop.h and inf-loop.h.
6690 (record_btrace_resume_exec_dir)
6691 (record_btrace_async_inferior_event_handler)
6692 (record_btrace_handle_async_inferior_event): New.
6693 (record_btrace_open): Create async event handler.
6694 (record_btrace_close): Delete async event handler.
6695 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6696 Mark async event handler.
6697 (record_btrace_execution_direction): New.
6698 (init_record_btrace_ops): Initialize to_execution_direction.
6699
b6210538
DE
67002014-06-03 Doug Evans <xdje42@gmail.com>
6701
6702 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6703 (gdbscm_make_parameter): Ditto.
6704
a5b1fd27
DE
67052014-06-03 Doug Evans <dje@google.com>
6706
6707 * exec.c (exec_close_1): Call clear_section_table instead of
6708 resize_section_table.
6709 (clear_section_table): New function.
6710 (resize_section_table): Make static. Rename arg num_added to
6711 adjustment.
6712 * exec.h (clear_section_table): Declare.
6713 (resize_section_table): Delete.
6714 * progspace.c (release_program_space): Call clear_section_table
6715 instead of resize_section_table.
6716
0c6e92a5
SC
67172014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6718
6719 * NEWS (Python Scripting): Add entry about the new xmethods
6720 feature.
6721
883964a7
SC
67222014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6723
6724 * python/py-xmethods.c: New file.
6725 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6726 (objfpy_dealloc): XDECREF on the new xmethods field.
6727 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6728 field.
6729 (objfpy_get_xmethods): New function.
6730 (objfile_getset): New entry 'xmethods'.
6731 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6732 (pspy_dealloc): XDECREF on the new xmethods field.
6733 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6734 field.
6735 (pspy_get_xmethods): New function.
6736 (pspace_getset): New entry 'xmethods'.
6737 * python/python-internal.h: Add declarations for new functions.
6738 * python/python.c (_initialize_python): Invoke
6739 gdbpy_initialize_xmethods.
6740 * python/lib/gdb/__init__.py (xmethods): New
6741 attribute.
6742 * python/lib/gdb/xmethod.py: New file.
6743 * python/lib/gdb/command/xmethods.py: New file.
6744
58992dc5
SC
67452014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6746
6747 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6748 best match method returned by find_overload_match is an xmethod.
6749 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6750 the best matching operator returned by find_overload_match is an
6751 xmethod.
6752 * valops.c: #include "extension.h".
6753 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6754 Return void. The list of matching source methods is returned in
6755 "fn_list" and a vector of matching debug method workers is
6756 returned in "xm_worker_vec". Update all callers.
6757 (value_find_oload_method_list): Likewise.
6758 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6759 non-NULL, then the index of the best matching method in this
6760 vector is returned. Update all callers.
6761 (find_overload_match): Include xmethods while performing overload
6762 resolution.
6763
e81e7f5e
SC
67642014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6765
6766 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6767 * extension-priv.h (struct extension_language_ops): Add the
6768 xmethod interface.
6769 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6770 get_matching_xmethod_workers, get_xmethod_argtypes,
6771 invoke_xmethod, free_xmethod_worker,
6772 free_xmethod_worker_vec): New functions.
6773 * extension.h: #include "common/vec.h".
6774 New function declarations.
6775 (struct xmethod_worker): New struct.
6776 (VEC (xmethod_worker_ptr)): New vector type.
6777 (xmethod_worker_ptr): New typedef.
6778 (xmethod_worker_vec): Likewise.
6779 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6780 builtin_type.
6781 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6782 (struct builtin_type): New field "xmethod".
6783 * valarith.c (value_ptradd): Assert that the value argument is not
6784 lval_xcallable.
6785 * valops.c (value_must_coerce_to_target): Return 0 for
6786 lval_xcallable values.
6787 * value.c (struct value): New field XM_WORKER in the field
6788 LOCATION.
6789 (value_address, value_raw_address): Return 0 for lval_xcallable
6790 values.
6791 (set_value_address): Assert that the value is not an
6792 lval_xcallable.
6793 (value_free): Free the associated xmethod worker when freeing
6794 lval_xcallable values.
6795 (set_value_component_location): Assert that the WHOLE value is not
6796 lval_xcallable.
6797 (value_of_xmethod, call_xmethod): New functions.
6798 * value.h: Declare "struct xmethod_worker".
6799 Declare new functions value_of_xmethod, call_xmethod.
6800
ef370185
JB
68012014-06-03 Joel Brobecker <brobecker@adacore.com>
6802 Pedro Alves <palves@redhat.com>
6803
6804 PR breakpoints/17000
6805 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6806 New function, extracted from software_breakpoint_inserted_here_p.
6807 (software_breakpoint_inserted_here_p): Replace factored out code
6808 by call to find_non_raw_software_breakpoint_inserted_here.
6809 (bp_target_info_copy_insertion_state): New function.
6810 (bkpt_insert_location): Handle the case of a single-step
6811 breakpoint already inserted at the same address.
6812 (bkpt_remove_location): Handle the case of a single-step
6813 breakpoint still inserted at the same address.
6814 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6815 breakpoint already inserted at the same address.
6816 (deprecated_remove_raw_breakpoint): Handle the case of a
6817 non-raw breakpoint still inserted at the same address.
6818 (find_single_step_breakpoint): New function, extracted from
6819 single_step_breakpoint_inserted_here_p.
6820 (find_single_step_breakpoint): New function,
6821 factored out from single_step_breakpoint_inserted_here_p.
6822 (single_step_breakpoint_inserted_here_p): Reimplement.
6823
1e2ccb61
BM
68242014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6825
6826 Pushed by Joel Brobecker <brobecker@adacore.com>
6827 * source.c (show_substitute_path_command): Fix display of matching
6828 substitution rules.
6829
d3448d85
GB
68302014-06-03 Gary Benson <gbenson@redhat.com>
6831
6832 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6833
06eb1586
DE
68342014-06-02 Doug Evans <xdje42@gmail.com>
6835
6836 Add parameter support for Guile.
6837 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6838 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6839 (scm-param.o): New rule.
6840 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6841 (gdbscm_misc_error): Declare.
6842 (gdbscm_canonicalize_command_name): Declare.
6843 (gdbscm_scm_to_host_string): Declare.
6844 (gdbscm_scm_from_host_string): Declare.
6845 (gdbscm_initialize_parameters): Declare.
6846 * guile/guile.c (initialize_gdb_module): Call
6847 gdbscm_initialize_parameters.
6848 * guile/lib/gdb.scm: Export parameter symbols.
6849 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6850 cmdscm_canonicalize_name and made public. All callers updated.
6851 * guile/scm-exception.c (gdbscm_misc_error): New function.
6852 * guile/scm-param.c: New file.
6853 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6854 (gdbscm_scm_to_host_string): New function.
6855 (gdbscm_scm_from_host_string): New function.
6856 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6857
e698b8c4
DE
68582014-06-02 Doug Evans <xdje42@gmail.com>
6859
6860 Add command support for Guile.
6861 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6862 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6863 (scm-cmd.o): New rule.
6864 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6865 (gdbscm_user_error_p): Declare.
6866 (gdbscm_parse_command_name): Declare.
6867 (gdbscm_valid_command_class_p): Declare.
6868 (gdbscm_initialize_commands): Declare.
6869 * guile/guile.c (initialize_gdb_module): Call
6870 gdbscm_initialize_commands.
6871 * guile/lib/gdb.scm: Export command symbols.
6872 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6873 (throw-user-error): New function.
6874 * guile/scm-cmd.c: New file.
6875 * guile/scm-exception.c (user_error_symbol): New static global.
6876 (gdbscm_user_error_p): New function.
6877 (gdbscm_initialize_exceptions): Set user_error_symbol.
6878 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6879
fb1f94b0
PM
68802014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6881
6882 * top.c (command_loop): Handle comments here...
6883 (command_line_input): ... not here.
6884
ded03782
DE
68852014-06-02 Doug Evans <xdje42@gmail.com>
6886
6887 Add progspace support for Guile.
6888 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6889 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6890 (scm-progspace.o): New rule.
6891 * guile/guile-internal.h (pspace_smob): New typedef.
6892 (psscm_pspace_smob_pretty_printers): Declare.
6893 (psscm_pspace_smob_from_pspace): Declare.
6894 (psscm_scm_from_pspace): Declare.
6895 * guile/guile.c (initialize_gdb_module): Call
6896 gdbscm_initialize_pspaces.
6897 * guile/lib/gdb.scm: Export progspace symbols.
6898 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6899 support.
6900 (append-pretty-printer!): Ditto.
6901 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6902 Implement.
6903 * guile/scm-progspace.c: New file.
6904
397998fc
AM
69052014-06-03 Alan Modra <amodra@gmail.com>
6906
6907 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6908 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6909
6aa5f3a6
DE
69102014-06-02 Doug Evans <dje@google.com>
6911
6912 Add support for skeletonless type units.
6913 * dwarf2read.c (struct dwarf2_per_objfile): New member
6914 n_allocated_type_units.
6915 (struct dwarf2_per_objfile) <tu_stats>: New member
6916 nr_all_type_units_reallocs.
6917 (create_signatured_type_table_from_index): Initialize
6918 n_allocated_type_units
6919 (create_all_type_units): Ditto.
6920 (add_type_unit): Move up in file. New arg slot.
6921 All callers updated. Increase space for all_type_units more
6922 efficiently.
6923 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6924 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6925 (lookup_dwp_signatured_type): Ditto.
6926 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6927 All callers updated.
6928 (build_type_psymtabs_1): Leave type_unit_groups as
6929 NULL if no TUs present.
6930 (print_tu_stats): New function.
6931 (process_skeletonless_type_unit): New function.
6932 (process_dwo_file_for_skeletonless_type_units): New
6933 function.
6934 (process_skeletonless_type_units): New function.
6935 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6936 Call print tu_stats if debugging enabled.
6937
41fac0cf
PA
69382014-06-02 Pedro Alves <palves@redhat.com>
6939
6940 * breakpoint.c (build_target_command_list): Don't build a command
6941 list if we have any duplicate location that isn't a dprintf.
6942
cd1608cc
PA
69432014-06-02 Pedro Alves <palves@redhat.com>
6944
6945 * breakpoint.c (dprintf_breakpoint_hit): New function.
6946 (initialize_breakpoint_ops): Install it as dprintf's
6947 breakpoint_hit method.
6948
486ef3b9
JB
69492014-06-02 Joel Brobecker <brobecker@adacore.com>
6950
6951 * source.c (substitute_path_rule_matches): Simplify using
6952 filename_ncmp instead of FILENAME_CMP.
6953
230cd560
JB
69542014-06-02 Joel Brobecker <brobecker@adacore.com>
6955
6956 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6957
16954d5d
LC
69582014-06-01 Ludovic Courtès <ludo@gnu.org>
6959
6960 * configure.ac: When Guile is available, check for the
6961 availability of 'scm_new_smob'.
6962 * configure, config.h.in: Regenerate.
6963 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6964 function.
6965
53e8a631
AB
69662014-05-30 Andrew Burgess <aburgess@broadcom.com>
6967
6968 * frame.c (struct frame_info): Add stop_string field.
6969 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6970 (get_prev_frame_always): Old content moved into
6971 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6972 TRY_CATCH, handle MEMORY_ERROR exceptions.
6973 (frame_stop_reason_string): New function definition.
6974 * frame.h (unwind_stop_reason_to_string): Extend comment to
6975 mention frame_stop_reason_string.
6976 (frame_stop_reason_string): New function declaration.
6977 * stack.c (frame_info): Switch to frame_stop_reason_string.
6978 (backtrace_command_1): Switch to frame_stop_reason_string.
6979 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6980 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6981 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6982
70e38b8e
AB
69832014-05-30 Andrew Burgess <aburgess@broadcom.com>
6984
6985 * frame.c (frame_stop_reason_string): Rename to ...
6986 (unwind_stop_reason_to_string): this.
6987 * frame.h (frame_stop_reason_string): Rename to ...
6988 (unwind_stop_reason_to_string): this.
6989 * stack.c (frame_info): Update call to frame_stop_reason_string.
6990 (backtrace_command_1): Likewise.
6991 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6992 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6993
938f0e2f
AB
69942014-05-30 Andrew Burgess <aburgess@broadcom.com>
6995
6996 * frame.c (remove_prev_frame): New function.
6997 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6998 remove_prev_frame.
6999
a09dd441
PA
70002014-05-29 Pedro Alves <palves@redhat.com>
7001
7002 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7003 and make it const. When a single-step decays to a continue,
7004 clear 'step', not 'hw_step'. Pass whether the caller wanted
7005 to step to user_visible_resume_ptid, not what we ask the
7006 target to do.
7007
bdc36728
PA
70082014-05-29 Pedro Alves <palves@redhat.com>
7009
7010 * infrun.c (process_event_stop_test, handle_step_into_function)
7011 (handle_step_into_function_backward): Adjust.
7012 Don't set the even thread's stop_step and call stop_waiting before
7013 calling end_stepping_range. Instead do that ...
7014 (end_stepping_range): ... here. Take an ecs pointer parameter.
7015
22bcd14b
PA
70162014-05-29 Pedro Alves <palves@redhat.com>
7017
7018 * infrun.c (stop_stepping): Rename to ...
7019 (stop_waiting): ... this.
7020 (proceed): Update comment.
7021 (process_event_stop_test, handle_inferior_event)
7022 (handle_signal_stop, handle_step_into_function)
7023 (handle_step_into_function_backward): Update.
7024
4ae57c05
PA
70252014-05-29 Pedro Alves <palves@redhat.com>
7026
7027 * infcall.c (run_inferior_call): Don't check whether the current
7028 thread is running after the proceed call.
7029
329ea579
PA
70302014-05-29 Pedro Alves <palves@redhat.com>
7031 Tom Tromey <tromey@redhat.com>
7032
7033 * NEWS: Mention "maint set target-async", "set mi-async", and that
7034 background execution commands are now always available.
7035 * target.h (target_async_permitted): Update comment.
7036 * target.c (target_async_permitted, target_async_permitted_1):
7037 Default to 1.
7038 (set_target_async_command): Rename to ...
7039 (maint_set_target_async_command): ... this.
7040 (show_target_async_command): Rename to ...
7041 (maint_show_target_async_command): ... this.
7042 (_initialize_target): Adjust.
7043 * infcmd.c (prepare_execution_command): Make extern.
7044 * inferior.h (prepare_execution_command): Declare.
7045 * infrun.c (set_observer_mode): Leave target async alone.
7046 * mi/mi-interp.c (mi_interpreter_init): Install
7047 mi_on_sync_execution_done as sync_execution_done observer.
7048 (mi_on_sync_execution_done): New function.
7049 (mi_execute_command_input_handler): Don't print the prompt if we
7050 just started a synchronous command with an async target.
7051 (mi_on_resume): Check sync_execution before printing prompt.
7052 * mi/mi-main.h (mi_async_p): Declare.
7053 * mi/mi-main.c: Include gdbcmd.h.
7054 (mi_async_p): New function.
7055 (mi_async, mi_async_1): New globals.
7056 (set_mi_async_command, show_mi_async_command, mi_async): New
7057 functions.
7058 (exec_continue): Call prepare_execution_command.
7059 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7060 (mi_execute_async_cli_command): Use mi_async_p.
7061 (_initialize_mi_main): Install "set mi-async". Make
7062 "target-async" a deprecated alias.
7063
92bcb5f9
PA
70642014-05-29 Pedro Alves <palves@redhat.com>
7065
7066 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7067 (_initialize_cli_interp): Adjust.
7068 * event-loop.c: Include "observer.h".
7069 (start_event_loop): Notify 'command_error' observers instead of
7070 calling display_gdb_prompt. Remove FIXME comment.
7071 * event-top.c (display_gdb_prompt): Remove call into the
7072 interpreters.
7073 * inf-loop.c: Include "observer.h".
7074 (inferior_event_handler): Notify 'command_error' observers instead
7075 of calling display_gdb_prompt.
7076 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7077 observers instead of calling display_gdb_prompt.
7078 * interps.c (interp_set): Don't call display_gdb_prompt.
7079 (current_interp_display_prompt_p): Delete.
7080 * interps.h (interp_prompt_p): Delete declaration.
7081 (interp_prompt_p_ftype): Delete.
7082 (struct interp_procs) <prompt_proc_p>: Delete field.
7083 (current_interp_display_prompt_p): Delete declaration.
7084 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7085 (_initialize_mi_interp): Adjust.
7086 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7087 'command_error' observers.
7088 (tui_on_sync_execution_done, tui_on_command_error): New
7089 functions.
7090 (tui_display_prompt_p): Delete.
7091 (_initialize_tui_interp): Adjust.
7092
fd664c91
PA
70932014-05-29 Pedro Alves <palves@redhat.com>
7094
7095 PR gdb/13860
7096 * cli/cli-interp.c: Include infrun.h and observer.h.
7097 (cli_uiout, cli_interp): New globals.
7098 (cli_on_signal_received, cli_on_end_stepping_range)
7099 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7100 functions.
7101 (cli_interpreter_init): Install them as 'end_stepping_range',
7102 'signal_received' 'signal_exited', 'exited' and 'no_history'
7103 observers.
7104 (_initialize_cli_interp): Remove cli_interp local.
7105 * infrun.c (handle_inferior_event): Call the several stop reason
7106 observers instead of printing the stop reason directly.
7107 (end_stepping_range): New function.
7108 (print_end_stepping_range_reason, print_signal_exited_reason)
7109 (print_exited_reason, print_signal_received_reason)
7110 (print_no_history_reason): Make static, and add an uiout
7111 parameter. Print to that instead of to CURRENT_UIOUT.
7112 * infrun.h (print_end_stepping_range_reason)
7113 (print_signal_exited_reason, print_exited_reason)
7114 (print_signal_received_reason print_no_history_reason): New
7115 declarations.
7116 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7117 'mi_uiout'.
7118 <cli_uiout>: New field.
7119 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7120 uiout for CLI output. Install 'signal_received',
7121 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7122 observers.
7123 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7124 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7125 (mi_on_no_history): New functions.
7126 (ui_out_free_cleanup): Delete function.
7127 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7128 instead use the one already stored in the MI interpreter data.
7129 (mi_ui_out): Adjust.
7130 * tui/tui-interp.c: Include infrun.h and observer.h.
7131 (tui_interp): New global.
7132 (tui_on_signal_received, tui_on_end_stepping_range)
7133 (tui_on_signal_exited, tui_on_exited)
7134 (tui_on_no_history): New functions.
7135 (tui_init): Install them as 'end_stepping_range',
7136 'signal_received' 'signal_exited', 'exited' and 'no_history'
7137 observers.
7138 (_initialize_tui_interp): Delete tui_interp local.
7139
8817a6f2
PA
71402014-05-29 Pedro Alves <palves@redhat.com>
7141
7142 PR gdb/15713
7143 * linux-nat.c (linux_nat_resume_callback): Rename the second
7144 parameter to 'except'. Skip LP if it points to EXCEPT.
7145 (linux_nat_resume): Don't mark the event lwp as not stopped
7146 before resuming sibling lwps. Instead ask
7147 linux_nat_resume_callback to skip the event lwp. Mark it as not
7148 stopped after actually resuming it.
7149 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7150 resuming it.
7151 (wait_lwp): Mark the lwp as stopped here.
7152 (stop_wait_callback): Mark the lwp as not stopped right after
7153 resuming it. Don't mark lwps as stopped here.
7154 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7155 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7156
251bde03
PA
71572014-05-29 Pedro Alves <palves@redhat.com>
7158
7159 PR PR15693
7160 * infrun.c (resume): Determine how much to resume depending on
7161 whether the caller wanted a step, not whether we can hardware step
7162 the target. Mark all threads that we intend to run as running,
7163 unless we're calling an inferior function.
7164 (normal_stop): If the thread is running an infcall, don't finish
7165 thread state.
7166 * target.c (target_resume): Don't mark threads as running here.
7167
7f3c0343
JB
71682014-05-28 Joel Brobecker <brobecker@adacore.com>
7169
7170 * serial.c (_initialize_serial): Remove support for
7171 the "set remotebaud" and "show remotebaud" commands.
7172 * NEWS: Add entry documenting the removal of that command.
7173
ee34b3f9
YQ
71742014-05-28 Yao Qi <yao@codesourcery.com>
7175
7176 * charset.c: Fix typo in comments.
7177
add6c04d
GB
71782014-05-27 Gary Benson <gbenson@redhat.com>
7179
7180 * utils.c (internal_vproblem): Prompt for a bug report.
7181
92c48fc5
AW
71822014-05-26 Andy Wingo <wingo@igalia.com>
7183
7184 * guile/scm-arch.c (arscm_mark_arch_smob):
7185 * guile/scm-block.c (bkscm_mark_block_smob)
7186 (bkscm_mark_block_syms_progress_smob):
7187 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7188 * guile/scm-exception.c (exscm_mark_exception_smob):
7189 * guile/scm-frame.c (frscm_mark_frame_smob):
7190 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7191 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7192 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7193 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7194 (ppscm_mark_pretty_printer_worker_smob):
7195 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7196 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7197 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7198 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7199 mark functions.
7200 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7201 function.
7202
b2715b27
AW
72032014-05-26 Andy Wingo <wingo@igalia.com>
7204 Doug Evans <xdje42@gmail.com>
7205
7206 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7207 empty_base_class. All uses updated.
7208 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7209 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7210 Adapt all callers.
7211 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7212 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7213 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7214 (gdbscm_gsmob_has_property_p, add_property_name)
7215 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7216 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7217 (gdb-object-has-property?, gdb-object-properties): Remove.
7218 (gdb-object-kind): Renamed from gsmob-kind.
7219
214ab2da
AW
72202014-05-26 Andy Wingo <wingo@igalia.com>
7221
7222 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7223 * configure: Regenerate.
7224
589fdceb
MM
72252014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7226
7227 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7228
67b5c0c1
MM
72292014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7230
7231 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7232 (replay_memory_access_read_only, replay_memory_access_read_write)
7233 (replay_memory_access_types, replay_memory_access)
7234 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7235 (cmd_set_record_btrace, cmd_show_record_btrace)
7236 (cmd_show_replay_memory_access): New.
7237 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7238 (record_btrace_remove_breakpoint): Replace
7239 record_btrace_allow_memory_access with replay_memory_access.
7240 (_initialize_record_btrace): Add commands.
7241 * NEWS: Announce it.
7242
036cd381
RR
72432014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7244
7245 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7246
c77c1e42
RR
72472014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7248
7249 * MAINTAINERS (Write After Approval): Move self back from
7250 paper trail.
7251
45741a9c
PA
72522014-05-22 Pedro Alves <palves@redhat.com>
7253
7254 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7255 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7256 (disable_randomization, enum exec_direction_kind)
7257 (execution_direction, stop_registers, start_remote)
7258 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7259 (wait_for_inferior, normal_stop, get_last_target_status)
7260 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7261 (insert_step_resume_breakpoint_at_sal)
7262 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7263 (set_step_info, print_stop_event, signal_stop_state)
7264 (signal_print_state, signal_pass_state, signal_stop_update)
7265 (signal_print_update, signal_pass_update)
7266 (update_signals_program_target, clear_exit_convenience_vars)
7267 (displaced_step_dump_bytes, update_observer_mode)
7268 (signal_catch_update, gdb_signal_from_command): Move
7269 declarations ...
7270 * infrun.h: ... to this new file.
7271 * amd64-tdep.c: Include infrun.h.
7272 * annotate.c: Include infrun.h.
7273 * arch-utils.c: Include infrun.h.
7274 * arm-linux-tdep.c: Include infrun.h.
7275 * arm-tdep.c: Include infrun.h.
7276 * break-catch-sig.c: Include infrun.h.
7277 * breakpoint.c: Include infrun.h.
7278 * common/agent.c: Include infrun.h instead of inferior.h.
7279 * corelow.c: Include infrun.h.
7280 * event-top.c: Include infrun.h.
7281 * go32-nat.c: Include infrun.h.
7282 * i386-tdep.c: Include infrun.h.
7283 * inf-loop.c: Include infrun.h.
7284 * infcall.c: Include infrun.h.
7285 * infcmd.c: Include infrun.h.
7286 * infrun.c: Include infrun.h.
7287 * linux-fork.c: Include infrun.h.
7288 * linux-nat.c: Include infrun.h.
7289 * linux-thread-db.c: Include infrun.h.
7290 * monitor.c: Include infrun.h.
7291 * nto-tdep.c: Include infrun.h.
7292 * procfs.c: Include infrun.h.
7293 * record-btrace.c: Include infrun.h.
7294 * record-full.c: Include infrun.h.
7295 * remote-m32r-sdi.c: Include infrun.h.
7296 * remote-mips.c: Include infrun.h.
7297 * remote-notif.c: Include infrun.h.
7298 * remote-sim.c: Include infrun.h.
7299 * remote.c: Include infrun.h.
7300 * reverse.c: Include infrun.h.
7301 * rs6000-tdep.c: Include infrun.h.
7302 * s390-linux-tdep.c: Include infrun.h.
7303 * solib-irix.c: Include infrun.h.
7304 * solib-osf.c: Include infrun.h.
7305 * solib-svr4.c: Include infrun.h.
7306 * target.c: Include infrun.h.
7307 * top.c: Include infrun.h.
7308 * windows-nat.c: Include infrun.h.
7309 * mi/mi-interp.c: Include infrun.h.
7310 * mi/mi-main.c: Include infrun.h.
7311 * python/py-threadevent.c: Include infrun.h.
7312
98eb56a4
PA
73132014-05-22 Pedro Alves <palves@redhat.com>
7314
7315 * infrun.c (handle_inferior_event): Store the exit code for
7316 --return-child-result here, instead of ...
7317 (print_exited_reason): ... here.
7318
17b2616c
PA
73192014-05-21 Pedro Alves <palves@redhat.com>
7320
7321 PR gdb/13860
7322 * gdbthread.h (struct thread_control_state): New field
7323 `command_interp'.
7324 * infrun.c (follow_fork): Copy the new thread control field to the
7325 child fork thread.
7326 (clear_proceed_status_thread): Clear the new thread control field.
7327 (proceed): Set the new thread control field.
7328 * interps.h (command_interp): Declare.
7329 * interps.c (command_interpreter): New global.
7330 (command_interp): New function.
7331 (interp_exec): Set `command_interpreter' while here.
7332 * cli-out.c (cli_uiout_dtor): New function.
7333 (cli_ui_out_impl): Install it.
7334 * mi/mi-interp.c: Include cli-out.h.
7335 (mi_cmd_interpreter_exec): Add comment.
7336 (restore_current_uiout_cleanup): New function.
7337 (ui_out_free_cleanup): New function.
7338 (mi_on_normal_stop): If finishing an execution command started by
7339 a CLI command, or any kind of breakpoint-like event triggered,
7340 print the stop event to the output (CLI) stream.
7341 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7342
5166082f
PA
73432014-05-21 Pedro Alves <palves@redhat.com>
7344
7345 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7346 current source line having changed.
7347 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7348 * infrun.c (normal_stop): Adjust call to
7349 set_current_sal_from_frame.
7350 * source.c (clear_lines_listed_range): New function.
7351 (set_current_source_symtab_and_line, identify_source_line): Clear
7352 the lines listed range.
7353 (line_info): Handle the first "info line" after the current source
7354 line having changed.
7355 * stack.c (print_stack_frame): Remove center handling.
7356 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7357 center sal.line.
7358
c1ee2fb3
PA
73592014-05-21 Pedro Alves <palves@redhat.com>
7360
7361 * inf-child.c (inf_child_mourn_inferior): New function.
7362 * inf-child.h (inf_child_mourn_inferior): New declaration.
7363 * darwin-nat.c (darwin_mourn_inferior): Use
7364 inf_child_mourn_inferior.
7365 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7366 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7367 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7368 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7369 * windows-nat.c (windows_mourn_inferior): Likewise.
7370
5c6d4fb2
DE
73712014-05-21 Doug Evans <xdje42@gmail.com>
7372
250748cb 7373 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7374
4a2722c5
DE
73752014-05-21 Doug Evans <xdje42@gmail.com>
7376
17292b30 7377 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7378 (gdbscm_out_of_range_error): Ditto.
7379 (gdbscm_memory_error): Ditto.
250748cb
DE
7380 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7381 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7382 (gdbscm_out_of_range_error): Update.
7383 (gdbscm_memory_error): Update.
7384 (gdbscm_scm_to_target_string_unsafe): Delete.
7385
6a3cb8e8
PA
73862014-05-21 Pedro Alves <palves@redhat.com>
7387
7388 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7389 globals.
7390 (inf_child_open_target): New function.
7391 (inf_child_open): Use inf_child_open_target to push the target
7392 instead of erroring out.
7393 (inf_child_disconnect, inf_child_close)
7394 (inf_child_maybe_unpush_target): New functions.
7395 (inf_child_target): Install inf_child_disconnect and
7396 inf_child_close. Store a pointer to the returned object.
7397 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7398 declarations.
7399 * target.c (auto_connect_native_target): New global.
7400 (show_default_run_target): New function.
7401 (find_default_run_target): Return NULL if automatically connecting
7402 to the native target is disabled.
7403 (_initialize_target): Install set/show auto-connect-native-target.
7404 * NEWS: Mention "set auto-connect-native-target", and "target
7405 native".
7406 * linux-nat.c (super_close): New global.
7407 (linux_nat_close): Call super_close.
7408 (linux_nat_add_target): Store a pointer to the base class's
7409 to_close method.
7410 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7411 inf_child_maybe_unpush.
7412 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7413 already pushed.
7414 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7415 the inferior. Use inf_child_maybe_unpush_target.
7416 (inf_ttrace_attach): Don't push the target if it is already
7417 pushed.
7418 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7419 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7420 after mourning the inferior. Use inf_child_maybe_unpush_target.
7421 (darwin_attach_pid): Don't push the target if it is already
7422 pushed.
7423 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7424 mourning the inferior. Use inf_child_maybe_unpush_target.
7425 (gnu_detach): Use inf_child_maybe_unpush_target.
7426 * go32-nat.c (go32_create_inferior): Don't push the target if it
7427 is already pushed.
7428 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7429 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7430 (procfs_open): Rename to ...
7431 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7432 comments. Can target_preopen before changing node. Call
7433 inf_child_open_target to push the target explicitly.
7434 (procfs_attach): Don't push the target if it is already pushed.
7435 (procfs_detach): Use inf_child_maybe_unpush_target.
7436 (procfs_create_inferior): Don't push the target if it is already
7437 pushed.
7438 (nto_native_ops): New global.
7439 (procfs_open): Reimplement.
7440 (procfs_native_open): New function.
7441 (init_procfs_targets): Install procfs_native_open as to_open of
7442 "target native". Store a pointer to the "native" target in
7443 nto_native_ops.
7444 * procfs.c (procfs_attach): Don't push the target if it is already
7445 pushed.
7446 (procfs_detach): Use inf_child_maybe_unpush_target.
7447 (procfs_mourn_inferior): Only unpush the target after mourning the
7448 inferior. Use inf_child_maybe_unpush_target.
7449 (procfs_init_inferior): Don't push the target if it is already
7450 pushed.
7451 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7452 if it is already pushed.
7453
930ee1b1
PA
74542014-05-21 Pedro Alves <palves@redhat.com>
7455
7456 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7457 and "procfs" targets are now called "native" instead.
7458
1f5d1b13
PA
74592014-05-21 Pedro Alves <palves@redhat.com>
7460
7461 * go32-nat.c (go32_open): Delete.
7462 (go32_target): Don't override the to_open method.
7463
132f8e03
PA
74642014-05-21 Pedro Alves <palves@redhat.com>
7465
7466 * nto-procfs.c (procfs_can_run): New function.
7467 (nto_procfs_ops): New global.
7468 (init_procfs_targets): New, based on procfs_target. Install
7469 "target native" in addition to "target procfs".
7470 (_initialize_procfs): Call init_procfs_targets instead of adding
7471 the target here.
7472
03c136c3
PA
74732014-05-21 Pedro Alves <palves@redhat.com>
7474
7475 * windows-nat.c (windows_target): Don't override to_shortname,
7476 to_longname or to_doc.
7477
a635d0f3
PA
74782014-05-21 Pedro Alves <palves@redhat.com>
7479
7480 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7481 to_doc.
7482
4f9b5133
PA
74832014-05-21 Pedro Alves <palves@redhat.com>
7484
7485 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7486 to_shortname, to_longname or to_doc.
7487
bc85afde
PA
74882014-05-21 Pedro Alves <palves@redhat.com>
7489
7490 * go32-nat.c (go32_target): Don't override to_shortname,
7491 to_longname or to_doc.
7492
4ebfc96e
PA
74932014-05-21 Pedro Alves <palves@redhat.com>
7494
7495 * inf-child.c (inf_child_open): Remove mention of "child".
7496 (inf_child_target): Rename target to "native" instead of "child".
7497
2648dfed
AA
74982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7499
7500 * Makefile.in (SFILES): Delete "regset.c".
7501 (COMMON_OBS): Delete "regset.o".
7502 * regset.c: Remove.
7503 * regset.h (regset_alloc): Delete prototype.
7504
b13feb94
AA
75052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7506
7507 * sparc-linux-tdep.c (sparc32_linux_gregset)
7508 (sparc32_linux_fpregset): New static regset structures.
7509 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7510 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7511 'fpregset' fields.
7512 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7513 (sparc64_linux_fpregset): New static regset structures.
7514 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7515 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7516 New static regset structures.
7517 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7518 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7519 New static regset structures.
7520 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7521 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7522 New static regset structures.
7523 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7524 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7525 New static regset structures.
7526 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7527
b4fd25c9
AA
75282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7529
7530 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7531 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7532 register maps ("regmaps") from "*regset" to "*regmap". Do this
7533 for all regmap types and variables.
7534 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7535 (sparc32_linux_supply_core_gregset)
7536 (sparc32_linux_collect_core_gregset)
7537 (sparc32_linux_supply_core_fpregset)
7538 (sparc32_linux_collect_core_fpregset): Likewise.
7539 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7540 (sparc_gregmap, sparc_fpregmap): ... these.
7541 (sparc_supply_gregset, sparc_collect_gregset)
7542 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7543 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7544 (_initialize_sparc_nat): Rename regmaps.
7545 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7546 (sparc_gregmap, sparc_fpregmap): ... these.
7547 (sparc_supply_gregset, sparc_collect_gregset)
7548 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7549 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7550 Rename macros to...
7551 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7552 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7553 Likewise.
7554 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7555 Rename to...
7556 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7557 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7558 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7559 regmaps.
7560 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7561 (sparc32_bsd_fpregset): Rename to...
7562 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7563 (sparc32_bsd_fpregmap): ... these.
7564 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7565 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7566 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7567 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7568 (struct sparc_gregmap, struct sparc_fpregmap)
7569 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7570 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7571 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7572 (sparc32_supply_regset, sparc32_collect_gregset)
7573 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7574 prototypes.
7575 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7576 (sparc64_linux_ptrace_gregmap): ... this.
7577 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7578 (_initialize_sparc64_linux_nat): Rename regmaps.
7579 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7580 (sparc64_linux_core_gregmap): ... this.
7581 (sparc64_linux_supply_core_gregset)
7582 (sparc64_linux_collect_core_gregset)
7583 (sparc64_linux_supply_core_fpregset)
7584 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7585 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7586 (sparc64_sol2_fpregset): Rename to...
7587 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7588 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7589 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7590 regmaps.
7591 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7592 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7593 (sparc64_bsd_fpregset): Rename to...
7594 (struct sparc_gregmap, sparc64_sol2_gregmap)
7595 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7596 (sparc64_bsd_fpregmap): ... these.
7597 (sparc64_supply_gregset, sparc64_collect_gregset)
7598 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7599 prototypes.
7600 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7601 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7602 (sparc64fbsd_gregmap): ... this.
7603 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7604 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7605 Rename regmaps.
7606 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7607 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7608 (sparc64nbsd_collect_fpregset): Likewise.
7609 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7610 (sparc64nbsd_gregmap): ... this.
7611 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7612 regmaps.
7613 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7614 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7615 (sparc64obsd_gregmap): ... this.
7616 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7617 regmaps.
7618 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7619 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7620 (sparc32nbsd_gregmap): ... this.
7621 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7622 regmaps.
7623
8fea3224
AA
76242014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7625
7626 * score-tdep.c (score7_linux_gregset): New static regset
7627 structure.
7628 (score7_linux_regset_from_core_section): Remove dynamic regset
7629 allocation.
7630 (score_gdbarch_init): Drop allocation of tdep structure.
7631 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7632
24534243
AA
76332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7634
7635 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7636 regset structures.
7637 (am33_regset_from_core_section): Remove dynamic regset
7638 allocations.
7639
b7195f27
AA
76402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7641
7642 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7643 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7644 structures.
7645 (mips_linux_regset_from_core_section): Remove dynamic regset
7646 allocations.
7647 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7648 'gregset64', 'fpregset', and 'fpregset64'.
7649 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7650 deleted tdep fields.
7651
ecc37a5a
AA
76522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7653
7654 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7655 regset structures.
7656 (amd64_regset_from_core_section): Remove dynamic regset
7657 allocations.
7658 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7659 structure.
7660 (amd64obsd_regset_from_core_section): Remove dynamic regset
7661 allocation.
7662 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7663 Likewise.
7664 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7665 x86-common regset supply function.
7666 * i386-tdep.c (i386_collect_gregset): Make static.
7667 (i386_gregset): New global regset structure.
7668 (i386_fpregset, i386_xstateregset): New static regset structures.
7669 (i386_regset_from_core_section): Remove dynamic regset
7670 allocations.
7671 (i386_gdbarch_init): Remove initialization of tdep fields
7672 'gregset', 'fpregset', and 'xstateregset'.
7673 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7674 'fpregset', and 'xstateregset'.
7675 (i386_collect_gregset): Remove prototype.
7676 (i386_gregset): New declaration.
7677 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7678 structure.
7679 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7680 allocation.
7681
b7611c43
AA
76822014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7683
7684 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7685 (arm_linux_vfpregset): New static regset structures.
7686 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7687 regset structures.
7688 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7689 and 'vfpregset' fields.
7690
a069a2bd
AA
76912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7692
7693 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7694 (aarch64_linux_fpregset): New static regset structures.
7695 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7696 of regset structures.
7697 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7698 'fpregset' fields.
7699
09424cff
AA
77002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7701
7702 * regset.h (struct regset): Remove gdbarch field.
7703 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7704 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7705 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7706 Likewise.
7707 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7708 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7709 (ppc32_linux_vsxregset): Likewise.
7710 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7711 via the regcache instead of the regset.
7712 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7713 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7714 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7715 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7716 Likewise.
7717
3ca7dae4
AA
77182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7719
7720 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7721 Constify structures.
7722 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7723 (alphanbsd_aout_gregset): Likewise.
7724 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7725 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7726 Likewise.
7727 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7728 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7729 Likewise.
7730 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7731 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7732 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7733 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7734 * m88k-tdep.c (m88k_gregset): Likewise.
7735 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7736 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7737 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7738 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7739 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7740 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7741 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7742 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7743 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7744 Likewise.
7745 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7746 * sh-tdep.h (sh_corefile_gregset): Likewise.
7747 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7748 * vax-tdep.c (vax_gregset): Likewise.
7749
5876f503
JK
77502014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7751
7752 Fix TLS access for -static -pthread.
7753 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7754 (try_thread_db_load_1): Initialize it.
7755 (thread_db_get_thread_local_address): Call it if LM is zero.
7756 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7757 * target.h (struct target_ops) (to_get_thread_local_address): Add
7758 load_module_addr comment.
7759
0256a6ac
PA
77602014-05-21 Pedro Alves <palves@redhat.com>
7761
7762 * dcache.c (dcache_read_memory_partial): If reading the cache line
7763 fails, fallback to reading just the memory the caller wanted.
7764
227533ac
DE
77652014-05-20 Doug Evans <dje@google.com>
7766
7767 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7768 instead of get_current_arch.
7769
936d2992
PA
77702014-05-20 Pedro Alves <palves@redhat.com>
7771
7772 * NEWS: Mention that compare-sections now works with all targets.
7773
7774 * remote.c (PACKET_qCRC): New enum value.
7775 (remote_verify_memory): Don't send qCRC if the target has no
7776 execution. Use packet_support/packet_ok. If the target doesn't
7777 support the qCRC packet, fallback to a deep memory copy.
7778 (compare_sections_command): Say "target image" instead of "remote
7779 executable".
7780 (_initialize_remote): Add PACKET_qCRC to the list of config
7781 packets that have no associated command. Extend comment.
7782 * target.c (simple_verify_memory, default_verify_memory): New
7783 function.
7784 * target.h (struct target_ops) <to_verify_memory>: Default to
7785 default_verify_memory.
7786 (simple_verify_memory): New declaration.
7787 * target-delegates.c: Regenerate.
7788
e59fa00f
MM
77892014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7790
7791 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7792
f2205de0
HZ
77932014-05-20 Hui Zhu <hui@codesourcery.com>
7794 Yao Qi <yao@codesourcery.com>
7795
7796 PR backtrace/16558
7797 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7798 and change address of sp and pc.
7799
c4e54771
TT
78002014-05-19 Tom Tromey <tromey@redhat.com>
7801
7802 * gdbtypes.c (rank_function): Use XNEWVEC.
7803 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7804
73051182
DE
78052014-05-19 Doug Evans <dje@google.com>
7806
7807 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7808 build_type_unit_groups and moved closer to only caller. Remove
7809 arguments. All references updated. Remove outdated .gdb_index
7810 comment.
7811 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7812 build_type_psymtabs_1.
7813
8832e7e3
DE
78142014-05-19 Doug Evans <dje@google.com>
7815
7816 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7817 n_type_unit_groups, all_type_unit_groups. All uses removed.
7818 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7819 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7820 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7821 (add_type_unit_group_to_table): Delete.
7822
cd8ae15e
DE
78232014-05-19 Doug Evans <dje@google.com>
7824
7825 * eval.c (evaluate_subexp_standard): Add some comments.
7826
08f4850b
DE
78272014-05-17 Doug Evans <xdje42@gmail.com>
7828
7829 * progspace.c (remove_program_space): Delete, unused.
7830 * progspace.h (remove_program_space): Ditto.
7831
bed8455c
DE
78322014-05-17 Doug Evans <xdje42@gmail.com>
7833
7834 * inferior.c (prune_inferiors): Fix comment.
7835 (remove_inferior_command): Call prune_program_spaces.
7836
8d551b02
DE
78372014-05-16 Doug Evans <dje@google.com>
7838
7839 New command line option -D.
7840 * NEWS: Mention it.
7841 * main.c (set_gdb_data_directory): New function.
7842 (captured_main): Recognize -D. Flag error for --data-directory "".
7843 Call set_gdb_data_directory.
7844 (print_gdb_help): Print --data-directory, -D.
7845 * main.h (set_gdb_data_directory): Declare.
7846 * top.c (staged_gdb_datadir): New static global.
7847 (set_gdb_datadir): Call set_gdb_data_directory
7848 (show_gdb_datadir): New function.
7849 (init_main): Update init of data-directory parameter.
7850
18848e28
GF
78512014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7852
7853 Import the "dirfd" gnulib module.
7854 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7855 * gnulib/aclocal.m4: Update.
7856 * gnulib/config.in: Update.
7857 * gnulib/configure: Update.
7858 * gnulib/import/Makefile.am: Update.
7859 * gnulib/import/Makefile.in: Update.
7860 * gnulib/import/dirfd.c: New.
7861 * gnulib/import/m4/dirfd.m4: New.
7862 * gnulib/import/m4/gnulib-cache.m4: Update.
7863 * gnulib/import/m4/gnulib-comp.m4: Update.
7864
95c64f92
YQ
78652014-05-16 Pierre Muller <muller@sourceware.org>
7866 Yao Qi <yao@codesourcery.com>
7867
7868 * valprint.c (print_wchar): Move the code on checking whether
7869 W is a printable wide char to the default branch of switch
7870 statement below. Call wchar_printable instead of gdb_iswprint.
7871
cac395ea
TM
78722014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7873
19679eca 7874 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7875 ldr.w and ldrd instructions.
7876
83655187
DE
78772014-05-15 Doug Evans <dje@google.com>
7878
7879 * dwarf2read.c (read_structure_type): Delete outdated comments.
7880
dd756689
TT
78812014-05-14 Tom Tromey <tromey@redhat.com>
7882
7883 * macrocmd.c (print_macro_definition): Reindent.
7884
75ddda77
DE
78852014-05-13 Doug Evans <xdje42@gmail.com>
7886
7887 * python/py-cmd.c (cmdpy_completer): Add comment.
7888 (completers): Make const.
7889
b0f16a3e
SM
78902014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7891
7892 * infrun.c (resume): Remove should_resume (unused). Move up
7893 declaration of resume_ptid.
7894
033c3379
TT
78952014-05-13 Tom Tromey <tromey@redhat.com>
7896
7897 * language.h (unop_type_check): Remove.
7898 (binop_type_check): Don't declare.
7899
9b44a3a5
AA
79002014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7901
7902 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7903 call to regcache_raw_collect.
7904
303a33fa
SM
79052014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7906
7907 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7908 mi_console->quote as the quoting character.
7909
196100a0
SM
79102014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7911
7912 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7913
f989a1c8
TT
79142014-04-29 Tom Tromey <tromey@redhat.com>
7915
7916 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7917 "show debug varobj".
7918
9404b58f
KM
79192014-05-07 Kyle McMartin <kyle@redhat.com>
7920
7921 Pushed by Joel Brobecker <brobecker@adacore.com>.
7922 * aarch64-tdep.c (aarch64_software_single_step): New function.
7923 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7924 with aarch64_software_single_step.
7925
5e49ba57
JB
79262014-05-05 Joel Brobecker <brobecker@adacore.com>
7927
7928 GDB 7.7.1 released.
7929
c888a17d
KS
79302014-05-05 Keith Seitz <keiths@redhat.com>
7931
7932 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7933 variable or history value is successfully parsed.
7934
290a839c
YQ
79352014-05-05 Yao Qi <yao@codesourcery.com>
7936 Pedro Alves <palves@redhat.com>
7937
7938 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7939 address of blocks that intersects the requested range. Trim
7940 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7941 sections.
7942 * ctf.c (ctf_xfer_partial): Likewise.
7943
91256dc2
YQ
79442014-05-05 Yao Qi <yao@codesourcery.com>
7945
7946 * printcmd.c (display_command): Remove the check to
7947 target_has_execution.
7948
07284463
MK
79492014-05-03 Mark Kettenis <kettenis@gnu.org>
7950
7951 * ppcobsd-nat.c: Include "obsd-nat.h".
7952 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7953 add_target.
7954 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7955
30a1e6cc
SDJ
79562014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7957
7958 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7959 and 16-bit signed and unsigned arguments. Update comment.
7960 (stap_parse_probe_arguments): Extend code to handle such
7961 arguments. Use warning instead of complaint to notify about
7962 unrecognized bitness.
7963
f33da99a
SDJ
79642014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7965
7966 PR breakpoints/16889
7967 * stap-probe.c (stap_parse_probe_arguments): Simplify
7968 check for non-prefixed probes (i.e., probes whose
7969 arguments do not start with "N@"). Always set the
7970 argument type to a sane value.
7971
95cf3b38
DT
79722014-05-01 David Taylor <dtaylor@emc.com>
7973
7974 * remote.c (compare_sections_command): Add -r option to compare
7975 all loadable read-only sections.
7976
1cfdf534
SC
79772014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7978
7979 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7980 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7981 Update all callers.
7982 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7983 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7984 Remove unused CORE_ADDR argument. Update all callers.
7985
ca4f7f8b
PA
79862014-04-29 Pedro Alves <palves@redhat.com>
7987
7988 * remote.c (struct packet_config) <detect>: Extend comment.
7989 (add_packet_config_cmd): Don't set the config's detect or support
7990 fields here.
7991 (init_all_packet_configs): Also initialize the config's 'detect'
7992 field.
7993 (reset_all_packet_configs_support): New function.
7994 (remote_open_1): Call reset_all_packet_configs_support instead of
7995 init_all_packet_configs.
7996 (_initialize_remote): Initialize all packet configs. Assert that
7997 all packets have an associated command, except a few known
7998 outliers.
7999
11c1ba78
JB
80002014-04-28 Joel Brobecker <brobecker@adacore.com>
8001
8002 * dwarf2read.c (read_subrange_type): Handle dynamic
8003 DW_AT_lower_bound attributes.
8004
8739bc53
JB
80052014-04-28 Joel Brobecker <brobecker@adacore.com>
8006
8007 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8008 dynamic bounds before computing its upper bound.
8009 (ada_discrete_type_low_bound): Same as above with the lower bound.
8010
6f8a3220
JB
80112014-04-28 Joel Brobecker <brobecker@adacore.com>
8012
8013 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8014 range types. Adjust the array handling implementation to
8015 take advantage of this change.
8016 (resolve_dynamic_range): New function, mostly extracted from
8017 resolve_dynamic_bounds.
8018 (resolve_dynamic_array): New function, mostly extracted from
8019 resolve_dynamic_bounds.
8020 (resolve_dynamic_bounds): Delete.
8021 (resolve_dynamic_type): Reimplement. Add handling of
8022 TYPE_CODE_RANGE types.
8023
4d072ce4
JB
80242014-04-28 Joel Brobecker <brobecker@adacore.com>
8025
8026 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8027 handling of parallel ___XA types.
8028
52865325
JB
80292014-04-28 Joel Brobecker <brobecker@adacore.com>
8030
8031 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8032 unnecessary second call to static_unwrap_type.
8033
433e77fa
HZ
80342014-04-27 Hui Zhu <hui@codesourcery.com>
8035
8036 * stack.c (print_frame_info): Call do_gdb_disassembly with
8037 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8038
b51a69ee
DE
80392014-04-26 Doug Evans <xdje42@gmail.com>
8040
8041 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8042
7ae1a6a6
PA
80432014-04-25 Pedro Alves <palves@redhat.com>
8044
8045 PR server/16255
8046 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8047 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8048 and newline from built string.
8049 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8050 (linux_ptrace_attach_fail_reason): ... this.
8051 * linux-nat.c (linux_nat_attach): Adjust to use
8052 linux_ptrace_attach_fail_reason.
8053
4082afcc
PA
80542014-04-25 Pedro Alves <palves@redhat.com>
8055
8056 * remote.c (struct remote_state): Remove multi_process_aware,
8057 non_stop_aware, cond_tracepoints, cond_breakpoints,
8058 breakpoint_commands, fast_tracepoints, static_tracepoints,
8059 install_in_trace, disconnected_tracing,
8060 enable_disable_tracepoints, string_tracing, and
8061 augmented_libraries_svr4_read fields.
8062 (remote_multi_process_p): Move further below in the file.
8063 (struct packet_config): Add comments.
8064 (update_packet_config): Delete function.
8065 (show_packet_config_cmd): Use packet_config_support.
8066 (add_packet_config_cmd): Use NULL as set callback.
8067 (packet_ok): "set remote foo-packet"-style commands no longer
8068 change config->supported -- adjust.
8069 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8070 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8071 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8072 (PACKET_QNonStop, PACKET_multiprocess_feature)
8073 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8074 (PACKET_DisconnectedTracing_feature)
8075 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8076 (set_remote_protocol_packet_cmd): Delete function.
8077 (packet_config_support, packet_support): New functions.
8078 (set_remote_protocol_Z_packet_cmd): Don't call
8079 update_packet_config.
8080 (remote_query_attached, remote_pass_signals)
8081 (remote_program_signals, remote_threads_info)
8082 (remote_threads_extra_info, remote_start_remote): Use
8083 packet_support.
8084 (remote_start_remote): Use packet_config_support and
8085 packet_support.
8086 (init_all_packet_configs): Set all packets to unknown support,
8087 instead of calling update_packet_config.
8088 (remote_check_symbols): Use packet_support.
8089 (remote_supported_packet): Unconditionally set the packet config's
8090 support status.
8091 (remote_multi_process_feature, remote_non_stop_feature)
8092 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8093 (remote_breakpoint_commands_feature)
8094 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8095 (remote_install_in_trace_feature)
8096 (remote_disconnected_tracing_feature)
8097 (remote_enable_disable_tracepoint_feature)
8098 (remote_string_tracing_feature)
8099 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8100 (remote_protocol_features): Adjust to use remote_supported_packet
8101 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8102 "ConditionalTracepoints", "ConditionalBreakpoints",
8103 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8104 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8105 "EnableDisableTracepoints", and "tracenz".
8106 (remote_query_supported): Use packet_support.
8107 (remote_open_1): Adjust.
8108 (extended_remote_attach_1): Use packet_support. Switch on the
8109 result of packet_ok instead of checking whether the packet ended
8110 up disabled.
8111 (remote_vcont_resume): Use packet_support.
8112 (remote_resume, remote_stop_ns, fetch_register_using_p)
8113 (remote_prepare_to_store, store_register_using_P)
8114 (check_binary_download, remote_write_bytes): Use packet_support.
8115 (remote_vkill): Use packet_support. Switch on the result of
8116 packet_ok instead of checking whether the packet ended up
8117 disabled.
8118 (extended_remote_supports_disable_randomization): Use
8119 packet_support.
8120 (extended_remote_run): Switch on the result of packet_ok instead
8121 of checking whether the packet ended up disabled.
8122 (remote_insert_breakpoint, remote_remove_breakpoint)
8123 (remote_insert_watchpoint, remote_remove_watchpoint)
8124 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8125 packet_support.
8126 (remote_search_memory): Use packet_config_support.
8127 (remote_get_thread_local_address, remote_get_tib_address)
8128 (remote_hostio_send_command, remote_can_execute_reverse): Use
8129 packet_support.
8130 (remote_supports_cond_tracepoints)
8131 (remote_supports_cond_breakpoints)
8132 (remote_supports_fast_tracepoints)
8133 (remote_supports_static_tracepoints)
8134 (remote_supports_install_in_trace)
8135 (remote_supports_enable_disable_tracepoint)
8136 (remote_supports_string_tracing)
8137 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8138 the packet config says the feature is enabled or disabled.
8139 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8140 (remote_get_trace_status): Use packet_support.
8141 (remote_set_disconnected_tracing): Adjust to check whether the
8142 feature is enabled with packet_support.
8143 (remote_set_trace_buffer_size, remote_use_agent)
8144 (remote_can_use_agent, remote_supports_btrace): Use
8145 packet_support.
8146 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8147 Use packet_config_support.
8148 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8149 the packet config says the feature is enabled or disabled.
8150 (set_range_stepping): Use packet_support.
8151
bdb52a22
TT
81522014-04-25 Tom Tromey <tromey@redhat.com>
8153
8154 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8155 argument.
8156
e9475ead
SA
81572014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8158
8159 * NEWS: Mention support for C99 variable length arrays.
8160
82eacd52
JB
81612014-04-24 Joel Brobecker <brobecker@adacore.com>
8162
8163 * ada-lang.c (standard_exc): Expand introductory comment.
8164
01f9f808
MS
81652014-04-24 Michael Sturm <michael.sturm@mintel.com>
8166 Walfred Tedeschi <walfred.tedeschi@intel.com>
8167
8168 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8169 AVX512 registers.
8170 (amd64_linux_read_description): Add code to handle AVX512 xstate
8171 mask and return respective tdesc.
8172 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8173 and features/i386/x32-avx512-linux.c.
8174 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8175 (amd64_linux_core_read_description): Add code to handle AVX512
8176 xstate mask and return respective tdesc.
8177 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8178 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8179 calculation.
8180 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8181 (tdesc_amd64_avx512_linux): New prototype.
8182 (tdesc_x32_avx512_linux): Likewise.
8183 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8184 features/i386/x32-avx512.c.
8185 (amd64_ymm_avx512_names): New register names for pseudo
8186 registers YMM16-31.
8187 (amd64_ymmh_avx512_names): New register names for raw registers
8188 YMMH16-31.
8189 (amd64_k_names): New register names for K registers.
8190 (amd64_zmmh_names): New register names for ZMM raw registers.
8191 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8192 (amd64_xmm_avx512_names): New register names for XMM16-31
8193 registers.
8194 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8195 registers.
8196 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8197 if feature is present.
8198 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8199 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8200 (AMD64_NUM_REGS): Adjust to new number of registers.
8201 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8202 registers supplied via XSTATE by AVX512 registers.
8203 (i386_linux_read_description): Add case for AVX512.
8204 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8205 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8206 (i386_linux_core_read_description): Add case for AVX512.
8207 (i386_linux_init_abi): Install supported register note section
8208 for AVX512.
8209 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8210 AVX512.
8211 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8212 registers to be number of zmm7h + 1.
8213 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8214 * i386-tdep.c: Include features/i386/i386-avx512.c.
8215 (i386_zmm_names): Add ZMM pseudo register names array.
8216 (i386_zmmh_names): Add ZMM raw register names array.
8217 (i386_k_names): Add K raw register names array.
8218 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8219 registers. AVX512 has 16 more ZMM registers than there are YMM
8220 registers.
8221 (i386_zmmh_regnum_p): Add function to look up register number of
8222 ZMM raw registers.
8223 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8224 (i386_k_regnum_p): Likewise for K raw registers.
8225 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8226 registers added by AVX512.
8227 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8228 registers added by AVX512.
8229 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8230 added by AVX512.
8231 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8232 (i386_pseudo_register_name): Add ZMM pseudo registers.
8233 (i386_zmm_type): Construct and return vector registers type for ZMM
8234 registers.
8235 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8236 ZMM0-31 pseudo registers and K registers.
8237 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8238 and YMM16-31 registers from register cache.
8239 (i386_pseudo_register_write): Add code to write K, ZMM and
8240 YMM16-31 registers.
8241 (i386_register_reggroup_p): Add code to include/exclude AVX512
8242 registers in/from respective register groups.
8243 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8244 registers if feature is present in xcr0.
8245 (i386_gdbarch_init): Add code to initialize AVX512 feature
8246 variables in tdep structure, wire in pseudo registers and call
8247 initialize_tdesc_i386_avx512.
8248 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8249 variables.
8250 (i386_regnum): Add AVX512 registers.
8251 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8252 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8253 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8254 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8255 512 bits wide.
8256 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8257 (i386_ymm_avx512_regnum_p): Likewise.
8258 (i386_k_regnum_p): Likewise.
8259 (i386_zmm_regnum_p): Likewise.
8260 (i386_zmmh_regnum_p): Likewise.
8261 * i387-tdep.c : Update year in copyright notice.
8262 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8263 XSAVE buffer.
8264 (XSAVE_YMM_AVX512_ADDR): New macro.
8265 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8266 XSAVE buffer.
8267 (XSAVE_XMM_AVX512_ADDR): New macro.
8268 (xsave_avx512_k_offset): New table for K register offsets in
8269 XSAVE buffer.
8270 (XSAVE_AVX512_K_ADDR): New macro.
8271 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8272 in XSAVE buffer.
8273 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8274 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8275 buffer.
8276 (i387_collect_xsave): Add code to collect AVX512 registers from
8277 XSAVE buffer.
8278 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8279 of XMM16-31 registers.
8280 (I387_NUM_K_REGS): New define for number of K registers.
8281 (I387_K0_REGNUM): New define for K0 register number.
8282 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8283 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8284 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8285 registers.
8286 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8287 (I387_XMM16_REGNUM): New define for XMM16 register number.
8288 (I387_YMM0_REGNUM): New define for YMM0 register number.
8289 (I387_KEND_REGNUM): New define for last K register number.
8290 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8291 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8292 number.
8293 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8294 number.
8295 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8296 size.
8297 * features/Makefile: Add AVX512 related files.
8298 * features/i386/32bit-avx512.xml: New file.
8299 * features/i386/64bit-avx512.xml: Likewise.
8300 * features/i386/amd64-avx512-linux.c: Likewise.
8301 * features/i386/amd64-avx512-linux.xml: Likewise.
8302 * features/i386/amd64-avx512.c: Likewise.
8303 * features/i386/amd64-avx512.xml: Likewise.
8304 * features/i386/i386-avx512-linux.c: Likewise.
8305 * features/i386/i386-avx512-linux.xml: Likewise.
8306 * features/i386/i386-avx512.c: Likewise.
8307 * features/i386/i386-avx512.xml: Likewise.
8308 * features/i386/x32-avx512-linux.c: Likewise.
8309 * features/i386/x32-avx512-linux.xml: Likewise.
8310 * features/i386/x32-avx512.c: Likewise.
8311 * features/i386/x32-avx512.xml: Likewise.
8312 * regformats/i386/amd64-avx512-linux.dat: New file.
8313 * regformats/i386/amd64-avx512.dat: Likewise.
8314 * regformats/i386/i386-avx512-linux.dat: Likewise.
8315 * regformats/i386/i386-avx512.dat: Likewise.
8316 * regformats/i386/x32-avx512-linux.dat: Likewise.
8317 * regformats/i386/x32-avx512.dat: Likewise.
8318 * NEWS: Add note about new support for AVX512.
8319
8320
08351840
PA
83212014-04-23 Pedro Alves <palves@redhat.com>
8322
8323 * breakpoint.c (insert_bp_location): Tolerate errors if the
8324 breakpoint is set in a user-loaded objfile.
8325 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8326 location is marked shlib_disabled. If the breakpoint is set in a
8327 user-loaded objfile is a GDB-side memory breakpoint, validate it
8328 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8329 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8330 flag.
8331 * mem-break.c (memory_validate_breakpoint): New function.
8332 * objfiles.c (userloaded_objfile_contains_address_p): New
8333 function.
8334 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8335 * target.h (memory_validate_breakpoint): New declaration.
8336
076855f9
PA
83372014-04-23 Pedro Alves <palves@redhat.com>
8338
8339 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8340 the breakpoint is set in a shared library, only suppress
8341 errors for software breakpoints, not hardware breakpoints.
8342
483805cf
PA
83432014-04-22 Pedro Alves <palves@redhat.com>
8344
8345 * infrun.c (schedlock_applies): New function, factored out from
8346 find_thread_needs_step_over.
8347 (find_thread_needs_step_over): Use it.
8348 (switch_back_to_stepped_thread): Always clear trap_expected if the
8349 step over is finished. Return early if scheduler locking applies.
8350 Look for the stepping thread and a potential step-over thread with
8351 a single loop.
8352 (currently_stepping_or_nexting_callback): Delete.
8353
a75fef0e
NC
83542014-04-22 Nick Clifton <nickc@redhat.com>
8355
8356 * NEWS: Mention that ARM sim now supports tracing.
8357
48b6e87e
YQ
83582014-04-22 Yao Qi <yao@codesourcery.com>
8359
8360 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8361 to ...
8362 * tracefile.c (tracefile_fetch_registers): ... it. New
8363 function.
8364 * tracefile.h (tracefile_fetch_registers): Declare.
8365 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8366 tracefile_fetch_registers.
8367
17617f2d
EZ
83682014-04-19 Eli Zaretskii <eliz@gnu.org>
8369
8370 PR gdb/14018
8371 * windows-nat.c (thread_rec): Don't display a warning when
8372 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8373 fails for any reason, set th->suspended to -1, so that we don't
8374 try to resume such a thread. Also, don't return NULL in these
8375 cases, to avoid completely ruin the session due to "PC register is
8376 not available" error.
8377 (do_windows_fetch_inferior_registers): Check errors in
8378 GetThreadContext call.
8379 (windows_continue): Accept an additional argument KILLED; if not
8380 zero, ignore errors in the SetThreadContext call, since the
8381 inferior was killed and is shutting down.
8382 (windows_resume, get_windows_debug_event)
8383 (windows_create_inferior, windows_mourn_inferior)
8384 (windows_kill_inferior): All callers of windows_continue changed
8385 to adjust to its new calling sequence.
8386
5723a6fd
YQ
83872014-04-19 Yao Qi <yao@codesourcery.com>
8388
8389 * ctf.c (ctf_open): Call post_create_inferior.
8390
614d5099
YQ
83912014-04-19 Yao Qi <yao@codesourcery.com>
8392
8393 * ctf.c (handle_id): New static variable.
8394 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8395 value. Get the declaration of event "register" and get length
8396 of field "contents".
8397
dac3e710
YQ
83982014-04-19 Yao Qi <yao@codesourcery.com>
8399
8400 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8401
2bca57ba
SC
84022014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8403
8404 * valops.c (oload_method_static): Remove unnecessary argument
8405 METHOD. Update all callers.
8406
51d48146
PA
84072014-04-18 Pedro alves <palves@redhat.com>
8408 Tom Tromey <tromey@redhat.com>
8409
8410 PR backtrace/15558
8411 * frame.c (get_prev_frame_1): Rename to ...
8412 (get_prev_frame_always): ... this, and make extern. Adjust.
8413 (skip_artificial_frames): Use get_prev_frame_always.
8414 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8415 (get_frame_unwind_stop_reason): Adjust to rename.
8416 * frame.h (get_prev_frame_always): Declare.
8417 * inline-frame.c: Include frame.h.
8418 (inline_frame_this_id): Use get_prev_frame_always.
8419
1bdad2e0
TG
84202014-04-18 Tristan Gingold <gingold@adacore.com>
8421
8422 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8423 code by using bfd_mach_o_get_base_address.
8424
7ce16bd4
UW
84252014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8426
8427 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8428 (spu_ax_pseudo_register_collect): New function.
8429 (spu_ax_pseudo_register_push_stack): Likewise.
8430 (spu_dwarf_reg_to_regnum): Likewise.
8431 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8432
2ed3c037
UW
84332014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8434
8435 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8436 Replace FRAME argument with FRAME_ID.
8437 * gdbarch.c, gdbarch.h: Regenerate.
8438 * findvar.c (default_value_from_register): Add GDBARCH argument;
8439 replace FRAME by FRAME_ID. No longer call get_frame_id.
8440 (value_from_register): Update call to gdbarch_value_from_register.
8441 * value.h (default_value_from_register): Update prototype.
8442 * s390-linux-tdep.c (s390_value_from_register): Update interface
8443 and call to default_value_from_register.
8444 * spu-tdep.c (spu_value_from_register): Likewise.
8445
8446 * findvar.c (address_from_register): Remove TYPE argument.
8447 Do not call value_from_register; use gdbarch_value_from_register
8448 with null_frame_id instead.
8449 * value.h (address_from_register): Update prototype.
8450 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8451 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8452 address_from_register interface change.
8453
71e50e83
YQ
84542014-04-17 Yao Qi <yao@codesourcery.com>
8455
8456 * gdbtypes.h: Update comments to link to types and macros'
8457 definitions.
8458
7a23c549
SC
84592014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8460
8461 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8462
22869d73
KS
84632014-04-16 Keith Seitz <keiths@redhat.com>
8464
8465 PR gdb/15827
8466 * dwarf2read.c (skip_one_die): Check that all relative-offset
8467 sibling DIEs fall within range of the current reader's buffer.
8468 (read_partial_die): Likewise.
8469
c4f87ca6
KS
84702014-04-16 Keith Seitz <keiths@redhat.com>
8471
8472 PR c++/16597
8473 * cp-namespace.c (lookup_symbol_file): If the type name of
8474 `this' is NULL, return immediately.
8475
b50c8614
KS
84762014-04-14 Keith Seitz <keiths@redhat.com>
8477
8478 PR c++/16253
8479 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8480 from symbol_matches_domain in symtab.c. All local callers
8481 of symbol_matches_domain updated.
8482 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8483 search STRUCT_DOMAIN.
8484 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8485 independently. standard_lookup will do that automatically.
8486 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8487 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8488 (cp_lookup_symbol_in_namespace): Likewise.
8489 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8490 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8491 may return a STRUCT_DOMAIN match.
8492 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8493 * cp-support.c: Include language.h.
8494 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8495 VAR_DOMAIN.
8496 * psymtab.c (match_partial_symbol): Compare the requested
8497 domain with the symbol's domain directly.
8498 (lookup_partial_symbol): Likewise.
8499 * symtab.c (lookup_symbol_in_language): Explain when/why
8500 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8501 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8502 appropriate languages.
8503 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8504 and moved to ada-lang.c
8505 (lookup_block_symbol): Explain that this function only returns
8506 symbol matching the requested DOMAIN.
8507 Compare the requested domain with the symbol's domain directly.
8508 (iterate_over_symbols): Compare the requested domain with the
8509 symbol's domain directly.
8510 * symtab.h (symbol_matches_domain): Remove.
8511
3d567982
TT
85122014-04-14 Tom Tromey <tromey@redhat.com>
8513
8514 PR c++/15246:
8515 * c-exp.y (type_aggregate_p): New function.
8516 (qualified_name, classify_inner_name): Use it.
8517 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8518 and TYPE_TARGET_TYPE of an enum type.
8519 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8520 an enum type.
8521 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8522 handle TYPE_DECLARED_CLASS.
8523 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8524 types.
8525 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8526 * valops.c (enum_constant_from_type): New function.
8527 (value_aggregate_elt): Use it.
8528 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8529 TYPE_CODE_ENUM.
8530
c848d642
TT
85312014-04-14 Tom Tromey <tromey@redhat.com>
8532
8533 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8534 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8535 const.
8536 * value.h (value_aggregate_elt): Update.
8537
0626fc76
TT
85382014-04-14 Tom Tromey <tromey@redhat.com>
8539
8540 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8541
5ecaaa66
SA
85422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8543
8544 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8545 (evaluate_subexp_standard): Pass noside argument.
8546 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8547 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8548 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8549 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8550 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8551
1612e0c0
SA
85522014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8553
8554 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8555 points to a constant blob.
8556
c451ebe5
SA
85572014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8558
8559 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8560 property and store it as the high bound and flag the range accordingly.
8561 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8562 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8563 * gdbtypes.h (enum range_flags): New enum.
8564 (struct range_bounds): Add flags member.
8565
1d42e4c4
SA
85662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8567
8568 * c-typeprint.c (c_type_print_varspec_suffix): Added
8569 check for not yet resolved high bound. If unresolved, print
8570 "variable length" string to the console instead of random
8571 length.
8572
9f1f738a
SA
85732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8574
8575 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8576 value.
8577 (ada_template_to_fixed_record_type_1): Likewise.
8578 (ada_to_fixed_type_1): Likewise.
8579 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8580 (cp_print_value): Likewise.
8581 * d-valprint.c (dynamic_array_type): Likewise.
8582 * findvar.c (address_of_variable): Likewise.
8583 * jv-valprint.c (java_value_print): Likewise.
8584 * valops.c (value_ind): Likewise.
8585 * value.c (coerce_ref): Likewise.
8586
3c8452d4
SA
85872014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8588
8589 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8590 value and retrieve the dynamic type size.
8591
4ad88275
SA
85922014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8593
8594 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8595 passed to sizeof is dynamic evaluate the argument to compute the length.
8596
80180f79
SA
85972014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8598 Joel Brobecker <brobecker@adacore.com>
8599
8600 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8601 (dwarf2_evaluate_property): New function.
8602 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8603 * dwarf2read.c (attr_to_dynamic_prop): New function.
8604 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8605 attribute.
8606 * gdbtypes.c: Include dwarf2loc.h.
8607 (is_dynamic_type): New function.
8608 (resolve_dynamic_type): New function.
8609 (resolve_dynamic_bounds): New function.
8610 (get_type_length): New function.
8611 (check_typedef): Use get_type_length to compute type length.
8612 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8613 (TYPE_LOW_BOUND_KIND): New macro.
8614 (is_dynamic_type): New function prototype.
8615 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8616 to resolve dynamic properties of the type. Update comment.
8617 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8618
a1556843
RH
86192014-04-14 Richard Henderson <rth@redhat.com>
8620
8621 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8622
0be03e84
DE
86232014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8624 Doug Evans <xdje42@gmail.com>
8625
8626 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8627 dereference TYPE_CODE_REF values.
8628
6b662e19
JB
86292014-04-11 Joel Brobecker <brobecker@adacore.com>
8630
8631 Revert the following changes due to regressions:
8632
8633 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8634 (dwarf2_evaluate_property): New function.
8635 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8636 * dwarf2read.c (attr_to_dynamic_prop): New function.
8637 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8638 attribute.
8639 * gdbtypes.c: Include dwarf2loc.h.
8640 (is_dynamic_type): New function.
8641 (resolve_dynamic_type): New function.
8642 (resolve_dynamic_bounds): New function.
8643 (get_type_length): New function.
8644 (check_typedef): Use get_type_length to compute type length.
8645 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8646 (TYPE_LOW_BOUND_KIND): New macro.
8647 (is_dynamic_type): New function prototype.
8648 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8649 to resolve dynamic properties of the type. Update comment.
8650 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8651
8652 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8653 passed to sizeof is dynamic evaluate the argument to compute the length.
8654
8655 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8656 value and retrieve the dynamic type size.
8657
8658 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8659 (ada_template_to_fixed_record_type_1): Likewise.
8660 (ada_to_fixed_type_1): Likewise.
8661 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8662 (cp_print_value): Likewise.
8663 * d-valprint.c (dynamic_array_type): Likewise.
8664 * eval.c (evaluate_subexp_with_coercion): Likewise.
8665 * findvar.c (address_of_variable): Likewise.
8666 * jv-valprint.c (java_value_print): Likewise.
8667 * valops.c (value_ind): Likewise.
8668 * value.c (coerce_ref): Likewise.
8669
8670 * c-typeprint.c (c_type_print_varspec_suffix): Added
8671 check for not yet resolved high bound. If unresolved, print
8672 "variable length" string to the console instead of random
8673 length.
8674
8675 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8676 property and store it as the high bound and flag the range accordingly.
8677 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8678 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8679 * gdbtypes.h (enum range_flags): New enum.
8680 (struct range_bounds): Add flags member.
8681
8682 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8683 points to a constant blob.
8684
8685 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8686 (evaluate_subexp_standard): Pass noside argument.
8687 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8688 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8689 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8690 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8691 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8692
245a5f0b
KS
86932014-04-11 Keith Seitz <keiths@redhat.com>
8694
8695 PR c++/16675
8696 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8697 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8698 reference types.
8699
3bce8237
SA
87002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8701
8702 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8703 (evaluate_subexp_standard): Pass noside argument.
8704 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8705 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8706 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8707 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8708 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8709
92b09522
SA
87102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8711
8712 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8713 points to a constant blob.
8714
e1969afb
SA
87152014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8716
8717 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8718 property and store it as the high bound and flag the range accordingly.
8719 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8720 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8721 * gdbtypes.h (enum range_flags): New enum.
8722 (struct range_bounds): Add flags member.
8723
b86138fb
SA
87242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8725
8726 * c-typeprint.c (c_type_print_varspec_suffix): Added
8727 check for not yet resolved high bound. If unresolved, print
8728 "variable length" string to the console instead of random
8729 length.
8730
bcd629a4
SA
87312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8732
8733 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8734 (ada_template_to_fixed_record_type_1): Likewise.
8735 (ada_to_fixed_type_1): Likewise.
8736 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8737 (cp_print_value): Likewise.
8738 * d-valprint.c (dynamic_array_type): Likewise.
8739 * eval.c (evaluate_subexp_with_coercion): Likewise.
8740 * findvar.c (address_of_variable): Likewise.
8741 * jv-valprint.c (java_value_print): Likewise.
8742 * valops.c (value_ind): Likewise.
8743 * value.c (coerce_ref): Likewise.
8744
04b19544
SA
87452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8746
8747 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8748 value and retrieve the dynamic type size.
8749
26cb189f
SA
87502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8751
8752 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8753 passed to sizeof is dynamic evaluate the argument to compute the length.
8754
37c1ab67
SA
87552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8756
8757 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8758 (dwarf2_evaluate_property): New function.
8759 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8760 * dwarf2read.c (attr_to_dynamic_prop): New function.
8761 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8762 attribute.
8763 * gdbtypes.c: Include dwarf2loc.h.
8764 (is_dynamic_type): New function.
8765 (resolve_dynamic_type): New function.
8766 (resolve_dynamic_bounds): New function.
8767 (get_type_length): New function.
8768 (check_typedef): Use get_type_length to compute type length.
8769 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8770 (TYPE_LOW_BOUND_KIND): New macro.
8771 (is_dynamic_type): New function prototype.
8772 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8773 to resolve dynamic properties of the type. Update comment.
8774 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8775
729efb13
SA
87762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8777
8778 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8779 declaring high/low bounds and change uses accordingly. Call
8780 create_range_type instead of create_static_range_type.
8781 * gdbtypes.c (create_range_type): New function.
8782 (create_range_type): Convert bounds into struct bound_prop and pass
8783 them to create_range_type.
8784 * gdbtypes.h (struct bound_prop): New struct.
8785 (create_range_type): New function prototype.
8786 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8787 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8788 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8789 part of the bound.
8790 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8791
0c9c3474
SA
87922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8793
8794 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8795 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8796 * ada-lang.c: All uses of create_range_type updated.
8797 * coffread.c: All uses of create_range_type updated.
8798 * dwarf2read.c: All uses of create_range_type updated.
8799 * f-exp.y: All uses of create_range_type updated.
8800 * m2-valprint.c: All uses of create_range_type updated.
8801 * mdebugread.c: All uses of create_range_type updated.
8802 * stabsread.c: All uses of create_range_type updated.
8803 * valops.c: All uses of create_range_type updated.
8804 * valprint.c: All uses of create_range_type updated.
8805
9d497a19
PA
88062014-04-10 Pedro Alves <palves@redhat.com>
8807
8808 * breakpoint.c (single_step_breakpoints)
8809 (single_step_gdbarch): Move up in the file.
8810 (one_breakpoint_xfer_memory): New function, factored out from ...
8811 (breakpoint_xfer_memory): ... here. Also process single-step
8812 breakpoints.
8813
15a9128a
TG
88142014-04-09 Tristan Gingold <gingold@adacore.com>
8815
8816 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8817 comments.
8818 (darwin_decode_exception_message): Free port only after use.
8819
9c97a070
PL
88202014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8821
8822 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8823 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8824 when setting the size of call_length.
8825
7af389b8
SC
88262014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8827
8828 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8829 dereference TYPE_CODE_REF values.
8830
86ad98c3
JB
88312014-04-07 Joel Brobecker <brobecker@adacore.com>
8832
8833 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8834 end of warning message.
8835
b0aeadb3
DE
88362014-04-03 Doug Evans <dje@google.com>
8837
8838 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8839 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8840
5979d6b6
AM
88412014-04-02 Alan Modra <amodra@gmail.com>
8842
8843 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8844 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8845 (struct symbol_file_add_from_memory_args): Add size field.
8846 (find_vdso_size): New function.
8847 (add_vsyscall_page): Attempt to find vdso size.
8848
0d60c288
DE
88492014-04-01 Doug Evans <dje@google.com>
8850
8851 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8852
a41f2563
TG
88532014-04-01 Tristan Gingold <gingold@adacore.com>
8854
8855 * darwin-nat.c (darwin_encode_reply): Add prototype.
8856 (darwin_decode_exception_message): Reply to unknown inferiors.
8857 (darwin_decode_message): Handle message by id. Ignore message
8858 to unknown inferior.
8859 (darwin_wait): Discard unknown messages, add debug trace.
8860
11a865c8
DE
88612014-03-31 Doug Evans <dje@google.com>
8862
8863 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8864 comp_dir_string.
8865
770e7fc7
DE
88662014-03-31 Doug Evans <dje@google.com>
8867
8868 New option "set print symbol-loading".
8869 * NEWS: Mention it.
8870 * solib.c (solib_read_symbols): Only print symbol loading messages
8871 if requested.
8872 (solib_add): If symbol loading is in "brief" mode, notify user
8873 symbols are being loaded.
8874 (reload_shared_libraries_1): Ditto.
8875 * symfile.c (print_symbol_loading_off): New static global.
8876 (print_symbol_loading_brief): New static global.
8877 (print_symbol_loading_full): New static global.
8878 (print_symbol_loading_enums): New static global.
8879 (print_symbol_loading): New static global.
8880 (print_symbol_loading_p): New function.
8881 (symbol_file_add_with_addrs): Only print symbol loading messages
8882 if requested.
8883 (_initialize_symfile): Register "print symbol-loading" set/show
8884 command.
8885 * symfile.h (print_symbol_loading_p): Declare.
8886
c32c64b7
DE
88872014-03-30 Doug Evans <xdje42@gmail.com>
8888
8889 * infrun.c (set_last_target_status): New function.
8890 (handle_inferior_event): Call it.
8891
7c0bc051
DE
88922014-03-30 Doug Evans <xdje42@gmail.com>
8893
8894 * inferior.h (enum stop_kind): Improve comment.
8895
8776cfe9
JB
88962014-03-28 Joel Brobecker <brobecker@adacore.com>
8897
8898 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8899 a reference, strip the reference layer before calling
8900 the lang_ops value_has_mutated callback.
8901
410a0ff2
SDJ
89022014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8903
8904 Remove some globals from our parser.
8905 * language.c (unk_lang_parser): Add "struct parser_state"
8906 argument.
8907 * language.h (struct language_defn) <la_parser>: Likewise.
8908 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8909 (initialize_expout): Add "struct parser_state" argument.
8910 Rewrite function to use the parser state.
8911 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8912 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8913 write_exp_elt_longcst, write_exp_elt_dblcst,
8914 write_exp_elt_decfloatcst, write_exp_elt_type,
8915 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8916 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8917 write_dollar_variable): Likewise.
8918 (parse_exp_in_context_1): Use parser state.
8919 (insert_type_address_space): Add "struct parser_state" argument.
8920 Use parser state.
8921 (increase_expout_size): New function.
8922 * parser-defs.h: Forward declare "struct language_defn" and
8923 "struct parser_state".
8924 (expout, expout_size, expout_ptr): Remove extern declarations.
8925 (parse_gdbarch, parse_language): Rewrite macro declarations to
8926 accept the parser state.
8927 (struct parser_state): New struct.
8928 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8929 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8930 write_exp_elt_decfloatcst, write_exp_elt_type,
8931 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8932 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8933 write_exp_msymbol, write_dollar_variable,
8934 mark_struct_expression, insert_type_address_space): Add "struct
8935 parser_state" argument.
8936 (increase_expout_size): New function.
8937 * utils.c (do_clear_parser_state): New function.
8938 (make_cleanup_clear_parser_state): Likewise.
8939 * utils.h (make_cleanup_clear_parser_state): New function
8940 prototype.
8941 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8942 Update calls to write_exp* in order to pass the parser state.
8943 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8944 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8945 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8946 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8947 * stap-probe.c (stap_parse_register_operand): Likewise.
8948 (stap_parse_single_operand): Likewise.
8949 (stap_parse_argument_1): Likewise.
8950 (stap_parse_argument): Use parser state.
8951 * stap-probe.h: Include "parser-defs.h".
8952 (struct stap_parse_info) <pstate>: New field.
8953 * c-exp.y (parse_type): Rewrite to use parser state.
8954 (yyparse): Redefine to c_parse_internal.
8955 (pstate): New global variable.
8956 (parse_number): Add "struct parser_state" argument.
8957 (write_destructor_name): Likewise.
8958 (type_exp): Update calls to write_exp* and similars in order to
8959 use parser state.
8960 (exp1, exp, variable, qualified_name, space_identifier,
8961 typename, typebase): Likewise.
8962 (write_destructor_name, parse_number, lex_one_token,
8963 classify_name, classify_inner_name, c_parse): Add "struct
8964 parser_state" argument. Update function to use parser state.
8965 * c-lang.h: Forward declare "struct parser_state".
8966 (c_parse): Add "struct parser_state" argument.
8967 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8968 (yyparse): Redefine macro to ada_parse_internal.
8969 (pstate): New variable.
8970 (write_int, write_object_renaming, write_var_or_type,
8971 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8972 type_int, type_long, type_long_long, type_float, type_double,
8973 type_long_double, type_char, type_boolean, type_system_address):
8974 Add "struct parser_state" argument.
8975 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8976 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8977 var_or_type, aggregate, aggregate_component_list,
8978 positional_list, others, component_group,
8979 component_associations): Update calls to write_exp* and similar
8980 functions in order to use parser state.
8981 (ada_parse, write_var_from_sym, write_int,
8982 write_exp_op_with_string, write_object_renaming,
8983 find_primitive_type, write_selectors, write_ambiguous_var,
8984 write_var_or_type, write_name_assoc, type_int, type_long,
8985 type_long_long, type_float, type_double, type_long_double,
8986 type_char, type_boolean, type_system_address): Add "struct
8987 parser_state" argument. Adjust function to use parser state.
8988 * ada-lang.c (parse): Likewise.
8989 * ada-lang.h: Forward declare "struct parser_state".
8990 (ada_parse): Add "struct parser_state" argument.
8991 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8992 calls to both functions.
8993 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8994 parser state.
8995 (yyparse): Redefine macro to f_parse_internal.
8996 (pstate): New variable.
8997 (parse_number): Add "struct parser_state" argument.
8998 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8999 and similars in order to use parser state.
9000 (parse_number): Adjust code to use parser state.
9001 (yylex): Likewise.
9002 (f_parse): New function.
9003 * f-lang.h: Forward declare "struct parser_state".
9004 (f_parse): Add "struct parser_state" argument.
9005 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9006 parser state.
9007 (yyparse): Redefine macro for java_parse_internal.
9008 (pstate): New variable.
9009 (push_expression_name, push_expression_name, insert_exp): Add
9010 "struct parser_state" argument.
9011 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9012 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9013 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9014 PostIncrementExpression, PostDecrementExpression,
9015 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9016 UnaryExpressionNotPlusMinus, CastExpression,
9017 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9018 RelationalExpression, EqualityExpression, AndExpression,
9019 ExclusiveOrExpression, InclusiveOrExpression,
9020 ConditionalAndExpression, ConditionalOrExpression,
9021 ConditionalExpression, Assignment, LeftHandSide): Update
9022 calls to write_exp* and similars in order to use parser state.
9023 (parse_number): Ajust code to use parser state.
9024 (yylex): Likewise.
9025 (java_parse): New function.
9026 (push_variable): Add "struct parser_state" argument. Adjust
9027 code to user parser state.
9028 (push_fieldnames, push_qualified_expression_name,
9029 push_expression_name, insert_exp): Likewise.
9030 * jv-lang.h: Forward declare "struct parser_state".
9031 (java_parse): Add "struct parser_state" argument.
9032 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9033 parser state.
9034 (yyparse): Redefine macro to m2_parse_internal.
9035 (pstate): New variable.
9036 (type_exp, exp, fblock, variable, type): Update calls to
9037 write_exp* and similars to use parser state.
9038 (yylex): Likewise.
9039 (m2_parse): New function.
9040 * m2-lang.h: Forward declare "struct parser_state".
9041 (m2_parse): Add "struct parser_state" argument.
9042 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9043 * objc-lang.h: Forward declare "struct parser_state".
9044 (end_msglist): Add "struct parser_state" argument.
9045 * p-exp.y (parse_type): Rewrite macro to use parser state.
9046 (yyparse): Redefine macro to pascal_parse_internal.
9047 (pstate): New variable.
9048 (parse_number): Add "struct parser_state" argument.
9049 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9050 write_exp* and similars in order to use parser state.
9051 (parse_number, yylex): Adjust code to use parser state.
9052 (pascal_parse): New function.
9053 * p-lang.h: Forward declare "struct parser_state".
9054 (pascal_parse): Add "struct parser_state" argument.
9055 * go-exp.y (parse_type): Rewrite macro to use parser state.
9056 (yyparse): Redefine macro to go_parse_internal.
9057 (pstate): New variable.
9058 (parse_number): Add "struct parser_state" argument.
9059 (type_exp, exp1, exp, variable, type): Update calls to
9060 write_exp* and similars in order to use parser state.
9061 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9062 to use parser state.
9063 (go_parse): Likewise.
9064 * go-lang.h: Forward declare "struct parser_state".
9065 (go_parse): Add "struct parser_state" argument.
9066
342587c4
DE
90672014-03-27 Doug Evans <dje@google.com>
9068
9069 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9070
33e80786
DE
90712014-03-27 Doug Evans <dje@google.com>
9072
9073 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9074 Remove argument abbrev_section. All callers updated.
9075
1dbab08b
DE
90762014-03-27 Doug Evans <dje@google.com>
9077
9078 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9079 addr_base, ranges_base.
9080
318d3177
KS
90812014-03-26 Keith Seitz <keiths@redhat.com>
9082
9083 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9084 types, not VAR_DOMAIN.
9085
1e54db15
SL
90862014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9087
9088 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9089 "ra" registers.
9090 * features/nios2-linux.c: Regenerated.
9091 * features/nios2.c: Regenerated.
9092
d3839ede
PA
90932014-03-25 Pedro Alves <palves@redhat.com>
9094
9095 * cli/cli-script.c (script_from_file): Force the interpreter to
9096 sync mode.
9097
7588d2ec
PL
90982014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9099
9100 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9101 small stack allocation.
9102
a6290449
TG
91032014-03-24 Tristan Gingold <gingold@adacore.com>
9104
9105 * darwin-nat.c (exc_server): Remove unused prototype.
9106 (darwin_dump_message): Correctly display data on x86_64.
9107 (darwin_encode_reply): Fix style.
9108 Add comments and fix indentation.
9109
31ae9d24 91102014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9111
9112 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9113
6339bfc4
DE
91142014-03-22 Doug Evans <xdje42@gmail.com>
9115
9116 * infcmd.c: Whitespace fixes.
9117 (interrupt_command): Merge two function comments into one.
9118
0a07590b
DE
91192014-03-22 Doug Evans <xdje42@gmail.com>
9120
9121 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9122 All uses updated.
9123
b55fbac4
YQ
91242014-03-22 Yao Qi <yao@codesourcery.com>
9125
9126 * remote.c (target_read_live_memory): Remove.
9127 (memory_xfer_live_readonly_partial): Rename it to
9128 remote_xfer_live_readonly_partial. Remove argument 'object'.
9129 All callers updated. Call remote_read_bytes_1
9130 instead of target_read_live_memory.
9131 * tracepoint.c (set_traceframe_number): Remove.
9132 (make_cleanup_restore_traceframe_number): Likewise .
9133 * tracepoint.h (set_traceframe_number): Remove declaration.
9134 (make_cleanup_restore_traceframe_number): Likewise.
9135
9217e74e
YQ
91362014-03-22 Yao Qi <yao@codesourcery.com>
9137
9138 * remote.c (remote_read_bytes): Move code on reading from the
9139 remote stub to ...
9140 (remote_read_bytes_1): ... here. New function.
9141
8acf9577
YQ
91422014-03-22 Yao Qi <yao@codesourcery.com>
9143
9144 * ctf.c (ctf_xfer_partial): Check the return value of
9145 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9146 return TARGET_XFER_UNAVAILABLE.
9147 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9148 * target.c (target_read_live_memory): Move it to remote.c.
9149 (memory_xfer_live_readonly_partial): Likewise.
9150 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9151 * remote.c (target_read_live_memory): Moved from target.c.
9152 (memory_xfer_live_readonly_partial): Likewise.
9153 (remote_read_bytes): Factored out from
9154 memory_xfer_partial_1.
9155
feef67ab
DE
91562014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9157
9158 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9159 NULL pointer.
9160
b65dc60b
PA
91612014-03-21 Pedro Alves <palves@redhat.com>
9162
9163 * infrun.c (normal_stop): Extend comment.
9164
b4ab256d
HZ
91652014-03-21 Hui Zhu <hui@codesourcery.com>
9166 Pedro Alves <palves@redhat.com>
9167
9168 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9169 static buffer.
9170 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9171 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9172 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9173
deba7593
MR
91742014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9175
9176 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9177 `z' formatted output modifier.
9178
1bff71c3
SDJ
91792014-03-20 Tom Tromey <tromey@redhat.com>
9180 Sergio Durigan Junior <sergiodj@redhat.com>
9181
9182 * probe.c (parse_probes): Turn assert into an ordinary error.
9183 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9184 exceptions when parsing probes. Rearrange the code for clarity.
9185
90e28950
TT
91862014-03-20 Tom Tromey <tromey@redhat.com>
9187
9188 PR gdb/14135
9189 * top.c (execute_command): Only dispatch events if the command
9190 started the target.
9191
beb460e8
PA
91922014-03-20 Tom Tromey <tromey@redhat.com>
9193
9194 PR cli/15718
9195 * infcall.c: Include event-top.h.
9196 (run_inferior_call): Call async_disable_stdin if needed.
9197
99619bea
PA
91982014-03-20 Pedro Alves <palves@redhat.com>
9199
9200 * infrun.c (prepare_to_proceed): Delete.
9201 (thread_still_needs_step_over): New function.
9202 (find_thread_needs_step_over): New function.
9203 (proceed): If the current thread needs a step-over, set its
9204 steping_over_breakpoint flag. Adjust to use
9205 find_thread_needs_step_over instead of prepare_to_proceed.
9206 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9207 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9208 breakpoint.
9209 (switch_back_to_stepped_thread): Step over breakpoints of all
9210 threads not the stepping thread, before switching back to the
9211 stepping thread.
9212
2adfaa28
PA
92132014-03-20 Pedro Alves <palves@redhat.com>
9214
9215 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9216 extern.
9217 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9218 * infrun.c (saved_singlestep_ptid)
9219 (stepping_past_singlestep_breakpoint): Delete.
9220 (resume): Remove stepping_past_singlestep_breakpoint handling.
9221 (proceed): Store the prev_pc of the stepping thread too.
9222 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9223 singlestep_pc.
9224 (enum infwait_states): Delete infwait_thread_hop_state.
9225 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9226 field.
9227 (handle_inferior_event): Adjust.
9228 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9229 handling and the thread-hop code. Before removing single-step
9230 breakpoints, check whether the thread hit a single-step breakpoint
9231 of another thread. If it did, the trap is not a random signal.
9232 (switch_back_to_stepped_thread): If the event thread hit a
9233 single-step breakpoint, unblock it before switching to the
9234 stepping thread. Handle the case of the stepped thread having
9235 advanced already.
9236 (keep_going): Handle the case of the current thread moving past a
9237 single-step breakpoint.
9238
31e77af2
PA
92392014-03-20 Pedro Alves <palves@redhat.com>
9240
9241 PR breakpoints/7143
9242 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9243 are being stepped over.
9244 (breakpoint_address_match): Make extern.
9245 * breakpoint.h (breakpoint_address_match): New declaration.
9246 * inferior.h (stepping_past_instruction_at): New declaration.
9247 * infrun.c (struct step_over_info): New type.
9248 (step_over_info): New global.
9249 (set_step_over_info, clear_step_over_info)
9250 (stepping_past_instruction_at): New functions.
9251 (handle_inferior_event): Clear the step-over info when
9252 trap_expected is cleared.
9253 (resume): Remove now stale comment.
9254 (clear_proceed_status): Clear step-over info.
9255 (proceed): Adjust step-over handling to set or clear the step-over
9256 info instead of removing all breakpoints.
9257 (handle_signal_stop): When setting up a thread-hop, don't remove
9258 breakpoints here.
9259 (stop_stepping): Clear step-over info.
9260 (keep_going): Adjust step-over handling to set or clear step-over
9261 info and then always inserting breakpoints, instead of removing
9262 all breakpoints when stepping over one.
9263
b9f437de
PA
92642014-03-20 Pedro Alves <palves@redhat.com>
9265
9266 * infrun.c (previous_inferior_ptid): Adjust comment.
9267 (deferred_step_ptid): Delete.
9268 (infrun_thread_ptid_changed, prepare_to_proceed)
9269 (init_wait_for_inferior): Adjust.
9270 (handle_signal_stop): Delete deferred_step_ptid handling.
9271
06c868a8
JK
92722014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9273
9274 PR gdb/15358
9275 * defs.h (sync_quit_force_run): New declaration.
9276 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9277 * event-top.c (async_sigterm_handler): New declaration.
9278 (async_sigterm_token): New variable.
9279 (async_init_signals): Create also async_sigterm_token.
9280 (async_sigterm_handler): New function.
9281 (sync_quit_force_run): New variable.
9282 (handle_sigterm): Replace quit_force call by other calls.
9283 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9284
dea80df0
MR
92852014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9286
9287 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9288 offset into SPE pseudo registers.
9289
0c7e1a46
PA
92902014-03-18 Pedro Alves <palves@redhat.com>
9291
9292 PR gdb/13860
9293 * inferior.h (print_stop_event): Declare.
9294 * infrun.c (print_stop_event): New, factored out from ...
9295 (normal_stop): ... this.
9296 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9297 of bpstat_print/print_stack_frame.
9298
9c1fcd01
TT
92992014-03-17 Tom Tromey <tromey@redhat.com>
9300
9301 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9302
11aa919a
PMR
93032014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9304
9305 * ada-lang.c (decode_constrained_packed_array): Perform a
9306 minimal coercion for reference with coerce_ref instead of
9307 ada_coerce_ref.
9308
d4ccb5e0
TG
93092014-03-17 Tristan Gingold <gingold@adacore.com>
9310
9311 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9312 (darwin_solib_create_inferior_hook): Emit a warning if version
9313 is unhandled.
9314
49840f2a
UW
93152014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9316
9317 * python/py-value.c (get_field_flag): Cast flag_name argument to
9318 PyObject_GetAttrString to support Python 2.4.
9319
ed4123e5
JK
93202014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9321
9322 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9323 (Global Maintainers): Remove Jan Kratochvil.
9324
d6b64346
PA
93252014-03-14 Pedro Alves <palves@redhat.com>
9326
9327 * inferior.h (terminal_ours_for_output): Rename to ...
9328 (child_terminal_ours_for_output): ... this.
9329 (terminal_save_ours): Rename to ...
9330 (child_terminal_save_ours): ... this.
9331 (terminal_ours): Rename to ...
9332 (child_terminal_ours): ... this.
9333 (terminal_inferior): Rename to ...
9334 (child_terminal_inferior): ... this.
9335 (terminal_init_inferior): Rename to ...
9336 (child_terminal_init_inferior): ... this.
9337 (terminal_init_inferior_with_pgrp): Rename to ...
9338 (child_terminal_init_inferior_with_pgrp): ... this.
9339 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9340 (child_terminal_init_with_pgrp): ... this.
9341 (terminal_save_ours): Rename to ...
9342 (child_terminal_save_ours): ... this.
9343 (terminal_init_inferior): Rename to ...
9344 (child_terminal_init): ... this. Adjust.
9345 (terminal_inferior): Rename to ...
9346 (child_terminal_inferior): ... this.
9347 (terminal_ours_for_output): Rename to ...
9348 (child_terminal_ours_for_output): ... this. Adjust.
9349 (terminal_ours): Rename to ...
9350 (child_terminal_ours): ... this.
9351 (terminal_ours_1): Rename to ...
9352 (child_terminal_ours_1): ... this. Adjust.
9353 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9354 * windows-nat.c (do_initial_windows_stuff): Adjust.
9355 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9356 (gnu_terminal_init): ... this. Adjust.
9357 (gnu_target): Adjust.
9358 * inf-child.c (inf_child_target): Adjust.
9359
5a1e8c7a
DE
93602014-03-13 Doug Evans <xdje42@gmail.com>
9361
9362 PR guile/16612
9363 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9364 new eq?-hashtab.
9365
350e1a76
DE
93662014-03-13 Doug Evans <xdje42@gmail.com>
9367
9368 * value.c (record_latest_value): Call release_value_or_incref
9369 instead of release_value.
9370
a69900ae
PA
93712014-03-13 Pedro Alves <palves@redhat.com>
9372
9373 * procfs.c (procfs_target): Don't override to_shortname,
9374 to_longname or to_doc.
9375
5db9f0bd
PA
93762014-03-13 Pedro Alves <palves@redhat.com>
9377
9378 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9379 Unix in user visible strings.
9380
5e3a2c38
SS
93812014-03-12 Stan Shebs <stan@codesourcery.com>
9382
9383 * gdbtypes.h: Annotate comments for Doxygen, add a page
9384 block comment with some general info.
9385
8bc2fe48
PA
93862014-03-12 Pedro Alves <palves@redhat.com>
9387
9388 * infcmd.c (prepare_execution_command): New function, factored out
9389 from several execution commands.
9390 (run_command_1, continue_command, step_1, jump_command)
9391 (signal_command, until_command, advance_command, finish_command)
9392 (attach_command): Use prepare_execution_command.
9393
638c5f49
OJ
93942014-03-12 Omair Javaid <omair.javaid@linaro.org>
9395
9396 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9397 (MAX_BPTS): Define.
9398 (MAX_WPTS): Define.
9399 (struct arm_linux_thread_points): Removed.
9400 (struct arm_linux_process_info): New.
9401 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9402 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9403 (arm_linux_find_breakpoints_by_tid): Removed.
9404 (struct arch_lwp_info): New.
9405 (arm_linux_find_process_pid): New functions.
9406 (arm_linux_add_process): New functions.
9407 (arm_linux_process_info_get): New functions.
9408 (arm_linux_forget_process): New function.
9409 (arm_linux_get_debug_reg_state): New function.
9410 (struct update_registers_data): New.
9411 (update_registers_callback): New function.
9412 (arm_linux_insert_hw_breakpoint1): Updated.
9413 (arm_linux_remove_hw_breakpoint1): Updated.
9414 (arm_linux_insert_hw_breakpoint): Updated.
9415 (arm_linux_remove_hw_breakpoint): Updated.
9416 (arm_linux_insert_watchpoint): Updated.
9417 (arm_linux_remove_watchpoint): Updated.
9418 (arm_linux_new_thread): Updated.
9419 (arm_linux_prepare_to_resume): New function.
9420 (arm_linux_new_fork): New function.
9421 (_initialize_arm_linux_nat): Updated.
9422
6d03af93
PA
94232014-03-12 Pedro Alves <palves@redhat.com>
9424
9425 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9426
b3ccfe11
TT
94272014-03-12 Tom Tromey <tromey@redhat.com>
9428
9429 * inf-child.c (return_zero): New function.
9430 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9431 * aix-thread.c (aix_thread_inferior_created): New function.
9432 (aix_thread_attach): Remove.
9433 (init_aix_thread_ops): Don't set to_attach.
9434 (_initialize_aix_thread): Register inferior_created observer.
9435 * corelow.c (init_core_ops): Don't set to_attach or
9436 to_create_inferior.
9437 * exec.c (init_exec_ops): Don't set to_attach or
9438 to_create_inferior.
9439 * infcmd.c (run_command_1): Use find_run_target. Make direct
9440 target calls.
9441 (attach_command): Use find_attach_target. Make direct target
9442 calls.
9443 * record-btrace.c (init_record_btrace_ops): Don't set
9444 to_create_inferior.
9445 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9446 Remove.
9447 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9448 set to_create_inferior.
9449 * target.c (complete_target_initialization): Add assertion.
9450 (target_create_inferior): Remove.
9451 (find_default_attach, find_default_create_inferior): Remove.
9452 (find_attach_target, find_run_target): New functions.
9453 (find_default_is_async_p, find_default_can_async_p)
9454 (target_supports_non_stop, target_attach): Remove.
9455 (init_dummy_target): Don't set to_create_inferior or
9456 to_supports_non_stop.
9457 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9458 TARGET_DEFAULT_FUNC.
9459 <to_create_inferior>: Add comment.
9460 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9461 TARGET_DEFAULT_RETURN.
9462 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9463 (find_attach_target, find_run_target): Declare.
9464 (target_create_inferior): Remove.
9465 (target_has_execution_1): Update comment.
9466 (target_supports_non_stop): Remove.
9467 * target-delegates.c: Rebuild.
9468
91f83b02
PA
94692014-03-12 Pedro Alves <palves@redhat.com>
9470
9471 * inf-child.h: Update comment to not mention Unix.
9472
f1aea813
PA
94732014-03-12 Pedro Alves <palves@redhat.com>
9474
9475 * inf-child.c: Update top comment to not mention Unix. Add
9476 generic comment describing how this target is meant to be used.
9477 (inf_child_post_attach, inf_child_post_startup_inferior)
9478 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9479 Unix in comment.
9480
ee8e9165
PA
94812014-03-12 Pedro Alves <palves@redhat.com>
9482
9483 * nto-procfs.c: Include inf-child.h.
9484 (procfs_ops): Delete global.
9485 (procfs_can_run): Delete method.
9486 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9487 target pointer instead of referencing procfs_ops.
9488 (procfs_prepare_to_store): Delete.
9489 (init_procfs_ops): Delete function.
9490 (procfs_target): New function, based on init_procfs_ops, but
9491 inherit inf_child_target.
9492 (_initialize_procfs): Use procfs_target.
9493
51a9c8c5
PA
94942014-03-12 Pedro Alves <palves@redhat.com>
9495
9496 * windows-nat.c: Include inf-child.h.
9497 (windows_ops): Delete global.
9498 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9499 methods.
9500 (init_windows_ops): Delete function.
9501 (windows_target): New function, based on init_windows_ops, but
9502 inherit inf_child_target.
9503 (_initialize_windows_nat): Use windows_target. Install x86
9504 specific target methods here.
9505
c1966e26
DE
95062014-03-10 Doug Evans <xdje42@gmail.com>
9507
9508 * guile/guile.c (call_initialize_gdb_module): New function.
9509 (initialize_guile): Replace call to scm_init_guile with call to
9510 scm_with_guile.
9511
023db19c
JB
95122014-03-10 Joel Brobecker <brobecker@adacore.com>
9513
9514 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9515 in call to TYPE_CODE macro.
9516
5ec18f2b
JG
95172014-03-10 Jerome Guitton <guitton@adacore.com>
9518
8668be63
JB
9519 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9520 Resolve tagged types to full view.
5ec18f2b 9521
7d03f2eb
HZ
95222014-03-10 Hui Zhu <hui@codesourcery.com>
9523
9524 * target.h (target_insert_breakpoint): Remove "hardware" from its
9525 comments.
9526
c5164cbc
DE
95272014-03-07 Doug Evans <dje@google.com>
9528
9529 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9530
c4a3fee2
DE
95312014-03-07 Doug Evans <dje@google.com>
9532
9533 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9534 Remove unused local comp_dir_attr. Assert exactly one of
9535 stub_comp_unit_die, stub_comp_dir is non-NULL.
9536
3156469c
JB
95372014-03-07 Joel Brobecker <brobecker@adacore.com>
9538
9539 * target.h (complete_target_initialization, add_target):
9540 Add comment.
9541
c1a7b7c6
PA
95422014-03-07 Pedro Alves <palves@redhat.com>
9543
9544 * go32-nat.c: Include inf-child.h.
9545 (go32_ops): Delete global.
9546 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9547 Delete methods.
9548 (go32_create_inferior): Push the passed in target pointer instead
9549 of referencing go32_ops.
9550 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9551 (go32_target): New function, based on init_go32_ops, but inherit
9552 inf_child_target.
9553 (_initialize_go32_nat): Use go32_target. Move parts of
9554 init_go32_ops here.
9555
d3c1a85f
JB
95562014-03-06 Joel Brobecker <brobecker@adacore.com>
9557
9558 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9559 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9560 SYMBOL_VALUE_ADDRESS.
9561 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9562
5fa1d40e
YQ
95632014-03-06 Yao Qi <yao@codesourcery.com>
9564
9565 * breakpoint.c (get_tracepoint_by_number): Remove argument
9566 optional_p. All callers updated. Adjust comments. Update
9567 output message.
9568 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9569
0c13193f
YQ
95702014-03-06 Yao Qi <yao@codesourcery.com>
9571
9572 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9573 early if get_number returns zero. Use 'p' instead of 'args'.
9574
2217da06
YQ
95752014-03-06 Yao Qi <yao@codesourcery.com>
9576
9577 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9578 message.
9579
cc3da688
YQ
95802014-03-06 Yao Qi <yao@codesourcery.com>
9581
9582 PR breakpoints/16508
9583 * tracepoint.c (check_trace_running): New function.
9584 (trace_find_command): Move code to check_trace_running and
9585 call check_trace_running.
9586 (trace_find_pc_command): Likewise.
9587 (trace_find_tracepoint_command): Likewise.
9588 (trace_find_line_command): Likewise.
9589 (trace_find_range_command): Likewise.
9590 * tracepoint.h (check_trace_running): Likewise.
9591 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9592
6a5f844b
YQ
95932014-03-06 Yao Qi <yao@codesourcery.com>
9594
9595 * target.h (struct target_ops) <to_traceframe_info>: Use
9596 TARGET_DEFAULT_NORETURN (tcomplain ()).
9597 * target-delegates.c: Regenerated.
9598
0f26cec1
PA
95992014-03-05 Pedro Alves <palves@redhat.com>
9600
9601 PR gdb/16575
9602 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9603 void. Update comment.
9604 (dcache_xfer_memory): Delete.
9605 (dcache_read_memory_partial): New, based on the read bits of
9606 dcache_xfer_memory.
9607 (dcache_update): Add status parameter. Use ULONGEST for len, and
9608 adjust. Discard cache lines if the reason for the update was
9609 error.
9610 * dcache.h (dcache_xfer_memory): Delete declaration.
9611 (dcache_read_memory_partial): New declaration.
9612 (dcache_update): Update prototype.
9613 * target.c (raw_memory_xfer_partial): Update the dcache here.
9614 (memory_xfer_partial_1): Don't handle dcache writes here.
9615
b2b255bd
MF
96162014-03-05 Mike Frysinger <vapier@gentoo.org>
9617
9618 * remote-sim.c (gdbsim_load): Add const to prog.
9619
5d9cf8a4
TT
96202014-03-03 Tom Tromey <tromey@redhat.com>
9621
9622 * elfread.c (probe_key): Change to bfd_data.
9623 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9624 now per-BFD, not per-objfile.
9625 * stap-probe.c (stap_probe_destroy): Update comment.
9626 (handle_stap_probe): Allocate on the per-BFD obstack.
9627
729662a5
TT
96282014-03-03 Tom Tromey <tromey@redhat.com>
9629
9630 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9631 * breakpoint.c (create_longjmp_master_breakpoint): Use
9632 get_probe_address.
9633 (add_location_to_breakpoint, bkpt_probe_insert_location)
9634 (bkpt_probe_remove_location): Update.
9635 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9636 * elfread.c (elf_symfile_relocate_probe): Remove.
9637 (elf_probe_fns): Update.
9638 (insert_exception_resume_breakpoint): Change type of "probe"
9639 parameter to bound_probe.
9640 (check_exception_resume): Update.
9641 * objfiles.c (objfile_relocate1): Don't relocate probes.
9642 * probe.c (bound_probe_s): New typedef.
9643 (parse_probes): Use get_probe_address. Set sal's objfile.
9644 (find_probe_by_pc): Return a bound_probe.
9645 (collect_probes): Return a VEC(bound_probe_s).
9646 (compare_probes): Update.
9647 (gen_ui_out_table_header_info): Change type of "probes"
9648 parameter. Update.
9649 (info_probes_for_ops): Update.
9650 (get_probe_address): New function.
9651 (probe_safe_evaluate_at_pc): Update.
9652 * probe.h (struct probe_ops) <get_probe_address>: New field.
9653 <set_semaphore, clear_semaphore>: Add objfile parameter.
9654 (struct probe) <objfile>: Remove field.
9655 <arch>: New field.
9656 <address>: Update comment.
9657 (struct bound_probe): New.
9658 (find_probe_by_pc): Return a bound_probe.
9659 (get_probe_address): Declare.
9660 * solib-svr4.c (struct probe_and_action) <address>: New field.
9661 (hash_probe_and_action, equal_probe_and_action): Update.
9662 (register_solib_event_probe): Add address parameter.
9663 (solib_event_probe_at): Update.
9664 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9665 get_probe_address.
9666 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9667 (stap_get_probe_address): New function.
9668 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9669 (compile_probe_arg): Update.
9670 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9671 address.
9672 (handle_stap_probe): Don't relocate the probe.
9673 (stap_relocate): Remove.
9674 (stap_gen_info_probes_table_values): Update.
9675 (stap_probe_ops): Remove stap_relocate.
9676 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9677 (debug_sym_probe_fns): Update.
9678 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9679 * symtab.c (init_sal): Use memset.
9680 * symtab.h (struct symtab_and_line) <objfile>: New field.
9681 * tracepoint.c (start_tracing, stop_tracing): Update.
9682
ff887920
TT
96832014-03-03 Tom Tromey <tromey@redhat.com>
9684
9685 * probe.h (parse_probes, find_probe_by_pc)
9686 (find_probes_in_objfile): Fix comments.
9687
f0407826
DE
96882014-03-02 Doug Evans <xdje42@gmail.com>
9689
9690 * infrun.c (handle_signal_stop): Replace test for
9691 TARGET_WAITKIND_STOPPED with an assert.
9692
35e6a711
DE
96932014-03-02 Doug Evans <xdje42@gmail.com>
9694
9695 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9696
667f9d0b
DE
96972014-03-02 Doug Evans <xdje42@gmail.com>
9698
9699 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9700
dc92ace0
MK
97012014-03-01 Mark Kettenis <kettenis@gnu.org>
9702
9703 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9704
a900370f
MK
97052014-03-01 Mark Kettenis <kettenis@gnu.org>
9706
9707 * i386obsd-nat.c: Include "obsd-nat.h".
9708 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9709 add_target.
9710 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9711
b72a7981
MK
97122014-03-01 Mark Kettenis <kettenis@gnu.org>
9713
9714 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9715
96c70aba
MK
97162014-03-01 Mark Kettenis <kettenis@gnu.org>
9717
9718 * mips64obsd-nat.c: Include "obsd-nath".
9719 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9720 add_target
9721 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9722
874a80af
MK
97232014-03-01 Mark Kettenis <kettenis@gnu.org>
9724
8fd408f1
MK
9725 * amd64obsd-nat.c: Include "obsd-nat,h.
9726 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9727 add_target.
874a80af
MK
9728 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9729
9cf95373
SC
97302014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9731
9732 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9733 (find_overload_match): Update call to find_oload_champ.
9734 (find_oload_champ_namespace_loop): Likewise
9735
863e4da4
MK
97362014-02-28 Mark Kettenis <kettenis@gnu.org>
9737
025cac40
MK
9738 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9739
1ed586ce
MK
9740 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9741 * config/sparc/obsd64.mh: New file.
9742 * sparc64obsd-nat.c: New file.
9743
863e4da4
MK
9744 * obsd-nat.h: New file.
9745 * obsd-nat.c: New file.
9746 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9747 (ALLDEPFILES): Add obsd-nat.c.
9748
89de4da4
TT
97492014-02-28 Tom Tromey <tromey@redhat.com>
9750
9751 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9752 * cli-out.h (cli_ui_out_impl): Now const.
9753 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9754 * ui-out.c (struct ui_out) <impl>: Now const.
9755 (default_ui_out_impl): Now const.
9756 (ui_out_new): Make 'impl' parameter const.
9757 * ui-out.h (ui_out_new): Update.
9758
c725e7b6
MK
97592014-02-27 Mark Kettenis <kettenis@gnu.org>
9760
9761 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9762
670b46b3
MK
97632014-02-27 Mark Kettenis <kettenis@gnu.org>
9764
9765 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9766
c91550fc
JK
97672014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9768
9769 Additional PR 8882 fix.
9770 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9771
2fa0369e
PA
97722014-02-27 Pedro Alves <palves@redhat.com>
9773
9774 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9775 isn't set.
9776
d632a097
PA
97772014-02-27 Pedro Alves <palves@redhat.com>
9778
9779 PR 12702
9780 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9781 * nat/linux-waitpid.c: Include string.h.
9782 (status_to_str): Moved here and made extern.
9783 * nat/linux-waitpid.h (status_to_str): New declaration.
9784
2ebd5a35
HZ
97852014-02-27 Hui Zhu <hui@codesourcery.com>
9786
9787 PR 12702
9788 * infrun.c (ptid_match): Move ...
9789 * common/ptid.c (ptid_match): ... here.
9790 * inferior.h (ptid_match): Move ...
9791 * common/ptid.h (ptid_match): ... here.
9792
3cdd631f
MK
97932014-02-27 Mark Kettenis <kettenis@gnu.org>
9794
9795 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9796 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9797 gdb_target_obs.
9798
bee30a64
MK
97992014-02-27 Mark Kettenis <kettenis@gnu.org>
9800
9801 * obsd-tdep.c (obsd_auxv_parse): New function.
9802 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9803
9804 * gdbarch.sh (auxv_parse): New.
9805 * gdbarch.h: Regenerated.
9806 * gdbarch.c: Regenerated.
9807 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9808
7a5a839f
LC
98092014-02-26 Ludovic Courtès <ludo@gnu.org>
9810
9811 * guile/scm-value.c (gdbscm_history_append_x): New function.
9812 (value_functions): Add it.
9813
31aa7e4e
JB
98142014-02-27 Joel Brobecker <brobecker@adacore.com>
9815
9816 * dwarf2read.c (attr_value_as_address): New function.
9817 (dwarf2_find_base_address, read_call_site_scope): Use
9818 attr_value_as_address in place of DW_ADDR.
9819 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9820 the low and high addresses. Slight rework of the handling
9821 of the high pc being a constant form, and limit it to
9822 DWARF verson 4 or higher.
9823 (dwarf2_record_block_ranges): Likewise.
9824 (read_partial_die): Likewise.
9825 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9826
9b333ba3
TT
98272014-02-26 Tom Tromey <tromey@redhat.com>
9828
9829 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9830
5f6cac40
TT
98312014-02-26 Tom Tromey <tromey@redhat.com>
9832
9833 * elfread.c (elf_read_minimal_symbols): Return early if
9834 minimal symbols have already been read. Add "ei" parameter.
9835 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9836 * minsyms.c (prim_record_minimal_symbol_full): Update.
9837 * objfiles.h (struct objstats) <n_minsyms>: Move...
9838 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9839 * symmisc.c (print_objfile_statistics): Update.
9840
2750ef27
TT
98412014-02-26 Tom Tromey <tromey@redhat.com>
9842
9843 * elfread.c (elf_read_minimal_symbols): New function, from
9844 elf_symfile_read.
9845 (elf_symfile_read): Call it.
9846
34643a32
TT
98472014-02-26 Tom Tromey <tromey@redhat.com>
9848
9849 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9850 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9851 (lookup_minimal_symbol_solib_trampoline)
9852 (lookup_minimal_symbol_by_pc_section_1)
9853 (lookup_minimal_symbol_and_objfile): Update.
9854 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9855 Don't allocate a minimal symbol if minsyms have already been read.
9856 (build_minimal_symbol_hash_tables): Update.
9857 (install_minimal_symbols): Do nothing if minsyms already read.
9858 Use the per-BFD obstack.
9859 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9860 * objfiles.c (allocate_objfile): Call
9861 terminate_minimal_symbol_table later.
9862 (have_minimal_symbols): Update.
9863 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9864 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9865 Move from struct objfile.
9866 <minsyms_read>: New field.
9867 (struct objfile) <msymbols, minimal_symbol_count,
9868 msymbol_hash, msymbol_demangled_hash>: Move.
9869 (ALL_OBJFILE_MSYMBOLS): Update.
9870 * symfile.c (read_symbols): Set minsyms_read.
9871 (reread_symbols): Update.
9872 * symmisc.c (dump_objfile, dump_msymbols): Update.
9873
2273f0ac
TT
98742014-02-26 Tom Tromey <tromey@redhat.com>
9875
9876 * minsyms.c (msymbols_sort): Remove.
9877 * minsyms.h (msymbols_sort): Remove.
9878 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9879 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9880 * elfread.c (elf_symtab_read): Don't add section offsets.
9881 * xcoffread.c (record_minimal_symbol): Don't add section offset
9882 to minimal symbol address.
9883 * somread.c (text_offset, data_offset): Remove.
9884 (som_symtab_read): Don't add section offsets to minimal symbol
9885 addresses.
9886 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9887 Don't add section offsets to minimal symbols.
9888 * coffread.c (coff_symtab_read): Don't add section offsets
9889 to minimal symbol addresses.
9890 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9891 to minimal symbol addresses.
9892 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9893 section offset to minimal symbol addresses.
9894 * mdebugread.c (parse_partial_symbols): Don't add section
9895 offset to minimal symbol addresses.
9896 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9897 offset to minimal symbol addresses.
9898
77e371c0
TT
98992014-02-26 Tom Tromey <tromey@redhat.com>
9900
9901 * ada-lang.c (ada_main_name): Update.
9902 (ada_add_standard_exceptions): Update.
9903 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9904 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9905 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9906 * auxv.c (ld_so_xfer_auxv): Update.
9907 * avr-tdep.c (avr_scan_prologue): Update.
9908 * ax-gdb.c (gen_var_ref): Update.
9909 * blockframe.c (get_pc_function_start)
9910 (find_pc_partial_function_gnu_ifunc): Update.
9911 * breakpoint.c (create_overlay_event_breakpoint)
9912 (create_longjmp_master_breakpoint)
9913 (create_std_terminate_master_breakpoint)
9914 (create_exception_master_breakpoint): Update.
9915 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9916 * c-valprint.c (c_val_print): Update.
9917 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9918 * common/agent.c (agent_look_up_symbols): Update.
9919 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9920 * dwarf2loc.c (call_site_to_target_addr): Update.
9921 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9922 * elfread.c (elf_gnu_ifunc_record_cache)
9923 (elf_gnu_ifunc_resolve_by_got): Update.
9924 * findvar.c (default_read_var_value): Update.
9925 * frame.c (inside_main_func): Update.
9926 * frv-tdep.c (frv_frame_this_id): Update.
9927 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9928 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9929 Update.
9930 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9931 (hppa_hpux_find_dummy_bpaddr): Update.
9932 * hppa-tdep.c (hppa_symbol_address): Update.
9933 * infcmd.c (until_next_command): Update.
9934 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9935 Update.
9936 * linespec.c (minsym_found, add_minsym): Update.
9937 * linux-nat.c (get_signo): Update.
9938 * linux-thread-db.c (inferior_has_bug): Update.
9939 * m32c-tdep.c (m32c_return_value)
9940 (m32c_m16c_address_to_pointer): Update.
9941 * m32r-tdep.c (m32r_frame_this_id): Update.
9942 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9943 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9944 * maint.c (maintenance_translate_address): Update.
9945 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9946 (frob_address): New function.
9947 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9948 frob_address. Rename parameter to "pc_in".
9949 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9950 addresses.
9951 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9952 Update.
9953 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9954 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9955 * objc-lang.c (find_objc_msgsend): Update.
9956 * objfiles.c (objfile_relocate1): Update.
9957 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9958 * p-valprint.c (pascal_val_print): Update.
9959 * parse.c (write_exp_msymbol): Update.
9960 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9961 (ppc_elfv2_skip_entrypoint): Update.
9962 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9963 * printcmd.c (build_address_symbolic, msym_info)
9964 (address_info): Update.
9965 * proc-service.c (ps_pglobal_lookup): Update.
9966 * psymtab.c (find_pc_sect_psymtab_closer)
9967 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9968 Change msymbol parameter to bound_minimal_symbol.
9969 * ravenscar-thread.c (get_running_thread_id): Update.
9970 * remote.c (remote_check_symbols): Update.
9971 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9972 address.
9973 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9974 * solib-dsbt.c (lm_base): Update.
9975 * solib-frv.c (lm_base, main_got): Update.
9976 * solib-irix.c (locate_base): Update.
9977 * solib-som.c (som_solib_create_inferior_hook)
9978 (link_map_start): Update.
9979 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9980 * solib-svr4.c (elf_locate_base, enable_break): Update.
9981 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9982 (flush_ea_cache): Update.
9983 * stabsread.c (define_symbol, scan_file_globals): Update.
9984 * stack.c (find_frame_funname): Update.
9985 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9986 (debug_qf_find_pc_sect_symtab): Update.
9987 * symfile.c (simple_read_overlay_table)
9988 (simple_overlay_update): Update.
9989 * symfile.h (struct quick_symbol_functions)
9990 <find_pc_sect_symtab>: Change type of msymbol to
9991 bound_minimal_symbol.
9992 * symmisc.c (dump_msymbols): Update.
9993 * symtab.c (find_pc_sect_symtab_via_partial)
9994 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9995 (search_symbols, print_msymbol_info): Update.
9996 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9997 (MSYMBOL_VALUE_ADDRESS): Redefine.
9998 (BMSYMBOL_VALUE_ADDRESS): New macro.
9999 * tracepoint.c (scope_info): Update.
10000 * tui/tui-disasm.c (tui_find_disassembly_address)
10001 (tui_get_begin_asm_address): Update.
10002 * valops.c (find_function_in_inferior): Update.
10003 * value.c (value_static_field, value_fn_field): Update.
10004
3b7344d5
TT
100052014-02-26 Tom Tromey <tromey@redhat.com>
10006
10007 * ada-lang.c (ada_update_initial_language): Update.
10008 (ada_main_name, ada_has_this_exception_support): Update.
10009 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10010 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10011 * arm-tdep.c (arm_skip_stub): Update.
10012 * auxv.c (ld_so_xfer_auxv): Update.
10013 * avr-tdep.c (avr_scan_prologue): Update.
10014 * ax-gdb.c (gen_var_ref): Update.
10015 * breakpoint.c (struct breakpoint_objfile_data)
10016 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10017 type to bound_minimal_symbol.
10018 (create_overlay_event_breakpoint)
10019 (create_longjmp_master_breakpoint)
10020 (create_std_terminate_master_breakpoint)
10021 (create_exception_master_breakpoint): Update.
10022 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10023 * c-exp.y (classify_name): Update.
10024 * coffread.c (coff_symfile_read): Update.
10025 * common/agent.c (agent_look_up_symbols): Update.
10026 * d-lang.c (d_main_name): Update.
10027 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10028 * dec-thread.c (enable_dec_thread): Update.
10029 * dwarf2loc.c (call_site_to_target_addr): Update.
10030 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10031 * eval.c (evaluate_subexp_standard): Update.
10032 * findvar.c (struct minsym_lookup_data) <result>: Change type
10033 to bound_minimal_symbol.
10034 <objfile>: Remove.
10035 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10036 * frame.c (inside_main_func): Update.
10037 * frv-tdep.c (frv_frame_this_id): Update.
10038 * gcore.c (call_target_sbrk): Update.
10039 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10040 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10041 Update.
10042 * go-lang.c (go_main_name): Update.
10043 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10044 (hppa_hpux_find_import_stub_for_addr): Update.
10045 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10046 Update. Change return type.
10047 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10048 type.
10049 * jit.c (jit_breakpoint_re_set_internal): Update.
10050 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10051 Update.
10052 * linux-nat.c (get_signo): Update.
10053 * linux-thread-db.c (inferior_has_bug): Update
10054 * m32c-tdep.c (m32c_return_value)
10055 (m32c_m16c_address_to_pointer): Update.
10056 * m32r-tdep.c (m32r_frame_this_id): Update.
10057 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10058 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10059 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10060 lookup_minimal_symbol. Change return type.
10061 (lookup_minimal_symbol): Remove.
10062 (lookup_bound_minimal_symbol): Update.
10063 (lookup_minimal_symbol_text): Change return type.
10064 (lookup_minimal_symbol_solib_trampoline): Change return type.
10065 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10066 (lookup_minimal_symbol_solib_trampoline): Change return type.
10067 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10068 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10069 (value_nsstring, find_imps): Update.
10070 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10071 * p-lang.c (pascal_main_name): Update.
10072 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10073 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10074 * proc-service.c (ps_pglobal_lookup): Update.
10075 * ravenscar-thread.c (get_running_thread_msymbol): Change
10076 return type.
10077 (has_ravenscar_runtime, get_running_thread_id): Update.
10078 * remote.c (remote_check_symbols): Update.
10079 * sol-thread.c (ps_pglobal_lookup): Update.
10080 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10081 * solib-dsbt.c (lm_base): Update.
10082 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10083 Update.
10084 * solib-irix.c (locate_base): Update.
10085 * solib-som.c (som_solib_create_inferior_hook)
10086 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10087 Update.
10088 * solib-spu.c (spu_enable_break): Update.
10089 * solib-svr4.c (elf_locate_base, enable_break): Update.
10090 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10091 (flush_ea_cache): Update.
10092 * stabsread.c (define_symbol): Update.
10093 * symfile.c (simple_read_overlay_table): Update.
10094 * symtab.c (find_pc_sect_line): Update.
10095 * tracepoint.c (scope_info): Update.
10096 * tui-disasm.c (tui_get_begin_asm_address): Update.
10097 * value.c (value_static_field): Update.
10098
40c1a007
TT
100992014-02-26 Tom Tromey <tromey@redhat.com>
10100
10101 * minsyms.c (prim_record_minimal_symbol_full): Use
10102 SET_MSYMBOL_VALUE_ADDRESS.
10103 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10104 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10105 SET_MSYMBOL_VALUE_ADDRESS.
10106 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10107 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10108
efd66ac6
TT
101092014-02-26 Tom Tromey <tromey@redhat.com>
10110
10111 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10112 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10113 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10114 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10115 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10116 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10117 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10118 * ada-lang.c (ada_main_name): Update.
10119 (ada_lookup_simple_minsym): Update.
10120 (ada_make_symbol_completion_list): Update.
10121 (ada_add_standard_exceptions): Update.
10122 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10123 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10124 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10125 * arm-tdep.c (skip_prologue_function): Update.
10126 (arm_skip_stack_protector, arm_skip_stub): Update.
10127 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10128 (arm_wince_skip_main_prologue): Update.
10129 * auxv.c (ld_so_xfer_auxv): Update.
10130 * avr-tdep.c (avr_scan_prologue): Update.
10131 * ax-gdb.c (gen_var_ref): Update.
10132 * block.c (call_site_for_pc): Update.
10133 * blockframe.c (get_pc_function_start): Update.
10134 (find_pc_partial_function_gnu_ifunc): Update.
10135 * breakpoint.c (create_overlay_event_breakpoint): Update.
10136 (create_longjmp_master_breakpoint): Update.
10137 (create_std_terminate_master_breakpoint): Update.
10138 (create_exception_master_breakpoint): Update.
10139 (resolve_sal_pc): Update.
10140 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10141 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10142 Update.
10143 * c-valprint.c (c_val_print): Update.
10144 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10145 * coffread.c (coff_symfile_read): Update.
10146 * common/agent.c (agent_look_up_symbols): Update.
10147 * dbxread.c (find_stab_function_addr): Update.
10148 (end_psymtab): Update.
10149 * dwarf2loc.c (call_site_to_target_addr): Update.
10150 (func_verify_no_selftailcall): Update.
10151 (tailcall_dump): Update.
10152 (call_site_find_chain_1): Update.
10153 (dwarf_expr_reg_to_entry_parameter): Update.
10154 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10155 (elf_gnu_ifunc_resolve_by_got): Update.
10156 * f-valprint.c (info_common_command): Update.
10157 * findvar.c (read_var_value): Update.
10158 * frame.c (get_prev_frame_1): Update.
10159 (inside_main_func): Update.
10160 * frv-tdep.c (frv_skip_main_prologue): Update.
10161 (frv_frame_this_id): Update.
10162 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10163 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10164 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10165 (gnuv3_skip_trampoline): Update.
10166 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10167 (hppa64_hpux_in_solib_call_trampoline): Update.
10168 (hppa_hpux_skip_trampoline_code): Update.
10169 (hppa64_hpux_search_dummy_call_sequence): Update.
10170 (hppa_hpux_find_import_stub_for_addr): Update.
10171 (hppa_hpux_find_dummy_bpaddr): Update.
10172 * hppa-tdep.c (hppa_symbol_address)
10173 (hppa_lookup_stub_minimal_symbol): Update.
10174 * i386-tdep.c (i386_skip_main_prologue): Update.
10175 (i386_pe_skip_trampoline_code): Update.
10176 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10177 * infcall.c (get_function_name): Update.
10178 * infcmd.c (until_next_command): Update.
10179 * jit.c (jit_breakpoint_re_set_internal): Update.
10180 (jit_inferior_init): Update.
10181 * linespec.c (minsym_found): Update.
10182 (add_minsym): Update.
10183 * linux-fork.c (info_checkpoints_command): Update.
10184 * linux-nat.c (get_signo): Update.
10185 * linux-thread-db.c (inferior_has_bug): Update.
10186 * m32c-tdep.c (m32c_return_value): Update.
10187 (m32c_m16c_address_to_pointer): Update.
10188 (m32c_m16c_pointer_to_address): Update.
10189 * m32r-tdep.c (m32r_frame_this_id): Update.
10190 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10191 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10192 * maint.c (maintenance_translate_address): Update.
10193 * minsyms.c (add_minsym_to_hash_table): Update.
10194 (add_minsym_to_demangled_hash_table): Update.
10195 (msymbol_objfile): Update.
10196 (lookup_minimal_symbol): Update.
10197 (iterate_over_minimal_symbols): Update.
10198 (lookup_minimal_symbol_text): Update.
10199 (lookup_minimal_symbol_by_pc_name): Update.
10200 (lookup_minimal_symbol_solib_trampoline): Update.
10201 (lookup_minimal_symbol_by_pc_section_1): Update.
10202 (lookup_minimal_symbol_and_objfile): Update.
10203 (prim_record_minimal_symbol_full): Update.
10204 (compare_minimal_symbols): Update.
10205 (compact_minimal_symbols): Update.
10206 (build_minimal_symbol_hash_tables): Update.
10207 (install_minimal_symbols): Update.
10208 (terminate_minimal_symbol_table): Update.
10209 (find_solib_trampoline_target): Update.
10210 (minimal_symbol_upper_bound): Update.
10211 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10212 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10213 (mips_skip_pic_trampoline_code): Update.
10214 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10215 * objc-lang.c (selectors_info): Update.
10216 (classes_info): Update.
10217 (find_methods): Update.
10218 (find_imps): Update.
10219 (find_objc_msgsend): Update.
10220 * objfiles.c (objfile_relocate1): Update.
10221 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10222 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10223 * p-valprint.c (pascal_val_print): Update.
10224 * parse.c (write_exp_msymbol): Update.
10225 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10226 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10227 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10228 * printcmd.c (build_address_symbolic): Update.
10229 (sym_info): Update.
10230 (address_info): Update.
10231 * proc-service.c (ps_pglobal_lookup): Update.
10232 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10233 (find_pc_sect_psymtab): Update.
10234 * python/py-framefilter.c (py_print_frame): Update.
10235 * ravenscar-thread.c (get_running_thread_id): Update.
10236 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10237 Update.
10238 * remote.c (remote_check_symbols): Update.
10239 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10240 (rs6000_skip_trampoline_code): Update.
10241 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10242 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10243 * solib-dsbt.c (lm_base): Update.
10244 * solib-frv.c (lm_base): Update.
10245 (main_got): Update.
10246 * solib-irix.c (locate_base): Update.
10247 * solib-som.c (som_solib_create_inferior_hook): Update.
10248 (som_solib_desire_dynamic_linker_symbols): Update.
10249 (link_map_start): Update.
10250 * solib-spu.c (spu_enable_break): Update.
10251 (ocl_enable_break): Update.
10252 * solib-svr4.c (elf_locate_base): Update.
10253 (enable_break): Update.
10254 * spu-tdep.c (spu_get_overlay_table): Update.
10255 (spu_catch_start): Update.
10256 (flush_ea_cache): Update.
10257 * stabsread.c (define_symbol): Update.
10258 (scan_file_globals): Update.
10259 * stack.c (find_frame_funname): Update.
10260 (frame_info): Update.
10261 * symfile.c (simple_read_overlay_table): Update.
10262 (simple_overlay_update): Update.
10263 * symmisc.c (dump_msymbols): Update.
10264 * symtab.c (fixup_section): Update.
10265 (find_pc_sect_line): Update.
10266 (skip_prologue_sal): Update.
10267 (search_symbols): Update.
10268 (print_msymbol_info): Update.
10269 (rbreak_command): Update.
10270 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10271 (completion_list_objc_symbol): Update.
10272 (default_make_symbol_completion_list_break_on): Update.
10273 * tracepoint.c (scope_info): Update.
10274 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10275 (tui_get_begin_asm_address): Update.
10276 * valops.c (find_function_in_inferior): Update.
10277 * value.c (value_static_field): Update.
10278 (value_fn_field): Update.
10279
50e65b17
TT
102802014-02-26 Tom Tromey <tromey@redhat.com>
10281
10282 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10283 bound minimal symbols. Move code that knows about minsym
10284 table layout...
10285 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10286 function.
10287 * minsyms.h (minimal_symbol_upper_bound): Declare.
10288 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10289 minimal_symbol_upper_bound.
10290
1b588015
JB
102912014-02-27 Joel Brobecker <brobecker@adacore.com>
10292
10293 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10294 Use the type's name if its basic type does not have a tag.
10295
dbb9c2b1
JB
102962014-02-27 Joel Brobecker <brobecker@adacore.com>
10297
10298 * dwarf2read.c (read_subrange_type): Add comment.
10299
55426c9d
JB
103002014-02-27 Joel Brobecker <brobecker@adacore.com>
10301
10302 * dwarf2read.c (update_enumeration_type_from_children): New
10303 function, mostly extracted from process_structure_scope.
10304 (read_enumeration_type): Call update_enumeration_type_from_children.
10305 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10306 and flag_flag_enum fields.
10307
f2fce0ca
PA
103082014-02-26 Pedro Alves <palves@redhat.com>
10309
10310 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10311 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10312 to_xfer_partial method.
10313
7a44e40e
PA
103142014-02-26 Pedro Alves <palves@redhat.com>
10315
10316 * target.c (complete_target_initialization): Don't install
10317 default_xfer_partial as to_xfer_partial hook.
10318 (nomemory): Delete.
10319 (update_current_target): Don't INHERIT nor de_fault
10320 deprecated_xfer_memory. Delete de_fault macro.
10321 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10322 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10323 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10324 field.
10325
bd265cd0
PA
103262014-02-26 Pedro Alves <palves@redhat.com>
10327
10328 * go32-nat.c (my_write_child): New function.
10329 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10330 (go32_xfer_partial): New function.
10331 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10332 Instead install a to_xfer_partial hook.
10333
9d46c4e5
PA
103342014-02-26 Pedro Alves <palves@redhat.com>
10335
10336 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10337 to_xfer_partial helper. Rewrite.
10338 (procfs_xfer_partial): New function.
10339 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10340 Install a to_xfer_partial hook.
10341
a1583b1f
PA
103422014-02-26 Pedro Alves <palves@redhat.com>
10343
10344 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10345 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10346 (m32r_xfer_partial): New function.
10347 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10348 Install a to_xfer_partial hook.
10349
6df1b29f
PA
103502014-02-26 Pedro Alves <palves@redhat.com>
10351
10352 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10353 helper.
10354 (mips_xfer_partial): New function.
10355 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10356 hook. Install a to_xfer_partial hook.
10357
dc53a7ad
JB
103582014-02-26 Joel Brobecker <brobecker@adacore.com>
10359
10360 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10361 * gdbtypes.c (create_array_type_with_stride): New function,
10362 renaming create_array_type, but with an added parameter
10363 called "bit_stride".
10364 (create_array_type): Re-implement using
10365 create_array_type_with_stride.
10366 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10367 and DW_AT_bit_stride attributes.
10368
12ab52e9
PA
103692014-02-26 Pedro Alves <palves@redhat.com>
10370
10371 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10372 task-specific breakpoints.
10373
d16461ae
PA
103742014-02-25 Pedro Alves <palves@redhat.com>
10375
10376 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10377 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10378
a8b16220
SS
103792014-02-25 Stan Shebs <stan@codesourcery.com>
10380
10381 * defs.h: Annotate comments for Doxygen.
10382
b9e795ee
TT
103832014-02-25 Tom Tromey <tromey@redhat.com>
10384
10385 * target.h (target_ignore): Don't declare.
10386 * target.c (target_ignore): Remove.
10387
849c862e
JK
103882014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10389
10390 PR gdb/16626
10391 * auto-load.c (auto_load_objfile_script_1): Change filename to
10392 debugfile.
10393
475109d8
JB
103942014-02-25 Joel Brobecker <brobecker@adacore.com>
10395
10396 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10397 documentation. Adjust prototype to match the target_ops
10398 to_xfer_partial method. Adjust implementation accordingly.
10399
e186c3bd
HZ
104002014-02-25 Hui Zhu <hui@codesourcery.com>
10401
10402 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10403 to_traceframe_info.
10404
6d451942
KB
104052014-02-25 Kevin Buettner <kevinb@redhat.com>
10406
041ab8b4 10407 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10408 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10409 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10410 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10411 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10412 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10413 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10414 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10415 New constants.
10416 (rl78_register_type): Use a data pointer type for SP and
10417 new pseudo registers mentioned above. Use a 16 bit integer
10418 type for all other register pairs.
10419 (rl78_register_name, rl78_g10_register_name): Update for
10420 new pseudo registers.
10421 (rl78_pseudo_register_read): Likewise.
10422 (rl78_pseudo_register_write): Likewise.
10423 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10424 to the newly added pseudo registers.
10425
eddf0bae
DE
104262014-02-24 Doug Evans <dje@google.com>
10427
10428 * value.c (record_latest_value): Fix comment.
10429 * printcmd.c (print_command_1): Remove code to handle -1 return from
10430 record_latest_value.
10431
e96027e0
PA
104322014-02-24 Pedro Alves <palves@redhat.com>
10433
10434 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10435 deprecated_xfer_memory hook.
10436 (procfs_xfer_partial): Call procfs_xfer_memory instead
10437 of the deprecated_xfer_memory target hook.
10438 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10439 helper.
10440
0837c976
YZ
104412014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10442
10443 * windows-nat.c (windows_xfer_shared_libraries): Return
10444 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10445 requested object is TARGET_OBJECT_LIBRARIES.
10446
bc113b4e
YQ
104472014-02-24 Yao Qi <yao@codesourcery.com>
10448
10449 * target.h (enum target_xfer_status)
10450 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10451 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10452 explicitly. New.
10453 * corefile.c (memory_error_message): User updated.
10454 * exec.c (section_table_read_available_memory): Likewise.
10455 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10456 * target.c (target_xfer_status_to_string): Likewise.
10457 (raw_memory_xfer_partial): Likewise.
10458 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10459 * valops.c (read_value_memory): Likewise.
10460 * exec.h: Update comments.
10461
01cb8804
YQ
104622014-02-24 Yao Qi <yao@codesourcery.com>
10463
10464 * target.c (target_xfer_status_to_string): Rename argument err
10465 to status.
10466 * target.h (target_xfer_status_to_string): Update declaration.
10467 Replace target_xfer_error_to_string with
10468 target_xfer_status_to_string in comment.
10469
93063aa6
YQ
104702014-02-24 Yao Qi <yao@codesourcery.com>
10471
10472 * mips-linux-nat.c (super_close): Update its type.
10473 (mips_linux_close): Pass 'self' to super_close.
10474
5c328c05
YQ
104752014-02-24 Yao Qi <yao@codesourcery.com>
10476
10477 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10478 * corefile.c (read_memory): Adjusted.
10479 * target.c (target_write_with_progress): Adjusted.
10480
f73023dd
YQ
104812014-02-23 Yao Qi <yao@codesourcery.com>
10482
10483 Revert two patches:
10484
10485 2013-10-25 Yao Qi <yao@codesourcery.com>
10486
10487 * remote.c (remote_traceframe_info): Return early if
10488 traceframe is not selected.
10489
10490 2013-07-19 Yao Qi <yao@codesourcery.com>
10491
10492 * target.c (update_current_target): Change the default action
10493 of 'to_traceframe_info' from tcomplain to return_zero.
10494 * target.h (struct target_ops) <to_traceframe_info>: Add more
10495 comments.
10496
5a2eb0ef
YQ
104972014-02-23 Yao Qi <yao@codesourcery.com>
10498
10499 * valops.c (read_value_memory): Rewrite it. Call
10500 target_xfer_partial in a loop.
10501 * exec.h (section_table_available_memory): Remove declaration.
10502 Move comments to ...
10503 * exec.c (section_table_available_memory): ... here. Make it
10504 static.
10505
1ee79381
YQ
105062014-02-23 Yao Qi <yao@codesourcery.com>
10507
10508 * exec.c (section_table_read_available_memory): New function.
10509 * exec.h (section_table_read_available_memory): Declare.
10510 * ctf.c (ctf_xfer_partial): Call
10511 section_table_read_available_memory.
10512 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10513
1ca49d37
YQ
105142014-02-23 Yao Qi <yao@codesourcery.com>
10515
10516 * ctf.c (ctf_xfer_partial): Move code to ...
10517 * exec.c (exec_read_partial_read_only): ... it. New function.
10518 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10519 * tracefile.c: Include "exec.h".
10520 * exec.h (exec_read_partial_read_only): Declare.
10521
a283690e
YQ
105222014-02-23 Yao Qi <yao@codesourcery.com>
10523
10524 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10525 (tfile_has_memory): Remove.
10526 (init_tfile_ops): Don't set fields to_has_all_memory and
10527 to_has_memory of tfile_ops.
10528 * tracefile.c (tracefile_has_all_memory): New function.
10529 (tracefile_has_memory): New function.
10530 (init_tracefile_ops): Initialize fields to_has_all_memory and
10531 to_has_memory of 'ops'.
10532
12e03cd0
YQ
105332014-02-23 Yao Qi <yao@codesourcery.com>
10534
10535 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10536 (ctf_thread_alive, ctf_get_trace_status): Remove.
10537 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10538 init_tracefile_ops.
10539 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10540 (tfile_has_stack, tfile_has_registers): Remove.
10541 (tfile_thread_alive): Remove.
10542 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10543 init_tracefile_ops.
10544 * tracefile.c (tracefile_has_stack): New function.
10545 (tracefile_has_registers): New function.
10546 (tracefile_thread_alive): New function.
10547 (tracefile_get_trace_status): New function.
10548 (init_tracefile_ops): New function.
10549 * tracefile.h (init_tracefile_ops): Declare.
10550
11395323
YQ
105512014-02-23 Yao Qi <yao@codesourcery.com>
10552
10553 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10554 (O_LARGEFILE): Likewise.
10555 (tfile_ops): Likewise.
10556 (TRACE_HEADER_SIZE): Likewise.
10557 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10558 (cur_data_size): Likewise.
10559 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10560 (tfile_close, tfile_files_info): Likewise.
10561 (tfile_get_trace_status): Likewise.
10562 (tfile_get_tracepoint_status): Likewise.
10563 (tfile_get_traceframe_address): Likewise.
10564 (tfile_trace_find, match_blocktype): Likewise.
10565 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10566 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10567 (tfile_get_trace_state_variable_value): Likewise.
10568 (tfile_has_all_memory, tfile_has_memory): Likewise.
10569 (tfile_has_stack, tfile_has_registers): Likewise.
10570 (tfile_thread_alive, build_traceframe_info): Likewise.
10571 (tfile_traceframe_info, init_tfile_ops): Likewise.
10572 (_initialize_tracepoint): Don't call init_tfile_ops
10573 and add_target_with_completer.
10574 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10575 exec.h, completer.h and filenames.h.
10576 (_initialize_tracefile_tfile): New function.
10577
7951c4eb
YQ
105782014-02-23 Yao Qi <yao@codesourcery.com>
10579
10580 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10581 tracefile-tfile.o.
10582 (HFILES_NO_SRCDIR): Add tracefile.h.
10583 * ctf.c: Include "tracefile.h".
10584 * tracefile.h: New file.
10585 * tracefile.c: New file
10586 * tracefile-tfile.c: New file.
10587 * tracepoint.c: Include "tracefile.h".
10588 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10589 (stop_reason_names): Add const.
10590 (trace_file_writer_xfree): Move it to tracefile.c.
10591 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10592 (trace_save_ctf): Likewise.
10593 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10594 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10595 (tfile_write_header, tfile_write_regblock_type): Likewise.
10596 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10597 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10598 (tfile_write_raw_data, tfile_end): Likewise.
10599 (tfile_trace_file_writer_new): Likewise.
10600 (free_uploaded_tp): Make it extern.
10601 (free_uploaded_tsv): Make it extern.
10602 (_initialize_tracepoint): Move code to register command 'tsave'
10603 to tracefile.c.
10604 * tracepoint.h (stop_reason_names): Declare.
10605 (struct trace_frame_write_ops): Move it to tracefile.h.
10606 (struct trace_file_write_ops): Likewise.
10607 (struct trace_file_writer): Likewise.
10608 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10609
184cd072
JK
106102014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10611
10612 PR gdb/16594
10613 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10614 process name.
10615 (get_cores_used_by_process): New parameter num_cores, use it.
10616 (linux_xfer_osdata_processes): Pass num_cores to it.
10617 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10618 process name.
10619
c63528fc
AK
106202014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10621
10622 * target.c (memory_xfer_partial): Fix length arg in call to
10623 breakpoint_xfer_memory.
10624
d7b30f67
SDJ
106252014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10626
10627 PR tdep/16397
10628 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10629 number comes after the + or - signs. Adjust length of register
10630 name to be extracted.
10631
8838afaf
TT
106322014-02-20 Tom Tromey <tromey@redhat.com>
10633
10634 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10635 (ada_varobj_ops): Mark "extern".
10636
05227d14
TT
106372014-02-20 Tom Tromey <tromey@redhat.com>
10638
10639 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10640
1254eefc
DE
106412014-02-20 Doug Evans <xdje42@gmail.com>
10642
10643 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10644 All callers updated.
10645 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10646 All callers updated.
10647 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10648 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10649
adde2bff
DE
106502014-02-20 lin zuojian <manjian2006@gmail.com>
10651 Joel Brobecker <brobecker@adacore.com>
10652 Doug Evans <xdje42@gmail.com>
10653
10654 PR symtab/16581
10655 * dwarf2read.c (struct die_info): New member in_process.
10656 (reset_die_in_process): New function.
10657 (process_die): Set it at the start, reset when returning.
10658 (inherit_abstract_dies): Only call process_die if origin_child_die
10659 not already being processed.
10660
3be75f87
JB
106612014-02-20 Joel Brobecker <brobecker@adacore.com>
10662
10663 * windows-nat.c (handle_unload_dll): Add function documentation.
10664 (do_initial_windows_stuff): Add comment explaining why we wait
10665 until after inferior initialization has finished before
10666 processing all DLLs.
10667
47f7ffdb
JB
106682014-02-20 Joel Brobecker <brobecker@adacore.com>
10669
10670 * windows-nat.c (get_module_name): Delete.
10671 (windows_get_exec_module_filename): New function, mostly
10672 inspired from get_module_name.
10673 (windows_pid_to_exec_file): Replace call to get_module_name
10674 by call to windows_get_exec_module_filename.
10675
1cd9feab
JB
106762014-02-20 Joel Brobecker <brobecker@adacore.com>
10677
10678 * windows-nat.c (handle_load_dll): Rewrite this function's
10679 introductory comment. Remove code using get_module_name
10680 to get the DLL's name.
10681
ea39ad35
JB
106822014-02-20 Joel Brobecker <brobecker@adacore.com>
10683
10684 * windows-nat.c (get_windows_debug_event): Ignore
10685 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10686 if windows_initialization_done == 0.
10687 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10688 Adjust implementation to always load all DLLs.
10689 (do_initial_windows_stuff): Replace call to
10690 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10691
95060284
JB
106922014-02-20 Joel Brobecker <brobecker@adacore.com>
10693
10694 * windows-nat.c (_initialize_windows_nat): Deprecate the
10695 "dll-symbols" command. Turn the "add-shared-symbol-files"
10696 and "assf" aliases into commands, and deprecate them as well.
10697 * NEWS: Add entry explaining that "dll-symbols" and its two
10698 aliases are now deprecated.
10699
8d4fdb12
JB
107002014-02-20 Joel Brobecker <brobecker@adacore.com>
10701
10702 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10703 new-line in debug string. Remove trailing spaces.
10704
1b281443
SS
107052014-02-19 Stan Shebs <stan@codesourcery.com>
10706
10707 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10708
f7bd0f78
SC
107092014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10710
10711 * NEWS: Add entry for the new feature
10712 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10713 and class values.
10714
399ebc3d
SS
107152014-02-19 Stan Shebs <stan@codesourcery.com>
10716
10717 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10718
c658158d
PA
107192014-02-19 Pedro Alves <palves@redhat.com>
10720
10721 * common/ptid.h (struct ptid): Mention that process_stratum
10722 targets should prefer ptid.lwp.
10723
ba348170
PA
107242014-02-19 Pedro Alves <palves@redhat.com>
10725
10726 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10727 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10728 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10729 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10730 store remote thread ids rather than ptid.tid.
10731 (_initialize_remote): Adjust.
10732
ac01945b
TT
107332014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target.c (target_get_unwinder): Rewrite.
10736 (target_get_tailcall_unwinder): Rewrite.
10737 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10738 (record_btrace_to_get_tailcall_unwinder): New function.
10739 (init_record_btrace_ops): Update.
10740 * target.h (struct target_ops) <to_get_unwinder,
10741 to_get_tailcall_unwinder>: Now function pointers. Use
10742 TARGET_DEFAULT_RETURN.
10743
8476dc92
TT
107442014-02-19 Tom Tromey <tromey@redhat.com>
10745
10746 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10747 argument.
10748 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10749
c0eca49f
TT
107502014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10753 directly.
10754 * target-delegates.c: Rebuild.
10755 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10756 TARGET_DEFAULT_FUNC.
10757 * target.c (default_target_decr_pc_after_break): Rename from
10758 forward_target_decr_pc_after_break. Simplify.
10759 (target_decr_pc_after_break): Rely on delegation.
10760
596b6b39
TT
107612014-02-19 Tom Tromey <tromey@redhat.com>
10762
10763 * target.c (update_current_target): Do not INHERIT to_doc or
10764 to_magic. Do not de_fault to_open or to_close.
10765
b427c1bc
TT
107662014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * gcore.h (objfile_find_memory_regions): Declare.
10769 * gcore.c (objfile_find_memory_regions): No longer static. Add
10770 "self" argument.
10771 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10772 * exec.c: Include gcore.h.
10773 (exec_set_find_memory_regions): Remove.
10774 (exec_find_memory_regions): Remove.
10775 (exec_do_find_memory_regions): Remove.
10776 (init_exec_ops): Update.
10777 * defs.h (exec_set_find_memory_regions): Remove.
10778
9b144037
TT
107792014-02-19 Tom Tromey <tromey@redhat.com>
10780
10781 * target-delegates.c: Rebuild.
10782 * target.h (struct target_ops) <to_extra_thread_info,
10783 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10784 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10785 not 0, in TARGET_DEFAULT_RETURN.
10786
555bbdeb
TT
107872014-02-19 Tom Tromey <tromey@redhat.com>
10788
10789 * target.c (complete_target_initialization): Remove casts. Use
10790 return_zero_has_execution.
10791 (return_zero): Add "ignore" argument.
10792 (return_zero_has_execution): New function.
10793 (init_dummy_target): Remove casts. Use
10794 return_zero_has_execution.
10795
be4ddd36
TT
107962014-02-19 Tom Tromey <tromey@redhat.com>
10797
10798 * target.c (update_current_target): Update comments. Do not
10799 INHERIT to_stratum.
10800
2117c711
TT
108012014-02-19 Tom Tromey <tromey@redhat.com>
10802
10803 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10804 needed.
10805 * corelow.c (core_read_description): Delegate when needed.
10806 * remote.c (remote_read_description): Delegate when needed.
10807 * target-delegates.c: Rebuild.
10808 * target.c (target_read_description): Rewrite.
10809 * target.h (struct target_ops) <to_read_description>: Update
10810 comment. Use TARGET_DEFAULT_RETURN.
10811
e88ef65c
TT
108122014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target-delegates.c: Rebuild.
10815 * target.c (update_current_target): Don't inherit or default
10816 to_can_run.
10817 (find_default_run_target): Check against delegate_can_run.
10818 * target.h (struct target_ops) <to_can_run>: Use
10819 TARGET_DEFAULT_RETURN.
10820
86a0854a
TT
108212014-02-19 Tom Tromey <tromey@redhat.com>
10822
10823 * target-delegates.c: Rebuild.
10824 * target.c (target_disconnect): Unconditionally delegate.
10825 * target.h (struct target_ops) <to_disconnect>: Use
10826 TARGET_DEFAULT_NORETURN.
10827
ee97f592
TT
108282014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * record.c (record_stop): Unconditionally delegate.
10831 * target-delegates.c: Rebuild.
10832 * target.c (target_stop_recording): Unconditionally delegate.
10833 * target.h (struct target_ops) <to_stop_recording>: Use
10834 TARGET_DEFAULT_IGNORE.
10835
6dc7fcf4
TT
108362014-02-19 Tom Tromey <tromey@redhat.com>
10837
10838 * target-delegates.c: Rebuild.
10839 * target.c (target_enable_btrace): Unconditionally delegate.
10840 * target.h (struct target_ops) <to_enable_btrace>: Use
10841 TARGET_DEFAULT_NORETURN.
10842
eb5b20d4
TT
108432014-02-19 Tom Tromey <tromey@redhat.com>
10844
10845 * target-delegates.c: Rebuild.
10846 * target.c (target_read_btrace): Unconditionally delegate.
10847 * target.h (struct target_ops) <to_read_btrace>: Use
10848 TARGET_DEFAULT_NORETURN.
10849
9ace480d
TT
108502014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target-delegates.c: Rebuild.
10853 * target.c (target_teardown_btrace): Unconditionally delegate.
10854 * target.h (struct target_ops) <to_teardown_btrace>: Use
10855 TARGET_DEFAULT_NORETURN.
10856
8dc292d3
TT
108572014-02-19 Tom Tromey <tromey@redhat.com>
10858
10859 * target-delegates.c: Rebuild.
10860 * target.c (target_disable_btrace): Unconditionally delegate.
10861 * target.h (struct target_ops) <to_disable_btrace>: Use
10862 TARGET_DEFAULT_NORETURN.
10863
58a5184e
TT
108642014-02-19 Tom Tromey <tromey@redhat.com>
10865
10866 * target-delegates.c: Rebuild.
10867 * target.c (default_search_memory): New function.
10868 (simple_search_memory): Update comment.
10869 (target_search_memory): Unconditionally delegate.
10870 * target.h (struct target_ops) <to_search_memory>: Use
10871 TARGET_DEFAULT_FUNC.
10872
8de71aab
TT
108732014-02-19 Tom Tromey <tromey@redhat.com>
10874
10875 * auxv.c (default_auxv_parse): No longer static.
10876 (target_auxv_parse): Unconditionally delegate.
10877 * auxv.h (default_auxv_parse): Declare.
10878 * target-delegates.c: Rebuild.
10879 * target.c: Include auxv.h.
10880 * target.h (struct target_ops) <to_auxv_parse>: Use
10881 TARGET_DEFAULT_FUNC.
10882
6b2c5a57
TT
108832014-02-19 Tom Tromey <tromey@redhat.com>
10884
10885 * target-delegates.c: Rebuild.
10886 * target.c (target_memory_map): Unconditionally delegate.
10887 * target.h (struct target_ops) <to_memory_map>: Use
10888 TARGET_DEFAULT_RETURN.
10889
cbffc065
TT
108902014-02-19 Tom Tromey <tromey@redhat.com>
10891
10892 * target-delegates.c: Rebuild.
10893 * target.c (target_thread_alive): Unconditionally delegate.
10894 * target.h (struct target_ops) <to_thread_alive>: Use
10895 TARGET_DEFAULT_RETURN.
10896
f09e2107
TT
108972014-02-19 Tom Tromey <tromey@redhat.com>
10898
10899 * target-delegates.c: Rebuild.
10900 * target.c (target_save_record): Unconditionally delegate.
10901 * target.h (struct target_ops) <to_save_record>: Use
10902 TARGET_DEFAULT_NORETURN.
10903
07366925
TT
109042014-02-19 Tom Tromey <tromey@redhat.com>
10905
10906 * target-delegates.c: Rebuild.
10907 * target.c (target_delete_record): Unconditionally delegate.
10908 * target.h (struct target_ops) <to_delete_record>: Use
10909 TARGET_DEFAULT_NORETURN.
10910
dd2e9d25
TT
109112014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * target-delegates.c: Rebuild.
10914 * target.c (target_record_is_replaying): Unconditionally
10915 delegate.
10916 * target.h (struct target_ops) <to_record_is_replaying>: Use
10917 TARGET_DEFAULT_RETURN.
10918
671e76cc
TT
109192014-02-19 Tom Tromey <tromey@redhat.com>
10920
10921 * target-delegates.c: Rebuild.
10922 * target.c (target_goto_record_begin): Unconditionally delegate.
10923 * target.h (struct target_ops) <to_goto_record_begin>: Use
10924 TARGET_DEFAULT_NORETURN.
10925
e9179bb3
TT
109262014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target-delegates.c: Rebuild.
10929 * target.c (target_goto_record_end): Unconditionally delegate.
10930 * target.h (struct target_ops) <to_goto_record_end>: Use
10931 TARGET_DEFAULT_NORETURN.
10932
05969c84
TT
109332014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target-delegates.c: Rebuild.
10936 * target.c (target_goto_record): Unconditionally delegate.
10937 * target.h (struct target_ops) <to_goto_record>: Use
10938 TARGET_DEFAULT_NORETURN.
10939
3679abfa
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target-delegates.c: Rebuild.
10943 * target.c (target_insn_history): Unconditionally delegate.
10944 * target.h (struct target_ops) <to_insn_history>: Use
10945 TARGET_DEFAULT_NORETURN.
10946
8444ab58
TT
109472014-02-19 Tom Tromey <tromey@redhat.com>
10948
10949 * target-delegates.c: Rebuild.
10950 * target.c (target_insn_history_from): Unconditionally delegate.
10951 * target.h (struct target_ops) <to_insn_history_from>: Use
10952 TARGET_DEFAULT_NORETURN.
10953
c29302cc
TT
109542014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * target-delegates.c: Rebuild.
10957 * target.c (target_insn_history_range): Unconditionally delegate.
10958 * target.h (struct target_ops) <to_insn_history_range>: Use
10959 TARGET_DEFAULT_NORETURN.
10960
170049d4
TT
109612014-02-19 Tom Tromey <tromey@redhat.com>
10962
10963 * target-delegates.c: Rebuild.
10964 * target.c (target_call_history): Unconditionally delegate.
10965 * target.h (struct target_ops) <to_call_history>: Use
10966 TARGET_DEFAULT_NORETURN.
10967
16fc27d6
TT
109682014-02-19 Tom Tromey <tromey@redhat.com>
10969
10970 * target-delegates.c: Rebuild.
10971 * target.c (target_call_history_from): Unconditionally delegate.
10972 * target.h (struct target_ops) <to_call_history_from>: Use
10973 TARGET_DEFAULT_NORETURN.
10974
115d9817
TT
109752014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target-delegates.c: Rebuild.
10978 * target.c (target_call_history_range): Unconditionally delegate.
10979 * target.h (struct target_ops) <to_call_history_range>: Use
10980 TARGET_DEFAULT_NORETURN.
10981
eb276a6b
TT
109822014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target-delegates.c: Rebuild.
10985 * target.c (target_verify_memory): Unconditionally delegate.
10986 * target.h (struct target_ops) <to_verify_memory>: Use
10987 TARGET_DEFAULT_NORETURN.
10988
9e538d0d
TT
109892014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * target-delegates.c: Rebuild.
10992 * target.c (target_core_of_thread): Unconditionally delegate.
10993 * target.h (struct target_ops) <to_core_of_thread>: Use
10994 TARGET_DEFAULT_RETURN.
10995
f6fb2925
TT
109962014-02-19 Tom Tromey <tromey@redhat.com>
10997
10998 * target-delegates.c: Rebuild.
10999 * target.c (target_flash_done): Unconditionally delegate.
11000 * target.h (struct target_ops) <to_flash_done>: Use
11001 TARGET_DEFAULT_NORETURN.
11002
e8a6c6ac
TT
110032014-02-19 Tom Tromey <tromey@redhat.com>
11004
11005 * target-delegates.c: Rebuild.
11006 * target.c (target_flash_erase): Unconditionally delegate.
11007 * target.h (struct target_ops) <to_flash_erase>: Use
11008 TARGET_DEFAULT_NORETURN.
11009
7e35c012
TT
110102014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * target-delegates.c: Rebuild.
11013 * target.c (target_get_section_table): Unconditionally delegate.
11014 * target.h (struct target_ops) <to_get_section_table>: Use
11015 TARGET_DEFAULT_RETURN.
11016
770234d3
TT
110172014-02-19 Tom Tromey <tromey@redhat.com>
11018
11019 * target-delegates.c: Rebuild.
11020 * target.c (target_pid_to_str): Unconditionally delegate.
11021 (init_dummy_target): Don't initialize to_pid_to_str.
11022 (default_pid_to_str): Rename from dummy_pid_to_str.
11023 * target.h (struct target_ops) <to_pid_to_str>: Use
11024 TARGET_DEFAULT_FUNC.
11025
09b0dc2b
TT
110262014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target-delegates.c: Rebuild.
11029 * target.c (target_find_new_threads): Unconditionally delegate.
11030 * target.h (struct target_ops) <to_find_new_threads>: Use
11031 TARGET_DEFAULT_RETURN.
11032
7d4f8efa
TT
110332014-02-19 Tom Tromey <tromey@redhat.com>
11034
11035 * target-delegates.c: Rebuild.
11036 * target.c (target_program_signals): Unconditionally delegate.
11037 * target.h (struct target_ops) <to_program_signals>: Use
11038 TARGET_DEFAULT_IGNORE.
11039
035cad7f
TT
110402014-02-19 Tom Tromey <tromey@redhat.com>
11041
11042 * target-delegates.c: Rebuild.
11043 * target.c (target_pass_signals): Unconditionally delegate.
11044 * target.h (struct target_ops) <to_pass_signals>: Use
11045 TARGET_DEFAULT_IGNORE.
11046
8d657035
TT
110472014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target-delegates.c: Rebuild.
11050 * target.c (default_mourn_inferior): New function.
11051 (target_mourn_inferior): Unconditionally delegate.
11052 * target.h (struct target_ops) <to_mourn_inferior>: Use
11053 TARGET_DEFAULT_FUNC.
11054
098dba18
TT
110552014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target-delegates.c: Rebuild.
11058 * target.c (default_follow_fork): New function.
11059 (target_follow_fork): Unconditionally delegate.
11060 * target.h (struct target_ops) <to_follow_fork>: Use
11061 TARGET_DEFAULT_FUNC.
11062
423a4807
TT
110632014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * target-delegates.c: Rebuild.
11066 * target.c (target_kill): Unconditionally delegate.
11067 * target.h (struct target_ops) <to_kill>: Use
11068 TARGET_DEFAULT_NORETURN.
11069
6c7e5e5c
TT
110702014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target-delegates.c: Rebuild.
11073 * target.c (target_masked_watch_num_registers): Unconditionally
11074 delegate.
11075 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11076 Use TARGET_DEFAULT_RETURN.
11077
8b1c364c
TT
110782014-02-19 Tom Tromey <tromey@redhat.com>
11079
11080 * target-delegates.c: Rebuild.
11081 * target.c (target_remove_mask_watchpoint): Unconditionally
11082 delegate.
11083 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11084 TARGET_DEFAULT_RETURN.
11085
cd4ae029
TT
110862014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target-delegates.c: Rebuild.
11089 * target.c (target_insert_mask_watchpoint): Unconditionally
11090 delegate.
11091 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11092 TARGET_DEFAULT_RETURN.
11093
a134316b
TT
110942014-02-19 Tom Tromey <tromey@redhat.com>
11095
11096 * target-delegates.c: Rebuild.
11097 * target.c (target_ranged_break_num_registers): Unconditionally
11098 delegate.
11099 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11100 Use TARGET_DEFAULT_RETURN.
11101
ad5989bd
TT
111022014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target-delegates.c: Rebuild.
11105 * target.c (target_fetch_registers): Unconditionally delegate.
11106 * target.h (struct target_ops) <to_fetch_registers>: Use
11107 TARGET_DEFAULT_NORETURN.
11108
46ee7e8d
TT
111092014-02-19 Tom Tromey <tromey@redhat.com>
11110
11111 * target-delegates.c: Rebuild.
11112 * target.c (update_current_target): Don't inherit or default
11113 to_stop.
11114 * target.h (struct target_ops) <to_stop>: Use
11115 TARGET_DEFAULT_IGNORE.
11116
843f59ed
TT
111172014-02-19 Tom Tromey <tromey@redhat.com>
11118
11119 * target-delegates.c: Rebuild.
11120 * target.c (update_current_target): Don't inherit or default
11121 to_can_run_breakpoint_commands.
11122 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11123 Use TARGET_DEFAULT_RETURN.
11124
ccfde2a0
TT
111252014-02-19 Tom Tromey <tromey@redhat.com>
11126
11127 * target-delegates.c: Rebuild.
11128 * target.c (update_current_target): Don't inherit or default
11129 to_supports_evaluation_of_breakpoint_conditions.
11130 * target.h (struct target_ops)
11131 <to_supports_evaluation_of_breakpoint_conditions>: Use
11132 TARGET_DEFAULT_RETURN.
11133
0de91722
TT
111342014-02-19 Tom Tromey <tromey@redhat.com>
11135
11136 * target-delegates.c: Rebuild.
11137 * target.c (update_current_target): Don't inherit or default
11138 to_augmented_libraries_svr4_read.
11139 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11140 Use TARGET_DEFAULT_RETURN.
11141
9a7d8b48
TT
111422014-02-19 Tom Tromey <tromey@redhat.com>
11143
11144 * target-delegates.c: Rebuild.
11145 * target.c (update_current_target): Don't inherit or default
11146 to_can_use_agent.
11147 * target.h (struct target_ops) <to_can_use_agent>: Use
11148 TARGET_DEFAULT_RETURN.
11149
d9db5b21
TT
111502014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target-delegates.c: Rebuild.
11153 * target.c (update_current_target): Don't inherit or default
11154 to_use_agent.
11155 * target.h (struct target_ops) <to_use_agent>: Use
11156 TARGET_DEFAULT_NORETURN.
11157
92155eeb
TT
111582014-02-19 Tom Tromey <tromey@redhat.com>
11159
11160 * target-delegates.c: Rebuild.
11161 * target.c (update_current_target): Don't inherit or default
11162 to_traceframe_info.
11163 (return_null): Remove.
11164 * target.h (struct target_ops) <to_traceframe_info>: Use
11165 TARGET_DEFAULT_RETURN.
11166
d6522a22
TT
111672014-02-19 Tom Tromey <tromey@redhat.com>
11168
11169 * target-delegates.c: Rebuild.
11170 * target.c (update_current_target): Don't inherit or default
11171 to_static_tracepoint_markers_by_strid.
11172 * target.h (struct target_ops)
11173 <to_static_tracepoint_markers_by_strid>: Use
11174 TARGET_DEFAULT_NORETURN.
11175
4c3e4425
TT
111762014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * target-delegates.c: Rebuild.
11179 * target.c (update_current_target): Don't inherit or default
11180 to_static_tracepoint_marker_at.
11181 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11182 Use TARGET_DEFAULT_RETURN.
11183
dcd6917f
TT
111842014-02-19 Tom Tromey <tromey@redhat.com>
11185
11186 * target-delegates.c: Rebuild.
11187 * target.c (update_current_target): Don't inherit or default
11188 to_set_permissions.
11189 * target.h (struct target_ops) <to_set_permissions>: Use
11190 TARGET_DEFAULT_IGNORE.
11191
22bcceee
TT
111922014-02-19 Tom Tromey <tromey@redhat.com>
11193
11194 * target-delegates.c: Rebuild.
11195 * target.c (update_current_target): Don't inherit or default
11196 to_get_tib_address.
11197 * target.h (struct target_ops) <to_get_tib_address>: Use
11198 TARGET_DEFAULT_NORETURN.
11199
8586ccaa
TT
112002014-02-19 Tom Tromey <tromey@redhat.com>
11201
11202 * target-delegates.c: Rebuild.
11203 * target.c (update_current_target): Don't inherit or default
11204 to_set_trace_notes.
11205 * target.h (struct target_ops) <to_set_trace_notes>: Use
11206 TARGET_DEFAULT_RETURN.
11207
91df8d1d
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target-delegates.c: Rebuild.
11211 * target.c (update_current_target): Don't initialize
11212 to_set_trace_buffer_size.
11213 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11214 TARGET_DEFAULT_IGNORE.
11215
8d526939
TT
112162014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target-delegates.c: Rebuild.
11219 * target.c (update_current_target): Don't inherit or default
11220 to_set_circular_trace_buffer.
11221 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11222 TARGET_DEFAULT_IGNORE.
11223
0bcfeddf
TT
112242014-02-19 Tom Tromey <tromey@redhat.com>
11225
11226 * target-delegates.c: Rebuild.
11227 * target.c (update_current_target): Don't inherit or default
11228 to_set_disconnected_tracing.
11229 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11230 TARGET_DEFAULT_IGNORE.
11231
9249843f
TT
112322014-02-19 Tom Tromey <tromey@redhat.com>
11233
11234 * target-delegates.c: Rebuild.
11235 * target.c (update_current_target): Don't inherit or default
11236 to_get_min_fast_tracepoint_insn_len.
11237 (return_minus_one): Remove.
11238 * target.h (struct target_ops)
11239 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11240
ace92e7d
TT
112412014-02-19 Tom Tromey <tromey@redhat.com>
11242
11243 * target-delegates.c: Rebuild.
11244 * target.c (update_current_target): Don't inherit or default
11245 to_get_raw_trace_data.
11246 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11247 TARGET_DEFAULT_NORETURN.
11248
08120467
TT
112492014-02-19 Tom Tromey <tromey@redhat.com>
11250
11251 * target-delegates.c: Rebuild.
11252 * target.c (update_current_target): Don't inherit or default
11253 to_upload_trace_state_variables.
11254 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11255 Use TARGET_DEFAULT_RETURN.
11256
1e949b00
TT
112572014-02-19 Tom Tromey <tromey@redhat.com>
11258
11259 * target-delegates.c: Rebuild.
11260 * target.c (update_current_target): Don't inherit or default
11261 to_upload_tracepoints.
11262 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11263 TARGET_DEFAULT_RETURN.
11264
a2e6c147
TT
112652014-02-19 Tom Tromey <tromey@redhat.com>
11266
11267 * target-delegates.c: Rebuild.
11268 * target.c (update_current_target): Don't inherit or default
11269 to_save_trace_data.
11270 * target.h (struct target_ops) <to_save_trace_data>: Use
11271 TARGET_DEFAULT_NORETURN.
11272
959bcd0b
TT
112732014-02-19 Tom Tromey <tromey@redhat.com>
11274
11275 * target-delegates.c: Rebuild.
11276 * target.c (update_current_target): Don't inherit or default
11277 to_get_trace_state_variable_value.
11278 * target.h (struct target_ops)
11279 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11280
afc94e66
TT
112812014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * target-delegates.c: Rebuild.
11284 * target.c (update_current_target): Don't inherit or default
11285 to_trace_find.
11286 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11287
e51c07ea
TT
112882014-02-19 Tom Tromey <tromey@redhat.com>
11289
11290 * target-delegates.c: Rebuild.
11291 * target.c (update_current_target): Don't inherit or default
11292 to_trace_stop.
11293 * target.h (struct target_ops) <to_trace_stop>: Use
11294 TARGET_DEFAULT_NORETURN.
11295
6fea14cd
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target-delegates.c: Rebuild.
11299 * target.c (update_current_target): Don't inherit or default
11300 to_get_tracepoint_status.
11301 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11302 TARGET_DEFAULT_NORETURN.
11303
4072d4ff
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target-delegates.c: Rebuild.
11307 * target.c (update_current_target): Don't inherit or default
11308 to_get_trace_status.
11309 * target.h (struct target_ops) <to_get_trace_status>: Use
11310 TARGET_DEFAULT_RETURN.
11311
25da2e80
TT
113122014-02-19 Tom Tromey <tromey@redhat.com>
11313
11314 * target-delegates.c: Rebuild.
11315 * target.c (update_current_target): Don't inherit or default
11316 to_trace_start.
11317 * target.h (struct target_ops) <to_trace_start>: Use
11318 TARGET_DEFAULT_NORETURN.
11319
86dd181d
TT
113202014-02-19 Tom Tromey <tromey@redhat.com>
11321
11322 * target-delegates.c: Rebuild.
11323 * target.c (update_current_target): Don't inherit or default
11324 to_trace_set_readonly_regions.
11325 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11326 Use TARGET_DEFAULT_NORETURN.
11327
05c41993
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * target-delegates.c: Rebuild.
11331 * target.c (update_current_target): Don't inherit or default
11332 to_disable_tracepoint.
11333 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11334 TARGET_DEFAULT_NORETURN.
11335
151f70f1
TT
113362014-02-19 Tom Tromey <tromey@redhat.com>
11337
11338 * target-delegates.c: Rebuild.
11339 * target.c (update_current_target): Don't inherit or default
11340 to_enable_tracepoint.
11341 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11342 TARGET_DEFAULT_NORETURN.
11343
94eb98b9
TT
113442014-02-19 Tom Tromey <tromey@redhat.com>
11345
11346 * target-delegates.c: Rebuild.
11347 * target.c (update_current_target): Don't inherit or default
11348 to_download_trace_state_variable.
11349 * target.h (struct target_ops) <to_download_trace_state_variable>:
11350 Use TARGET_DEFAULT_NORETURN.
11351
719acc4a
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target-delegates.c: Rebuild.
11355 * target.c (update_current_target): Don't inherit or default
11356 to_can_download_tracepoint.
11357 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11358 TARGET_DEFAULT_RETURN.
11359
9a980a22
TT
113602014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target-delegates.c: Rebuild.
11363 * target.c (update_current_target): Don't inherit or default
11364 to_download_tracepoint.
11365 * target.h (struct target_ops) <to_download_tracepoint>: Use
11366 TARGET_DEFAULT_NORETURN.
11367
5536135b
TT
113682014-02-19 Tom Tromey <tromey@redhat.com>
11369
11370 * target-delegates.c: Rebuild.
11371 * target.c (update_current_target): Don't inherit or default
11372 to_trace_init.
11373 * target.h (struct target_ops) <to_trace_init>: Use
11374 TARGET_DEFAULT_RETURN.
11375
9409d39e
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target-delegates.c: Rebuild.
11379 * target.c (update_current_target): Don't inherit or default
11380 to_supports_string_tracing.
11381 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11382 TARGET_DEFAULT_RETURN.
11383
aab1b22d
TT
113842014-02-19 Tom Tromey <tromey@redhat.com>
11385
11386 * target-delegates.c: Rebuild.
11387 * target.c (update_current_target): Don't inherit or default
11388 to_supports_enable_disable_tracepoint.
11389 * target.h (struct target_ops)
11390 <to_supports_enable_disable_tracepoint>: Use
11391 TARGET_DEFAULT_RETURN.
11392
a7304748
TT
113932014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target-delegates.c: Rebuild.
11396 * target.c (update_current_target): Don't inherit or default
11397 to_supports_multi_process.
11398 * target.h (struct target_ops) <to_supports_multi_process>: Use
11399 TARGET_DEFAULT_RETURN.
11400
4229b31d
TT
114012014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * target-delegates.c: Rebuild.
11404 * target.c (update_current_target): Don't inherit or default
11405 to_get_ada_task_ptid.
11406 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11407 TARGET_DEFAULT_FUNC.
11408
43eba180
TT
114092014-02-19 Tom Tromey <tromey@redhat.com>
11410
11411 * target-delegates.c: Rebuild.
11412 * target.c (update_current_target): Don't inherit or default
11413 to_thread_architecture.
11414 * target.h (struct target_ops) <to_thread_architecture>: Use
11415 TARGET_DEFAULT_FUNC.
11416
fe31bf5b
TT
114172014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * target-delegates.c: Rebuild.
11420 * target.c (update_current_target): Don't inherit or default
11421 to_execution_direction.
11422 * target.h (struct target_ops) <to_execution_direction>: Use
11423 TARGET_DEFAULT_FUNC.
11424
53e1cfc7
TT
114252014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target-delegates.c: Rebuild.
11428 * target.c (update_current_target): Don't inherit or default
11429 to_can_execute_reverse.
11430 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11431 TARGET_DEFAULT_RETURN.
11432 (target_can_execute_reverse): Unconditionally delegate.
11433
9bb9d61d
TT
114342014-02-19 Tom Tromey <tromey@redhat.com>
11435
11436 * target-delegates.c: Rebuild.
11437 * target.c (update_current_target): Don't inherit or default
11438 to_goto_bookmark.
11439 (dummy_goto_bookmark): Remove.
11440 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11441 * target.h (struct target_ops) <to_goto_bookmark>: Use
11442 TARGET_DEFAULT_NORETURN.
11443
3dbafbbb
TT
114442014-02-19 Tom Tromey <tromey@redhat.com>
11445
11446 * target-delegates.c: Rebuild.
11447 * target.c (update_current_target): Don't inherit or default
11448 to_get_bookmark.
11449 (dummy_get_bookmark): Remove.
11450 (init_dummy_target): Don't inherit or default to_get_bookmark.
11451 * target.h (struct target_ops) <to_get_bookmark>: Use
11452 TARGET_DEFAULT_NORETURN
11453
16f796b1
TT
114542014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target-delegates.c: Rebuild.
11457 * target.c (update_current_target): Don't inherit or default
11458 to_make_corefile_notes.
11459 (init_dummy_target): Don't initialize to_make_corefile_notes.
11460 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11461 TARGET_DEFAULT_FUNC.
11462
0b5a2719
TT
114632014-02-19 Tom Tromey <tromey@redhat.com>
11464
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11467 to_find_memory_regions.
11468 (init_dummy_target): Don't initialize to_find_memory_regions.
11469 * target.h (struct target_ops) <to_find_memory_regions>: Use
11470 TARGET_DEFAULT_FUNC.
11471
d9cb0195
TT
114722014-02-19 Tom Tromey <tromey@redhat.com>
11473
11474 * target-delegates.c: Rebuild.
11475 * target.c (update_current_target): Don't inherit or default
11476 to_log_command.
11477 * target.h (struct target_ops) <to_log_command>: Use
11478 TARGET_DEFAULT_IGNORE.
11479 (target_log_command): Unconditionally delegate.
11480
830ca330
TT
114812014-02-19 Tom Tromey <tromey@redhat.com>
11482
11483 * target-delegates.c: Rebuild.
11484 * target.c (update_current_target): Don't inherit or default
11485 to_pid_to_exec_file.
11486 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11487 TARGET_DEFAULT_RETURN.
11488
825828fc
TT
114892014-02-19 Tom Tromey <tromey@redhat.com>
11490
11491 * target-delegates.c: Rebuild.
11492 * target.c (update_current_target): Don't inherit or default
11493 to_thread_name.
11494 (target_thread_name): Unconditionally delegate.
11495 * target.h (struct target_ops) <to_thread_name>: Use
11496 TARGET_DEFAULT_RETURN.
11497
4a7e6dda
TT
114982014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * target-delegates.c: Rebuild.
11501 * target.c (update_current_target): Don't inherit or default
11502 to_extra_thread_info.
11503 * target.h (struct target_ops) <to_extra_thread_info>: Use
11504 TARGET_DEFAULT_RETURN.
11505
0db88c1d
TT
115062014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target-delegates.c: Rebuild.
11509 * target.c (update_current_target): Don't inherit or default
11510 to_has_exited.
11511 * target.h (struct target_ops) <to_has_exited>: Use
11512 TARGET_DEFAULT_RETURN..
11513
6a9fa051
TT
115142014-02-19 Tom Tromey <tromey@redhat.com>
11515
11516 * target-delegates.c: Rebuild.
11517 * target.c (update_current_target): Don't inherit or default
11518 to_set_syscall_catchpoint.
11519 (return_one): Remove.
11520 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11521 TARGET_DEFAULT_RETURN.
11522
62f64d7a
TT
115232014-02-19 Tom Tromey <tromey@redhat.com>
11524
11525 * target-delegates.c: Rebuild.
11526 * target.c (update_current_target): Don't inherit or default
11527 to_insert_exec_catchpoint.
11528 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11529 TARGET_DEFAULT_RETURN.
11530
cda0f38c
TT
115312014-01-08 Tom Tromey <tromey@redhat.com>
11532
11533 * target-delegates.c: Rebuild.
11534 * target.c (update_current_target): Don't inherit or default
11535 to_insert_exec_catchpoint.
11536 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11537 TARGET_DEFAULT_RETURN.
11538
95c3375e
TT
115392014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * target-delegates.c: Rebuild.
11542 * target.c (update_current_target): Don't inherit or default
11543 to_remove_vfork_catchpoint.
11544 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11545 TARGET_DEFAULT_RETURN.
11546
7e18a8dc
TT
115472014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target-delegates.c: Rebuild.
11550 * target.c (update_current_target): Don't inherit or default
11551 to_insert_vfork_catchpoint.
11552 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11553 TARGET_DEFAULT_RETURN.
11554
e1a21fb7
TT
115552014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * target-delegates.c: Rebuild.
11558 * target.c (update_current_target): Don't inherit or default
11559 to_remove_fork_catchpoint.
11560 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11561 TARGET_DEFAULT_RETURN.
11562
5958ebeb
TT
115632014-02-19 Tom Tromey <tromey@redhat.com>
11564
11565 * target-delegates.c: Rebuild.
11566 * target.c (update_current_target): Don't inherit or default
11567 to_insert_fork_catchpoint.
11568 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11569 TARGET_DEFAULT_RETURN.
11570
340ba4bf
TT
115712014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target-delegates.c: Rebuild.
11574 * target.c (update_current_target): Don't inherit or default
11575 to_post_startup_inferior.
11576 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11577 TARGET_DEFAULT_IGNORE.
11578
7634da87
TT
115792014-02-19 Tom Tromey <tromey@redhat.com>
11580
11581 * target-delegates.c: Rebuild.
11582 * target.c (update_current_target): Don't inherit or default
11583 to_load.
11584 * target.h (struct target_ops) <to_load>: Use
11585 TARGET_DEFAULT_NORETURN.
11586
e19e919f
TT
115872014-02-19 Tom Tromey <tromey@redhat.com>
11588
11589 * target-delegates.c: Rebuild.
11590 * target.c (update_current_target): Don't inherit or default
11591 to_terminal_info.
11592 * target.h (struct target_ops) <to_terminal_info>: Use
11593 TARGET_DEFAULT_FUNC.
11594
c6ea8f79
TT
115952014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11599 to_terminal_save_ours.
11600 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11601 TARGET_DEFAULT_IGNORE.
11602
e4a733f1
TT
116032014-02-19 Tom Tromey <tromey@redhat.com>
11604
11605 * target-delegates.c: Rebuild.
11606 * target.c (update_current_target): Don't inherit or default
11607 to_terminal_ours.
11608 * target.h (struct target_ops) <to_terminal_ours>: Use
11609 TARGET_DEFAULT_IGNORE.
11610
74fcbef9
TT
116112014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target-delegates.c: Rebuild.
11614 * target.c (update_current_target): Don't inherit or default
11615 to_terminal_ours_for_output.
11616 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11617 TARGET_DEFAULT_IGNORE.
11618
ddeaacc9
TT
116192014-02-19 Tom Tromey <tromey@redhat.com>
11620
11621 * target-delegates.c: Rebuild.
11622 * target.c (update_current_target): Don't inherit or default
11623 to_terminal_inferior.
11624 * target.h (struct target_ops) <to_terminal_inferior>: Use
11625 TARGET_DEFAULT_IGNORE.
11626
0343661d
TT
116272014-02-19 Tom Tromey <tromey@redhat.com>
11628
11629 * target-delegates.c: Rebuild.
11630 * target.c (update_current_target): Don't inherit or default
11631 to_terminal_init.
11632 * target.h (struct target_ops) <to_terminal_init>: Use
11633 TARGET_DEFAULT_IGNORE.
11634
77cdffe9
TT
116352014-02-19 Tom Tromey <tromey@redhat.com>
11636
11637 * target-delegates.c: Rebuild.
11638 * target.c (update_current_target): Don't inherit or default
11639 to_can_accel_watchpoint_condition.
11640 * target.h (struct target_ops)
11641 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11642
d03655e4
TT
116432014-02-19 Tom Tromey <tromey@redhat.com>
11644
11645 * target-delegates.c: Rebuild.
11646 * target.c (update_current_target): Don't inherit or default
11647 to_region_ok_for_hw_watchpoint.
11648 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11649 Use TARGET_DEFAULT_FUNC.
11650
65f160a9
TT
116512014-02-19 Tom Tromey <tromey@redhat.com>
11652
11653 * target-delegates.c: Rebuild.
11654 * target.c (update_current_target): Don't inherit or default
11655 to_watchpoint_addr_within_range.
11656 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11657 Use TARGET_DEFAULT_FUNC.
11658
61dd109f
TT
116592014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target-delegates.c: Rebuild.
11662 * target.c (update_current_target): Don't inherit or default
11663 to_remove_watchpoint.
11664 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11665 TARGET_DEFAULT_NORETURN.
11666
016facd4
TT
116672014-02-19 Tom Tromey <tromey@redhat.com>
11668
11669 * target-delegates.c: Rebuild.
11670 * target.c (update_current_target): Don't inherit or default
11671 to_insert_watchpoint.
11672 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11673 TARGET_DEFAULT_RETURN.
11674
418dabac
TT
116752014-02-19 Tom Tromey <tromey@redhat.com>
11676
11677 * target-delegates.c: Rebuild.
11678 * target.c (update_current_target): Don't inherit or default
11679 to_remove_hw_breakpoint.
11680 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11681 TARGET_DEFAULT_RETURN.
11682
61b371f9
TT
116832014-02-19 Tom Tromey <tromey@redhat.com>
11684
11685 * target-delegates.c: Rebuild.
11686 * target.c (update_current_target): Don't inherit or default
11687 to_insert_hw_breakpoint.
11688 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11689 TARGET_DEFAULT_RETURN.
11690
52b51d06
TT
116912014-02-19 Tom Tromey <tromey@redhat.com>
11692
11693 * target-delegates.c: Rebuild.
11694 * target.c (update_current_target): Don't inherit or default
11695 to_can_use_hw_breakpoint.
11696 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11697 TARGET_DEFAULT_RETURN.
11698
f86e59b2
TT
116992014-02-19 Tom Tromey <tromey@redhat.com>
11700
11701 * target-delegates.c: Rebuild.
11702 * target.c (update_current_target): Don't inherit or default
11703 to_files_info.
11704 * target.h (struct target_ops) <to_files_info>: Use
11705 TARGET_DEFAULT_IGNORE.
11706
6c628163
TT
117072014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target-delegates.c: Rebuild.
11710 * target.c (update_current_target): Don't inherit or default
11711 to_store.
11712 * target.h (struct target_ops) <to_store>: Use
11713 TARGET_DEFAULT_NORETURN.
11714
bebd3233
TT
117152014-02-19 Tom Tromey <tromey@redhat.com>
11716
11717 * target-delegates.c: Rebuild.
11718 * target.c (update_current_target): Don't inherit or default
11719 to_post_attach.
11720 * target.h (struct target_ops) <to_post_attach>: Use
11721 TARGET_DEFAULT_IGNORE.
11722
a53f3625
TT
117232014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target-delegates.c: Rebuild.
11726 * target.c (update_current_target): Don't inherit or default
11727 to_rcmd.
11728 (default_rcmd): New function.
11729 (do_monitor_command): Unconditionally delegate.
11730 * target.h (struct target_ops) <to_rmcd>: Use
11731 TARGET_DEFAULT_FUNC.
11732
e9a29200
TT
117332014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target-delegates.c: Rebuild.
11736 * target.c (init_dummy_target): Don't initialize to_attach.
11737 (target_attach): Unconditionally delegate.
11738 * target.h (struct target_ops) <to_attach>: Use
11739 TARGET_DEFAULT_FUNC.
11740
09da0d0a
TT
117412014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target-delegates.c: Rebuild.
11744 * target.c (target_detach): Unconditionally delegate.
11745 (init_dummy_target): Don't initialize to_detach.
11746 * target.h (struct target_ops) <to_detach>: Use
11747 TARGET_DEFAULT_IGNORE.
11748
5436ff03
TT
117492014-02-19 Tom Tromey <tromey@redhat.com>
11750
11751 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11752 Add argument.
11753 (target_augmented_libraries_svr4_read): Add argument.
11754 * target.c (update_current_target): Update.
11755 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11756 argument.
11757
f0d960ea
TT
117582014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target.h (struct target_ops) <to_call_history_range>: Add
11761 argument.
11762 * target.c (target_call_history_range): Add argument.
11763 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11764 argument.
11765 (record_btrace_call_history_from): Update.
11766
ec0aea04
TT
117672014-02-19 Tom Tromey <tromey@redhat.com>
11768
11769 * target.h (struct target_ops) <to_call_history_from>: Add
11770 argument.
11771 * target.c (target_call_history_from): Add argument.
11772 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11773 argument.
11774
5df2fcba
TT
117752014-02-19 Tom Tromey <tromey@redhat.com>
11776
11777 * target.h (struct target_ops) <to_call_history>: Add argument.
11778 * target.c (target_call_history): Add argument.
11779 * record-btrace.c (record_btrace_call_history): Add 'self'
11780 argument.
11781
4e99c6b7
TT
117822014-02-19 Tom Tromey <tromey@redhat.com>
11783
11784 * target.h (struct target_ops) <to_insn_history_range>: Add
11785 argument.
11786 * target.c (target_insn_history_range): Add argument.
11787 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11788 argument.
11789 (record_btrace_insn_history_from): Update.
11790
9abc3ff3
TT
117912014-02-19 Tom Tromey <tromey@redhat.com>
11792
11793 * target.h (struct target_ops) <to_insn_history_from>: Add
11794 argument.
11795 * target.c (target_insn_history_from): Add argument.
11796 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11797 argument.
11798
7a6c5609
TT
117992014-02-19 Tom Tromey <tromey@redhat.com>
11800
11801 * target.h (struct target_ops) <to_insn_history>: Add argument.
11802 * target.c (target_insn_history): Add argument.
11803 * record-btrace.c (record_btrace_insn_history): Add 'self'
11804 argument.
11805
606183ac
TT
118062014-02-19 Tom Tromey <tromey@redhat.com>
11807
11808 * target.h (struct target_ops) <to_goto_record>: Add argument.
11809 * target.c (target_goto_record): Add argument.
11810 * record-full.c (record_full_goto): Add 'self' argument.
11811 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11812
307a1b91
TT
118132014-02-19 Tom Tromey <tromey@redhat.com>
11814
11815 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11816 * target.c (target_goto_record_end): Add argument.
11817 * record-full.c (record_full_goto_end): Add 'self' argument.
11818 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11819
08475817
TT
118202014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * target.h (struct target_ops) <to_goto_record_begin>: Add
11823 argument.
11824 * target.c (target_goto_record_begin): Add argument.
11825 * record-full.c (record_full_goto_begin): Add 'self' argument.
11826 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11827 argument.
11828
1c63c994
TT
118292014-02-19 Tom Tromey <tromey@redhat.com>
11830
11831 * target.h (struct target_ops) <to_record_is_replaying>: Add
11832 argument.
11833 * target.c (target_record_is_replaying): Add argument.
11834 * record-full.c (record_full_is_replaying): Add 'self' argument.
11835 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11836 argument.
11837 (record_btrace_xfer_partial, record_btrace_store_registers)
11838 (record_btrace_prepare_to_store, record_btrace_resume)
11839 (record_btrace_wait, record_btrace_decr_pc_after_break)
11840 (record_btrace_find_new_threads, record_btrace_thread_alive):
11841 Update.
11842
d1b55219
TT
118432014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target.h (struct target_ops) <to_delete_record>: Add argument.
11846 * target.c (target_delete_record): Add argument.
11847 * record-full.c (record_full_delete): Add 'self' argument.
11848
1390f529
TT
118492014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target.h (struct target_ops) <to_save_record>: Add argument.
11852 * target.c (target_save_record): Add argument.
11853 * record-full.c (record_full_save): Add 'self' argument.
11854 (record_full_save): Add 'self' argument.
11855
630d6a4a
TT
118562014-02-19 Tom Tromey <tromey@redhat.com>
11857
11858 * target.h (struct target_ops) <to_info_record>: Add argument.
11859 * target.c (target_info_record): Add argument.
11860 * record.c (info_record_command): Add argument.
11861 * record-full.c (record_full_info): Add 'self' argument.
11862 * record-btrace.c (record_btrace_info): Add 'self' argument.
11863
c6cd7c02
TT
118642014-02-19 Tom Tromey <tromey@redhat.com>
11865
11866 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11867 * target.c (target_stop_recording): Add argument.
11868 * record.c (record_stop): Add argument.
11869 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11870 argument.
11871
39c49f83
TT
118722014-02-19 Tom Tromey <tromey@redhat.com>
11873
11874 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11875 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11876 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11877 argument.
11878 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11879 (_initialize_amd64_linux_nat): Use it.
11880 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11881 (_initialize_i386_linux_nat): Use it.
11882
1777056d
TT
118832014-02-19 Tom Tromey <tromey@redhat.com>
11884
11885 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11886 * target.c (target_teardown_btrace): Add argument.
11887 * remote.c (remote_teardown_btrace): Add 'self' argument.
11888 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11889 argument.
11890 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11891 argument.
11892
25e95349
TT
118932014-02-19 Tom Tromey <tromey@redhat.com>
11894
11895 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11896 * target.c (target_disable_btrace): Add argument.
11897 * remote.c (remote_disable_btrace): Add 'self' argument.
11898 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11899 argument.
11900 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11901 argument.
11902
e3c49f88
TT
119032014-02-19 Tom Tromey <tromey@redhat.com>
11904
11905 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11906 * target.c (target_enable_btrace): Add argument.
11907 * remote.c (remote_enable_btrace): Add 'self' argument.
11908 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11909 argument.
11910 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11911 argument.
11912
fe38f897
TT
119132014-02-19 Tom Tromey <tromey@redhat.com>
11914
11915 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11916 (target_can_use_agent): Add argument.
11917 * target.c (update_current_target): Update.
11918 * remote.c (remote_can_use_agent): Add 'self' argument.
11919 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11920
2c152180
TT
119212014-02-19 Tom Tromey <tromey@redhat.com>
11922
11923 * target.h (struct target_ops) <to_use_agent>: Add argument.
11924 (target_use_agent): Add argument.
11925 * target.c (update_current_target): Update.
11926 * remote.c (remote_use_agent): Add 'self' argument.
11927 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11928
a893e81f
TT
119292014-02-19 Tom Tromey <tromey@redhat.com>
11930
11931 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11932 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11933 (target_traceframe_info): Add argument.
11934 * target.c (update_current_target): Update.
11935 * remote.c (remote_traceframe_info): Add 'self' argument.
11936 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11937
c686c57f
TT
119382014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * target.h (target_static_tracepoint_markers_by_strid): Add
11941 argument.
11942 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11943 'self' argument.
11944 * target.c (update_current_target): Update.
11945 * remote.c (struct target_ops)
11946 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11947 * linux-nat.c (struct target_ops)
11948 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11949
61fc905d
TT
119502014-02-19 Tom Tromey <tromey@redhat.com>
11951
11952 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11953 Add argument.
11954 (target_static_tracepoint_marker_at): Add argument.
11955 * target.c (update_current_target): Update.
11956 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11957 argument.
11958
c378d69d
TT
119592014-02-19 Tom Tromey <tromey@redhat.com>
11960
11961 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11962 (target_set_permissions): Add argument.
11963 * target.c (update_current_target): Update.
11964 * remote.c (remote_set_permissions): Add 'self' argument.
11965 (remote_start_remote): Update.
11966
bd7ae0f5
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11970 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11971 (target_get_tib_address): Add argument.
11972 * target.c (update_current_target): Update.
11973 * remote.c (remote_get_tib_address): Add 'self' argument.
11974
d9e68a2c
TT
119752014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11978 (target_set_trace_notes): Add argument.
11979 * target.c (update_current_target): Update.
11980 * remote.c (remote_set_trace_notes): Add 'self' argument.
11981
4da384be
TT
119822014-02-19 Tom Tromey <tromey@redhat.com>
11983
11984 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11985 argument.
11986 (target_set_trace_buffer_size): Add argument.
11987 * target.c (update_current_target): Update.
11988 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11989
736d5b1f
TT
119902014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11993 argument.
11994 (target_set_circular_trace_buffer): Add argument.
11995 * target.c (update_current_target): Update.
11996 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11997 argument.
11998
37b25738
TT
119992014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12002 argument.
12003 (target_set_disconnected_tracing): Add argument.
12004 * target.c (update_current_target): Update.
12005 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12006
0e67620a
TT
120072014-02-19 Tom Tromey <tromey@redhat.com>
12008
12009 * target.h (struct target_ops)
12010 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12011 (target_get_min_fast_tracepoint_insn_len): Add argument.
12012 * target.c (update_current_target): Update.
12013 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12014 argument.
12015
88ee6f45
TT
120162014-02-19 Tom Tromey <tromey@redhat.com>
12017
12018 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12019 argument.
12020 (target_get_raw_trace_data): Add argument.
12021 * target.c (update_current_target): Update.
12022 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12023
181e3713
TT
120242014-02-19 Tom Tromey <tromey@redhat.com>
12025
12026 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12027 Add argument.
12028 (target_upload_trace_state_variables): Add argument.
12029 * target.c (update_current_target): Update.
12030 * remote.c (remote_upload_trace_state_variables): Add 'self'
12031 argument.
12032 (remote_start_remote): Update.
12033
ab6617cc
TT
120342014-02-19 Tom Tromey <tromey@redhat.com>
12035
12036 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12037 argument.
12038 (target_upload_tracepoints): Add argument.
12039 * target.c (update_current_target): Update.
12040 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12041 (remote_start_remote): Update.
12042
dc3decaf
TT
120432014-02-19 Tom Tromey <tromey@redhat.com>
12044
12045 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12046 (target_save_trace_data): Add argument.
12047 * target.c (update_current_target): Update.
12048 * remote.c (remote_save_trace_data): Add 'self' argument.
12049
4011015b
TT
120502014-02-19 Tom Tromey <tromey@redhat.com>
12051
12052 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12053 argument.
12054 * target.h (struct target_ops)
12055 <to_get_trace_state_variable_value>: Add argument.
12056 (target_get_trace_state_variable_value): Add argument.
12057 * target.c (update_current_target): Update.
12058 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12059 argument.
12060 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12061
bd4c6793
TT
120622014-02-19 Tom Tromey <tromey@redhat.com>
12063
12064 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12065 * target.h (struct target_ops) <to_trace_find>: Add argument.
12066 (target_trace_find): Add argument.
12067 * target.c (update_current_target): Update.
12068 * remote.c (remote_trace_find): Add 'self' argument.
12069 * ctf.c (ctf_trace_find): Add 'self' argument.
12070
74499f1b
TT
120712014-02-19 Tom Tromey <tromey@redhat.com>
12072
12073 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12074 (target_trace_stop): Add argument.
12075 * target.c (update_current_target): Update.
12076 * remote.c (remote_trace_stop): Add 'self' argument.
12077
db90e85c
TT
120782014-02-19 Tom Tromey <tromey@redhat.com>
12079
12080 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12081 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12082 argument.
12083 (target_get_tracepoint_status): Add argument.
12084 * target.c (update_current_target): Update.
12085 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12086
8bd200f1
TT
120872014-02-19 Tom Tromey <tromey@redhat.com>
12088
12089 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12090 * target.h (struct target_ops) <to_get_trace_status>: Add
12091 argument.
12092 (target_get_trace_status): Add argument.
12093 * target.c (update_current_target): Update.
12094 * remote.c (remote_get_trace_status): Add 'self' argument.
12095 (remote_start_remote, remote_can_download_tracepoint): Update.
12096 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12097
e2d1aae3
TT
120982014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target.h (struct target_ops) <to_trace_start>: Add argument.
12101 (target_trace_start): Add argument.
12102 * target.c (update_current_target): Update.
12103 * remote.c (remote_trace_start): Add 'self' argument.
12104
583f9a86
TT
121052014-02-19 Tom Tromey <tromey@redhat.com>
12106
12107 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12108 Add argument.
12109 (target_trace_set_readonly_regions): Add argument.
12110 * target.c (update_current_target): Update.
12111 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12112 argument.
12113
780b049c
TT
121142014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12117 argument.
12118 (target_disable_tracepoint): Add argument.
12119 * target.c (update_current_target): Update.
12120 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12121
46670d57
TT
121222014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12125 argument.
12126 (target_enable_tracepoint): Add argument.
12127 * target.c (update_current_target): Update.
12128 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12129
559d2b81
TT
121302014-02-19 Tom Tromey <tromey@redhat.com>
12131
12132 * target.h (struct target_ops) <to_download_trace_state_variable>:
12133 Add argument.
12134 (target_download_trace_state_variable): Add argument.
12135 * target.c (update_current_target): Update.
12136 * remote.c (remote_download_trace_state_variable): Add 'self'
12137 argument.
12138
a52a8357
TT
121392014-02-19 Tom Tromey <tromey@redhat.com>
12140
12141 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12142 argument.
12143 (target_can_download_tracepoint): Add argument.
12144 * target.c (update_current_target): Update.
12145 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12146
548f7808
TT
121472014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target.h (struct target_ops) <to_download_tracepoint>: Add
12150 argument.
12151 (target_download_tracepoint): Add argument.
12152 * target.c (update_current_target): Update.
12153 * remote.c (remote_download_tracepoint): Add 'self' argument.
12154
ecae04e1
TT
121552014-02-19 Tom Tromey <tromey@redhat.com>
12156
12157 * target.h (struct target_ops) <to_trace_init>: Add argument.
12158 (target_trace_init): Add argument.
12159 * target.c (update_current_target): Update.
12160 * remote.c (remote_trace_init): Add 'self' argument.
12161
fab5aa7c
TT
121622014-02-19 Tom Tromey <tromey@redhat.com>
12163
12164 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12165 * target.c (target_fileio_readlink): Add argument.
12166 * remote.c (remote_hostio_readlink): Add 'self' argument.
12167 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12168
dbbca37d
TT
121692014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12172 * target.c (target_fileio_unlink): Add argument.
12173 * remote.c (remote_hostio_unlink): Add 'self' argument.
12174 (remote_file_delete): Update.
12175 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12176
df39ea25
TT
121772014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12180 * target.c (target_fileio_close): Add argument.
12181 * remote.c (remote_hostio_close): Add 'self' argument.
12182 (remote_hostio_close_cleanup): Update.
12183 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12184 Update.
12185 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12186
a3be983c
TT
121872014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12190 * target.c (target_fileio_pread): Add argument.
12191 * remote.c (remote_hostio_pread): Add 'self' argument.
12192 (remote_bfd_iovec_pread, remote_file_get): Update.
12193 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12194
0d866f62
TT
121952014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12198 * target.c (target_fileio_pwrite): Add argument.
12199 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12200 (remote_file_put): Update.
12201 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12202
cd897586
TT
122032014-02-19 Tom Tromey <tromey@redhat.com>
12204
12205 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12206 * target.c (target_fileio_open): Add argument.
12207 * remote.c (remote_hostio_open): Add 'self' argument.
12208 (remote_bfd_iovec_open): Add 'self' argument.
12209 (remote_file_put): Add 'self' argument.
12210 (remote_file_get): Add 'self' argument.
12211 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12212
78eff0ec
TT
122132014-02-19 Tom Tromey <tromey@redhat.com>
12214
12215 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12216 Add argument.
12217 (target_can_run_breakpoint_commands): Add argument.
12218 * target.c (update_current_target): Update.
12219 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12220 argument.
12221 (remote_insert_breakpoint): Add 'self' argument.
12222 (remote_insert_hw_breakpoint): Add 'self' argument.
12223 (remote_can_run_breakpoint_commands): Add 'self' argument.
12224
efcc2da7
TT
122252014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * target.h (struct target_ops)
12228 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12229 (target_supports_evaluation_of_breakpoint_conditions): Add
12230 argument.
12231 * target.c (update_current_target): Update.
12232 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12233 argument.
12234 (remote_insert_breakpoint): Add 'self' argument.
12235 (remote_insert_hw_breakpoint): Add 'self' argument.
12236 (remote_supports_cond_breakpoints): Add 'self' argument.
12237
6de37a3a
TT
122382014-02-19 Tom Tromey <tromey@redhat.com>
12239
12240 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12241 argument.
12242 (target_supports_string_tracing): Add argument.
12243 * target.c (update_current_target): Update.
12244 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12245
2bfc0540
TT
122462014-02-19 Tom Tromey <tromey@redhat.com>
12247
12248 * target.h (struct target_ops)
12249 <to_supports_disable_randomization>: Add argument.
12250 * target.c (find_default_supports_disable_randomization): Add
12251 argument.
12252 (target_supports_disable_randomization): Add argument.
12253 (find_default_supports_disable_randomization): Add 'self'
12254 argument.
12255 * remote.c (extended_remote_supports_disable_randomization): Add
12256 'self' argument.
12257 (remote_supports_disable_randomization): Add 'self' argument.
12258 (extended_remote_create_inferior): Update.
12259 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12260 'self' argument.
12261
7d178d6a
TT
122622014-02-19 Tom Tromey <tromey@redhat.com>
12263
12264 * target.h (struct target_ops)
12265 <to_supports_enable_disable_tracepoint>: Add argument.
12266 (target_supports_enable_disable_tracepoint): Add argument.
12267 * target.c (update_current_target): Update.
12268 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12269 argument.
12270
86ce2668
TT
122712014-02-19 Tom Tromey <tromey@redhat.com>
12272
12273 * target.h (struct target_ops) <to_supports_multi_process>: Add
12274 argument.
12275 (target_supports_multi_process): Add argument.
12276 * target.c (update_current_target): Update.
12277 * remote.c (remote_supports_multi_process): Add 'self' argument.
12278 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12279 argument.
12280 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12281 argument.
12282
4c612759
TT
122832014-02-19 Tom Tromey <tromey@redhat.com>
12284
12285 * target.h (struct target_ops) <to_execution_direction>: Add
12286 argument.
12287 (target_execution_direction): Add argument.
12288 * target.c (default_execution_direction): Add 'self' argument.
12289 * record-full.c (record_full_execution_direction): Add 'self'
12290 argument.
12291
19db3e69
TT
122922014-02-19 Tom Tromey <tromey@redhat.com>
12293
12294 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12295 argument.
12296 (target_can_execute_reverse): Add argument.
12297 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12298 * record-full.c (record_full_can_execute_reverse): Add 'self'
12299 argument.
12300 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12301 argument.
12302
1e6b91a4
TT
123032014-02-19 Tom Tromey <tromey@redhat.com>
12304
12305 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12306 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12307 argument.
12308 (target_get_ada_task_ptid): Add argument.
12309 * target.c (update_current_target): Update.
12310 (default_get_ada_task_ptid): Add 'self' argument.
12311 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12312 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12313 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12314 argument.
12315 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12316 argument.
12317 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12318 argument.
12319 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12320 argument.
12321 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12322 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12323 argument.
12324
3c80fb48
TT
123252014-02-19 Tom Tromey <tromey@redhat.com>
12326
12327 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12328 (target_goto_bookmark): Add argument.
12329 * target.c (dummy_goto_bookmark): Add 'self' argument.
12330 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12331
dd0e2830
TT
123322014-02-19 Tom Tromey <tromey@redhat.com>
12333
12334 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12335 (target_get_bookmark): Add argument.
12336 * target.c (dummy_get_bookmark): Add 'self' argument.
12337 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12338
fc6691b2
TT
123392014-02-19 Tom Tromey <tromey@redhat.com>
12340
12341 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12342 argument.
12343 (target_make_corefile_notes): Add argument.
12344 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12345 * procfs.c (procfs_make_note_section): Add 'self' argument.
12346 (procfs_make_note_section): Add 'self' argument.
12347 (procfs_make_note_section): Add 'self' argument.
12348 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12349 argument.
12350 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12351 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12352 * exec.c (exec_make_note_section): Add 'self' argument.
12353 (exec_make_note_section): Add 'self' argument.
12354
2e73927c
TT
123552014-02-19 Tom Tromey <tromey@redhat.com>
12356
12357 * target.h (struct target_ops) <to_find_memory_regions>: Add
12358 argument.
12359 (target_find_memory_regions): Add argument.
12360 * target.c (dummy_find_memory_regions): Add 'self' argument.
12361 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12362 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12363 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12364 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12365 * exec. (exec_do_find_memory_regions): New global.
12366 (exec_set_find_memory_regions): Rewrite.
12367 (exec_find_memory_regions): New function.
12368 (init_exec_ops): Use exec_find_memory_regions.
12369
2a9a2795
TT
123702014-02-19 Tom Tromey <tromey@redhat.com>
12371
12372 * target.h (struct target_ops) <to_supports_non_stop>: Add
12373 argument.
12374 * target.c (find_default_supports_non_stop): Add argument.
12375 (target_supports_non_stop): Add argument.
12376 (find_default_supports_non_stop): Add 'self' argument.
12377 * remote.c (remote_supports_non_stop): Add 'self' argument.
12378 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12379
4ab76ea3
TT
123802014-02-19 Tom Tromey <tromey@redhat.com>
12381
12382 * target.h (struct target_ops) <to_log_command>: Add argument.
12383 (target_log_command): Add argument.
12384 * serial.h (serial_log_command): Add 'self' argument.
12385 * serial.c (serial_log_command): Add 'self' argument.
12386
8dd27370
TT
123872014-02-19 Tom Tromey <tromey@redhat.com>
12388
12389 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12390 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12391 argument.
12392 (target_pid_to_exec_file): Add argument.
12393 * target.c (debug_to_pid_to_exec_file): Add argument.
12394 (update_current_target): Update.
12395 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12396 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12397 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12398 (linux_handle_extended_wait): Update.
12399 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12400 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12401 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12402 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12403
1aac633b
TT
124042014-02-19 Tom Tromey <tromey@redhat.com>
12405
12406 * target.h (struct target_ops) <to_rcmd>: Add argument.
12407 (target_rcmd): Add argument.
12408 * target.c (debug_to_rcmd): Add argument.
12409 (update_current_target, do_monitor_command): Update.
12410 * remote.c (remote_rcmd): Add 'self' argument.
12411 * monitor.c (monitor_rcmd): Add 'self' argument.
12412
1eab8a48
TT
124132014-02-19 Tom Tromey <tromey@redhat.com>
12414
12415 * windows-nat.c (windows_stop): Add 'self' argument.
12416 * target.h (struct target_ops) <to_stop>: Add argument.
12417 * target.c (target_stop): Add argument.
12418 (debug_to_stop): Add argument.
12419 (update_current_target): Update.
12420 * remote.c (remote_stop): Add 'self' argument.
12421 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12422 (gdbsim_cntrl_c): Update.
12423 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12424 * procfs.c (procfs_stop): Add 'self' argument.
12425 * nto-procfs.c (procfs_stop): Add 'self' argument.
12426 * monitor.c (monitor_stop): Add 'self' argument.
12427 (monitor_open): Update.
12428 * linux-nat.c (linux_nat_stop): Add argument.
12429 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12430 * gnu-nat.c (gnu_stop): Add 'self' argument.
12431 * darwin-nat.c (darwin_stop): Add 'self' argument.
12432
503a628d
TT
124332014-02-19 Tom Tromey <tromey@redhat.com>
12434
12435 * target.h (struct target_ops) <to_thread_name>: Add argument.
12436 * target.c (target_thread_name): Add argument.
12437 (update_current_target): Update.
12438 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12439
c15906d8
TT
124402014-02-19 Tom Tromey <tromey@redhat.com>
12441
12442 * target.h (struct target_ops) <to_extra_thread_info>: Add
12443 argument.
12444 (target_extra_thread_info): Add argument.
12445 * target.c (update_current_target): Update.
12446 * remote.c (remote_threads_extra_info): Add 'self' argument.
12447 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12448 argument.
12449 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12450 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12451 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12452 argument.
12453 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12454 argument.
12455 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12456 argument.
12457 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12458 argument.
12459
daf5e9b6
TT
124602014-02-19 Tom Tromey <tromey@redhat.com>
12461
12462 * target.h (struct target_ops) <to_program_signals>: Add argument.
12463 * target.c (target_program_signals): Add argument.
12464 * remote.c (remote_program_signals): Add 'self' argument.
12465
94bedb42
TT
124662014-02-19 Tom Tromey <tromey@redhat.com>
12467
12468 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12469 * target.c (target_pass_signals): Add argument.
12470 * remote.c (remote_pass_signals): Add 'self' argument.
12471 (remote_start_remote): Update.
12472 * procfs.c (procfs_pass_signals): Add 'self' argument.
12473 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12474 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12475 (linux_nat_create_inferior, linux_nat_attach): Update.
12476
da82bd6b
TT
124772014-02-19 Tom Tromey <tromey@redhat.com>
12478
12479 * windows-nat.c (windows_can_run): Add 'self' argument.
12480 * target.h (struct target_ops) <to_can_run>: Add argument.
12481 (target_can_run): Add argument.
12482 * target.c (debug_to_can_run): Add argument.
12483 (update_current_target): Update.
12484 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12485 * inf-child.c (inf_child_can_run): Add 'self' argument.
12486 * go32-nat.c (go32_can_run): Add 'self' argument.
12487
d796e1d6
TT
124882014-02-19 Tom Tromey <tromey@redhat.com>
12489
12490 * target.h (struct target_ops) <to_has_exited>: Add argument.
12491 (target_has_exited): Add argument.
12492 * target.c (debug_to_has_exited): Add argument.
12493 (update_current_target): Update.
12494
ff214e67
TT
124952014-02-19 Tom Tromey <tromey@redhat.com>
12496
12497 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12498 argument.
12499 (target_set_syscall_catchpoint): Add argument.
12500 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12501 argument.
12502 * target.c (update_current_target): Update.
12503
758e29d2
TT
125042014-02-19 Tom Tromey <tromey@redhat.com>
12505
12506 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12507 argument.
12508 (target_remove_exec_catchpoint): Add argument.
12509 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12510 (update_current_target): Update.
12511 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12512 argument.
12513
ba025e51
TT
125142014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12517 argument.
12518 (target_insert_exec_catchpoint): Add argument.
12519 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12520 (update_current_target): Update.
12521 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12522 argument.
12523
e98cf0cd
TT
125242014-02-19 Tom Tromey <tromey@redhat.com>
12525
12526 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12527 argument.
12528 (target_remove_vfork_catchpoint): Add argument.
12529 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12530 (update_current_target): Update.
12531 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12532 argument.
12533
3ecc7da0
TT
125342014-02-19 Tom Tromey <tromey@redhat.com>
12535
12536 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12537 argument.
12538 (target_insert_vfork_catchpoint): Add argument.
12539 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12540 (update_current_target): Update.
12541 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12542 argument.
12543
973fc227
TT
125442014-02-19 Tom Tromey <tromey@redhat.com>
12545
12546 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12547 argument.
12548 (target_remove_fork_catchpoint): Add argument.
12549 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12550 (update_current_target): Update.
12551 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12552 argument.
12553
a863b201
TT
125542014-02-19 Tom Tromey <tromey@redhat.com>
12555
12556 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12557 argument.
12558 (target_insert_fork_catchpoint): Add argument.
12559 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12560 (update_current_target): Update.
12561 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12562 argument.
12563
2e97a79e
TT
125642014-02-19 Tom Tromey <tromey@redhat.com>
12565
12566 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12567 argument.
12568 (target_post_startup_inferior): Add argument.
12569 * target.c (debug_to_post_startup_inferior): Add argument.
12570 (update_current_target): Update.
12571 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12572 argument.
12573 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12574 argument.
12575 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12576 argument.
12577 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12578 argument.
12579 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12580 'self' argument.
12581 (super_post_startup_inferior): Likewise.
12582 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12583 'self' argument.
12584 (super_post_startup_inferior): Likewise.
12585 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12586 Add 'self' argument.
12587 (super_post_startup_inferior): Likewise.
12588
71a9f134
TT
125892014-02-19 Tom Tromey <tromey@redhat.com>
12590
12591 * target.h (struct target_ops) <to_load>: Add argument.
12592 * target.c (target_load): Add argument.
12593 (debug_to_load): Add argument.
12594 (update_current_target): Update.
12595 * remote.c (remote_load): Add 'self' argument.
12596 * remote-sim.c (gdbsim_load): Add 'self' argument.
12597 * remote-mips.c (mips_load): Add 'self' argument.
12598 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12599 * monitor.c (monitor_load): Add 'self' argument.
12600 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12601
0a4f40a2
TT
126022014-02-19 Tom Tromey <tromey@redhat.com>
12603
12604 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12605 (target_terminal_info): Add argument.
12606 * target.c (debug_to_terminal_info): Add argument.
12607 (default_terminal_info): Likewise.
12608 * inflow.c (child_terminal_info): Add 'self' argument.
12609 * inferior.h (child_terminal_info): Add 'self' argument.
12610 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12611
ae3bd431
TT
126122014-02-19 Tom Tromey <tromey@redhat.com>
12613
12614 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12615 argument.
12616 (target_terminal_save_ours): Add argument.
12617 * target.c (debug_to_terminal_save_ours): Add argument.
12618 (update_current_target): Update.
12619 * inflow.c (terminal_save_ours): Add 'self' argument.
12620 * inferior.h (terminal_save_ours): Add 'self' argument.
12621
e3594fd1
TT
126222014-02-19 Tom Tromey <tromey@redhat.com>
12623
12624 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12625 (target_terminal_ours): Add argument.
12626 * target.c (debug_to_terminal_ours): Add argument.
12627 (update_current_target): Update.
12628 * remote.c (remote_terminal_ours): Add 'self' argument.
12629 (remote_close): Update.
12630 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12631 * inflow.c (terminal_ours): Add 'self' argument.
12632 * inferior.h (terminal_ours): Add 'self' argument.
12633 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12634
2e1e1a19
TT
126352014-02-19 Pedro Alves <palves@redhat.com>
12636 Tom Tromey <tromey@redhat.com>
12637
12638 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12639 argument.
12640 (target_terminal_ours_for_output): Add argument.
12641 * target.c (debug_to_terminal_ours_for_output): Add argument.
12642 (update_current_target): Update.
12643 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12644 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12645 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12646
d2f640d4
TT
126472014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target.h (struct target_ops) <to_terminal_inferior>: Add
12650 argument.
12651 * target.c (target_terminal_inferior): Add argument.
12652 (update_current_target): Update.
12653 * remote.c (remote_terminal_inferior): Add 'self' argument.
12654 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12655 * inflow.c (terminal_inferior): Add 'self' argument.
12656 * inferior.h (terminal_inferior): Add 'self' argument.
12657 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12658 (go32_terminal_inferior): Add 'self' argument.
12659
c42bf286
TT
126602014-02-19 Tom Tromey <tromey@redhat.com>
12661
12662 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12663 (target_terminal_init): Add argument.
12664 * target.c (debug_to_terminal_init): Add argument.
12665 (update_current_target): Update.
12666 * inflow.c (terminal_init_inferior): Add 'self' argument.
12667 * inferior.h (terminal_init_inferior): Add 'self' argument.
12668 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12669 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12670
c3a5ff89
TT
126712014-02-19 Tom Tromey <tromey@redhat.com>
12672
12673 * target.h (struct target_ops)
12674 <to_can_accel_watchpoint_condition>: Add argument.
12675 (target_can_accel_watchpoint_condition): Add argument.
12676 * target.c (debug_to_can_accel_watchpoint_condition): Add
12677 argument.
12678 (update_current_target): Update.
12679 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12680 'self' argument.
12681
31568a15
TT
126822014-02-19 Tom Tromey <tromey@redhat.com>
12683
12684 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12685 Add argument.
12686 (target_region_ok_for_hw_watchpoint): Add argument.
12687 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12688 (default_region_ok_for_hw_watchpoint): Add argument.
12689 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12690 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12691 argument.
12692 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12693 argument.
12694 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12695 argument.
12696 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12697 'self' argument.
12698 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12699 'self' argument.
12700 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12701 'self' argument.
12702 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12703 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12704 'self' argument.
12705 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12706 Add 'self' argument.
12707
7bb99c53
TT
127082014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12711 argument.
12712 (target_insert_watchpoint): Add argument.
12713 * target.c (debug_to_insert_watchpoint): Add argument.
12714 (update_current_target): Update.
12715 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12716 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12717 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12718 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12719 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12720 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12721 argument.
12722 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12723 (procfs_insert_hw_watchpoint): Add 'self' argument.
12724 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12725 argument.
12726 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12727 argument.
12728 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12729 argument.
12730 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12731 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12732 argument.
12733 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12734 'self' argument.
12735
11b5219a
TT
127362014-02-19 Tom Tromey <tromey@redhat.com>
12737
12738 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12739 argument.
12740 (target_remove_watchpoint): Add argument.
12741 * target.c (debug_to_remove_watchpoint): Add argument.
12742 (update_current_target): Update.
12743 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12744 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12745 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12746 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12747 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12748 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12749 argument.
12750 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12751 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12752 argument.
12753 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12754 argument.
12755 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12756 argument.
12757 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12758 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12759 argument.
12760 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12761 'self' argument.
12762
a64dc96c
TT
127632014-02-19 Tom Tromey <tromey@redhat.com>
12764
12765 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12766 argument.
12767 (target_remove_hw_breakpoint): Add argument.
12768 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12769 (update_current_target): Update.
12770 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12771 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12772 argument.
12773 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12774 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12775 argument.
12776 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12777 'self' argument.
12778
23a26771
TT
127792014-02-19 Tom Tromey <tromey@redhat.com>
12780
12781 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12782 argument.
12783 (target_insert_hw_breakpoint): Add argument.
12784 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12785 (update_current_target): Update.
12786 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12787 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12788 argument.
12789 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12790 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12791 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12792 argument.
12793 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12794 'self' argument.
12795
5461485a
TT
127962014-02-19 Tom Tromey <tromey@redhat.com>
12797
12798 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12799 argument.
12800 (target_can_use_hardware_watchpoint): Add argument.
12801 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12802 (update_current_target): Update.
12803 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12804 argument.
12805 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12806 argument.
12807 * remote.c (remote_check_watch_resources): Add 'self' argument.
12808 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12809 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12810 argument.
12811 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12812 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12813 argument.
12814 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12815 argument.
12816 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12817 argument.
12818 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12819 argument.
12820 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12821 argument.
12822 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12823 argument.
12824 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12825 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12826 argument.
12827 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12828 'self' argument.
12829
f045800c
TT
128302014-02-19 Tom Tromey <tromey@redhat.com>
12831
12832 * target.h (struct target_ops) <to_post_attach>: Add argument.
12833 (target_post_attach): Add argument.
12834 * target.c (debug_to_post_attach): Add argument.
12835 (update_current_target): Update.
12836 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12837 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12838 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12839 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12840 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12841
de90e03d
TT
128422014-02-19 Tom Tromey <tromey@redhat.com>
12843
12844 * windows-nat.c (windows_close): Add 'self' argument.
12845 * tracepoint.c (tfile_close): Add 'self' argument.
12846 * target.h (struct target_ops) <to_close>: Add argument.
12847 * target.c (target_close): Add argument.
12848 (update_current_target): Update.
12849 * remote.c (remote_close): Add 'self' argument.
12850 * remote-sim.c (gdbsim_close): Add 'self' argument.
12851 * remote-mips.c (mips_close): Add 'self' argument.
12852 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12853 * record-full.c (record_full_close): Add 'self' argument.
12854 * record-btrace.c (record_btrace_close): Add 'self' argument.
12855 * monitor.h (monitor_close): Add 'self' argument.
12856 * monitor.c (monitor_close): Add 'self' argument.
12857 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12858 * linux-nat.c (linux_nat_close): Add argument.
12859 * go32-nat.c (go32_close): Add 'self' argument.
12860 * exec.c (exec_close_1): Add 'self' argument.
12861 * ctf.c (ctf_close): Add 'self' argument.
12862 * corelow.c (core_close): Add 'self' argument.
12863 (core_close_cleanup): Update.
12864 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12865 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12866
9dd130a0
TT
128672014-02-19 Tom Tromey <tromey@redhat.com>
12868
12869 * remote.c (remote_load): New function.
12870 (init_remote_ops): Use it.
12871
46917d26
TT
128722014-02-19 Tom Tromey <tromey@redhat.com>
12873
12874 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12875 argument.
12876 * common/linux-btrace.h (linux_supports_btrace): Update.
12877 * remote.c (remote_supports_btrace): Add "self" argument.
12878 * target-delegates.c: Rebuild.
12879 * target.c (target_supports_btrace): Remove.
12880 * target.h (struct target_ops) <to_supports_btrace>: Add
12881 target_ops argument.
12882 (target_supports_btrace): New define.
12883
6b84065d
TT
128842014-02-19 Tom Tromey <tromey@redhat.com>
12885
12886 * record-full.c (record_full_beneath_to_resume_ops)
12887 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12888 (record_full_beneath_to_wait)
12889 (record_full_beneath_to_store_registers_ops)
12890 (record_full_beneath_to_store_registers)
12891 (record_full_beneath_to_xfer_partial_ops)
12892 (record_full_beneath_to_xfer_partial)
12893 (record_full_beneath_to_insert_breakpoint_ops)
12894 (record_full_beneath_to_insert_breakpoint)
12895 (record_full_beneath_to_remove_breakpoint_ops)
12896 (record_full_beneath_to_remove_breakpoint)
12897 (record_full_beneath_to_stopped_by_watchpoint)
12898 (record_full_beneath_to_stopped_data_address)
12899 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12900 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12901 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12902 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12903 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12904 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12905 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12906 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12907 (record_full_resume, record_full_wait_1)
12908 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12909 (record_full_store_registers, record_full_xfer_partial)
12910 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12911 (record_full_async, record_full_core_xfer_partial): Use target
12912 delegation.
12913 * target-delegates.c: Rebuild.
12914 * target.c (current_xfer_partial): Remove.
12915 (update_current_target): Do not INHERIT or de_fault
12916 to_insert_breakpoint, to_remove_breakpoint,
12917 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12918 to_is_async_p, to_async. Do not set to_xfer_partial field.
12919 (default_xfer_partial): Simplify.
12920 (current_xfer_partial): Remove.
12921 (target_wait, target_resume): Simplify.
12922 (find_default_can_async_p, find_default_is_async_p): Update.
12923 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12924 to_xfer_partial, to_stopped_by_watchpoint,
12925 to_stopped_data_address.
12926 (target_store_registers): Simplify.
12927 (forward_target_remove_breakpoint)
12928 (forward_target_insert_breakpoint): Remove.
12929 (target_remove_breakpoint, target_insert_breakpoint)
12930 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12931 * target.h (struct target_ops) <to_resume, to_wait,
12932 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12933 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12934 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12935 markup.
12936 (forward_target_remove_breakpoint)
12937 (forward_target_insert_breakpoint): Remove.
12938 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12939 directly.
12940 (record_btrace_insert_breakpoint): Delegate directly.
12941
1101cb7b
TT
129422014-02-19 Tom Tromey <tromey@redhat.com>
12943
12944 PR build/7701:
12945 * target-delegates.c: New file.
12946 * target.c: Include target-delegates.c.
12947 (init_dummy_target): Call install_dummy_methods.
12948 (complete_target_initialization): Call install_delegators.
12949 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12950 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12951 * make-target-delegates: New file.
12952
8b06beed
TT
129532014-02-19 Tom Tromey <tromey@redhat.com>
12954
12955 * record.c (find_record_target): Use find_target_at.
12956 * target.c (find_target_at): New function.
12957 * target.h (find_target_at): Declare.
12958
6a109b6b
TT
129592014-02-19 Tom Tromey <tromey@redhat.com>
12960
12961 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12962 Add 'ops' argument.
12963 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12964 'ops' argument.
12965 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12966 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12967 'ops' argument.
12968 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12969 argument.
12970 * linux-nat.c (save_sigtrap): Update.
12971 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12972 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12973 (linux_nat_close): Update.
12974 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12975 argument.
12976 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12977 argument.
12978 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12979 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12980 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12981 (tmp_to_async): Add 'ops' argument.
12982 (record_full_stopped_by_watchpoint, record_full_async)
12983 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12984 argument.
12985 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12986 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12987 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12988 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12989 (remote_is_async_p, remote_async): Add 'ops' argument.
12990 (remote_stopped_data_address): Update.
12991 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12992 * target.c (update_current_target)
12993 (find_default_can_async_p, find_default_is_async_p): Update.
12994 (init_dummy_target): Update.
12995 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12996 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12997 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12998 (target_can_async_p, target_is_async_p, target_async)
12999 (target_stopped_by_watchpoint): Update.
13000
e095146b
YQ
130012014-02-19 Yao Qi <yao@codesourcery.com>
13002
13003 PR gdb/16220
13004 * gdbarch.sh: Remove startup_gdbarch.
13005 * gdbarch.c: Regenerated.
13006 * gdbarch.h: Likewise.
13007
bc3c6b36
KB
130082014-02-17 Kevin Buettner <kevinb@redhat.com>
13009
13010 * rl78-tdep.c (rl78_g10_register_name): New function.
13011 (rl78_return_value): Add g10 support.
13012 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13013 g10.
13014
98dc0167 130152014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13016
13017 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13018 (SUBDIR_GUILE_SRCS): Ditto.
13019 (scm-gsmob.o): Ditto.
13020
842c05cd
YQ
130212014-02-17 Yao Qi <yao@codesourcery.com>
13022
13023 * gnu-nat.c (ILL_RPC): Declare defined function.
13024
25c0bd04
YQ
130252014-02-17 Yao Qi <yao@codesourcery.com>
13026
13027 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13028 mach_msg_type_number_t.
13029 (gnu_write_inferior): Likewise.
13030
a9a758e3
YQ
130312014-02-17 Yao Qi <yao@codesourcery.com>
13032
13033 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13034 in format string.
13035 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13036 (inf_validate_procs, inf_signal): Likewise.
13037 (S_exception_raise_request): Likewise.
13038 (do_mach_notify_dead_name): Likewise.
13039 (steal_exc_port): Likewise.
13040 (gnu_read_inferior): Change 'copy_count''s type to
13041 mach_msg_type_number_t.
13042 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13043 format string.
13044
bae8023e
TS
130452014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13046
c82f56d9
TS
13047 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13048 flag. Adjust all users; in particular...
13049 (gnu_wait): ..., don't decrement its value in here...
13050 (gnu_create_inferior): ..., and instead set the flag in here,
13051 around the startup_inferior call, and call that one with
13052 START_INFERIOR_TRAPS_EXPECTED.
13053
3398af6a
TS
13054 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13055 (ILL_RPC): ... new macro.
13056 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13057 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13058 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13059 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13060 functions with ILL_RPC macro.
13061 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13062 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13063 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13064 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13065 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13066 (S_proc_getlogin_reply, S_proc_getsid_reply)
13067 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13068 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13069 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13070 (S_proc_getnports_reply, S_proc_is_important_reply)
13071 (S_proc_get_code_reply): New stub functions, generated with
13072 ILL_RPC macro.
13073
d47642c9
TS
13074 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13075 collected the type check structures.
13076
bae8023e
TS
13077 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13078
8a55ffb0
DE
130792014-02-14 Doug Evans <dje@google.com>
13080
13081 * target.c (target_write_partial): Fix result type.
13082
c2853f3d
JM
130832014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13084
13085 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13086 the proper offsets to access fpregset_t.
13087
ac61d2db
SA
130882014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13089
13090 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13091 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13092 * h8300-tdep.c (setmachinelist): Remove global.
13093 * hppa-tdep.c (hppa_sigtramp): Remove global.
13094 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13095 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13096 * ravenscar-thread.c (update_target_observer): Remove global.
13097 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13098
9d2d0b8b
TT
130992014-02-12 Tom Tromey <tromey@redhat.com>
13100
13101 * common/rsp-low.c: Update comments.
13102 * common/rsp-low.h: Update comments.
13103
a7191e8b
TT
131042014-02-12 Tom Tromey <tromey@redhat.com>
13105
13106 * common/rsp-low.c (convert_ascii_to_int): Remove.
13107 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13108
ff0e980e
TT
131092014-02-12 Tom Tromey <tromey@redhat.com>
13110
13111 * common/rsp-low.h (unhexify): Don't declare.
13112 * common/rsp-low.c (unhexify): Remove.
13113
e9371aff
TT
131142014-02-12 Tom Tromey <tromey@redhat.com>
13115
13116 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13117 * common/rsp-low.c (convert_int_to_ascii): Remove.
13118
971dc0b8
TT
131192014-02-12 Tom Tromey <tromey@redhat.com>
13120
13121 * common/rsp-low.h (hexify): Don't declare.
13122 * common/rsp-low.c (hexify): Remove.
13123
0a822afb
TT
131242014-02-12 Tom Tromey <tromey@redhat.com>
13125
13126 * common/rsp-low.c (hexify): Never take strlen of argument.
13127
9f1b45b0
TT
131282014-02-12 Tom Tromey <tromey@redhat.com>
13129
13130 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13131 * remote.c (extended_remote_run, remote_rcmd)
13132 (remote_download_trace_state_variable, remote_save_trace_data)
13133 (remote_set_trace_notes): Update.
13134 * tracepoint.c (encode_source_string, tfile_write_status)
13135 (tfile_write_uploaded_tsv): Update.
13136
9c3d6531
TT
131372014-02-12 Tom Tromey <tromey@redhat.com>
13138
13139 * tracepoint.c: Include rsp-low.h.
13140 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13141 * remote.c: Include rsp-low.h.
13142 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13143 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13144 (remote_unescape_input): Move to common/rsp-low.c.
13145 * common/rsp-low.h: New file.
13146 * common/rsp-low.c: New file.
13147 * Makefile.in (SFILES): Add common/rsp-low.c.
13148 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13149 (COMMON_OBS): Add rsp-low.o.
13150 (rsp-low.o): New target.
13151
01fd3ea5
TT
131522014-02-12 Tom Tromey <tromey@redhat.com>
13153
13154 * utils.h: Include print-utils.h.
13155 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13156 (int_string, core_addr_to_string, core_addr_to_string_nz)
13157 (hex_string, hex_string_custom): Don't declare.
13158 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13159 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13160 (hex_string_custom, int_string, core_addr_to_string)
13161 (core_addr_to_string_nz, host_address_to_string): Move to
13162 common/print-utils.c.
13163 * common/print-utils.h: New file.
13164 * common/print-utils.c: New file
13165 * Makefile.in (SFILES): Add common/print-utils.c.
13166 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13167 (COMMON_OBS): Add print-utils.o.
13168 (print-utils.o): New target.
13169
9fb50108
TT
131702014-02-12 Tom Tromey <tromey@redhat.com>
13171
13172 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13173
0548b5db
MK
131742014-02-12 Mark Kettenis <kettenis@gnu.org>
13175
13176 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13177
493443a4
MK
131782014-02-12 Mark Kettenis <kettenis@gnu.org>
13179
13180 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13181 if a PT_IO ptrace request returns sucessfully but indicates that 0
13182 bytes were transferred.
13183
706d0883
PA
131842014-02-12 Pedro Alves <palves@redhat.com>
13185 Kevin Buettner <kevinb@redhat.com>
13186
13187 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13188 TYPE_INSTANCE_FLAG_CODE_SPACE.
13189
5caa2f0b
PA
131902014-02-12 Pedro Alves <palves@redhat.com>
13191
13192 * h8300-tdep.c (pseudo_from_raw_register)
13193 (raw_from_pseudo_register): New functions.
13194 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13195 them.
13196
76fd5f74
PA
131972014-02-12 Pedro Alves <palves@redhat.com>
13198
13199 * h8300-tdep.c (h8300_register_sim_regno): New function.
13200 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13201 gdbarch_register_sim_regno hook.
13202
8f008406
SA
132032014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13204
13205 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13206
195abc10
SA
132072014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13208
13209 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13210
93ffa5b9
MK
132112014-02-12 Mark Kettenis <kettenis@gnu.org>
13212
13213 * obsd-tdep.h (obsd_init_abi): New prototype.
13214 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13215 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13216 (obsd_init_abi): New functions.
13217 * i386obsd-tdep.c: Include "obsd-tdep.h".
13218 (i386obsd_init_abi): Call obsd_init_abi.
13219 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13220 (amd64obsd_init_abi): Call obsd_init_abi.
13221 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13222 obsd-tdep.c to gdb_target_obs.
13223
49caec94
JM
132242014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13225
13226 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13227 double float arguments to 16-byte in the argument slots.
13228
e1402065
DE
132292014-02-11 Doug Evans <xdje42@gmail.com>
13230
13231 * configure.ac: Don't crash if pkg-config is not found and guile
13232 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13233 in guile checks.
13234 * configure: Regenerate.
13235
edcc890f
YQ
132362014-02-11 Yao Qi <yao@codesourcery.com>
13237
13238 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13239 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13240 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13241 * gnu-nat.c (gnu_xfer_memory): Likewise.
13242 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13243 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13244 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13245 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13246
9b409511
YQ
132472014-02-11 Yao Qi <yao@codesourcery.com>
13248
13249 * target.h (enum target_xfer_error): Rename to ...
13250 (enum target_xfer_status): ... it. New. All users updated.
13251 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13252 New.
13253 (TARGET_XFER_STATUS_ERROR_P): New macro.
13254 (target_xfer_error_to_string): Remove declaration.
13255 (target_xfer_status_to_string): Declare.
13256 (target_xfer_partial_ftype): Adjust it.
13257 (struct target_ops) <to_xfer_partial>: Return
13258 target_xfer_status. Add argument xfered_len. Update
13259 comments.
13260 * target.c (target_xfer_error_to_string): Rename to ...
13261 (target_xfer_status_to_string): ... it. New. All callers
13262 updated.
13263 (target_read_live_memory): Likewise. Call target_xfer_partial
13264 instead of target_read.
13265 (memory_xfer_live_readonly_partial): Return
13266 target_xfer_status. Add argument xfered_len.
13267 (raw_memory_xfer_partial): Likewise.
13268 (memory_xfer_partial_1): Likewise.
13269 (memory_xfer_partial): Likewise.
13270 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13271 properly. Update debug message.
13272 (default_xfer_partial, current_xfer_partial): Likewise.
13273 (target_write_partial): Likewise.
13274 (target_read_partial): Likewise. All callers updated.
13275 (read_whatever_is_readable): Likewise.
13276 (target_write_with_progress): Likewise.
13277 (target_read_alloc_1): Likewise.
13278
13279 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13280 * auxv.c (procfs_xfer_auxv): Likewise.
13281 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13282 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13283 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13284 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13285 * corefile.c (read_memory): Adjust.
13286 * corelow.c (core_xfer_partial): Likewise.
13287 * ctf.c (ctf_xfer_partial): Likewise.
13288 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13289 updated.
13290 (darwin_xfer_partial): Likewise.
13291 * exec.c (section_table_xfer_memory_partial): Likewise. All
13292 callers updated.
13293 (exec_xfer_partial): Likewise.
13294 * exec.h (section_table_xfer_memory_partial): Update
13295 declaration.
13296 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13297 negative.
13298 (gnu_xfer_partial): Likewise.
13299 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13300 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13301 (ia64_hpux_xfer_solib_got): Likewise.
13302 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13303 type of 'partial_len' to ULONGEST.
13304 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13305 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13306 (linux_nat_xfer_partial): Likewise.
13307 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13308 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13309 * monitor.c (monitor_xfer_memory): Likewise.
13310 (monitor_xfer_partial): Likewise.
13311 * procfs.c (procfs_xfer_partial): Likewise.
13312 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13313 * record-full.c (record_full_xfer_partial): Likewise.
13314 (record_full_core_xfer_partial): Likewise.
13315 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13316 (gdbsim_xfer_partial): Likewise.
13317 * remote.c (remote_write_bytes_aux): Likewise. All callers
13318 updated.
13319 (remote_write_bytes, remote_read_bytes): Likewise. All
13320 callers updated.
13321 (remote_flash_erase): Likewise. All callers updated.
13322 (remote_write_qxfer): Likewise. All callers updated.
13323 (remote_read_qxfer): Likewise. All callers updated.
13324 (remote_xfer_partial): Likewise.
13325 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13326 (rs6000_xfer_shared_libraries): Likewise.
13327 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13328 (sol_thread_xfer_partial): Likewise.
13329 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13330 (sparc_xfer_partial): Likewise.
13331 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13332 updated.
13333 (spu_xfer_partial): Likewise.
13334 * spu-multiarch.c (spu_xfer_partial): Likewise.
13335 * tracepoint.c (tfile_xfer_partial): Likewise.
13336 * windows-nat.c (windows_xfer_memory): Likewise.
13337 (windows_xfer_shared_libraries): Likewise.
13338 (windows_xfer_partial): Likewise.
13339 * valprint.c: Replace 'target_xfer_error' with
13340 'target_xfer_status' in comments.
13341
a8e63083
JB
133422014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13343
13344 Checked in by Joel Brobecker <brobecker@adacore.com>.
13345 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13346
e86b67d3
JB
133472014-02-11 Joel Brobecker <brobecker@adacore.com>
13348
13349 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13350 function parameters.
13351
4b7d1f7f
WN
133522014-02-10 Will Newton <will.newton@linaro.org>
13353
13354 * elfread.c (elf_rel_plt_read): Look for a .got section if
13355 looking up .got.plt fails.
13356 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13357 on address passed to elf_gnu_ifunc_record_cache.
13358 (elf_gnu_ifunc_resolve_addr): Likewise.
13359 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13360
961842b2
JM
133612014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13362
13363 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13364 (X_RETTURN): New macro.
13365 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13366
13367 * sparc64-tdep.c (sparc64_init_abi): Hook
13368 sparc_in_function_epilogue_p.
13369
3f03e7b1
GB
133702014-02-10 Gary Benson <gbenson@redhat.com>
13371
13372 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13373 Rename name_matcher to symbol_matcher.
13374
96f861ef
GB
133752014-02-10 Gary Benson <gbenson@redhat.com>
13376
13377 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13378 Use expand_symtabs_file_matcher_ftype and
13379 expand_symtabs_symbol_matcher_ftype.
13380
ee01b665
JB
133812014-02-10 Joel Brobecker <brobecker@adacore.com>
13382
13383 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13384 (struct ada_symbol_cache): New.
13385 (ada_free_symbol_cache): Forward declare.
13386 (struct ada_pspace_data): New.
13387 (ada_pspace_data_handle): New static global.
13388 (get_ada_pspace_data, ada_pspace_data_cleanup)
13389 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13390 (cache_space, cache): Delete, now folded inside struct
13391 ada_pspace_data.
13392 (ada_get_symbol_cache): New function.
13393 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13394 implementation.
13395 (_initialize_ada_language): Remove initialization of cache_space.
13396 Move call to observer_attach_inferior_exit up, grouping it
13397 with the other observer registrations inside this function.
13398 Rename command to be more general. Add call to
13399 register_program_space_data_with_cleanup.
13400
143adbbf
JB
134012014-02-10 Joel Brobecker <brobecker@adacore.com>
13402
13403 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13404 ada_new_objfile_observer.
13405 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13406 (_initialize_tasks): Update uses of ada_new_objfile_observer
13407 and ada_tasks_normal_stop_observer.
13408
aa4fb036
JB
134092014-02-10 Joel Brobecker <brobecker@adacore.com>
13410
13411 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13412 returned by the 'Length attribute to integer.
13413
9dee8cc6
JB
134142014-02-10 Joel Brobecker <brobecker@adacore.com>
13415
13416 * ada-lang.c (_initialize_ada_language): Initialize
13417 cache_space obstack.
13418
3d9434b5
JB
134192014-02-10 Joel Brobecker <brobecker@adacore.com>
13420
13421 * ada-lang.c (HASH_SIZE): New macro.
13422 (struct cache_entry): New type.
13423 (cache_space, cache): New static globals.
13424 (ada_clear_symbol_cache, find_entry): New functions.
13425 (lookup_cached_symbol, cache_symbol): Implement.
13426 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13427 (_initialize_ada_language): Attach ada_new_objfile_observer
13428 and ada_free_objfile_observer.
13429
f0c5f9b2
JB
134302014-02-10 Joel Brobecker <brobecker@adacore.com>
13431
13432 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13433 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13434 struct block * parameter.
13435 (ada_lookup_symbol_list_worker): Constify local variable "block".
13436 Remove cast which is no longer necessary.
13437
ed3ef339
DE
134382014-02-10 Doug Evans <xdje42@gmail.com>
13439
13440 Add Guile as an extension language.
13441 * NEWS: Mention Guile scripting.
13442 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13443 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13444 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13445 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13446 (CLIBS): Add GUILE_LIBS.
13447 (install-guile): New rule.
13448 (guile.o): New rule.
13449 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13450 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13451 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13452 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13453 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13454 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13455 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13456 * configure.ac: New option --with-guile.
13457 * configure: Regenerate.
13458 * config.in: Regenerate.
13459 * auto-load.c: Remove #include "python/python.h". Add #include
13460 "gdb/section-scripts.h".
13461 (source_section_scripts): Handle Guile scripts.
13462 (_initialize_auto_load): Add name of Guile objfile script to
13463 scripts-directory help text.
13464 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13465 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13466 (struct breakpoint): New member scm_bp_object.
13467 * defs.h (enum command_control_type): New value guile_control.
13468 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13469 "extension.h".
13470 (show_user): Update comment.
13471 (_initialize_cli_cmds): Update help text for "show user". Update help
13472 text for max-user-call-depth.
13473 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13474 "extension.h".
13475 (multi_line_command_p): Add guile_control.
13476 (print_command_lines): Handle guile_control.
13477 (execute_control_command, recurse_read_control_structure): Ditto.
13478 (process_next_line): Recognize "guile" commands.
13479 * disasm.c (gdb_disassemble_info): Make non-static.
13480 * disasm.h: #include "dis-asm.h".
13481 (struct gdbarch): Add forward decl.
13482 (gdb_disassemble_info): Declare.
13483 * extension.c: #include "guile/guile.h".
13484 (extension_languages): Add guile.
13485 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13486 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13487 * gdbtypes.c (get_unsigned_type_max): New function.
13488 (get_signed_type_minmax): New function.
13489 * gdbtypes.h (get_unsigned_type_max): Declare.
13490 (get_signed_type_minmax): Declare.
13491 * guile/README: New file.
13492 * guile/guile-internal.h: New file.
13493 * guile/guile.c: New file.
13494 * guile/guile.h: New file.
13495 * guile/scm-arch.c: New file.
13496 * guile/scm-auto-load.c: New file.
13497 * guile/scm-block.c: New file.
13498 * guile/scm-breakpoint.c: New file.
13499 * guile/scm-disasm.c: New file.
13500 * guile/scm-exception.c: New file.
13501 * guile/scm-frame.c: New file.
13502 * guile/scm-gsmob.c: New file.
13503 * guile/scm-iterator.c: New file.
13504 * guile/scm-lazy-string.c: New file.
13505 * guile/scm-math.c: New file.
13506 * guile/scm-objfile.c: New file.
13507 * guile/scm-ports.c: New file.
13508 * guile/scm-pretty-print.c: New file.
13509 * guile/scm-safe-call.c: New file.
13510 * guile/scm-string.c: New file.
13511 * guile/scm-symbol.c: New file.
13512 * guile/scm-symtab.c: New file.
13513 * guile/scm-type.c: New file.
13514 * guile/scm-utils.c: New file.
13515 * guile/scm-value.c: New file.
13516 * guile/lib/gdb.scm: New file.
13517 * guile/lib/gdb/boot.scm: New file.
13518 * guile/lib/gdb/experimental.scm: New file.
13519 * guile/lib/gdb/init.scm: New file.
13520 * guile/lib/gdb/iterator.scm: New file.
13521 * guile/lib/gdb/printing.scm: New file.
13522 * guile/lib/gdb/types.scm: New file.
13523 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13524 (VPATH): Add $(GUILE_SRCDIR).
13525 (GUILE_DIR): New variable.
13526 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13527 (all): Add stamp-guile dependency.
13528 (stamp-guile): New rule.
13529 (clean-guile, install-guile, uninstall-guile): New rules.
13530 (install-only): Add install-guile dependency.
13531 (uninstall): Add uninstall-guile dependency.
13532 (clean): Add clean-guile dependency.
13533
ac020ec5
DE
135342014-02-09 Doug Evans <xdje42@gmail.com>
13535
13536 Revert this patch (which I approved, mea culpa).
13537
13538 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13539
13540 * Makefile.in (all-lib): Remove.
13541 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13542
2a081c59
JK
135432014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13544
13545 Fix Python stack corruption.
13546 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13547 gdb_py_longest.
13548
0a6bd22d
MK
135492014-02-08 Mark Kettenis <kettenis@gnu.org>
13550
13551 * Makefile.in (all-lib): Remove.
13552 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13553
1a860409
DE
135542014-02-07 Doug Evans <dje@google.com>
13555
13556 * extension-priv.h (extension_language_script_ops): Add comment.
13557 (extension_language_ops): Add comment.
caf5a491 13558 (active_ext_lang_state): Fix typo in comment.
1a860409 13559
d137e6dc
PA
135602014-02-07 Pedro Alves <palves@redhat.com>
13561
0dcb32c3 13562 PR breakpoints/16292
d137e6dc
PA
13563 * infrun.c (handle_signal_stop) <signal arrives while stepping
13564 over a breakpoint>: Switch back to the stepping thread.
13565
ce6d0892
YQ
135662014-02-07 Yao Qi <yao@codesourcery.com>
13567
13568 * target.c (target_xfer_partial): Return zero if LEN is zero.
13569
2ed4b548
YQ
135702014-02-07 Yao Qi <yao@codesourcery.com>
13571
13572 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13573 (ld_so_xfer_auxv): Likewise.
13574 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13575 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13576 * corelow.c (core_xfer_partial): Likewise.
13577 * ctf.c (ctf_xfer_partial): Likewise.
13578 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13579 (darwin_xfer_partial): Likewise.
13580 * exec.c (exec_xfer_partial): Likewise.
13581 * gnu-nat.c (gnu_xfer_partial): Likewise.
13582 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13583 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13584 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13585 * linux-nat.c (linux_xfer_siginfo): Likewise.
13586 (linux_proc_xfer_spu): Likewise.
13587 * procfs.c (procfs_xfer_partial): Likewise.
13588 * record-full.c (record_full_xfer_partial): Likewise.
13589 (record_full_core_xfer_partial): Likewise.
13590 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13591 * remote.c (remote_write_qxfer): Likewise.
13592 (remote_write_qxfer, remote_read_qxfer): Likewise.
13593 (remote_xfer_partial): Likewise.
13594 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13595 (rs6000_xfer_shared_libraries): Likewise.
13596 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13597 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13598 (spu_xfer_partial): Likewise.
13599 * target.c (memory_xfer_partial_1): Likewise.
13600 * tracepoint.c (tfile_xfer_partial): Likewise.
13601 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13602 (windows_xfer_partial): Likewise.
13603
c09f20e4
YQ
136042014-02-07 Yao Qi <yao@codesourcery.com>
13605
13606 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13607 comments.
13608 (core_xfer_shared_libraries_aix): Likewise.
13609 * gdbarch.c, gdbarch.h: Regenerated.
13610 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13611 ULONGEST. Change 'len_avail' type to ULONGEST.
13612 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13613 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13614 declaration.
13615 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13616
8635b3bf
YQ
136172014-02-07 Yao Qi <yao@codesourcery.com>
13618
13619 * corefile.c (memory_error): Get 'exception' from ERR and pass
13620 'exception' to throw_error.
13621
6dddc817
DE
136222014-02-06 Doug Evans <xdje42@gmail.com>
13623
13624 * configure.ac (libpython checking): Remove all but python.o from
13625 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13626 * configure: Regenerate.
13627
13628 * Makefile.in (SFILES): Add extension.c.
13629 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13630 (COMMON_OBS): Add extension.o.
13631 * extension.h: New file.
13632 * extension-priv.h: New file.
13633 * extension.c: New file.
13634
13635 * python/python-internal.h: #include "extension.h".
13636 (gdbpy_auto_load_enabled): Declare.
13637 (gdbpy_apply_val_pretty_printer): Declare.
13638 (gdbpy_apply_frame_filter): Declare.
13639 (gdbpy_preserve_values): Declare.
13640 (gdbpy_breakpoint_cond_says_stop): Declare.
13641 (gdbpy_breakpoint_has_cond): Declare.
13642 (void source_python_script_for_objfile): Delete.
13643 * python/python.c: #include "extension-priv.h".
13644 Delete inclusion of "observer.h".
13645 (extension_language_python): Moved here and renamed from
13646 script_language_python in py-auto-load.c.
13647 Redefined to be of type extension_language_defn.
13648 (python_extension_script_ops): New global.
13649 (python_extension_ops): New global.
13650 (struct python_env): New member previous_active.
13651 (restore_python_env): Call restore_active_ext_lang.
13652 (ensure_python_env): Call set_active_ext_lang.
13653 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13654 New arg extlang.
13655 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13656 New arg extlang.
13657 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13658 New arg extlang.
13659 (gdbpy_eval_from_control_command): Renamed from
13660 eval_python_from_control_command, made static. New arg extlang.
13661 (gdbpy_source_script) Renamed from source_python_script, made static.
13662 New arg extlang.
13663 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13664 result to int. New arg extlang.
13665 (gdbpy_source_objfile_script): Renamed from
13666 source_python_script_for_objfile, made static. New arg extlang.
13667 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13668 static. New args extlang, extlang_printers. Change result type to
13669 "void".
13670 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13671 static. New arg extlang. Rename arg printers to extlang_printers
13672 and change type to ext_lang_type_printers *.
13673 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13674 static. Replace argument arg with extlang, extlang_printers.
13675 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13676 (!HAVE_PYTHON, source_python_script): Delete.
13677 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13678 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13679 (!HAVE_PYTHON, start_type_printers): Delete.
13680 (!HAVE_PYTHON, apply_type_printers): Delete.
13681 (!HAVE_PYTHON, free_type_printers): Delete.
13682 (_initialize_python): Delete call to observer_attach_before_prompt.
13683 (finalize_python): Set/restore active extension language.
13684 (gdbpy_finish_initialization) Renamed from
13685 finish_python_initialization, made static. New arg extlang.
13686 (gdbpy_initialized): New function.
13687 * python/python.h: #include "extension.h". Delete #include
13688 "value.h", "mi/mi-cmds.h".
13689 (extension_language_python): Declare.
13690 (GDBPY_AUTO_FILE_NAME): Delete.
13691 (enum py_bt_status): Moved to extension.h and renamed to
13692 ext_lang_bt_status.
13693 (enum frame_filter_flags): Moved to extension.h.
13694 (enum py_frame_args): Moved to extension.h and renamed to
13695 ext_lang_frame_args.
13696 (finish_python_initialization): Delete.
13697 (eval_python_from_control_command): Delete.
13698 (source_python_script): Delete.
13699 (apply_val_pretty_printer): Delete.
13700 (apply_frame_filter): Delete.
13701 (preserve_python_values): Delete.
13702 (gdbpy_script_language_defn): Delete.
13703 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13704 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13705
13706 * auto-load.c: #include "extension.h".
13707 (GDB_AUTO_FILE_NAME): Delete.
13708 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13709 (script_language_gdb): Delete, moved to extension.c and renamed to
13710 extension_language_gdb.
13711 (source_gdb_script_for_objfile): Delete.
13712 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13713 (loaded_script): Change type of language member to
13714 struct extension_language_defn *.
13715 (init_loaded_scripts_info): Initialize
13716 unsupported_script_warning_printed.
13717 (maybe_add_script): Make static. Change type of language arg to
13718 struct extension_language_defn *.
13719 (clear_section_scripts): Reset unsupported_script_warning_printed.
13720 (auto_load_objfile_script_1): Rewrite to use extension language API.
13721 (auto_load_objfile_script): Make public. Remove support-compiled-in
13722 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13723 (source_section_scripts): Rewrite to use extension language API.
13724 (load_auto_scripts_for_objfile): Rewrite to use
13725 auto_load_scripts_for_objfile.
13726 (collect_matching_scripts_data): Change type of language member to
13727 struct extension_language_defn *.
13728 (auto_load_info_scripts): Change type of language arg to
13729 struct extension_language_defn *.
13730 (unsupported_script_warning_print): New function.
13731 (script_not_found_warning_print): Make static.
13732 (_initialize_auto_load): Rewrite construction of scripts-directory
13733 help.
13734 * auto-load.h (struct objfile): Add forward decl.
13735 (struct script_language): Delete.
13736 (struct auto_load_pspace_info): Add forward decl.
13737 (struct extension_language_defn): Add forward decl.
13738 (maybe_add_script): Delete.
13739 (auto_load_objfile_script): Declare.
13740 (script_not_found_warning_print): Delete.
13741 (auto_load_info_scripts): Update prototype.
13742 (auto_load_gdb_scripts_enabled): Declare.
13743 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13744 auto_load_python_scripts_enabled and made public.
13745 (script_language_python): Delete, moved to python.c.
13746 (gdbpy_script_language_defn): Delete.
13747 (info_auto_load_python_scripts): Update to use
13748 extension_language_python.
13749
13750 * breakpoint.c (condition_command): Replace call to
13751 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13752 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13753 with call to breakpoint_ext_lang_cond_says_stop.
13754 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13755 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13756 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13757 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13758 New arg slang.
13759 (local_setattro): Print name of extension language with existing
13760 stop condition.
13761
13762 * valprint.c (val_print, value_print): Update to call
13763 apply_ext_lang_val_pretty_printer.
13764 * cp-valprint.c (cp_print_value): Update call to
13765 apply_ext_lang_val_pretty_printer.
13766 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13767 (gdbpy_apply_val_pretty_printer): Renamed from
13768 apply_val_pretty_printer. New arg extlang.
13769 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13770
13771 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13772 extension language API.
13773 * cli/cli-script.c (execute_control_command): Update to call
13774 eval_ext_lang_from_control_command.
13775
13776 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13777 enum ext_lang_bt_status values. Update call to
13778 apply_ext_lang_frame_filter.
13779 (mi_cmd_stack_list_locals): Ditto.
13780 (mi_cmd_stack_list_args): Ditto.
13781 (mi_cmd_stack_list_variables): Ditto.
13782 * mi/mi-main.c: Delete #include "python/python-internal.h".
13783 Add #include "extension.h".
13784 (mi_cmd_list_features): Replace reference to python internal variable
13785 gdb_python_initialized with call to ext_lang_initialized_p.
13786
13787 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13788 Update to use enum ext_lang_frame_args. Update to call
13789 apply_ext_lang_frame_filter.
13790 * python/py-framefilter.c (extract_sym): Update to use enum
13791 ext_lang_bt_status.
13792 (extract_value, py_print_type, py_print_value): Ditto.
13793 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13794 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13795 (py_print_frame): Ditto.
13796 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13797 New arg extlang. Update to use enum ext_lang_bt_status.
13798
13799 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13800 finish_python_initialization. Replace with call to
13801 finish_ext_lang_initialization.
13802
13803 * typeprint.c (do_free_global_table): Update to call
13804 free_ext_lang_type_printers.
13805 (create_global_typedef_table): Update to call
13806 start_ext_lang_type_printers.
13807 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13808 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13809 (type_print_options): Change type of global_printers from "void *"
13810 to "struct ext_lang_type_printers *".
13811
13812 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13813 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13814 (gdbpy_preserve_values): Renamed from preserve_python_values.
13815 New arg extlang.
13816 (!HAVE_PYTHON, preserve_python_values): Delete.
13817
13818 * utils.c (quit_flag): Delete, moved to extension.c.
13819 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13820 extension.c.
13821
13822 * eval.c: Delete #include "python/python.h".
13823 * main.c: Delete #include "python/python.h".
13824
13825 * defs.h: Update comment.
13826
6af79985
JB
138272014-02-06 Joel Brobecker <brobecker@adacore.com>
13828
13829 GDB 7.7 released.
13830
12c5175d
MK
138312014-02-05 Mark Kettenis <kettenis@gnu.org>
13832
13833 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13834 defined.
13835
8dc5b319
YQ
138362014-02-05 Yao Qi <yao@codesourcery.com>
13837
13838 * remote.c (remote_pass_signals): Remove local 'buf' and use
13839 rs->buf.
13840 (remote_program_signals): Likewise.
13841
de7b2893
YQ
138422014-02-05 Yao Qi <yao@codesourcery.com>
13843
13844 * ctf.c: Include "inferior.h" and "gdbthread.h".
13845 (CTF_PID): A new macro.
13846 (ctf_open): Call inferior_appeared and add_thread_silent.
13847 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13848 (ctf_thread_alive): New function.
13849 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13850
66d032ac
YQ
138512014-02-05 Yao Qi <yao@codesourcery.com>
13852
13853 Revert this patch:
13854
13855 2013-05-24 Yao Qi <yao@codesourcery.com>
13856
13857 * tracepoint.c (TFILE_PID): Remove.
13858 (tfile_open): Don't add thread and inferior.
13859 (tfile_close): Don't set 'inferior_ptid'. Don't call
13860 exit_inferior_silent.
13861 (tfile_thread_alive): Remove.
13862 (init_tfile_ops): Don't set field 'to_thread_alive' of
13863 tfile_ops.
13864
f4ccffad
CE
138652014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13866
13867 * remote.c (remote_start_remote): Call remote_check_symbols even
13868 if only symbol-file (not file) has been given.
13869
591a12a1
UW
138702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13871
13872 * gdbarch.sh (skip_entrypoint): New callback.
13873 * gdbarch.c, gdbarch.h: Regenerate.
13874 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13875 * infrun.c (fill_in_stop_func): Likewise.
13876 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13877 (ppc_elfv2_elf_make_msymbol_special): New function.
13878 (ppc_elfv2_skip_entrypoint): Likewise.
13879 (ppc_linux_init_abi): Install them for ELFv2.
13880
cc0e89c5
UW
138812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13882
13883 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13884 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13885 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13886 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13887 structures returned in GPRs.
13888
52f548e4
UW
138892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13890
13891 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13892 offset to the stack parameter list for the ELFv2 ABI.
13893
d4094b6a
UW
138942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13895
13896 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13897 set_gdbarch_convert_from_func_ptr_addr and
13898 set_gdbarch_elf_make_msymbol_special for ELFv1.
13899 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13900 function descriptors on ELFv1.
13901 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13902 set up r12 at function entry.
13903
cd453cd0
UW
139042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13905
13906 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13907 (struct gdbarch_tdep): New member elf_abi.
13908
13909 * rs6000-tdep.c: Include "elf/ppc64.h".
13910 (rs6000_gdbarch_init): Detect ELF ABI version.
13911
0ff3e01f
UW
139122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13913
13914 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13915 within a register pair holding a DFP 128-bit value on little-endian.
13916 (ppc64_sysv_abi_return_value_base): Likewise.
13917 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13918 (dfp_pseudo_register_write): Likewise.
13919
5b757e5d
UW
139202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13921
13922 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13923 offset on little-endian when passing _Decimal32.
13924 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13925
084ee545
UW
139262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13927
13928 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13929 of the overlapped FP register within the VSX register on little-
13930 endian platforms.
13931 (efpr_pseudo_register_write): Likewise.
13932
d63167af
UW
139332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13934
13935 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13936 offset on little-endian when passing small structures.
13937
e765b44c
UW
139382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13939
13940 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13941 (struct ppc64_sysv_argpos): New data structure.
13942 (ppc64_sysv_abi_push_float): Remove.
13943 (ppc64_sysv_abi_push_val): New function.
13944 (ppc64_sysv_abi_push_integer): Likewise.
13945 (ppc64_sysv_abi_push_freg): Likewise.
13946 (ppc64_sysv_abi_push_vreg): Likewise.
13947 (ppc64_sysv_abi_push_param): Likewise.
13948 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13949 (ppc64_sysv_abi_return_value_base): New function.
13950 (ppc64_sysv_abi_return_value): Refactor to use it.
13951
36c24d95
UW
139522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13953
13954 * NEWS: Document new target powerpc64le-*-linux*.
13955
26fd9228
MK
139562014-02-04 Mark Kettenis <kettenis@gnu.org>
13957
13958 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13959 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13960 core dumps.
13961 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13962 register set used in ELF core dumps. Add floating-point register set.
13963
c5bb7362
KB
139642014-02-03 Kevin Buettner <kevinb@redhat.com>
13965
74228e77 13966 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13967 dwarf2_to_gdb[] table using symbolic constants. Adjust
13968 penultimate entry from number representing the PC register
13969 to symbolic constant representing the MDR register. Add
13970 constant for the PC register to the end of the table.
13971
af09351e
MK
139722014-02-03 Mark Kettenis <kettenis@gnu.org>
13973
13974 * bsd-kvm.c: Include <sys/param.h>
13975
8507e05d
MK
139762014-02-03 Mark Kettenis <kettenis@gnu.org>
13977
13978 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13979
ae56bfb8
JB
139802014-01-31 Joel Brobecker <brobecker@adacore.com>
13981
13982 * ada-lang.h (clear_ada_sym_cache): Delete.
13983
718ee4dc
UW
139842014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13985
13986 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13987
401e27fd
JM
139882014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13989
13990 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13991 the sigreturn register save area only if the syscall is
13992 sigreturn.
13993
a7c88acd
JB
139942014-01-29 Joel Brobecker <brobecker@adacore.com>
13995
13996 * valops.c (value_slice): Minor reformatting.
13997
fa0079ea
UW
139982014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13999
14000 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14001
c6044dd1
JB
140022014-01-28 Joel Brobecker <brobecker@adacore.com>
14003
14004 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14005 New static globals.
14006 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14007 (ada_ignore_descriptive_types_p): New static global.
14008 (find_parallel_type_by_descriptive_type): Return immediately
14009 if ada_ignore_descriptive_types_p is set.
14010 (_initialize_ada_language): Register new commands "maintenance
14011 set ada", "maintenance show ada", "maintenance set ada
14012 ignore-descriptive-types" and "maintenance show ada
14013 ignore-descriptive-types".
14014 * NEWS: Add entry for new "maint ada set/show
14015 ignore-descriptive-types" commands.
14016
568e808b
MM
140172014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14018
14019 * record-btrace.c (record_btrace_close): Call btrace_teardown
14020 for all threads.
14021
467d141b
JB
140222014-01-27 Joel Brobecker <brobecker@adacore.com>
14023
14024 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14025 "ui-out.h".
14026
fb151210
JB
140272014-01-27 Joel Brobecker <brobecker@adacore.com>
14028
14029 * ada-typeprint (type_is_full_subrange_of_target_type):
14030 New function.
14031 (print_range): Add parameter bounds_prefered_p. If not set,
14032 try printing range types using the name of their base type.
14033 (print_range_type): Add parameter bounds_prefered_p.
14034 Use it in call to print_range.
14035 (print_array_type, ada_print_type): Update calls to print_range
14036 and print_range_type.
14037
aba02109
JB
140382014-01-27 Joel Brobecker <brobecker@adacore.com>
14039
14040 * ada-typeprint.c (print_array_type, print_choices, print_range)
14041 (print_range_bound, print_dynamic_range_bound, print_range_type):
14042 Remove declaration.
14043
e62e21fd
JB
140442014-01-27 Joel Brobecker <brobecker@adacore.com>
14045
14046 * ada-typeprint.c (print_range): Add missing empty line
14047 after local declaration.
14048
859cf5d1
JB
140492014-01-27 Joel Brobecker <brobecker@adacore.com>
14050
14051 * ada-valprint.c (print_optional_low_bound): Get index_type's
14052 target type for as long as it is a TYPE_CODE_RANGE.
14053
25790f6f
JB
140542014-01-27 Joel Brobecker <brobecker@adacore.com>
14055
14056 * procfs.c (procfs_make_note_section): Remove assertion and
14057 associated comment.
14058
6b6aa828
YQ
140592014-01-24 Yao Qi <yao@codesourcery.com>
14060
14061 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14062 * corelow.c (get_core_siginfo): Likewise.
14063
5d6df423
YQ
140642014-01-24 Yao Qi <yao@codesourcery.com>
14065
14066 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14067 ULONGEST. Don't check 'len' is negative.
14068 (remote_write_bytes): Change type of 'len' to ULONGEST.
14069
83b645b8
TT
140702014-01-23 Tom Tromey <tromey@redhat.com>
14071
14072 PR python/16485:
14073 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14074 Handle exception from frame.block.
14075 (FrameVars.fetch_frame_locals): Likewise.
14076
0740f8d8
TT
140772014-01-23 Tom Tromey <tromey@redhat.com>
14078
14079 PR python/16487:
14080 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14081 on a NULL pointer. Move "goto error" to correct place.
14082
21909fa1
TT
140832014-01-23 Tom Tromey <tromey@redhat.com>
14084
14085 PR python/16491:
14086 * python/py-framefilter.c (apply_frame_filter): Call
14087 ensure_python_env after computing gdbarch.
14088
17fde6d0
YQ
140892014-01-23 Yao Qi <yao@codesourcery.com>
14090
14091 * target.c (raw_memory_xfer_partial): Change argument type
14092 from void * to gdb_byte *.
14093 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14094
87ce2a04
DE
140952014-01-22 Doug Evans <dje@google.com>
14096
14097 New gdbserver option --debug-format=timestamp.
14098 * NEWS: Mention it.
14099
237b092b
AA
141002014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14101
14102 * syscalls/s390x-linux.xml: New file.
14103 * syscalls/s390-linux.xml: New file.
14104 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14105 (XML_SYSCALL_FILENAME_S390X): Likewise.
14106 (op_svc): New enum value for SVC opcode.
14107 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14108 (s390_linux_get_syscall_number): New function.
14109 (s390_gdbarch_init): Register '*get_syscall_number' and the
14110 syscall xml file name.
14111 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14112 "s390-linux.xml" and "s390x-linux.xml".
14113 * NEWS: Announce new feature.
14114
54bff650
BS
141152014-01-22 Baruch Siach <baruch@tkos.co.il>
14116
14117 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14118
14e361d7
PA
141192014-01-22 Pedro Alves <palves@redhat.com>
14120
14121 * xtensa-config.c: Include defs.h.
14122
46bbb3ed
JB
141232014-01-22 Joel Brobecker <brobecker@adacore.com>
14124
14125 * common/common-utils.h: Add "ARI:" comment beside __func__
14126 reference.
14127
3a80edfc
JB
141282014-01-22 Joel Brobecker <brobecker@adacore.com>
14129
14130 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14131 documentation a bit.
14132
4869db5e
RM
141332014-01-21 Roland McGrath <mcgrathr@google.com>
14134
14135 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14136 * configure: Regenerate.
14137 * aclocal.m4: Regenerate.
14138 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14139 New substituted variables.
14140 (install-strip): New target.
14141 (INSTALL_SCRIPT): New substituted variable.
14142 (FLAGS_TO_PASS): Add it.
14143 (install-only): Use $(INSTALL_SCRIPT) rather than
14144 $(INSTALL_PROGRAM) for gcore.
14145
9ea4267d
TT
141462014-01-20 Tom Tromey <tromey@redhat.com>
14147
14148 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14149 together.
14150
1f2bdf09
TT
141512014-01-20 Tom Tromey <tromey@redhat.com>
14152
14153 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14154 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14155 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14156 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14157 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14158 (struct cmd_list_element) <flags>: Remove.
14159 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14160 doc_allocated>: New fields.
14161 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14162 bitfields.
14163 * maint.c (maintenance_do_deprecate): Update.
14164 * top.c (execute_command): Update.
14165
e671835b
BS
141662014-01-20 Baruch Siach <baruch@tkos.co.il>
14167
14168 * xtensa-linux-nat.c: Include asm/ptrace.h.
14169
50367cd2
IB
141702014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14171
14172 * Makefile.in (SFILES): Add d-support.c.
14173 (COMMON_OBS): Add d-support.o.
14174 * d-lang.h (d_parse_symbol): Add comment, now defined in
14175 d-support.c.
14176 * d-lang.c (parse_call_convention)
14177 (parse_attributes, parse_function_types)
14178 (parse_function_args, parse_type, parse_identifier)
14179 (call_convention_p, d_parse_symbol): Move functions to ...
14180 * d-support.c: ... New file.
14181
ec9f644a
IB
141822014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14183
14184 * d-lang.h (d_parse_symbol): Add declaration.
14185 * d-lang.c (extract_identifiers)
14186 (extract_type_info): Remove functions.
14187 (parse_call_convention, parse_attributes)
14188 (parse_function_types, parse_function_args)
14189 (parse_type, parse_identifier, call_convention_p)
14190 (d_parse_symbol): New functions.
14191 (d_demangle): Use d_parse_symbol to demangle D symbols.
14192
94b1b47e
IB
141932014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14194
14195 * d-lang.h (struct builtin_d_type): New data type.
14196 (builtin_d_type): Add declaration.
14197 * d-lang.c (d_language_arch_info, build_d_types)
14198 (builtin_d_type): New functions.
14199 (enum d_primitive_types): New data type.
14200 (d_language_defn): Change c_language_arch_info to
14201 d_language_arch_info.
14202 (d_type_data): New static variable.
14203 (_initialize_d_language): Initialize d_type_data.
14204
63778547
IB
142052014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14206
14207 * d-lang.h (d_main_name): Add declaration.
14208 * d-lang.c (d_main_name): New function.
14209 * symtab.c (find_main_name): Add call to d_main_name.
14210
3271ba66
IB
142112014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14212
14213 * d-lang.c (d_language_defn): Change macro_expansion_c to
14214 macro_expansion_no.
14215
d36b3012
IB
142162014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14217
14218 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14219
c90a6fb7
SDJ
142202014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14221
14222 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14223 gdb_exception" declaration.
14224 * remote.c (getpkt_or_notif_sane): Likewise.
14225
749234e5
DE
142262014-01-17 Doug Evans <dje@google.com>
14227
14228 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14229 function, contents of dirnames_to_char_ptr_vec_append moved here.
14230 (delim_string_to_char_ptr_vec): New function.
14231 (dirnames_to_char_ptr_vec_append): Rewrite.
14232 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14233
df049a58
DE
142342014-01-17 Doug Evans <dje@google.com>
14235
14236 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14237 and moved here ...
14238 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14239 #include "common-utils.h".
14240 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14241 * common/vec.h (VEC_ASSERT_PASS): Update.
14242 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14243 (MACH_CHECK_ERROR): Update.
14244
69f97648
SM
142452014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14246
14247 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14248 comments.
14249 * gdbarch.h: Regenerate.
14250
98b1cfdc
TT
142512014-01-16 Tom Tromey <tromey@redhat.com>
14252
14253 * value.c (struct value) <regnum>: Move earlier.
14254
77a19445
TT
142552014-01-16 Tom Tromey <tromey@redhat.com>
14256
14257 * remote.c (extended_remote_create_inferior): Rename from
14258 extended_remote_create_inferior_1. Add "ops" argument. Remove
14259 old implementation.
14260
62261490
PA
142612014-01-16 Pedro Alves <palves@redhat.com>
14262
14263 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14264 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14265 the backchain.
14266
4d65956b
DE
142672014-01-16 Doug Evans <dje@google.com>
14268
14269 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14270
52834460
MM
142712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14272
14273 * btrace.h (btrace_thread_flag): New.
14274 (struct btrace_thread_info) <flags>: New.
14275 * record-btrace.c (record_btrace_resume_thread)
14276 (record_btrace_find_thread_to_move, btrace_step_no_history)
14277 (btrace_step_stopped, record_btrace_start_replaying)
14278 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14279 (record_btrace_find_resume_thread): New.
14280 (record_btrace_resume, record_btrace_wait): Extend.
14281 (record_btrace_can_execute_reverse): New.
14282 (record_btrace_open): Fail in non-stop mode.
14283 (record_btrace_set_replay): Split into this, ...
14284 (record_btrace_stop_replaying): ... this, ...
14285 (record_btrace_clear_histories): ... and this.
14286 (init_record_btrace_ops): Init to_can_execute_reverse.
14287 * NEWS: Announce it.
14288
118e6252
MM
142892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14290
14291 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14292 (forward_target_decr_pc_after_break)
14293 (target_decr_pc_after_break): New.
14294 * target.c (forward_target_decr_pc_after_break)
14295 (target_decr_pc_after_break): New.
14296 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14297 instead of gdbarch_decr_pc_after_break.
14298 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14299 instead of gdbarch_decr_pc_after_break.
14300 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14301 instead of gdbarch_decr_pc_after_break.
14302 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14303 instead of gdbarch_decr_pc_after_break.
14304 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14305 instead of gdbarch_decr_pc_after_break.
14306 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14307 instead of gdbarch_decr_pc_after_break.
14308
6e07b1d2
MM
143092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14310
14311 * btrace.c: Include regcache.h.
14312 (btrace_add_pc): New.
14313 (btrace_enable): Call btrace_add_pc.
14314 (btrace_is_empty): New.
14315 * btrace.h (btrace_is_empty): New.
14316 * record-btrace.c (require_btrace, record_btrace_info): Call
14317 btrace_is_empty.
14318
969c39fb
MM
143192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14320
14321 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14322 Support delta reads.
14323 (linux_disable_btrace): Change return type.
14324 * common/linux-btrace.h (linux_read_btrace): Change parameters
14325 and return type to allow error reporting. Update users.
14326 (linux_disable_btrace): Change return type. Update users.
14327 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14328 New.
14329 (btrace_error): New.
14330 (btrace_block) <begin>: Comment on BEGIN == 0.
14331 * btrace.c (btrace_compute_ftrace): Start from the end of
14332 the current trace.
14333 (btrace_stitch_trace, btrace_clear_history): New.
14334 (btrace_fetch): Read delta trace, return if replaying.
14335 (btrace_clear): Move clear history code to btrace_clear_history.
14336 (parse_xml_btrace): Throw an error if parsing failed.
14337 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14338 and return type to allow error reporting.
14339 (target_read_btrace): Change parameters and return type to allow
14340 error reporting.
14341 * target.c (target_read_btrace): Update.
14342 * remote.c (remote_read_btrace): Support delta reads. Pass
14343 errors on.
14344 * NEWS: Announce it.
14345
0b722aec
MM
143462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14347
14348 * record.h (record_btrace_frame_unwind)
14349 (record_btrace_tailcall_frame_unwind): New declarations.
14350 * dwarf2-frame: Include record.h
14351 (dwarf2_frame_cfa): Throw an error for btrace frames.
14352 * record-btrace.c: Include hashtab.h.
14353 (btrace_get_bfun_name): New.
14354 (btrace_call_history): Call btrace_get_bfun_name.
14355 (struct btrace_frame_cache): New.
14356 (bfcache): New.
14357 (bfcache_hash, bfcache_eq, bfcache_new): New.
14358 (btrace_get_frame_function): New.
14359 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14360 (record_btrace_frame_this_id): Compute own id.
14361 (record_btrace_frame_prev_register): Provide PC, throw_error
14362 for all other registers.
14363 (record_btrace_frame_sniffer): Detect btrace frames.
14364 (record_btrace_tailcall_frame_sniffer): New.
14365 (record_btrace_frame_dealloc_cache): New.
14366 (record_btrace_frame_unwind): Add new functions.
14367 (record_btrace_tailcall_frame_unwind): New.
14368 (_initialize_record_btrace): Allocate cache.
14369 * btrace.c (btrace_clear): Call reinit_frame_cache.
14370 * NEWS: Announce it.
14371
066ce621
MM
143722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14373
14374 * record-btrace.c (record_btrace_set_replay)
14375 (record_btrace_goto_begin, record_btrace_goto_end)
14376 (record_btrace_goto): New.
14377 (init_record_btrace_ops): Initialize them.
14378 * NEWS: Announce it.
14379
e2887aa3
MM
143802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14381
14382 * record-btrace.c (record_btrace_find_new_threads)
14383 (record_btrace_thread_alive): New.
14384 (init_record_btrace_ops): Initialize to_find_new_threads and
14385 to_thread_alive.
14386
b2f4cfde
MM
143872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14388
14389 * record-btrace.c (record_btrace_resume): New.
14390 (record_btrace_wait): New.
14391 (init_record_btrace_ops): Initialize to_wait and to_resume.
14392
633785ff
MM
143932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14394
14395 * record-btrace.c (record_btrace_xfer_partial)
14396 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14397 (record_btrace_allow_memory_access): New.
14398 (init_record_btrace_ops): Initialize new methods.
14399 * target.c (raw_memory_xfer_partial): Bail out if target reports
14400 that this memory is not available.
14401
3db08215
MM
144022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14403
14404 * target.h (target_ops) <to_insert_breakpoint>
14405 <to_remove_breakpoint>: Add target_ops parameter.
14406 (forward_target_insert_breakpoint): New.
14407 (forward_target_remove_breakpoint): New.
14408 (memory_remove_breakpoint, memory_insert_breakpoint):
14409 Add target_ops parameter.
14410 * target.c (target_insert_breakpoint): Split into this and ...
14411 (forward_target_insert_breakpoint): ... this.
14412 (target_remove_breakpoint): Split into this and ...
14413 (forward_target_remove_breakpoint): ... this.
14414 (debug_to_insert_breakpoint): Add target_ops parameter.
14415 Call forward_target_insert_breakpoint.
14416 (debug_to_remove_breakpoint): Add target_ops parameter.
14417 Call forward_target_remove_breakpoint.
14418 (update_current_target): Do not inherit or default to_insert_breakpoint
14419 and to_remove_breakpoint.
14420 * corelow.c (ignore): Add target_ops parameter.
14421 * exec.c (ignore): Add target_ops parameter.
14422 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14423 Add target_ops parameter.
14424 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14425 Add target_ops parameter.
14426 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14427 Add target_ops parameter.
14428 * record-full.c (record_full_beneath_to_insert_breakpoint)
14429 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14430 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14431 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14432 (record_full_core_remove_breakpoint): Add target_ops parameter.
14433 Update users.
14434 (record_full_beneath_to_insert_breakpoint_ops)
14435 (record_full_beneath_to_remove_breakpoint_ops)
14436 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14437 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14438 tmp_to_remove_breakpoint_ops,
14439 record_full_beneath_to_insert_breakpoint_ops, and
14440 record_full_beneath_to_remove_breakpoint_ops.
14441 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14442 (m32r_remove_breakpoint): Add target_ops parameter.
14443 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14444 Add target_ops parameter.
14445 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14446 Add target_ops parameter.
14447
cecac1ab
MM
144482014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14449 Markus Metzger <markus.t.metzger@intel.com>
14450
14451 * record-btrace.c: Include frame-unwind.h.
14452 (record_btrace_frame_unwind_stop_reason)
14453 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14454 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14455 New.
14456 (init_record_btrace_ops): Install it.
14457
824344ca
MM
144582014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14459
14460 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14461 get_prev_frame_1.
14462
32261e52
MM
144632014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14464
14465 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14466 earlier.
14467
ea001bdc
MM
144682014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14469
14470 * frame-unwind.c: Include target.h.
14471 (frame_unwind_try_unwinder): New function with code from ...
14472 (frame_unwind_find_by_frame): ... here. New variable
14473 unwinder_from_target, call also target_get_unwinder)
14474 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14475 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14476 * target.h (struct target_ops): New fields to_get_unwinder and
14477 to_get_tailcall_unwinder.
14478 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14479
1f3ef581
MM
144802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14481
14482 * record-btrace.c (record_btrace_fetch_registers)
14483 (record_btrace_store_registers)
14484 (record_btrace_to_prepare_to_store): New.
14485 (init_record_btrace_ops): Add the above.
14486
f32dbf8c
MM
144872014-01-16 Tom Tromey <tromey@redhat.com>
14488
14489 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14490 * target.h (struct target_ops) <to_prepare_to_store>: Add
14491 argument.
14492 (target_prepare_to_store): Add argument.
14493 * target.c (debug_to_prepare_to_store): Add argument.
14494 (update_current_target): Update.
14495 * remote.c (remote_prepare_to_store): Add 'self' argument.
14496 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14497 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14498 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14499 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14500 argument.
14501 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14502 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14503 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14504 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14505 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14506
07bbe694
MM
145072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14508
14509 * btrace.h (replay) <replay>: New.
14510 (btrace_is_replaying): New.
14511 * btrace.c (btrace_clear): Free replay iterator.
14512 (btrace_is_replaying): New.
14513 * record-btrace.c (record_btrace_is_replaying): New.
14514 (record_btrace_info): Print insn number if replaying.
14515 (record_btrace_insn_history): Start at replay position.
14516 (record_btrace_call_history): Start at replay position.
14517 (init_record_btrace_ops): Init to_record_is_replaying.
14518
0688d04e
MM
145192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14520
14521 * record-btrace.c (record_btrace_insn_history_range): Include
14522 end.
14523 (record_btrace_insn_history_from): Adjust range.
14524 (record_btrace_call_history_range): Include
14525 end.
14526 (record_btrace_call_history_from): Adjust range.
14527 * NEWS: Announce changes.
14528
8710b709
MM
145292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14530
14531 * record.h (enum record_print_flag)
14532 <record_print_indent_calls>: New.
14533 * record.c (get_call_history_modifiers): Recognize /c modifier.
14534 (_initialize_record): Document /c modifier.
14535 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14536 Reorder fields. Optionally indent the function name. Update
14537 all users.
14538 * NEWS: Announce changes.
14539
d0fa7535
MM
145402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14541
14542 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14543
5de9129b
MM
145442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14545
14546 * btrace.c (ftrace_new_function): Start counting at one.
14547 * record-btrace.c (record_btrace_info): Adjust number of calls
14548 and insns.
14549 * NEWS: Announce it.
14550
7acbe133
MM
145512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14552
14553 * record-btrace.c (btrace_call_history_insn_range): Print
14554 insn range as [begin, end].
14555
23a7fe75
MM
145562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14557
14558 * btrace.h (struct btrace_func_link): New.
14559 (enum btrace_function_flag): New.
14560 (struct btrace_inst): Rename to ...
14561 (struct btrace_insn): ...this. Update all users.
14562 (struct btrace_func) <ibegin, iend>: Remove.
14563 (struct btrace_func_link): New.
14564 (struct btrace_func): Rename to ...
14565 (struct btrace_function): ...this. Update all users.
14566 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14567 (number, level, flags>: New.
14568 (struct btrace_insn_iterator): Rename to ...
14569 (struct btrace_insn_history): ...this.
14570 Update all users.
14571 (struct btrace_insn_iterator, btrace_call_iterator): New.
14572 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14573 (struct btrace_target_info) <begin, end, level>
14574 <insn_history, call_history>: New.
14575 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14576 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14577 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14578 (btrace_call_number, btrace_call_begin, btrace_call_end)
14579 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14580 (btrace_find_function_by_number, btrace_set_insn_history)
14581 (btrace_set_call_history): New.
14582 * btrace.c (btrace_init_insn_iterator)
14583 (btrace_init_func_iterator, compute_itrace): Remove.
14584 (ftrace_print_function_name, ftrace_print_filename)
14585 (ftrace_skip_file): Change
14586 parameter to const.
14587 (ftrace_init_func): Remove.
14588 (ftrace_debug): Use new btrace_function fields.
14589 (ftrace_function_switched): Also consider gaining and
14590 losing symbol information).
14591 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14592 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14593 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14594 New.
14595 (ftrace_new_function): Move. Remove debug print.
14596 (ftrace_update_lines, ftrace_update_insns): New.
14597 (ftrace_update_function): Check for call, ret, and jump.
14598 (compute_ftrace): Renamed to ...
14599 (btrace_compute_ftrace): ...this. Rewritten to compute call
14600 stack.
14601 (btrace_fetch, btrace_clear): Updated.
14602 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14603 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14604 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14605 (btrace_call_number, btrace_call_begin, btrace_call_end)
14606 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14607 (btrace_find_function_by_number, btrace_set_insn_history)
14608 (btrace_set_call_history): New.
14609 * record-btrace.c (require_btrace): Use new btrace thread
14610 info fields.
14611 (record_btrace_info, btrace_insn_history)
14612 (record_btrace_insn_history, record_btrace_insn_history_range):
14613 Use new btrace thread info fields and new iterator.
14614 (btrace_func_history_src_line): Rename to ...
14615 (btrace_call_history_src_line): ...this. Use new btrace
14616 thread info fields.
14617 (btrace_func_history): Rename to ...
14618 (btrace_call_history): ...this. Use new btrace thread info
14619 fields and new iterator.
14620 (record_btrace_call_history, record_btrace_call_history_range):
14621 Use new btrace thread info fields and new iterator.
14622
8372a7cb
MM
146232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14624
14625 * frame.h (frame_id_build_unavailable_stack_special): New.
14626 * frame.c (frame_id_build_unavailable_stack_special): New.
14627
c2170eef
MM
146282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14629
14630 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14631 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14632 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14633 to gdbarch.
14634 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14635 (i386_insn_is_jump, i386_jmp_p): New.
14636 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14637 insn_is_jump to gdbarch.
14638 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14639 * gdbarch.h: Regenerated.
14640 * gdbarch.c: Regenerated.
14641 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14642 (default_insn_is_jump): New.
14643 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14644 (default_insn_is_jump): New.
14645
864089d2
MM
146462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14647
14648 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14649 Change to ...
14650 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14651 (btrace_read_type) <btrace_read_new>: Change to ...
14652 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14653
ed9edfb5
MM
146542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14655
14656 * common/linux-btrace.c (linux_read_btrace): Free trace from
14657 previous iteration.
14658
fbcbc3fd
DE
146592014-01-15 Doug Evans <dje@google.com>
14660
14661 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14662 uint32_t.
14663
3d548a53
TT
146642014-01-15 Tom Tromey <tromey@redhat.com>
14665
14666 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14667 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14668 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14669 (set_objfile_main_name): New function.
14670 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14671 language_of_main>: New fields.
14672 (set_objfile_main_name): Declare.
14673 * symtab.c (find_main_name): Loop over objfiles to find the main
14674 name and language.
14675 (set_main_name): Now static.
14676 (get_main_info): Add comment.
14677 * symtab.h (set_main_name): Don't declare.
14678
32ac0d11
TT
146792014-01-15 Tom Tromey <tromey@redhat.com>
14680
14681 * symtab.c (main_progspace_key): New global.
14682 (struct main_info): New.
14683 (name_of_main, language_of_main): Remove.
14684 (get_main_info, main_info_cleanup): New function.
14685 (set_main_name, main_name, main_language): Use get_main_info.
14686 (_initialize_symtab): Initialize main_progspace_key.
14687
9e6c82ad
TT
146882014-01-15 Tom Tromey <tromey@redhat.com>
14689
14690 * dbxread.c (process_one_symbol): Update.
14691 * dwarf2read.c (read_partial_die): Update.
14692 * symfile.c (set_initial_language): Call main_language.
14693 * symtab.c (language_of_main): Now static.
14694 (set_main_name): Add 'lang' parameter.
14695 (find_main_name): Update.
14696 (main_language): New function.
14697 (symtab_observer_executable_changed): Update.
14698 * symtab.h (set_main_name): Update.
14699 (language_of_main): Remove.
14700 (main_language): Declare.
14701
6ef55de7
TT
147022014-01-15 Tom Tromey <tromey@redhat.com>
14703
14704 * symfile.c (init_entry_point_info): Use new "initialized" field.
14705 Update.
14706 * objfiles.h (struct entry_point) <initialized>: New field.
14707 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14708 (struct objfile) <ei>: ...here. Remove.
14709 * objfiles.c (entry_point_address_query): Update.
14710
53eddfa6
TT
147112014-01-15 Tom Tromey <tromey@redhat.com>
14712
14713 * objfiles.c (entry_point_address_query): Relocate entry point
14714 address.
14715 (objfile_relocate1): Do not relocate entry point address.
14716 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14717 <the_bfd_section_index>: New field.
14718 * symfile.c (init_entry_point_info): Find the entry point's
14719 section.
14720
d56e56aa
TT
147212014-01-15 Tom Tromey <tromey@redhat.com>
14722
14723 * solib-frv.c (enable_break): Use entry_point_address_query.
14724
33a97bbe
OJ
147252014-01-15 Omair Javaid <omair.javaid@linaro.org>
14726
14727 * NEWS: Add note on improved process record-replay on
14728 arm*-linux* targets.
14729
c6ec2b30
OJ
147302014-01-15 Omair Javaid <omair.javaid@linaro.org>
14731
14732 * arm-tdep.c (enum arm_record_result): New enum.
14733 (arm_record_unsupported_insn): New function.
14734 (arm_record_coproc_data_proc): Removed.
14735 (thumb2_record_ld_st_multiple): New function.
14736 (thumb2_record_ld_st_dual_ex_tbb): New function.
14737 (thumb2_record_data_proc_sreg_mimm): New function.
14738 (thumb2_record_ps_dest_generic): New function.
14739 (thumb2_record_branch_misc_cntrl): New function.
14740 (thumb2_record_str_single_data): New function.
14741 (thumb2_record_ld_mem_hints): New function.
14742 (thumb2_record_ld_word): New function.
14743 (thumb2_record_lmul_lmla_div): New function.
14744 (thumb2_record_decode_insn_handler): New function.
14745 (decode_insn): Add thumb32 instruction handlers.
14746
97dfe206
OJ
147472014-01-15 Omair Javaid <omair.javaid@linaro.org>
14748
14749 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14750 (struct arm_linux_record_tdep): Declare.
14751 (arm_canonicalize_syscall): New function.
14752 (arm_all_but_pc_registers_record): New function.
14753 (arm_linux_syscall_record): New function.
14754 (arm_linux_init_abi): Add syscall recording constructs.
14755 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14756 decoding. (arm_record_coproc_data_proc): Update arm syscall
14757 decoding.
14758 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14759 <arm_syscall_record>: New field.
14760 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14761 gdb_target_obs.
14762
9904a494
OJ
147632014-01-15 Omair Javaid <omair.javaid@linaro.org>
14764
14765 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14766 register for push instruction recording.
14767
f969241e
OJ
147682014-01-15 Omair Javaid <omair.javaid@linaro.org>
14769
14770 * arm-tdep.c (thumb_record_misc): Update to correct logical
14771 error while recording ldm, ldmia and pop instructions.
14772
bfbbec00
OJ
147732014-01-15 Omair Javaid <omair.javaid@linaro.org>
14774
14775 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14776
e40adcc9
PA
147772014-01-15 Pedro Alves <palves@redhat.com>
14778
14779 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14780 (go32_resume, go32_fetch_registers, store_register)
14781 (go32_store_registers, go32_prepare_to_store)
14782 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14783 (go32_create_inferior, go32_can_run, go32_terminal_init)
14784 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14785 declarations.
14786
b0a16e66
TT
147872014-01-15 Tom Tromey <tromey@redhat.com>
14788
14789 * target.h (async_callback_ftype): New typedef.
14790 (struct target_ops) <to_async>: Use it.
14791
bf7105a4
JB
147922014-01-15 Joel Brobecker <brobecker@adacore.com>
14793
14794 * python/py-value.c (get_field_type): Remove unnecessary curly
14795 braces for single-statement if block.
14796
a8f35c2e
JB
147972014-01-15 Joel Brobecker <brobecker@adacore.com>
14798
14799 * python/py-type.c (convert_field): Add missing empty line
14800 after declarations.
14801
bb4142cf
DE
148022014-01-14 Doug Evans <dje@google.com>
14803
14804 * symfile.h (expand_symtabs_matching): Renamed from
14805 expand_partial_symbol_names. Update prototype.
14806 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14807 * symfile.c (expand_symtabs_matching): Renamed from
14808 expand_partial_symbol_names. New args file_matcher, kind.
14809 Rename arg fun to symbol_matcher.
14810 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14811 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14812 ada_expand_partial_symbol_name.
14813 (ada_make_symbol_completion_list): Update to call
14814 expand_symtabs_matching.
14815 (ada_add_global_exceptions): Call expand_symtabs_matching.
14816 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14817 call map_symbol_filenames.
14818 * symtab.c (sources_info): Update to call map_symbol_filenames.
14819 (search_symbols): Call expand_symtabs_matching.
14820 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14821 (default_make_symbol_completion_list_break_on): Update to call
14822 expand_symtabs_matching.
14823 (make_source_files_completion_list): Update to call
14824 map_symbol_filenames.
14825
206f2a57
DE
148262014-01-14 Doug Evans <dje@google.com>
14827
14828 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14829 (expand_symtabs_symbol_matcher_ftype): New typedef.
14830 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14831 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14832 * symfile.c (expand_partial_symbol_names): Update to use
14833 expand_symtabs_symbol_matcher_ftype.
14834 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14835 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14836 Arg name_matcher renamed to symbol_matcher.
14837 * psymtab.c (recursively_search_psymtabs): Update to use
14838 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14839 sym_matcher.
14840 (expand_symtabs_matching_via_partial): Update to use
14841 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14842 Arg name_matcher renamed to symbol_matcher.
14843
540c2971
DE
148442014-01-14 Doug Evans <dje@google.com>
14845
14846 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14847 (map_partial_symbol_filenames): Ditto.
14848 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14849 (map_partial_symbol_filenames): Ditto.
14850 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14851 (map_partial_symbol_filenames): Ditto.
14852 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14853 (map_partial_symbol_filenames): Ditto.
14854 * symtab.c: Delete #include "psymtab.h".
14855
8213266a
PA
148562014-01-14 Pedro Alves <palves@redhat.com>
14857 Tom Tromey <tromey@redhat.com>
14858
14859 * infrun.c (use_displaced_stepping): Use find_record_target
14860 instead of RECORD_IS_USED.
14861 (adjust_pc_after_break): Use record_full_is_used instead of
14862 RECORD_IS_USED.
14863 * record-btrace.c (record_btrace_open): Call record_preopen
14864 instead of checking RECORD_IS_USED.
14865 * record-full.c (record_full_shortname)
14866 (record_full_core_shortname): New globals.
14867 (record_full_is_used): New function.
14868 (find_full_open): Call record_preopen instead of checking
14869 RECORD_IS_USED.
14870 (init_record_full_ops): Set the target's shortname to
14871 record_full_shortname.
14872 (init_record_full_core_ops): Set the target's shortname to
14873 record_full_core_shortname.
14874 * record-full.h (record_full_is_used): Declare.
14875 * record.c (find_record_target): Make extern.
14876 (record_preopen): New function.
14877 * record.h (RECORD_IS_USED): Delete macro.
14878 (find_record_target, record_preopen): Declare functions.
14879
7ec1862d
YQ
148802014-01-14 Yao Qi <yao@codesourcery.com>
14881
14882 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14883 'len''s type to ULONGEST.
14884 (core_xfer_shared_libraries_aix): Likewise.
14885 * gdbarch.c, gdbarch.h: Regenerated.
14886 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14887 Change type of 'len' to ULONGEST.
14888 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14889 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14890
dea80a27
YQ
148912014-01-14 Yao Qi <yao@codesourcery.com>
14892
14893 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14894 type of 'len' to ULONGEST.
14895 (linux_xfer_osdata_processgroups): Likewise.
14896 (linux_xfer_osdata_threads): Likewise.
14897 (linux_xfer_osdata_fds): Likewise.
14898 (linux_xfer_osdata_isockets): Likewise.
14899 (linux_xfer_osdata_shm): Likewise.
14900 (linux_xfer_osdata_sem): Likewise.
14901 (linux_xfer_osdata_msg): Likewise.
14902 (linux_common_xfer_osdata): Likewise.
14903 (struct osdata_type) <getter>: Likewise.
14904 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14905 the declaration.
14906
b55e14c7
YQ
149072014-01-14 Yao Qi <yao@codesourcery.com>
14908
14909 * target.h (target_xfer_partial_ftype): Update.
14910 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14911 ULONGEST.
14912 * aix-thread.c (aix_thread_xfer_partial): Change type of
14913 argument 'len' to ULONGEST.
14914 * auxv.c (procfs_xfer_auxv): Likewise.
14915 (ld_so_xfer_auxv): Likewise.
14916 (memory_xfer_auxv): Likewise.
14917 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14918 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14919 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14920 * corelow.c (core_xfer_partial): Likewise.
14921 * ctf.c (ctf_xfer_partial): Likewise.
14922 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14923 '%u'.
14924 (darwin_read_dyld_info): Likewise.
14925 (darwin_xfer_partial): Likewise.
14926 * exec.c (section_table_xfer_memory_partial): Likewise.
14927 (exec_xfer_partial): Likewise.
14928 * exec.h (section_table_xfer_memory_partial): Update
14929 declaration.
14930 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14931 instead of plongest.
14932 (gnu_xfer_partial): Likewise.
14933 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14934 (ia64_hpux_xfer_solib_got): Likewise.
14935 (ia64_hpux_xfer_partial): Likewise.
14936 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14937 * inf-ptrace.c (inf_ptrace_xfer_partial):
14938 * inf-ttrace.c (inf_ttrace_xfer_partial):
14939 * linux-nat.c (linux_xfer_siginfo): Likewise.
14940 (linux_nat_xfer_partial): Likewise.
14941 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14942 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14943 * monitor.c (monitor_xfer_memory): Likewise.
14944 (monitor_xfer_partial): Likewise.
14945 * procfs.c (procfs_xfer_partial): Likewise.
14946 * record-full.c (record_full_xfer_partial): Likewise.
14947 (record_full_core_xfer_partial): Likewise.
14948 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14949 instead of plongest.
14950 (gdbsim_xfer_partial): Likewise.
14951 * remote.c (remote_xfer_partial): Likewise.
14952 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14953 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14954 declaration.
14955 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14956 (rs6000_xfer_shared_libraries): Likewise.
14957 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14958 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14959 (sparc_xfer_partial): Likewise.
14960 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14961 (spu_xfer_partial): Likewise.
14962 * spu-multiarch.c (spu_xfer_partial): Likewise.
14963 * target.c (target_read_live_memory): Likewise.
14964 (memory_xfer_live_readonly_partial): Likewise.
14965 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14966 (target_xfer_partial, default_xfer_partial): Likewise.
14967 (current_xfer_partial): Likewise.
14968 * tracepoint.c (tfile_xfer_partial): Likewise.
14969 * windows-nat.c (windows_xfer_memory): Likewise. Call
14970 pulongest instead of plongest.
14971 (windows_xfer_partial): Likewise.
14972 (windows_xfer_shared_libraries): Likewise.
14973
05804640
YQ
149742014-01-14 Yao Qi <yao@codesourcery.com>
14975
14976 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14977 target_xfer_partial_ftype.
14978
b5b08fb4
SC
149792014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14980
14981 PR python/15464
14982 PR python/16113
14983 * valops.c (value_struct_elt_bitpos): New function
14984 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14985 object to 'None' if the field name is an empty string ("").
14986 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14987 attribute to look for a field when 'name' is 'None'.
14988 (get_field_type): New function
14989
13aaf454
DE
149902014-01-13 Doug Evans <dje@google.com>
14991
14992 PR symtab/16426
14993 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14994 (try_open_dwop_file): Ditto.
14995 * gdb_bfd.c: #include "vec.h".
14996 (bfdp): New typedef.
14997 (struct gdb_bfd_data): New member included_bfds.
14998 (gdb_bfd_unref): Unref all included bfds.
14999 (gdb_bfd_record_inclusion): New function.
15000 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15001
c2cec97c
TT
150022014-01-13 Tom Tromey <tromey@redhat.com>
15003
15004 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15005
78e5999d
TT
150062014-01-13 Tom Tromey <tromey@redhat.com>
15007
15008 * defs.h (use_windows): Remove.
15009 * gdb.c (main): Update.
15010 * main.c (captured_main, gdb_main): Update.
15011 * main.h (struct captured_main_args) <use_windows>: Remove.
15012 * top.c (use_windows): Remove.
15013
f2052bbe
TT
150142014-01-13 Tom Tromey <tromey@redhat.com>
15015
15016 * defs.h (deprecated_flush_hook): Remove.
15017
fde4f8ed
JK
150182014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15019
15020 PR threads/16216
15021 * linux-thread-db.c (try_thread_db_load): Add parameter
15022 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15023 (try_thread_db_load_from_pdir_1): Move it there from here.
15024 (try_thread_db_load_from_sdir): Update caller.
15025 (try_thread_db_load_from_dir): Move it there from here.
15026
bdf61915
PP
150272014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15028
15029 * regformats/regdat.sh: Always rewrite the register file.
15030
f71e1a8d
PA
150312014-01-13 Pedro Alves <palves@redhat.com>
15032
15033 * Makefile.in (CHECK_HEADERS): New variable.
15034 (check-headers:): New rule.
15035
42c85435
TT
150362014-01-13 Tom Tromey <tromey@redhat.com>
15037
15038 * cli/cli-setshow.c (do_set_command): Update.
15039 * defs.h (deprecated_set_hook): Remove.
15040 * top.c (deprecated_set_hook): Remove.
15041
f8de5129
PA
150422014-01-13 Pedro Alves <palves@redhat.com>
15043
15044 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15045 the tracepoint if the PC is a pseudo-register.
15046
fc270c35
TT
150472014-01-13 Tom Tromey <tromey@redhat.com>
15048
15049 * defs.h (XCALLOC): Remove.
15050 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15051 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15052 * dwarf2loc.c (allocate_piece_closure): Likewise.
15053 * elfread.c (elf_symfile_segments): Likewise.
15054 (elf_symfile_segments): Likewise.
15055 * gdbtypes.c (copy_type_recursive): Likewise.
15056 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15057 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15058 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15059 XCALLOC.
15060 * mt-tdep.c (mt_gdbarch_init): Likewise.
15061 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15062 XCALLOC.
15063 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15064 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15065 * registry.c (registry_alloc_data): Likewise.
15066 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15067 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15068 * serial.c (serial_fdopen_ops): Likewise.
15069 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15070 XCALLOC.
15071 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15072 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15073 not XCALLOC.
15074
70ba0933
TT
150752014-01-13 Tom Tromey <tromey@redhat.com>
15076
15077 * defs.h (XMALLOC): Remove.
15078 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15079 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15080 * cli-out.c (struct ui_out *): Likewise.
15081 * cli/cli-dump.c (add_dump_command): Likewise.
15082 (add_dump_command): Likewise.
15083 * complaints.c (get_complaints): Likewise.
15084 (find_complaint): Likewise.
15085 * dwarf2-frame.c (execute_cfa_program): Likewise.
15086 * dwarf2read.c (abbrev_table_read_table): Likewise.
15087 * gdbarch.sh: Likewise.
15088 * gdbarch.c: Rebuild.
15089 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15090 * interps.c (interp_new): Likewise.
15091 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15092 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15093 * mi/mi-console.c (mi_console_file_new): Likewise.
15094 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15095 * mi/mi-out.c (mi_out_new): Likewise.
15096 * mi/mi-parse.c (mi_parse): Likewise.
15097 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15098 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15099 * observer.c (xalloc_observer_list_node): Likewise.
15100 * regcache.c (regcache_xmalloc_1): Likewise.
15101 * reggroups.c (reggroup_new): Likewise.
15102 (_initialize_reggroup): Likewise.
15103 * registry.c (register_data_with_cleanup): Likewise.
15104 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15105 * ser-base.c (serial_ttystate): Likewise.
15106 * ser-mingw.c (make_pipe_state): Likewise.
15107 * ser-pipe.c (pipe_open): Likewise.
15108 * serial.c (serial_open): Likewise.
15109 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15110 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15111 (tui_alloc_win_info): Likewise.
15112 (tui_add_content_elements): Likewise.
15113 * tui/tui-file.c (tui_file_new): Likewise.
15114 * tui/tui-out.c (tui_out_new): Likewise.
15115 * ui-file.c (mem_file_new): Likewise.
15116 * ui-out.c (push_level): Likewise.
15117 (make_cleanup_ui_out_end): Likewise.
15118 (append_header_to_list): Likewise.
15119 (ui_out_new): Likewise.
15120 * user-regs.c (user_reg_add_builtin): Likewise.
15121
41bf6aca
TT
151222014-01-13 Tom Tromey <tromey@redhat.com>
15123
15124 * defs.h (XZALLOC): Remove.
15125 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15126 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15127 (get_ada_tasks_inferior_data): Likewise.
15128 * auto-load.c (get_auto_load_pspace_data): Likewise.
15129 * auxv.c (get_auxv_inferior_data): Likewise.
15130 * bfd-target.c (target_bfd_reopen): Likewise.
15131 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15132 (deprecated_insert_raw_breakpoint): Likewise.
15133 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15134 * corelow.c (core_open): Likewise.
15135 * darwin-nat.c (darwin_check_new_threads): Likewise.
15136 (darwin_attach_pid): Likewise.
15137 * dummy-frame.c (dummy_frame_push): Likewise.
15138 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15139 * dwarf2loc.c (allocate_piece_closure): Likewise.
15140 * elfread.c (elf_symfile_segments): Likewise.
15141 * eval.c (ptrmath_type_p): Likewise.
15142 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15143 * gdbtypes.c (alloc_type_arch): Likewise.
15144 (alloc_type_instance): Likewise.
15145 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15146 * inf-child.c (inf_child_can_use_agent): Likewise.
15147 * inflow.c (get_inflow_inferior_data): Likewise.
15148 * infrun.c (save_infcall_suspend_state): Likewise.
15149 * jit.c (jit_reader_load): Likewise.
15150 (get_jit_objfile_data): Likewise.
15151 (get_jit_program_space_data): Likewise.
15152 (jit_object_open_impl): Likewise.
15153 (jit_symtab_open_impl): Likewise.
15154 (jit_block_open_impl): Likewise.
15155 (jit_frame_sniffer): Likewise.
15156 * linux-fork.c (add_fork): Likewise.
15157 * maint.c (make_command_stats_cleanup): Likewise.
15158 * objfiles.c (get_objfile_pspace_data): Likewise.
15159 * opencl-lang.c (struct lval_closure): Likewise.
15160 * osdata.c (osdata_start_osdata): Likewise.
15161 * progspace.c (new_address_space): Likewise.
15162 (add_program_space): Likewise.
15163 * remote-sim.c (get_sim_inferior_data): Likewise.
15164 * sh-tdep.c (sh_gdbarch_init): Likewise.
15165 * skip.c (Ignore): Likewise.
15166 (skip_delete_command): Likewise.
15167 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15168 (library_list_start_library): Likewise.
15169 (solib_aix_current_sos): Likewise.
15170 * solib-darwin.c (get_darwin_info): Likewise.
15171 (darwin_current_sos): Likewise.
15172 * solib-dsbt.c (get_dsbt_info): Likewise.
15173 * solib-ia64-hpux.c (new_so_list): Likewise.
15174 (ia64_hpux_get_solib_linkage_addr): Likewise.
15175 * solib-spu.c (append_ocl_sos): Likewise.
15176 (spu_current_sos): Likewise.
15177 * solib-svr4.c (get_svr4_info): Likewise.
15178 (svr4_keep_data_in_core): Likewise.
15179 (library_list_start_library): Likewise.
15180 (svr4_default_sos): Likewise.
15181 (svr4_read_so_list): Likewise.
15182 * solib-target.c (library_list_start_library): Likewise.
15183 (solib_target_current_sos): Likewise.
15184 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15185 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15186 * symfile.c (default_symfile_segments): Likewise.
15187 * target-descriptions.c (tdesc_data_init): Likewise.
15188 (tdesc_create_reg): Likewise.
15189 (struct tdesc_type *): Likewise.
15190 (tdesc_create_vector): Likewise.
15191 (tdesc_set_struct_size): Likewise.
15192 (struct tdesc_type *): Likewise.
15193 (tdesc_free_feature): Likewise.
15194 (tdesc_create_feature): Likewise.
15195 * windows-nat.c (windows_add_thread): Likewise.
15196 (windows_make_so): Likewise.
15197 * xml-support.c (gdb_xml_body_text): Likewise.
15198 (gdb_xml_create_parser_and_cleanup): Likewise.
15199 (xml_process_xincludes): Likewise.
15200 * xml-syscall.c (allocate_syscalls_info): Likewise.
15201 (syscall_create_syscall_desc): Likewise.
15202
5acfdbae
SDJ
152032014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15204
15205 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15206 function, with code from i386_stap_parse_special_token.
15207 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15208 (i386_stap_parse_special_token): Move code to the two functions
15209 above; simplify it.
15210
0000e5cc
PA
152112014-01-09 Pedro Alves <palves@redhat.com>
15212 Hui Zhu <hui@codesourcery.com>
15213
15214 PR gdb/16101
15215 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15216 bp_err_string. Don't mark the location shlib_disabled if the
15217 error thrown wasn't a generic or memory error. Catch errors
15218 thrown while inserting breakpoints in overlayed code. Output
15219 error message of software breakpoints.
15220 * remote.c (remote_insert_breakpoint): If this breakpoint has
15221 target-side commands but this stub doesn't support Z0 packets,
15222 throw NOT_SUPPORTED_ERROR error.
15223 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15224 * target.h (target_insert_breakpoint): Extend comment.
15225 (target_insert_hw_breakpoint): Add comment.
15226
b7ea362b
PA
152272014-01-08 Pedro Alves <palves@redhat.com>
15228
15229 * remote.c (remote_add_thread): Add threads silently if starting
15230 up.
15231 (remote_notice_new_inferior): If in all-stop, and starting up,
15232 don't call notice_new_inferior.
15233 (get_current_thread): New function, factored out from ...
15234 (add_current_inferior_and_thread): ... this. Adjust.
15235 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15236 found any thread, then select the remote's current thread as GDB's
15237 current thread too.
15238
b7bba001
JB
152392014-01-08 Joel Brobecker <brobecker@adacore.com>
15240
15241 * NEWS: Create a new section for the next release branch.
15242 Rename the section of the current branch, now that it has
15243 been cut.
15244
16dfbded
JB
152452014-01-08 Joel Brobecker <brobecker@adacore.com>
15246
15247 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15248 * version.in: Bump version to 7.7.50.DATE-cvs.
15249
22c90ac1
YQ
152502014-01-08 Yao Qi <yao@codesourcery.com>
15251
15252 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15253 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15254 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15255
d64ad97c
YQ
152562014-01-08 Yao Qi <yao@codesourcery.com>
15257
15258 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15259 return value of bfd_get_filename to symbol_file_add_from_bfd.
15260
f93ba80c
PM
152612014-01-08 Pierre Muller <muller@sourceware.org>
15262
15263 Fix PR16201.
15264 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15265 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15266 to prim_record_mininal_symbol_and_info.
15267 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15268 in call to prim_record_minimal_symbol_and_info.
15269 (read_pe_exported_syms): Set index field of section_data.
15270
a4d9ba85
AP
152712014-01-07 Andrew Pinski <apinski@cavium.com>
15272
15273 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15274 * features/aarch64.c: Regenerate.
15275
1b67eb02
AS
152762014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15277
15278 * target.c (return_null): Define.
15279 (update_current_target): Use it instead of return_zero for
15280 functions that return a pointer.
15281
5e3f4fab
EBM
152822014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15283
15284 * source.c (add_path): Fix check for duplicated paths in the previously
15285 included paths.
15286
e2616788
HK
152872014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15288
15289 * ada-lang.c: Remove duplicated include statements.
15290 * alphabsd-nat.c: Ditto.
15291 * amd64-darwin-tdep.c: Ditto.
15292 * amd64fbsd-nat.c: Ditto.
15293 * auto-load.c: Ditto.
15294 * ax-gdb.c: Ditto.
15295 * breakpoint.c: Ditto.
15296 * dbxread.c: Ditto.
15297 * fork-child.c: Ditto.
15298 * gdb_usleep.c: Ditto.
15299 * i386-darwin-tdep.c: Ditto.
15300 * i386fbsd-nat.c: Ditto.
15301 * infcmd.c: Ditto.
15302 * inferior.c: Ditto.
15303 * jv-lang.c: Ditto.
15304 * linux-nat.c: Ditto.
15305 * linux-tdep.c: Ditto.
15306 * m68kbsd-nat.c: Ditto.
15307 * m68klinux-nat.c: Ditto.
15308 * microblaze-tdep.c: Ditto.
15309 * mips-linux-tdep.c: Ditto.
15310 * mn10300-tdep.c: Ditto.
15311 * nto-tdep.c: Ditto.
15312 * opencl-lang.c: Ditto.
15313 * osdata.c: Ditto.
15314 * printcmd.c: Ditto.
15315 * regcache.c: Ditto.
15316 * remote-m32r-sdi.c: Ditto.
15317 * remote.c: Ditto.
15318 * symfile.c: Ditto.
15319 * symtab.c: Ditto.
15320 * tilegx-linux-nat.c: Ditto.
15321 * tilegx-tdep.c: Ditto.
15322 * tracepoint.c: Ditto.
15323 * valops.c: Ditto.
15324 * vaxbsd-nat.c: Ditto.
15325 * windows-nat.c: Ditto.
15326 * xtensa-tdep.c: Ditto.
15327
bd1f7788
YQ
153282014-01-07 Yao Qi <yao@codesourcery.com>
15329
15330 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15331
79301218
JB
153322014-01-07 Yao Qi <yao@codesourcery.com>
15333 Joel Brobecker <brobecker@adacore.com>
15334
15335 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15336 (pdc_write_regs): Likewise.
15337 (fetch_regs_kernel_thread): Likewise.
15338 (store_regs_kernel_thread): Likewise.
15339
153402014-01-07 Joel Brobecker <brobecker@adacore.com>
15341
15342 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15343 tagged type objects to their actual type.
15344
8e355c5d
JB
153452014-01-07 Joel Brobecker <brobecker@adacore.com>
15346
15347 * ada-valprint.c (print_field_values): Add "language" parameter.
15348 Update calls to print_field_values and print_variant_part.
15349 Pass new parameter "language" in call to val_print instead
15350 of "current_language". Replace call to ada_val_print by call
15351 to val_print.
15352 (print_variant_part): Add "language" parameter.
15353 (ada_val_print_struct_union): Update call to print_field_values.
15354
4fbf5aa5
JB
153552014-01-07 Joel Brobecker <brobecker@adacore.com>
15356
15357 * ada-valprint.c (ui_memcpy): Delete.
15358 (ada_print_floating): Update documentation. Add empty line
15359 between between function documentation and implementation.
15360 Delete variable "buffer". Use ui_file_xstrdup in place of
15361 ui_file_put. Minor adjustments following this change.
15362
71855601
JB
153632014-01-07 Joel Brobecker <brobecker@adacore.com>
15364
15365 * ada-valprint.c (ada_val_print_string): New function,
15366 extracted from ada_val_print_array.
15367 (ada_val_print_array): Replace extracted code by call
15368 to ada_val_print_string followed by a return. Move
15369 "else" branch to the function's top block.
15370
4eb27a30
JB
153712014-01-07 Joel Brobecker <brobecker@adacore.com>
15372
15373 * ada-valprint.c (ada_val_print_array): Move implementation
15374 down. Rename parameter "offset" and "val" into "offset_aligned"
15375 and "original_value" respectively. Add parameter "offset".
15376
34b27950
JB
153772014-01-07 Joel Brobecker <brobecker@adacore.com>
15378
15379 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15380 re-organizing the code. Change the "???" message printed
15381 when target type is a TYPE_CODE_UNDEF into
15382 "<ref to undefined type>".
15383
079e4591
JB
153842014-01-07 Joel Brobecker <brobecker@adacore.com>
15385
15386 * ada-valprint.c (print_record): Delete, implementation inlined...
15387 (ada_val_print_struct_union): ... here. Remove call to
15388 ada_check_typedef in inlined implementation.
15389
8004dfd1
JB
153902014-01-07 Joel Brobecker <brobecker@adacore.com>
15391
15392 * ada-valprint.c (ada_val_print_gnat_array): New function,
15393 extracted from ada_val_print_1;
15394 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15395 (ada_val_print_flt, ada_val_print_struct_union)
15396 (ada_val_print_ref): Likewise.
15397 (ada_val_print_1): Delete variables i and elttype.
15398 Replace extracted-out code by call to corresponding
15399 new functions.
15400
760a2db0
JB
154012014-01-07 Joel Brobecker <brobecker@adacore.com>
15402
15403 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15404
3a92c861
JB
154052014-01-07 Joel Brobecker <brobecker@adacore.com>
15406
15407 * ada-valprint.c (ada_val_print_1): Replace calls to
15408 ada_val_print_1 by calls to val_print.
15409
cd1630f9
JB
154102014-01-07 Joel Brobecker <brobecker@adacore.com>
15411
15412 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15413 Update calls to self accordingly. Replace calls to c_val_print
15414 by calls to val_print.
15415
bdf779a0
JB
154162014-01-07 Joel Brobecker <brobecker@adacore.com>
15417
15418 * ada-valprint.c (print_record): Delete declaration.
15419 (adjust_type_signedness, ada_val_print_1): Likewise.
15420 (ada_val_print): Move function implementation down.
15421 (print_variant_part, print_field_values, print_record):
15422 Move function implementation up.
15423
c0d48811
JB
154242014-01-07 Joel Brobecker <brobecker@adacore.com>
15425
15426 * python/py-type.c (typy_get_name): New function.
15427 (type_object_getset): Add entry for attribute "name".
15428 * NEWS: Add entry mentioning this new attribute.
15429
c26e9cbb
YQ
154302014-01-07 Yao Qi <yao@codesourcery.com>
15431
15432 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15433 statement.
15434
0cc6f43d
YQ
154352014-01-07 Yao Qi <yao@codesourcery.com>
15436
15437 * gnu-nat.c (info_port_rights): Add qualifier const to
15438 argument args.
15439
eec03155
YQ
154402014-01-07 Yao Qi <yao@codesourcery.com>
15441
15442 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15443
f04a82ef
YQ
154442014-01-07 Yao Qi <yao@codesourcery.com>
15445
15446 * gnu-nat.c (make_inf) Update declaration.
15447 (make_inf): Make it static.
15448 (inf_set_traced): Likewise.
15449 (inf_port_to_thread, inf_task_died_status): Likewise.
15450
d57dda0a
YQ
154512014-01-07 Yao Qi <yao@codesourcery.com>
15452
15453 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15454
3aa8c969
YQ
154552014-01-07 Yao Qi <yao@codesourcery.com>
15456
15457 * gnu-nat.c (_initialize_gnu_nat): Declare.
15458
94123b4f
YQ
154592014-01-07 Yao Qi <yao@codesourcery.com>
15460
15461 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15462 'enum bfd_endian'.
15463 (struct gdbarch_info) <byte_order>: Change type to
15464 'enum bfd_endian'.
15465 <byte_order_for_code>: Likewise.
15466 * gdbarch.c, gdbarch.h: Regenerated.
15467
dc81d70a
TT
154682014-01-06 Sasha Smundak <asmundak@google.com>
15469
15470 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15471
cc2f3c35
TT
154722014-01-06 Tom Tromey <tromey@redhat.com>
15473
15474 * doublest.c (convert_doublest_to_floatformat): Use const, not
15475 CONST.
15476 * somread.c (som_symtab_read): Likewise.
15477
adcf2eed
HZ
154782014-01-07 Hui Zhu <hui@codesourcery.com>
15479
15480 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15481 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15482 (gdb_bfd_fopen): Ditto.
15483 (gdb_bfd_openr): Ditto.
15484 (gdb_bfd_openw): Ditto.
15485 (gdb_bfd_openr_iovec): Ditto.
15486 (gdb_bfd_fdopenr): Ditto.
15487 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15488 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15489 with xstrdup.
15490 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15491 with xstrdup.
15492 * symfile-mem.c (symbol_file_add_from_memory): Removed
15493 gdb_bfd_stash_filename.
15494
50722198
DE
154952014-01-03 Doug Evans <dje@google.com>
15496
15497 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15498 output.
15499
2fa4b862
JB
155002014-01-01 Joel Brobecker <brobecker@adacore.com>
15501
15502 Update year range in copyright notice of all files.
15503
28498c42
JB
155042014-01-01 Joel Brobecker <brobecker@adacore.com>
15505
15506 * top.c (print_gdb_version): Set copyright year to 2014.
15507
7b6e1046
JB
155082014-01-01 Joel Brobecker <brobecker@adacore.com>
15509
15510 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15511
df96af55 15512For older changes see ChangeLog-2013.
c906108c
SS
15513\f
15514Local Variables:
15515mode: change-log
15516left-margin: 8
15517fill-column: 74
15518version-control: never
57da7796 15519coding: utf-8
c906108c 15520End:
This page took 2.392235 seconds and 4 git commands to generate.