Fix date in changelog
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7014e923 12014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
2
3 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
4 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
5
aa489395
SL
62014-11-25 Sandra Loosemore <sandra@codesourcery.com>
7
8 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
9 that there can be only one stack adjustment in the prologue
10 with tests to detect specific disallowed stack adjustments.
11
7f1659b5
SL
122014-11-25 Sandra Loosemore <sandra@codesourcery.com>
13
14 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
15 adjustments.
16
d53c26c7
SL
172014-11-25 Sandra Loosemore <sandra@codesourcery.com>
18
19 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
20 the instruction as well as reading it from memory.
21 (nios2_match_add): New.
22 (nios2_match_sub): New.
23 (nios2_match_addi): New.
24 (nios2_match_orhi): New.
25 (nios2_match_stw): New.
26 (nios2_match_ldw): New.
27 (nios2_match_rdctl): New.
28 (enum branch_condition): New.
29 (nios2_match_branch): New.
30 (nios2_match_jmpi): New.
31 (nios2_match_calli): New.
32 (nios2_match_jmpr): New.
33 (nios2_match_callr): New.
34 (nios2_match_break): New.
35 (nios2_match_trap): New.
36 (nios2_in_epilogue_p): Rewrite to use new functions.
37 (nios2_analyze_prologue): Likewise.
38 (nios2_skip_prologue): Delete unused local limit_pc.
39 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
40 (nios2_get_next_pc): Rewrite to use new functions.
41
cac9b138
JK
422014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
43
44 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
45
a441dfbc
ST
462014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
47
48 Pushed by Joel Brobecker <brobecker@adacore.com>
49 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
50 elements pi_len by the size of the elements before calling
51 vm_deallocate.
52 (inf_validate_task_sc): Likewise, and properly deallocate the
53 noise array.
54
4c9e8482
DE
552014-11-23 Doug Evans <xdje42@gmail.com>
56
57 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
58 number and name if present. All callers updated.
59 (dump_fn_fieldlists): Fix indentation of args.
60
15ee0bbd
PP
612014-11-23 Patrick Palka <patrick@parcs.ath.cx>
62
63 * MAINTAINERS (Write After Approval): Add myself.
64
e8af5d7a
JB
652014-11-23 Joel Brobecker <brobecker@adacore.com>
66
67 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
68 to a bp_call_dummy breakpoint type.
69
a344fc09
PP
702014-11-23 Patrick Palka <patrick@parcs.ath.cx>
71
72 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
73 registering the signal handler.
74
d64e57fa
PP
752014-11-23 Patrick Palka <patrick@parcs.ath.cx>
76
77 * event-top.h (call_stdin_event_handler_again_p): Declare.
78 * event-top.c (call_stdin_event_handler_again_p): Define.
79 (stdin_event_handler): Use it.
80 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
81 handler again if there is pending input following a
82 start sequence.
83
6f9d33d8
PP
842014-11-23 Patrick Palka <patrick@parcs.ath.cx>
85
86 Pushed by Joel Brobecker <brobecker@adacore.com>
87 * linux-fork.c (checkpoint_command): Print index of new
88 checkpoint in response message.
89
88db67ef
YQ
902014-11-23 Yao Qi <yao@codesourcery.com>
91
92 * valprint.c (read_string): Move local variables 'found_nul',
93 'chunksize' and 'limit' to inner scope. Update comments.
94
01465b56
DE
952014-11-22 Doug Evans <xdje42@gmail.com>
96
97 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
98 function comment.
99 (search_symbols): Fix comments and whitespace.
100
07a1c2c3
DE
1012014-11-22 Doug Evans <xdje42@gmail.com>
102
103 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
104
b2a919a8
DE
1052014-11-21 Doug Evans <dje@google.com>
106
107 * psymtab.c (psymtab_search_name): Fix whitespace.
108
278289d5
YQ
1092014-11-21 Yao Qi <yao@codesourcery.com>
110
111 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
112 errno.
113 * gnulib/import/Makefile.am: Re-generated.
114 * gnulib/import/Makefile.in: Likewise.
115 * gnulib/import/m4/gnulib-cache.m4: Likewise.
116
e01e2baa
YQ
1172014-11-21 Yao Qi <yao@codesourcery.com>
118
119 * gdb_wchar.h: Include wchar.h and wctype.h.
120 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
121 include wchar.h and wctype.h.
122 Don't check HAVE_WCHAR_H.
123
f0c00af8
YQ
1242014-11-21 Yao Qi <yao@codesourcery.com>
125
126 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
127 and wctype-h.
128 * gnulib/import/Makefile.am: Re-generated.
129 * gnulib/import/Makefile.in: Likewise.
130 * gnulib/import/m4/gnulib-cache.m4: Likewise.
131
0cae13bb
YQ
1322014-11-21 Yao Qi <yao@codesourcery.com>
133
134 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
135 memchr.
136 * gnulib/import/Makefile.am: Re-generated.
137 * gnulib/import/Makefile.in: Likewise.
138 * gnulib/import/m4/gnulib-cache.m4: Likewise.
139
9c232dda
YQ
1402014-11-21 Yao Qi <yao@codesourcery.com>
141
142 * common/common-defs.h: Include alloca.h
143 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
144 * configure: Re-generated.
145 * defs.h: Remove code handling alloca.
146 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
147 or not.
148
00d7f58f
YQ
1492014-11-21 Yao Qi <yao@codesourcery.com>
150
151 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
152 alloca.
153 * gnulib/import/Makefile.am: Re-generated.
154 * gnulib/import/Makefile.in: Likewise..
155 * gnulib/import/m4/gnulib-cache.m4: Likewise.
156
6068ad5d
YQ
1572014-11-21 Yao Qi <yao@codesourcery.com>
158
159 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
160 alphabetical order.
161
45e44d27
JB
1622014-11-21 Joel Brobecker <brobecker@adacore.com>
163
164 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
165 flag_unsigned if HIGH_BOUND is constant and negative.
166
7e7cbeb3
SDJ
1672014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
168
169 PR breakpoints/10737
170 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
171 modifier from "struct gdbarch" when compiling without Expat (XML)
172 support.
173 (get_syscall_by_number): Likewise.
174 (get_syscall_by_name): Likewise.
175 (get_syscall_names): Likewise.
176
458c8db8
SDJ
1772014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
178
179 PR breakpoints/10737
180 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
181 set_xml_syscall_file_name to provide gdbarch.
182 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
183 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
184 * breakpoint.c (print_it_catch_syscall): Adjust call to
185 get_syscall_by_number to provide gdbarch.
186 (print_one_catch_syscall): Likewise.
187 (print_mention_catch_syscall): Likewise.
188 (print_recreate_catch_syscall): Likewise.
189 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
190 and get_syscall_by_name to provide gdbarch.
191 (catch_syscall_completer): Adjust call to get_syscall_names to
192 provide gdbarch.
193 * gdbarch.c: Regenerate.
194 * gdbarch.h: Likewise.
195 * gdbarch.sh: Forward declare "struct syscalls_info".
196 (xml_syscall_file): New variable.
197 (syscalls_info): Likewise.
198 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
199 set_xml_syscall_file_name to provide gdbarch.
200 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
201 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
202 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
203 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
204 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
205 * xml-syscall.c: Include gdbarch.h.
206 (set_xml_syscall_file_name): Accept gdbarch parameter.
207 (get_syscall_by_number): Likewise.
208 (get_syscall_by_name): Likewise.
209 (get_syscall_names): Likewise.
210 (my_gdb_datadir): Delete global variable.
211 (struct syscalls_info) <my_gdb_datadir>: New variable.
212 (struct syscalls_info) <sysinfo>: Rename variable to
213 "syscalls_info".
214 (sysinfo): Delete global variable.
215 (have_initialized_sysinfo): Likewise.
216 (xml_syscall_file): Likewise.
217 (sysinfo_free_syscalls_desc): Rename to...
218 (syscalls_info_free_syscalls_desc): ... this.
219 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
220 code to the new layout of "struct syscalls_info".
221 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
222 "syscalls_info".
223 (syscall_create_syscall_desc): Likewise.
224 (syscall_start_syscall): Likewise.
225 (syscall_parse_xml): Likewise.
226 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
227 (init_sysinfo): Rename to...
228 (init_syscalls_info): ...this. Add gdbarch as a parameter.
229 Adjust function to deal with gdbarch.
230 (xml_get_syscall_number): Delete parameter sysinfo. Accept
231 gdbarch as a parameter. Adjust code.
232 (xml_get_syscall_name): Likewise.
233 (xml_list_of_syscalls): Likewise.
234 (set_xml_syscall_file_name): Accept gdbarch as parameter.
235 (get_syscall_by_number): Likewise.
236 (get_syscall_by_name): Likewise.
237 (get_syscall_names): Likewise.
238 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
239 (get_syscall_by_number): Likewise.
240 (get_syscall_by_name): Likewise.
241 (get_syscall_names): Likewise.
242
43f3e411
DE
2432014-11-20 Doug Evans <xdje42@gmail.com>
244
245 Split struct symtab into two: struct symtab and compunit_symtab.
246 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
247 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
248 to "struct compunit_symtab *". All callers updated.
249 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
250 "struct symtab *" argument to "struct compunit_symtab *".
251 All callers updated.
252 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
253 result to "struct compunit_symtab *". All callers updated.
254 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
255 Change result to "struct compunit_symtab *". All callers updated.
256 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
257 hange type to "struct compunit_symtab *". All uses updated.
258 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
259 Change type to "struct compunit_symtab *". All uses updated.
260 * buildsym.c (struct buildsym_compunit): New struct.
261 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
262 (buildsym_compunit): New static global.
263 (finish_block_internal): Update to fetch objfile from
264 buildsym_compunit.
265 (make_blockvector): Delete objfile argument.
266 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
267 debugformat, producer.
268 (start_buildsym_compunit): New function.
269 (free_buildsym_compunit): Renamed from free_subfiles_list.
270 All callers updated.
271 (patch_subfile_names): Rewrite to use buildsym_compunit.
272 (get_compunit_symtab): New function.
273 (get_macro_table): Delete argument comp_dir. All callers updated.
274 (start_symtab): Change result to "struct compunit_symtab *".
275 All callers updated. Create the subfile of the main source file.
276 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
277 (reset_symtab_globals): Update.
278 (end_symtab_get_static_block): Update to use buildsym_compunit.
279 (end_symtab_without_blockvector): Rewrite.
280 (end_symtab_with_blockvector): Change result to
281 "struct compunit_symtab *". All callers updated.
282 Update to use buildsym_compunit. Don't set symtab->dirname,
283 instead set it in the compunit.
284 Explicitly make sure main symtab is first in its list.
285 Set debugformat, producer, blockvector, block_line_section, and
286 macrotable in the compunit.
287 (end_symtab_from_static_block): Change result to
288 "struct compunit_symtab *". All callers updated.
289 (end_symtab, end_expandable_symtab): Ditto.
290 (set_missing_symtab): Change symtab argument to
291 "struct compunit_symtab *". All callers updated.
292 (augment_type_symtab): Ditto.
293 (record_debugformat): Update to use buildsym_compunit.
294 (record_producer): Update to use buildsym_compunit.
295 * buildsym.h (struct subfile) <dirname>: Delete.
296 <producer, debugformat>: Delete.
297 <buildsym_compunit>: New member.
298 (get_compunit_symtab): Declare.
299 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
300 from primary_symtab. Change type to "struct compunit_symtab *".
301 All uses updated.
302 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
303 All callers updated.
304 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
305 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
306 symtab. Change type to "struct compunit_symtab *". All uses updated.
307 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
308 All callers updated.
309 (dw2_find_last_source_symtab): Ditto.
310 (dw2_lookup_symbol): Ditto.
311 (recursively_find_pc_sect_compunit_symtab): Renamed from
312 recursively_find_pc_sect_symtab. Change result to
313 "struct compunit_symtab *". All callers updated.
314 (dw2_find_pc_sect_compunit_symtab): Renamed from
315 dw2_find_pc_sect_symtab. Change result to
316 "struct compunit_symtab *". All callers updated.
317 (get_compunit_symtab): Renamed from get_symtab. Change result to
318 "struct compunit_symtab *". All callers updated.
319 (recursively_compute_inclusions): Change type of immediate_parent
320 argument to "struct compunit_symtab *". All callers updated.
321 (compute_compunit_symtab_includes): Renamed from
322 compute_symtab_includes. All callers updated. Rewrite to compute
323 includes of compunit_symtabs and not symtabs.
324 (process_full_comp_unit): Update to work with struct compunit_symtab.
325 (process_full_type_unit): Ditto.
326 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
327 (dwarf_decode_lines): Remove special case handling of main subfile.
328 (macro_start_file): Delete argument comp_dir. All callers updated.
329 (dwarf_decode_macro_bytes): Ditto.
330 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
331 use struct compunit_symtab.
332 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
333 * jit.c (finalize_symtab): Build compunit_symtab.
334 * jv-lang.c (get_java_class_symtab): Change result to
335 "struct compunit_symtab *". All callers updated.
336 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
337 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
338 comp_dir. Change type to "struct compunit_symtab *".
339 All uses updated.
340 (new_macro_table): Change comp_dir argument to cust,
341 "struct compunit_symtab *". All callers updated.
342 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
343 nr_primary_symtabs. All uses updated.
344 (count_symtabs_and_blocks): Update to handle compunits.
345 (report_command_stats): Update output, "primary symtabs" renamed to
346 "compunits".
347 * mdebugread.c (new_symtab): Change result to
348 "struct compunit_symtab *". All callers updated.
349 (parse_procedure): Change type of search_symtab argument to
350 "struct compunit_symtab *". All callers updated.
351 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
352 separate loop.
353 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
354 symtabs. Change type to "struct compunit_symtab *". All uses updated.
355 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
356 All uses updated.
357 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
358 All uses updated.
359 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
360 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
361 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
362 symtab. Change type to "struct compunit_symtab *". All uses updated.
363 * psymtab.c (psymtab_to_symtab): Change result type to
364 "struct compunit_symtab *". All callers updated.
365 (find_pc_sect_compunit_symtab_from_partial): Renamed from
366 find_pc_sect_symtab_from_partial. Change result type to
367 "struct compunit_symtab *". All callers updated.
368 (lookup_symbol_aux_psymtabs): Change result type to
369 "struct compunit_symtab *". All callers updated.
370 (find_last_source_symtab_from_partial): Ditto.
371 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
372 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
373 and macro_table from compunit.
374 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
375 type to "struct compunit_symtab *". All callers updated.
376 (debug_qf_lookup_symbol): Ditto.
377 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
378 debug_qf_find_pc_sect_symtab, change result type to
379 "struct compunit_symtab *". All callers updated.
380 * symfile.c (allocate_symtab): Delete objfile argument.
381 New argument cust.
382 (allocate_compunit_symtab): New function.
383 (add_compunit_symtab_to_objfile): New function.
384 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
385 Change result type to "struct compunit_symtab *". All uses updated.
386 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
387 Change result type to "struct compunit_symtab *". All uses updated.
388 * symmisc.c (print_objfile_statistics): Compute blockvector count in
389 separate loop.
390 (dump_symtab_1): Update test for primary source symtab.
391 (maintenance_info_symtabs): Update to handle compunit symtabs.
392 (maintenance_check_symtabs): Ditto.
393 * symtab.c (set_primary_symtab): Delete.
394 (compunit_primary_filetab): New function.
395 (compunit_language): New function.
396 (iterate_over_some_symtabs): Change type of arguments "first",
397 "after_last" to "struct compunit_symtab *". All callers updated.
398 Update to loop over symtabs in each compunit.
399 (error_in_psymtab_expansion): Rename symtab argument to cust,
400 and change type to "struct compunit_symtab *". All callers updated.
401 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
402 Change result type to "struct compunit_symtab *". All callers updated.
403 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
404 Change result type to "struct compunit_symtab *". All callers updated.
405 (find_pc_sect_line): Only loop over symtabs within selected compunit
406 instead of all symtabs in the objfile.
407 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
408 <compunit_symtab> New member.
409 <block_line_section>: Moved to compunit_symtab.
410 <locations_valid>: Ditto.
411 <epilogue_unwind_valid>: Ditto.
412 <macro_table>: Ditto.
413 <dirname>: Ditto.
414 <debugformat>: Ditto.
415 <producer>: Ditto.
416 <objfile>: Ditto.
417 <call_site_htab>: Ditto.
418 <includes>: Ditto.
419 <user>: Ditto.
420 <primary>: Delete
421 (SYMTAB_COMPUNIT): New macro.
422 (SYMTAB_BLOCKVECTOR): Update definition.
423 (SYMTAB_OBJFILE): Update definition.
424 (SYMTAB_DIRNAME): Update definition.
425 (struct compunit_symtab): New type. Common members among all source
426 symtabs within a compilation unit moved here. All uses updated.
427 (COMPUNIT_OBJFILE): New macro.
428 (COMPUNIT_FILETABS): New macro.
429 (COMPUNIT_DEBUGFORMAT): New macro.
430 (COMPUNIT_PRODUCER): New macro.
431 (COMPUNIT_DIRNAME): New macro.
432 (COMPUNIT_BLOCKVECTOR): New macro.
433 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
434 (COMPUNIT_LOCATIONS_VALID): New macro.
435 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
436 (COMPUNIT_CALL_SITE_HTAB): New macro.
437 (COMPUNIT_MACRO_TABLE): New macro.
438 (ALL_COMPUNIT_FILETABS): New macro.
439 (compunit_symtab_ptr): New typedef.
440 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
441
005e2509
JB
4422014-11-20 Joel Brobecker <brobecker@adacore.com>
443
444 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
445 if the TYPE_CODE of range_type's base type does not match
446 the TYPE_CODE of encoding_type's base type.
447
2b0f535a
JB
4482014-11-19 Joel Brobecker <brobecker@adacore.com>
449
450 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
451 it starts with '<'.
452
8908fca5
JB
4532014-11-19 Joel Brobecker <brobecker@adacore.com>
454
455 * ada-lang.c (ada_is_redundant_range_encoding): New function.
456 (ada_is_redundant_index_type_desc): New function.
457 (to_fixed_array_type): Ignore parallel XA type if redundant.
458
4a46959e
JB
4592014-11-19 Joel Brobecker <brobecker@adacore.com>
460
461 * ada-lang.c (constrained_packed_array_type): Set the length
462 of the return array as if both bounds where zero if that
463 returned array's index type is dynamic.
464
2acf986b
YQ
4652014-11-19 Yao Qi <yao@codesourcery.com>
466
467 * config/i386/go32.mh (CC): Remove.
468
439247b6
DE
4692014-11-18 Doug Evans <xdje42@gmail.com>
470
471 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
472 updated.
473
4d663531
DE
4742014-11-18 Doug Evans <xdje42@gmail.com>
475
476 * buildsym.c (buildsym_objfile): New static global.
477 (buildsym_comp_dir): New static global.
478 (finish_block_internal): Delete arg objfile. All callers updated.
479 (finish_block): Delete arg objfile. All callers updated.
480 (start_subfile): Delete arg dirname. All callers updated.
481 (patch_subfile_names): Update buildsym_comp_dir.
482 (get_macro_table): Delete arg objfile. All callers updated.
483 (start_symtab): New arg objfile. All callers updated.
484 Rename arg dirname to comp_dir.
485 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
486 (end_symtab_get_static_block): Delete arg objfile. All callers
487 updated.
488 (end_symtab_without_blockvector): Ditto.
489 (end_symtab_with_blockvector): Ditto.
490 (end_symtab_from_static_block): Ditto.
491 (end_symtab): Ditto.
492 (end_expandable_symtab): Ditto.
493 (augment_type_symtab): Ditto.
494 * coffread.c (coff_start_symtab): New arg objfile. All callers
495 updated.
496
8435453b
DE
4972014-11-18 Doug Evans <xdje42@gmail.com>
498
499 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
500 updated.
501
ee6f8984
DE
5022014-11-18 Doug Evans <xdje42@gmail.com>
503
504 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
505 symtab.dirname updated to use it.
506
eb822aa6
DE
5072014-11-18 Doug Evans <xdje42@gmail.com>
508
509 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
510 symtab.objfile updated to use it.
511
98387a29
DE
5122014-11-18 Doug Evans <xdje42@gmail.com>
513
514 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
515
aff08958
DE
5162014-11-18 Doug Evans <xdje42@gmail.com>
517
518 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
519 SYMBOL_OBJFILE.
520 * findvar.c (default_read_var_value): Ditto.
521 * jv-lang.c (add_class_symtab_symbol): Ditto.
522 * parse.c (operator_check_standard): Ditto.
523 * printcmd.c (address_info): Ditto.
524 * symtab.c (fixup_symbol_section): Ditto.
525 (skip_prologue_sal): Ditto.
526 * tracepoint.c (scope_info): Ditto.
527 * valops.c (find_function_in_inferior): Ditto.
528 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
529 * python/py-symbol.c (set_symbol): Ditto.
530
7bab9b58
DE
5312014-11-18 Doug Evans <xdje42@gmail.com>
532
533 * buildsym.c (main_subfile): New static global.
534 (free_subfiles_list): New function.
535 (start_symtab): Set main_subfile.
536 (restart_symtab): Replace init of subfiles, current_subfile with
537 call to free_subfiles_list.
538 (watch_main_source_file_lossage): Use main_subfile.
539 (reset_symtab_globals): Replace init of current_subfile with call
540 to free_subfiles_list.
541 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
542 functions, split out from ...
543 (end_symtab_from_static_block): ... here. Rewrite to call them.
544
f194fefb
DE
5452014-11-18 Doug Evans <xdje42@gmail.com>
546
547 The result of symtab expansion is always a primary symtab.
548 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
549 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
550 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
551 (psymtab_to_symtab): Add comment and assert.
552 (map_matching_symbols_psymtab): Remove unnecessary test for
553 non-primary symtab.
554
34248c3a
DE
5552014-11-15 Doug Evans <xdje42@gmail.com>
556
557 PR symtab/17559
558 * symtab.c (find_pc_line_symtab): New function.
559 * symtab.h (find_pc_line_symtab): Declare.
560 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
561 find_pc_symtab.
562 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
563 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
564 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
565 * tui/tui-win.c (make_visible_with_new_height): Ditto.
566 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
567 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
568
2097ae25
DE
5692014-11-15 Doug Evans <xdje42@gmail.com>
570
571 * symtab.c (expand_symtab_containing_pc): Renamed from
572 find_pc_sect_symtab_via_partial. All callers updated.
573
1ada499f
YQ
5742014-11-15 Yao Qi <yao@codesourcery.com>
575
576 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
577
355e2102
JB
5782014-11-14 Joel Brobecker <brobecker@adacore.com>
579
580 * common/common-defs.h: Move <stdarg.h> #include ahead of
581 <stdio.h> #include.
582
83030110
PA
5832014-11-14 Pedro Alves <palves@redhat.com>
584
585 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
586 [!PHONY_ICONV] (gdb_iconv): New function.
587 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
588
a8719064
DE
5892014-11-13 Doug Evans <dje@google.com>
590
591 PR symtab/17591
592 * dwarf2read.c (find_slot_in_mapped_hash): Handle
593 "(anonymous namespace)".
594
60f7655a
DE
5952014-11-13 Doug Evans <dje@google.com>
596
597 * dwarf2read.c (update_enumeration_type_from_children): Avoid
598 infinite loop.
599
5784b3ca
JK
6002014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
601
602 * NEWS (maint set target-async): Fix typo.
603
6218dc4b
PA
6042014-11-12 Pedro Alves <palves@redhat.com>
605
606 * infrun.c (enum infwait_states, infwait_state): Delete.
607
af48d08f
PA
6082014-11-12 Pedro Alves <palves@redhat.com>
609
610 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
611 Rewrite stepping over a permanent breakpoint.
612 (thread_still_needs_step_over, proceed): Don't set
613 stepping_over_breakpoint for permanent breakpoints.
614 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
615 single-step breakpoints out of the target on hardware step
616 targets.
617 (process_event_stop_test): If stepping a permanent breakpoint
618 doesn't hit the step-resume breakpoint, delete the step-resume
619 breakpoint.
620 (switch_back_to_stepped_thread): Also check if the stepped thread
621 has advanced already on hardware step targets.
622 (currently_stepping): Return true if the thread stepped a
623 breakpoint.
624
1a853c52
PA
6252014-11-12 Pedro Alves <palves@redhat.com>
626
627 Mark locations as permanent, not the whole breakpoint.
628 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
629 (mark_breakpoints_out): Don't mark permanent breakpoints as
630 uninserted.
631 (breakpoint_init_inferior): Use mark_breakpoints_out.
632 (breakpoint_here_p): Adjust.
633 (bpstat_stop_status, describe_other_breakpoints): Remove handling
634 of permanent breakpoints.
635 (make_breakpoint_permanent): Mark each location as permanent,
636 instead of marking the breakpoint.
637 (add_location_to_breakpoint): If the location is permanent, mark
638 it as such, and as inserted.
639 (init_breakpoint_sal): Don't make the breakpoint permanent here.
640 (bp_location_compare, update_global_location_list): Adjust.
641 (update_breakpoint_locations): Don't make the breakpoint permanent
642 here.
643 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
644 breakpoints.
645 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
646 (struct bp_location) <permanent>: New field.
647 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
648 reference to bp_permanent.
649
ae9bb220
PA
6502014-11-12 Pedro Alves <palves@redhat.com>
651
652 * arch-utils.c (default_skip_permanent_breakpoint): New function.
653 * arch-utils.h (default_skip_permanent_breakpoint): New
654 declaration.
655 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
656 Install default_skip_permanent_breakpoint as default method.
657 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
658 (i386_gdbarch_init): Don't install it.
659 * infrun.c (resume): Assume there's always a
660 gdbarch_skip_permanent_breakpoint implementation.
661 * gdbarch.h, gdbarch.c: Regenerate.
662
015de688
DC
6632014-11-11 Daniel Colascione <dancol@dancol.org>
664
665 Warn about cross-PID-namespace debugging.
666 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
667 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
668 * linux-thread-db.c (check_pid_namespace_match): New function.
669 (thread_db_inferior_created): Call it.
670
26a84859
DE
6712014-11-10 Doug Evans <xdje42@gmail.com>
672
673 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
674 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
675
712a2e6d
DE
6762014-11-10 Doug Evans <xdje42@gmail.com>
677
678 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
679
af3768e9
DE
6802014-11-10 Doug Evans <xdje42@gmail.com>
681
682 PR symtab/17564
683 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
684 (lookup_static_symbol): Move definition to new location and rewrite.
685 (lookup_symbol_in_objfile): New function.
686 (lookup_symbol_global_iterator_cb): Call it.
687
b1f28d99
UW
6882014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
689
690 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
691
b7a084be
PA
6922014-11-07 Pedro Alves <palves@redhat.com>
693
694 * infrun.c (process_event_stop_test) <subroutine check>: Don't
695 check if we did a "nexti" inside a prologue.
696 * symtab.c (in_prologue): Delete function.
697 * symtab.h (in_prologue): Delete declaration.
698
67be31e5
DE
6992014-11-06 Doug Evans <xdje42@gmail.com>
700
701 * symtab.h (lookup_global_symbol): Improve function comment.
702
08724ab7
DE
7032014-11-06 Doug Evans <xdje42@gmail.com>
704
705 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
706 All callers updated.
707 * symtab.h (lookup_global_symbol): Update decl.
708 (lookup_static_symbol): Move decl to better location.
709
d9060ba6
DE
7102014-11-06 Doug Evans <xdje42@gmail.com>
711
712 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
713
74016e12
DE
7142014-11-06 Doug Evans <xdje42@gmail.com>
715
716 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
717 All callers updated.
718 (lookup_symbol_in_all_objfiles): Renamed from
719 lookup_symbol_aux_symtabs. All callers updated.
720 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
721 All callers updated.
722 (lookup_symbol_in_objfile_symtabs): Renamed from
723 lookup_symbol_aux_objfile. All callers updated.
724
d1a2d36d
DE
7252014-11-06 Doug Evans <xdje42@gmail.com>
726
727 * symtab.c (lookup_symbol_in_block): Renamed from
728 lookup_symbol_aux_block. All callers updated.
729
24d864bb
DE
7302014-11-06 Doug Evans <xdje42@gmail.com>
731
732 * symtab.c (lookup_static_symbol): Renamed from
733 lookup_static_symbol_aux. All callers updated.
734 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
735 All callers updated.
736
358d6ab3
DE
7372014-11-06 Doug Evans <xdje42@gmail.com>
738
739 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
740 * block.c (block_lookup_symbol): Use it.
741 * cp-support.c (make_symbol_overload_list_block): Use it.
742 * symtab.c (iterate_over_symbols): Use it.
743
16b2eaa1
DE
7442014-11-06 Doug Evans <xdje42@gmail.com>
745
746 * symtab.c (lookup_block_symbol): Moved to ...
747 * block.c (block_lookup_symbol): ... here and renamed.
748 All callers updated.
749 * block.h (block_lookup_symbol): Declare.
750 * symtab.h (lookup_block_symbol): Delete.
751
2dd2cd1c
DE
7522014-11-06 Doug Evans <xdje42@gmail.com>
753
754 * ada-lang.c (ada_make_symbol_completion_list): Use
755 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
756 * symtab.c (lookup_objfile_from_block): Ditto.
757
d4c58915
DE
7582014-11-06 Doug Evans <xdje42@gmail.com>
759
760 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
761 TYPE_CODE_STRUCT.
762
9c1877ea
DE
7632014-11-06 Doug Evans <xdje42@gmail.com>
764
765 * objfiles.c (get_objfile_arch): Constify.
766 * objfiles.h (get_objfile_arch): Update prototype.
767 * solib.c (solib_global_lookup): Fetch arch from objfile,
768 not target_gdbarch.
769
426a4079
SL
7702014-11-06 Sandra Loosemore <sandra@codesourcery.com>
771
772 * nios2-tdep.c (wild_insn): Delete.
773 (profiler_insn, irqentry_insn): Delete.
774 (nios2_match_sequence): Delete.
775 (nios2_analyze_prologue): Update comments. Remove matching
776 of obsolete profiler_insn and irqentry_insn sequences.
777
ee11262d
AM
7782014-11-05 Alan Modra <amodra@gmail.com>
779
780 * charset.c (convert_between_encodings): Shrink obstack using
781 obstack_blank_fast.
782 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
783 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
784 to char* before doing pointer arithmetic.
ee11262d 785
c87e6d00
SM
7862014-11-04 Simon Marchi <simon.marchi@ericsson.com>
787
788 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
789
441ef17f
PA
7902014-11-04 Pedro Alves <palves@redhat.com>
791
792 * breakpoint.c (breakpoint_thread_match): Delete function.
793 * breakpoint.h (breakpoint_thread_match): Delete declaration.
794
e0f52461
SC
7952014-11-03 Siva Chandra Reddy <sivachandra@google.com>
796
797 PR c++/17494
798 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
799 the method args also under EVAL_SKIP when evaluating method
800 calls under EVAL_SKIP.
801
a0b4d890
YQ
8022014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
803
804 * dwarf2loc.c (read_pieced_value): Do big endian
805 processing only if gdb_regnum is not -1.
806 (write_pieced_value): Ditto.
807
8082014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
809
810 * arm-linux-tdep.c (arm_linux_init_abi): Use
811 info.byte_order_for_code to choose endianity of breakpoint
812 instructions snippets.
813
8142014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
815
816 * arm-tdep.c (extract_arm_insn): Use
817 gdbarch_byte_order_for_code to read arm instruction.
818
e82149ff
DE
8192014-11-02 Doug Evans <xdje42@gmail.com>
820
821 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
822
d7ee84f1
DE
8232014-11-02 Doug Evans <xdje42@gmail.com>
824
825 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
826 main_subfile before returning.
827
4f072d17
DE
8282014-10-31 Doug Evans <xdje42@gmail.com>
829
830 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
831 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
832
8301c89e
DE
8332014-10-31 Doug Evans <xdje42@gmail.com>
834
835 * valops.c (value_cast_pointers): Fix whitespace.
836 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
837 Ditto.
838
02be9a71
DE
8392014-10-30 Doug Evans <dje@google.com>
840
841 * NEWS: Mention ability add attributes to gdb.Objfile and
842 gdb.Progspace objects.
843 * python/py-objfile.c (objfile_object): New member dict.
844 (objfpy_dealloc): Py_XDECREF dict.
845 (objfpy_initialize): Initialize dict.
846 (objfile_getset): Add __dict__.
847 (objfile_object_type): Set tp_dictoffset member.
848 * python/py-progspace.c (progspace_object): New member dict.
849 (pspy_dealloc): Py_XDECREF dict.
850 (pspy_initialize): Initialize dict.
851 (pspace_getset): Add __dict__.
852 (pspace_object_type): Set tp_dictoffset member.
853
6427bef6
YQ
8542014-10-30 Yao Qi <yao@codesourcery.com>
855
856 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
857 replace '\\' with '\\\\'.
858
f60325be
JB
8592014-10-29 Joel Brobecker <brobecker@adacore.com>
860
861 GDB 7.8.1 released.
862
ab917dfb
PA
8632014-10-29 Pedro Alves <palves@redhat.com>
864
865 PR gdb/17408
866 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
867 instead of assuming a thread with a stepping range is always
868 stepping.
869
d3d4baed
PA
8702014-10-29 Pedro Alves <palves@redhat.com>
871
872 PR python/17372
873 * event-top.c (change_line_handler): Call
874 gdb_rl_callback_handler_remove instead of
875 rl_callback_handler_remove.
876 (callback_handler_installed): New global.
877 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
878 (gdb_rl_callback_handler_reinstall): New functions.
879 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
880 gdb_rl_callback_handler_install instead of
881 rl_callback_handler_remove and rl_callback_handler_install.
882 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
883 instead of rl_callback_handler_remove.
884 * event-top.h (gdb_rl_callback_handler_remove)
885 (gdb_rl_callback_handler_install)
886 (gdb_rl_callback_handler_reinstall): New declarations.
887 * infrun.c (reinstall_readline_callback_handler_cleanup): New
888 cleanup function.
889 (fetch_inferior_event): Install it.
890 * top.c (gdb_readline_wrapper_line) Call
891 gdb_rl_callback_handler_remove instead of
892 rl_callback_handler_remove.
893 (gdb_readline_wrapper_cleanup): Don't call
894 rl_callback_handler_install.
895
6e5d7f39
PA
8962014-10-29 Pedro Alves <palves@redhat.com>
897
898 * event-top.c (command_line_handler): Clear the first byte of
899 linebuffer, when it is first allocated.
900
551cb6a5
PA
9012014-10-29 Pedro Alves <palves@redhat.com>
902
903 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
904 TRY_CATCH.
905
1e1e619b
PA
9062014-10-29 Pedro Alves <palves@redhat.com>
907
908 PR tui/16138
909 PR tui/17519
910 * tui/tui-interp.c (tui_is_toplevel): Delete global.
911 (tui_allowed_p): Delete function.
912 * tui/tui.c: Include "interps.h".
913 (tui_enable): Don't use tui_allowed_p. Error out here with
914 detailed error messages if the TUI is the top level interpreter,
915 or if output is not a terminal. Use newterm instead of initscr,
916 and error out if initializing the terminal fails. Also error out if
917 the terminal doesn't support cursor addressing.
918 * tui/tui.h (tui_allowed_p): Delete declaration.
919
6041179a
JB
9202014-10-29 Joel Brobecker <brobecker@adacore.com>
921
922 * arm-tdep.c (arm_skip_stack_protector): Return early if
923 address loaded by first "ldr" instruction does not have
924 a corresponding minimal symbol. Update comment.
925
6ae274b7
YQ
9262014-10-29 Yao Qi <yao@codesourcery.com>
927
928 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
929 loaded address correctly of ldr instruction.
930
7f5ef605
PA
9312014-10-28 Pedro Alves <palves@redhat.com>
932
933 PR gdb/12623
934 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
935 field.
936 * infrun.c (resume) <stepping breakpoint instruction>: Set the
937 thread's stepped_breakpoint field. Skip if reverse debugging.
938 Add comment.
939 (init_thread_stepping_state, handle_signal_stop): Clear the
940 thread's stepped_breakpoint field.
941
7d1a114c
PA
9422014-10-27 Pedro Alves <palves@redhat.com>
943
944 * remote.c (remote_thread_alive): New, factored out from ...
945 (remote_thread_alive): ... this.
946 (remote_update_thread_list): Bail out before deleting threads if
947 the target returned an empty list, and, the current thread has a
948 magic/fake ptid.
949
e5f8a7cc
PA
9502014-10-27 Pedro Alves <palves@redhat.com>
951
952 * infrun.c (handle_signal_stop): Also skip handlers when a random
953 signal arrives while handling a "stepi" or a "nexti". Set the
954 thread's 'step_after_step_resume_breakpoint' flag.
955
71e396f9
LM
9562014-10-27 Luis Machado <lgustavo@codesourcery.com>
957
958 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
959 (arm_record_ld_st_imm_offset): Reimplement to cover all
960 load/store cases for ARM opcode 010.
961 (arm_record_ld_st_multiple): Reimplement to cover all
962 load/store cases for ARM opcode 100.
963
3aee438b
DE
9642014-10-26 Doug Evans <xdje42@gmail.com>
965
966 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
967
f88cb4b6
DE
9682014-10-26 Doug Evans <xdje42@gmail.com>
969
970 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
971 parameter "kind" to "block_index".
972 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
973 "block_index".
974 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
975
a023a30f
DE
9762014-10-26 Doug Evans <xdje42@gmail.com>
977
978 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
979
4c35218e
DE
9802014-10-26 Doug Evans <xdje42@gmail.com>
981
982 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
983 obstack_alloc.
984
f08e8df3
DE
9852014-10-26 Doug Evans <xdje42@gmail.com>
986
987 * parser-defs.h (block_found): Move decl from here ...
988 * symtab.h (block_found): ... to here.
989
cf901d3b
DE
9902014-10-26 Doug Evans <xdje42@gmail.com>
991
992 * symtab.h (struct field_of_this_result): Fix typo in comment.
993 (lookup_symbol_in_language): Move function comment here.
994 (lookup_symbol): Improve function comment.
995 (basic_lookup_symbol_nonlocal): Ditto.
996 (lookup_symbol_static, lookup_symbol_global): Ditto.
997 (lookup_symbol_aux_block): Ditto.
998 (lookup_language_this): Add function comment.
999 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1000 function comment.
1001 (lookup_block_symbol): Improve function comment.
1002 (lookup_struct): Fix capitalization in function comment.
1003 (lookup_transparent_type): Add function comment.
1004 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1005 Improve function comment.
1006 (lookup_objfile_from_block): Add function comment.
1007 * symtab.c (lookup_symbol_in_language): Update function comment.
1008 (lookup_symbol, lookup_language_this): Ditto.
1009 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1010 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1011 (basic_lookup_symbol_nonlocal): Ditto.
1012 (lookup_symbol_static, lookup_symbol_global): Ditto.
1013 (lookup_transparent_type, lookup_block_symbol): Ditto.
1014
ff6c39cf
DE
10152014-10-25 Doug Evans <xdje42@gmail.com>
1016
1017 * symtab.c (types_info): Delete forward decl.
1018 (functions_info, variables_info, sources_info): Ditto.
1019 (_initialize_symtab): Rewrite forward decl to use
1020 initialize_file_ftype.
1021
ec201f0c
DE
10222014-10-25 Doug Evans <xdje42@gmail.com>
1023
1024 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1025
ca040673
DE
10262014-10-25 Doug Evans <xdje42@gmail.com>
1027
1028 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1029 of local var child_die.
1030
6f259a23
DB
10312014-10-24 Don Breazeal <donb@codesourcery.com>
1032
1033 * infrun.c (follow_fork_inferior): Update fork message printing
1034 to use target_terminal_ours_for_output instead of
1035 target_terminal_ours, to use _() for all format strings, to print
1036 "vfork" instead of "fork" for vforks, and to add a detach message.
1037 (handle_vfork_child_exec_or_exit): Update message printing to use
1038 target_terminal_ours_for_output instead of target_terminal_ours, to
1039 use _() for all format strings, and to fix some formatting.
1040
09dd9a69
PA
10412014-10-24 Pedro Alves <palves@redhat.com>
1042
1043 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1044 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1045 * config/vax/vax.mh: Delete.
1046 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1047 obsolete configurations section.
1048 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1049 * vax-nat.c: Delete file.
1050
5ab806de
PA
10512014-10-24 Pedro Alves <palves@redhat.com>
1052
1053 * NEWS (Removed targets): Add OS/arch column.
1054
3433cfa5
SC
10552014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1056
1057 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1058 on the arg type of a constructor only if it is of reference type.
1059
96ba4233
SL
10602014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1061
1062 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1063 accessors and constants from nios2 opcodes update.
1064 (nios2_get_next_pc): Likewise.
1065
28153fd3
DE
10662014-10-19 Doug Evans <xdje42@gmail.com>
1067
1068 * gdbthread.h (set_running): Fix comment.
1069 (set_executing, finish_thread_state): Fix comment.
1070
fc9b8e47
DE
10712014-10-18 Doug Evans <xdje42@gmail.com>
1072
1073 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1074
4ffbba72
DE
10752014-10-17 Doug Evans <dje@google.com>
1076
1077 * NEWS: Mention new event gdb.clear_objfiles.
1078 * python/py-event.h (emit_clear_objfiles_event): Clear
1079 * python/py-events.h (events_object): New member clear_objfiles.
1080 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1081 event.
1082 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1083 emit clear_objfiles event.
1084 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1085 function.
1086 (emit_clear_objfiles_event): New function.
1087 (clear_objfiles): New event.
1088 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1089 Declare.
1090 * python/python.c (_initialize_python): Call
1091 gdbpy_initialize_clear_objfiles_event.
1092
d096d8c1
DE
10932014-10-17 Doug Evans <dje@google.com>
1094
1095 * NEWS: Mention new gdb.Objfile.progspace attribute.
1096 * python/py-objfile.c (objfpy_get_progspace): New function.
1097 (objfile_getset): New entry for "progspace".
1098
6c4486e6
PA
10992014-10-17 Pedro Alves <palves@redhat.com>
1100
1101 PR gdb/17471
1102 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1103 returns a copy of the input.
1104 (run_command_1, continue_command, step_1, jump_command)
1105 (signal_command, until_command, advance_command, finish_command)
1106 (attach_command): Adjust and install a cleanup to free the
1107 stripped args.
1108
0ff33695
PA
11092014-10-17 Pedro Alves <palves@redhat.com>
1110
1111 PR gdb/17300
1112 * infcmd.c (continue_1): If continuing all threads in the
1113 foreground, make sure the inferior's terminal settings are put in
1114 effect.
1115
6fdebc3d
PA
11162014-10-17 Pedro Alves <palves@redhat.com>
1117
1118 PR gdb/17472
1119 * annotate.c (annotate_breakpoints_invalid): Use
1120 target_terminal_our_for_output instead of target_terminal_ours.
1121 Give back the terminal to the target.
1122 (annotate_frames_invalid): Likewise.
1123
5842f62a
PA
11242014-10-17 Pedro Alves <palves@redhat.com>
1125
1126 * target.c (enum terminal_state): New enum.
1127 (terminal_state): New global.
1128 (target_terminal_init): New function.
1129 (target_terminal_inferior): Skip if inferior already owns the
1130 terminal.
1131 (target_terminal_ours, target_terminal_ours_for_output): New
1132 functions.
1133 * target.h (target_terminal_init): Convert to function prototype.
1134 (target_terminal_ours_for_output): Convert to function prototype
1135 and tweak comment.
1136 (target_terminal_ours): Convert to function prototype and tweak
1137 comment.
1138 * windows-nat.c (do_initial_windows_stuff): Call
1139 target_terminal_init instead of child_terminal_init_with_pgrp.
1140
32a8097b
PA
11412014-10-17 Pedro Alves <palves@redhat.com>
1142
1143 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1144 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1145 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1146 solib-osf.c.
1147 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1148 * ada-lang.h [__alpha__ && __osf__]
1149 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1150 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1151 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1152 GDB_OSABI_OSF1.
1153 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1154 files.
1155 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1156 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1157 * configure: Regenerate.
1158 * configure.ac: Remove references to osf.
1159 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1160 section. Remove all other references to osf.
1161 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1162 Remove all other references to osf.
1163 * dec-thread.c: Delete file.
1164 * defs.h (GDB_OSABI_OSF1): Delete.
1165 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1166 defined.
1167 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1168 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1169 Delete code.
1170 (unconditionally_kill_inferior)
1171 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1172 * solib-osf.c: Delete file.
1173
80134cf5
PA
11742014-10-17 Pedro Alves <palves@redhat.com>
1175
1176 * remote.c (clear_threads_listing_context): Move higher up, out of
1177 the HAVE_LIBEXPAT guard.
1178
89c7137f
TG
11792014-10-16 Tristan Gingold <gingold@adacore.com>
1180
1181 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1182 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1183 on amd64.
1184
44ee4a52
PA
11852014-10-15 Pedro Alves <palves@redhat.com>
1186
1187 * dec-thread.c (dec_thread_count_gdb_threads)
1188 (dec_thread_add_gdb_thread): Delete.
1189 (dec_thread_update_thread_list): Delete.
1190 (dec_thread_find_new_threads): Rename to ...
1191 (dec_thread_update_thread_list): ... this. Delete GDB-size
1192 threads that are no longer found in dec_thread_list.
1193 (resync_thread_list): Delete.
1194 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1195 resync_thread_list.
1196
ab970af1
PA
11972014-10-15 Pedro Alves <palves@redhat.com>
1198
1199 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1200 * remote.c (remote_update_thread_list): Skip calling prune_threads
1201 if any thread listing method is supported, and instead walk over
1202 the set of remote threads listed, deleting those that are not
1203 found in GDB's thread list.
1204
e8032dde
PA
12052014-10-15 Pedro Alves <palves@redhat.com>
1206
1207 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1208 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1209 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1210 (bsd_uthread_target): Adjust.
1211 * corelow.c (core_open): Adjust.
1212 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1213 (dec_thread_update_thread_list): New function.
1214 (init_dec_thread_ops): Adjust.
1215 * gdbthread.h (prune_threads): New declaration.
1216 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1217 (thread_db_update_thread_list): ... this. Call prune_threads.
1218 (init_thread_db_ops): Adjust.
1219 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1220 (procfs_update_thread_list): ... this. Call prune_threads.
1221 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1222 Adjust.
1223 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1224 (obsd_update_thread_list): ... this. Call prune_threads.
1225 (obsd_add_target): Adjust.
1226 * procfs.c (procfs_target): Adjust.
1227 (procfs_notice_thread): Update comment.
1228 (procfs_find_new_threads): Rename to ...
1229 (procfs_update_thread_list): ... this. Call prune_threads.
1230 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1231 comment.
1232 (ravenscar_wait): Adjust.
1233 (ravenscar_find_new_threads): Rename to ...
1234 (ravenscar_update_thread_list): ... this. Call prune_threads.
1235 (init_ravenscar_thread_ops): Adjust.
1236 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1237 (record_btrace_update_thread_list): ... this. Adjust comment.
1238 (init_record_btrace_ops): Adjust.
1239 * remote.c (remote_threads_info): Rename to ...
1240 (remote_update_thread_list): ... this. Call prune_threads.
1241 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1242 Adjust.
1243 * sol-thread.c (check_for_thread_db): Adjust.
1244 (sol_find_new_threads_callback): Rename to ...
1245 (sol_update_thread_list_callback): ... this.
1246 (sol_find_new_threads): Rename to ...
1247 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1248 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1249 * target-delegates.c: Regenerate.
1250 * target.c (target_find_new_threads): Rename to ...
1251 (target_update_thread_list): ... this.
1252 * target.h (struct target_ops): Rename to_find_new_threads field
1253 to to_update_thread_list.
1254 (target_find_new_threads): Rename to ...
1255 (target_update_thread_list): ... this.
1256 * thread.c (prune_threads): Make extern.
1257 (update_thread_list): Adjust.
1258
6dc54d91
PA
12592014-10-15 Pedro Alves <palves@redhat.com>
1260
1261 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1262 Add describing comment. Return -1 if the qL packet is not
1263 supported.
1264 (struct thread_item, thread_item_t): Move higher up in
1265 the file. Add comments.
1266 (struct threads_parsing_context): Move higher up in
1267 the file, add comments, and remote to ...
1268 (struct threads_listing_context): ... this.
1269 (remote_newthread_step): Don't add the thread to GDB's thread
1270 database here. Instead push it to the thread_listing_context
1271 list.
1272 (remote_find_new_threads): Rename to ...
1273 (remote_get_threads_with_ql): ... this. Add target_ops and
1274 targets_listing_context parameters. Pass down context.
1275 (start_thread): Adjust.
1276 (clear_threads_parsing_context): Rename to ...
1277 (clear_threads_listing_context): ... this.
1278 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1279 remote_threads_info.
1280 (remote_get_threads_with_qthreadinfo): Ditto.
1281 (remote_threads_info): Reimplement.
1282
36728e82
PA
12832014-10-15 Pedro Alves <palves@redhat.com>
1284
1285 * infrun.c (resume): Don't force displaced-stepping for all
1286 single-steps on software single-stepping archs.
1287
34b7e8a6
PA
12882014-10-15 Pedro Alves <palves@redhat.com>
1289
1290 * breakpoint.c (single_step_breakpoints): Delete global.
1291 (insert_single_step_breakpoint): Adjust to store the breakpoint
1292 pointer in the current thread.
1293 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1294 (cancel_single_step_breakpoints): Delete functions.
1295 (breakpoint_has_location_inserted_here): Make extern.
1296 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1297 breakpoint list.
1298 * breakpoint.h (breakpoint_has_location_inserted_here): New
1299 declaration.
1300 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1301 (cancel_single_step_breakpoints): Remove declarations.
1302 * gdbthread.h (struct thread_control_state)
1303 <single_step_breakpoints>: New field.
1304 (delete_single_step_breakpoints)
1305 (thread_has_single_step_breakpoints_set)
1306 (thread_has_single_step_breakpoint_here): New declarations.
1307 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1308 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1309 (singlestep_pc): Delete globals.
1310 (infrun_thread_ptid_changed): Remove references to removed
1311 globals.
1312 (resume_cleanups): Delete the current thread's single-step
1313 breakpoints.
1314 (maybe_software_singlestep): Remove references to removed globals.
1315 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1316 delete_single_step_breakpoints.
1317 (init_wait_for_inferior): Remove references to removed globals.
1318 (delete_thread_infrun_breakpoints): Delete the thread's
1319 single-step breakpoints too.
1320 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1321 single-step breakpoints here.
1322 (delete_stopped_threads_single_step_breakpoints): New function.
1323 (adjust_pc_after_break): Adjust to use
1324 thread_has_single_step_breakpoints_set.
1325 (handle_inferior_event): Remove references to removed globals.
1326 Use delete_stopped_threads_single_step_breakpoints.
1327 (handle_signal_stop): Adjust to per-thread single-step
1328 breakpoints. Swap test order to do cheaper tests first.
1329 (switch_back_to_stepped_thread): Extend debug output. Remove
1330 references to removed globals.
1331 * record-full.c (record_full_wait_1): Adjust to per-thread
1332 single-step breakpoints.
1333 * thread.c (delete_single_step_breakpoints)
1334 (thread_has_single_step_breakpoints_set)
1335 (thread_has_single_step_breakpoint_here): New functions.
1336 (clear_thread_inferior_resources): Also delete the thread's
1337 single-step breakpoints.
1338
5b834a0a
PA
13392014-10-15 Pedro Alves <palves@redhat.com>
1340
1341 * thread.c (delete_thread_breakpoint): New function.
1342 (delete_step_resume_breakpoint)
1343 (delete_exception_resume_breakpoint): Use it.
1344 (delete_at_next_stop): New function.
1345 (clear_thread_inferior_resources): Use delete_at_next_stop.
1346
a1fd2fa5
PA
13472014-10-15 Pedro Alves <palves@redhat.com>
1348
1349 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1350 (breakpoint_inserted_here_p): ... here. Remove special case for
1351 software single-step breakpoints.
1352 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1353 (software_breakpoint_inserted_here_p): ... here. Remove special
1354 case for software single-step breakpoints.
1355 (bp_target_info_copy_insertion_state)
1356 (deprecated_insert_raw_breakpoint)
1357 (deprecated_remove_raw_breakpoint): Delete functions.
1358 * breakpoint.h (deprecated_insert_raw_breakpoint)
1359 (deprecated_remove_raw_breakpoint): Remove declarations.
1360
7c16b83e
PA
13612014-10-15 Pedro Alves <palves@redhat.com>
1362
1363 PR breakpoints/9649
1364 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1365 Delete array globals.
1366 (single_step_breakpoints): New global.
1367 (breakpoint_xfer_memory): Remove special handling for single-step
1368 breakpoints.
1369 (update_breakpoints_after_exec): Delete bp_single_step
1370 breakpoints.
1371 (detach_breakpoints): Remove special handling for single-step
1372 breakpoints.
1373 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1374 (bpstat_stop_status): Add comment.
1375 (bpstat_what, bptype_string, print_one_breakpoint_location)
1376 (adjust_breakpoint_address, init_bp_location): Handle
1377 bp_single_step.
1378 (new_single_step_breakpoint): New function.
1379 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1380 handling for single-step breakpoints.
1381 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1382 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1383 Rewrite.
1384 (detach_single_step_breakpoints, find_single_step_breakpoint):
1385 Delete functions.
1386 (breakpoint_has_location_inserted_here): New function.
1387 (single_step_breakpoint_inserted_here_p): Rewrite.
1388 * breakpoint.h: Remove FIXME.
1389 (enum bptype) <bp_single_step>: New enum value.
1390 (insert_single_step_breakpoint): Update comment.
1391 * infrun.c (resume_cleanups)
1392 (delete_step_thread_step_resume_breakpoint): Remove single-step
1393 breakpoints.
1394 (fetch_inferior_event): Install a cleanup that removes infrun
1395 breakpoints.
1396 (switch_back_to_stepped_thread) <expect thread advanced also>:
1397 Clear step-over info.
1398
0cbcdb96
PA
13992014-10-15 Pedro Alves <palves@redhat.com>
1400
1401 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1402 (delete_thread_infrun_breakpoints): New function, with parts
1403 salvaged from delete_step_resume_breakpoint_callback.
1404 (delete_step_thread_step_resume_breakpoint): Delete.
1405 (for_each_just_stopped_thread_callback_func): New typedef.
1406 (for_each_just_stopped_thread): New function.
1407 (delete_just_stopped_threads_infrun_breakpoints): New function.
1408 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1409 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1410 ... this. Adjust.
1411 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1412
963f9c80
PA
14132014-10-15 Pedro Alves <palves@redhat.com>
1414
1415 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1416 trying to step past a non-steppable watchpoint.
1417 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1418 field.
1419 * infrun.c (struct step_over_info): Add new field
1420 'nonsteppable_watchpoint_p' and adjust comments.
1421 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1422 Adjust.
1423 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1424 (stepping_past_nonsteppable_watchpoint): New function.
1425 (step_over_info_valid_p): Also return true if stepping past a
1426 nonsteppable watchpoint.
1427 (proceed): Adjust call to set_step_over_info. Remove reference to
1428 init_infwait_state.
1429 (init_wait_for_inferior): Remove reference to init_infwait_state.
1430 (waiton_ptid): Delete global.
1431 (struct execution_control_state)
1432 <stepped_after_stopped_by_watchpoint>: Delete field.
1433 (wait_for_inferior, fetch_inferior_event): Always pass
1434 minus_one_ptid to target_wait.
1435 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1436 field.
1437 (init_infwait_state): Delete function.
1438 (handle_inferior_event): Remove infwait_state handling.
1439 (handle_signal_stop) <watchpoints handling>: Adjust after
1440 stepped_after_stopped_by_watchpoint removal. Don't remove
1441 breakpoints here nor set infwait_state. Set the thread's
1442 stepping_over_watchpoint flag, and call keep_going instead.
1443 (keep_going): Handle stepping_over_watchpoint. Adjust
1444 set_step_over_info calls.
1445 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1446 function.
1447
6cc83d2a
PA
14482014-10-15 Pedro Alves <palves@redhat.com>
1449
1450 * infrun.c (step_over_info_valid_p): New function.
1451 (resume): Use step_over_info_valid_p instead of checking the
1452 threads's trap_expected flag.
1453
6979730b
DE
14542014-10-15 Doug Evans <dje@google.com>
1455 Walfred Tedeschi <walfred.tedeschi@intel.com>
1456
1457 PR python/17364
1458 * python/lib/gdb/__init__.py (packages): Add "printer".
1459 * python/lib/gdb/command/bound_registers.py: Moved to ...
1460 * python/lib/gdb/printer/bound_registers.py: ... here.
1461 Add printer to global set of builtin printers. Rename printer from
1462 "bound" to "mpx_bound128".
1463 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1464 registered as global "builtin" printer.
1465 (add_builtin_pretty_printer): New function.
1466 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1467 gdb/printer/__init__.py.
1468
35a49624
IB
14692014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1470
1471 * Makefile.in (SFILES): Remove d-support.c.
1472 (COMMON_OBS): Remove d-support.o.
1473 * d-lang.h (d_parse_symbol): Remove declaration.
1474 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1475 * d-support.c: Remove file.
1476
8fa0c4f8
AA
14772014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1478
1479 * gdb/infrun.c (process_event_stop_test): Apply
1480 gdbarch_addr_bits_remove to longjmp resume address.
1481
3666da81
PA
14822014-10-15 Pedro Alves <palves@redhat.com>
1483
1484 * regformats/microblaze.dat: Delete file.
1485
449aa9df
AKA
14862014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1487
1488 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1489 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1490
ebb8ece2
SC
14912014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1492
1493 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1494 as non-trivial.
1495
82c48ac7
SC
14962014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1497
1498 PR c++/13403
1499 PR c++/15154
1500 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1501 with qualified args.
1502
c40cc657
JB
15032014-10-14 Joel Brobecker <brobecker@adacore.com>
1504
1505 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1506 of the case where the second operand is a pointer.
1507 <BINOP_SUB>: Likewise.
1508
0ea5cda8
SDJ
15092014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1510
1511 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1512 only if it is not NULL.
1513 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1514 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1515 (struct probe_ops) <clear_semaphore>: Likewise.
1516 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1517 not NULL.
1518 (stop_tracing): Likewise, for clear_semaphore.
1519
f7088df3
SDJ
15202014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1521
1522 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1523 using language_c, instead of current_language.
1524
4e1bbde0
DE
15252014-10-13 Doug Evans <dje@google.com>
1526
6ff5a0f6 1527 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1528 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1529 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1530 (pspy_new, pspace_to_pspace_object): Call it.
1531
c780cc2f
JK
15322014-10-13 Miroslav Franc <mfranc@redhat.com>
1533 Jan Kratochvil <jan.kratochvil@redhat.com>
1534
1535 Fix "save breakpoints" for "catch" command.
1536 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1537 newline.
1538
99894e11
JK
15392014-10-12 Miroslav Franc <mfranc@redhat.com>
1540
1541 Fix "save breakpoints" for "disable $bpnum" command.
1542 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1543
3831839c
PA
15442014-10-10 Pedro Alves <palves@redhat.com>
1545
1546 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1547 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1548 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1549 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1550 and been removed.
1551 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1552 * configure.ac: Remove references to IRIX.
1553 * configure.host: Add *-*-irix* to the obsolete hosts section.
1554 Remove all other references to irix.
1555 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1556 Delete files.
1557
cc3afae2
AKA
15582014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1559
1560 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1561 isn't valid, release the tdesc arch data and return NULL.
1562
cdfa0b0a
PA
15632014-10-10 Pedro Alves <palves@redhat.com>
1564
1565 * linux-tdep.c: Include observer.h.
1566 (linux_inferior_data): New global.
1567 (struct linux_info): New structure.
1568 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1569 (get_linux_inferior_data): New functions.
1570 (linux_vsyscall_range): Rename to ...
1571 (linux_vsyscall_range_raw): ... this.
1572 (linux_vsyscall_range): New function; handles caching.
1573 (_initialize_linux_tdep): Register linux_inferior_data. Install
1574 inferior_exit and inferior_appeared observers.
1575
8b9a549d
PA
15762014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1577 Pedro Alves <palves@redhat.com>
1578
1579 PR symtab/14466
1580 * solib-svr4.c (svr4_read_so_list): Rename to ...
1581 (svr4_current_sos_1): ... this and change the function comment.
1582 (svr4_current_sos): New function.
1583
3437254d
PA
15842014-10-10 Pedro Alves <palves@redhat.com>
1585
1586 * arch-utils.c (default_vsyscall_range): New function.
1587 * arch-utils.h (default_vsyscall_range): New declaration.
1588 * gdbarch.sh (vsyscall_range): New hook.
1589 * gdbarch.h, gdbarch.c: Regenerate.
1590 * linux-tdep.c (linux_vsyscall_range): New function.
1591 (linux_init_abi): Install linux_vsyscall_range as
1592 vsyscall_range gdbarch hook.
1593 * memrange.c (address_in_mem_range): New function.
1594 * memrange.h (address_in_mem_range): New declaration.
1595 * symfile-mem.c (find_vdso_size): Delete function.
1596 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1597
31cc0b80
PA
15982014-10-10 Pedro Alves <palves@redhat.com>
1599
1600 * infrun.c (normal_stop): Fix typo in comment.
1601
3e3286a2
SDJ
16022014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1603
1604 PR tdep/9390
1605 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1606 typo when using logical AND to determine instruction type.
1607
fcbdedf8
YQ
16082014-10-09 Yao Qi <yao@codesourcery.com>
1609
1610 * infrun.c (handle_signal_stop): Remove local variable
1611 'printed'.
1612
db984616
SS
16132014-10-08 Stan Shebs <stan@codesourcery.com>
1614
1615 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1616
3ba37e6c
GB
16172014-10-08 Gary Benson <gbenson@redhat.com>
1618
1619 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1620
a442d071
GB
16212014-10-08 Gary Benson <gbenson@redhat.com>
1622
1623 * common/common-defs.h: Include common-exceptions.h.
1624 * exceptions.h: Do not include common-exceptions.h.
1625
6f1947e8
GB
16262014-10-08 Gary Benson <gbenson@redhat.com>
1627
1628 * common/common-defs.h: Include cleanups.h.
1629 * common/common-exceptions.c: Do not include cleanups.h.
1630 * utils.h: Likewise.
1631
c765fdb9
GB
16322014-10-08 Gary Benson <gbenson@redhat.com>
1633
1634 * ada-lang.c: Do not include exceptions.h.
1635 * ada-valprint.c: Likewise.
1636 * amd64-tdep.c: Likewise.
1637 * auto-load.c: Likewise.
1638 * block.c: Likewise.
1639 * break-catch-throw.c: Likewise.
1640 * breakpoint.c: Likewise.
1641 * btrace.c: Likewise.
1642 * c-lang.c: Likewise.
1643 * cli/cli-cmds.c: Likewise.
1644 * cli/cli-interp.c: Likewise.
1645 * cli/cli-script.c: Likewise.
1646 * completer.c: Likewise.
1647 * corefile.c: Likewise.
1648 * corelow.c: Likewise.
1649 * cp-abi.c: Likewise.
1650 * cp-support.c: Likewise.
1651 * cp-valprint.c: Likewise.
1652 * darwin-nat.c: Likewise.
1653 * dwarf2-frame-tailcall.c: Likewise.
1654 * dwarf2-frame.c: Likewise.
1655 * dwarf2loc.c: Likewise.
1656 * dwarf2read.c: Likewise.
1657 * eval.c: Likewise.
1658 * event-loop.c: Likewise.
1659 * event-top.c: Likewise.
1660 * f-valprint.c: Likewise.
1661 * frame-unwind.c: Likewise.
1662 * frame.c: Likewise.
1663 * gdbtypes.c: Likewise.
1664 * gnu-v2-abi.c: Likewise.
1665 * gnu-v3-abi.c: Likewise.
1666 * guile/scm-auto-load.c: Likewise.
1667 * guile/scm-breakpoint.c: Likewise.
1668 * guile/scm-cmd.c: Likewise.
1669 * guile/scm-frame.c: Likewise.
1670 * guile/scm-lazy-string.c: Likewise.
1671 * guile/scm-param.c: Likewise.
1672 * guile/scm-symbol.c: Likewise.
1673 * guile/scm-type.c: Likewise.
1674 * hppa-hpux-tdep.c: Likewise.
1675 * i386-tdep.c: Likewise.
1676 * inf-loop.c: Likewise.
1677 * infcall.c: Likewise.
1678 * infcmd.c: Likewise.
1679 * infrun.c: Likewise.
1680 * interps.c: Likewise.
1681 * interps.h: Likewise.
1682 * jit.c: Likewise.
1683 * linespec.c: Likewise.
1684 * linux-nat.c: Likewise.
1685 * linux-thread-db.c: Likewise.
1686 * m32r-rom.c: Likewise.
1687 * main.c: Likewise.
1688 * memory-map.c: Likewise.
1689 * mi/mi-cmd-break.c: Likewise.
1690 * mi/mi-cmd-stack.c: Likewise.
1691 * mi/mi-interp.c: Likewise.
1692 * mi/mi-main.c: Likewise.
1693 * monitor.c: Likewise.
1694 * nto-procfs.c: Likewise.
1695 * objc-lang.c: Likewise.
1696 * p-valprint.c: Likewise.
1697 * parse.c: Likewise.
1698 * ppc-linux-tdep.c: Likewise.
1699 * printcmd.c: Likewise.
1700 * probe.c: Likewise.
1701 * python/py-auto-load.c: Likewise.
1702 * python/py-breakpoint.c: Likewise.
1703 * python/py-cmd.c: Likewise.
1704 * python/py-finishbreakpoint.c: Likewise.
1705 * python/py-frame.c: Likewise.
1706 * python/py-framefilter.c: Likewise.
1707 * python/py-function.c: Likewise.
1708 * python/py-gdb-readline.c: Likewise.
1709 * python/py-inferior.c: Likewise.
1710 * python/py-infthread.c: Likewise.
1711 * python/py-lazy-string.c: Likewise.
1712 * python/py-linetable.c: Likewise.
1713 * python/py-param.c: Likewise.
1714 * python/py-prettyprint.c: Likewise.
1715 * python/py-symbol.c: Likewise.
1716 * python/py-type.c: Likewise.
1717 * python/py-value.c: Likewise.
1718 * python/python-internal.h: Likewise.
1719 * python/python.c: Likewise.
1720 * record-btrace.c: Likewise.
1721 * record-full.c: Likewise.
1722 * regcache.c: Likewise.
1723 * remote-fileio.c: Likewise.
1724 * remote-mips.c: Likewise.
1725 * remote.c: Likewise.
1726 * rs6000-aix-tdep.c: Likewise.
1727 * rs6000-nat.c: Likewise.
1728 * skip.c: Likewise.
1729 * solib-darwin.c: Likewise.
1730 * solib-dsbt.c: Likewise.
1731 * solib-frv.c: Likewise.
1732 * solib-ia64-hpux.c: Likewise.
1733 * solib-spu.c: Likewise.
1734 * solib-svr4.c: Likewise.
1735 * solib.c: Likewise.
1736 * spu-tdep.c: Likewise.
1737 * stack.c: Likewise.
1738 * stap-probe.c: Likewise.
1739 * symfile-mem.c: Likewise.
1740 * symmisc.c: Likewise.
1741 * target.c: Likewise.
1742 * thread.c: Likewise.
1743 * top.c: Likewise.
1744 * tracepoint.c: Likewise.
1745 * tui/tui-interp.c: Likewise.
1746 * typeprint.c: Likewise.
1747 * utils.c: Likewise.
1748 * valarith.c: Likewise.
1749 * valops.c: Likewise.
1750 * valprint.c: Likewise.
1751 * value.c: Likewise.
1752 * varobj.c: Likewise.
1753 * windows-nat.c: Likewise.
1754 * xml-support.c: Likewise.
1755
484933d1
MR
17562014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1757
1758 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1759 name implies.
1760 (extended_mips16_next_pc): Update accordingly.
1761
ab50adb6
MR
17622014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1763
1764 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1765 function.
1766 (micromips_instruction_is_compact_branch): Likewise.
1767 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1768 or a compact jump, reaching a jump delay slot, or seeing a
1769 second non-prologue instruction.
1770 (micromips_scan_prologue): Also terminate scanning upon seeing a
1771 compact branch or jump, or reaching a branch or jump delay slot.
1772 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1773 or jump delay slot, or seeing a second non-prologue instruction.
1774 (mips32_instruction_has_delay_slot): Retain instruction
1775 examination code only, update arguments accordingly and move
1776 instruction fetch pieces to...
1777 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1778 (micromips_instruction_has_delay_slot): Likewise and to...
1779 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1780 (mips16_instruction_has_delay_slot): Likewise and to...
1781 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1782 (mips_single_step_through_delay): Update accordingly.
1783 (mips_adjust_breakpoint_address): Likewise.
1784
ae790652
MR
17852014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1786
1787 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1788 !mustbe32 also return 1 for 32-bit instructions.
1789 (mips16_instruction_has_delay_slot): Likewise. Add an
1790 explanatory comment.
1791
9b807e7b
MR
17922014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1793
1794 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1795 symbols special.
1796
0d5ed153
MR
17972014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1798
1799 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1800 update comments.
1801 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1802 for the breakpoint's address. Don't preinitialize `placed_size'.
1803 (insert_bp_location): Set `reqstd_address' rather than
1804 `placed_address'.
1805 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1806 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1807 address.
1808 (bkpt_remove_location): Likewise.
1809 (deprecated_insert_raw_breakpoint): Likewise.
1810 (deprecated_remove_raw_breakpoint): Likewise.
1811 (find_single_step_breakpoint): Likewise.
1812 * mem-break.c (default_memory_insert_breakpoint): Use
1813 `reqstd_address' for the breakpoint's address. Don't set
1814 `placed_address' or `placed_size' if breakpoint contents couldn't
1815 have been determined.
1816 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1817 the breakpoint's address.
1818 (remote_insert_hw_breakpoint): Likewise. Don't set
1819 `placed_address' or `placed_size' if breakpoint couldn't have been
1820 set.
1821 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1822 `reqstd_address' for the breakpoint's address.
1823 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1824 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1825 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1826 * microblaze-linux-tdep.c
1827 (microblaze_linux_memory_remove_breakpoint): Likewise.
1828 * monitor.c (monitor_insert_breakpoint): Likewise.
1829 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1830 (procfs_insert_hw_breakpoint): Likewise.
1831 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1832 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1833 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1834 * remote-mips.c (mips_insert_breakpoint): Likewise.
1835 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1836
3e871532
LM
18372014-10-03 Luis Machado <lgustavo@codesourcery.com>
1838
1839 * valops.c (value_assign): Check for bit field assignments
1840 before calling architecture-specific register value
1841 conversion functions.
1842
ec48dc8b
PM
18432014-10-03 Pierre Muller <muller@sourceware.org>
1844
1845 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1846
b57bacec
PA
18472014-10-02 Pedro Alves <palves@redhat.com>
1848
1849 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1850 threads_are_executing.
1851 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1852 describing comment.
1853 * gdbthread.h (threads_are_executing): Declare.
1854 (handle_signal_stop) <random signals>: Don't print about the
1855 signal here if stopping.
1856 (end_stepping_range): Don't notify observers here.
1857 (normal_stop): Update the thread list. If stopped by a random
1858 signal or a stepping range ended, notify observers.
1859 * thread.c (threads_executing): New global.
1860 (init_thread_list): Clear 'threads_executing'.
1861 (set_executing): Set or clear 'threads_executing'.
1862 (threads_are_executing): New function.
1863 (update_threads_executing): New function.
1864 (update_thread_list): Use it.
1865
13fd3ff3
PA
18662014-10-02 Pedro Alves <palves@redhat.com>
1867
1868 PR breakpoints/17431
1869 * breakpoint.c (update_breakpoints_after_exec): Don't create
1870 overlay, longjmp, std terminate nor exception breakpoints here.
1871
32990ada
PA
18722014-10-02 Pedro Alves <palves@redhat.com>
1873
1874 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1875 Adjust comments.
1876 * inferior.c (find_inferior_for_program_space): Give preference to
1877 the current inferior.
1878 * inferior.h (find_inferior_for_program_space): Update comment.
1879 * progspace.c (switch_to_program_space_and_thread): Prefer the
1880 current inferior if it's bound to the program space requested. If
1881 the inferior found doesn't have a PID yet, don't bother looking up
1882 a thread.
1883 * progspace.h (switch_to_program_space_and_thread): Adjust
1884 comment.
1885 * thread.c (any_thread_of_process, any_live_thread_of_process):
1886 Give preference to the current thread.
1887
0fec99e8
PA
18882014-10-01 Pedro Alves <palves@redhat.com>
1889
1890 * breakpoint.c (insert_bp_location): Error out if inserting a
1891 software breakpoint at a read-only address.
1892 * target.c (memory_xfer_check_region): New function, factored out
1893 from ...
1894 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1895 ULONGEST.
1896 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1897 against the memory region attributes.
1898
2ddf4301
SM
18992014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1900
1901 * NEWS: Announce new exit-code field in -list-thread-groups
1902 output.
1903 * inferior.c (exit_inferior_1): Don't clear exit code.
1904 (inferior_appeared): Clear exit code.
1905 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1906 code.
1907
5fdeec1d
PA
19082014-10-01 Pedro Alves <palves@redhat.com>
1909
1910 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1911 GENERATED" along with emacs/vi read-only markers.
1912 * regformats/aarch64.dat: Regenerate.
1913 * regformats/arm-with-iwmmxt.dat: Regenerate.
1914 * regformats/arm-with-neon.dat: Regenerate.
1915 * regformats/arm-with-vfpv2.dat: Regenerate.
1916 * regformats/arm-with-vfpv3.dat: Regenerate.
1917 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1918 * regformats/i386/amd64-avx.dat: Regenerate.
1919 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1920 * regformats/i386/amd64-avx512.dat: Regenerate.
1921 * regformats/i386/amd64-linux.dat: Regenerate.
1922 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1923 * regformats/i386/amd64-mpx.dat: Regenerate.
1924 * regformats/i386/amd64.dat: Regenerate.
1925 * regformats/i386/i386-avx-linux.dat: Regenerate.
1926 * regformats/i386/i386-avx.dat: Regenerate.
1927 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1928 * regformats/i386/i386-avx512.dat: Regenerate.
1929 * regformats/i386/i386-linux.dat: Regenerate.
1930 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1931 * regformats/i386/i386-mmx.dat: Regenerate.
1932 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1933 * regformats/i386/i386-mpx.dat: Regenerate.
1934 * regformats/i386/i386.dat: Regenerate.
1935 * regformats/i386/x32-avx-linux.dat: Regenerate.
1936 * regformats/i386/x32-avx.dat: Regenerate.
1937 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1938 * regformats/i386/x32-avx512.dat: Regenerate.
1939 * regformats/i386/x32-linux.dat: Regenerate.
1940 * regformats/i386/x32.dat: Regenerate.
1941 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1942 * regformats/mips-dsp-linux.dat: Regenerate.
1943 * regformats/mips-linux.dat: Regenerate.
1944 * regformats/mips64-dsp-linux.dat: Regenerate.
1945 * regformats/mips64-linux.dat: Regenerate.
1946 * regformats/nios2-linux.dat: Regenerate.
1947 * regformats/rs6000/powerpc-32.dat: Regenerate.
1948 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1949 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1950 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1951 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1952 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1953 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1954 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1955 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1956 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1957 * regformats/s390-linux32.dat: Regenerate.
1958 * regformats/s390-linux32v1.dat: Regenerate.
1959 * regformats/s390-linux32v2.dat: Regenerate.
1960 * regformats/s390-linux64.dat: Regenerate.
1961 * regformats/s390-linux64v1.dat: Regenerate.
1962 * regformats/s390-linux64v2.dat: Regenerate.
1963 * regformats/s390-te-linux64.dat: Regenerate.
1964 * regformats/s390x-linux64.dat: Regenerate.
1965 * regformats/s390x-linux64v1.dat: Regenerate.
1966 * regformats/s390x-linux64v2.dat: Regenerate.
1967 * regformats/s390x-te-linux64.dat: Regenerate.
1968 * regformats/tic6x-c62x-linux.dat: Regenerate.
1969 * regformats/tic6x-c62x.dat: Regenerate.
1970 * regformats/tic6x-c64x-linux.dat: Regenerate.
1971 * regformats/tic6x-c64x.dat: Regenerate.
1972 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1973 * regformats/tic6x-c64xp.dat: Regenerate.
1974
db74e4ba
PA
19752014-10-01 Pedro Alves <palves@redhat.com>
1976
1977 * features/Makefile: Update comments.
1978 (XMLTOC): List all xml files we build C files from.
1979 (clean-cfiles): New rule.
1980
d63f2f84
PA
19812014-10-01 Pedro Alves <palves@redhat.com>
1982
1983 * features/i386/amd64-avx512-linux.c: Regenerate.
1984 * features/i386/amd64-avx512.c: Regenerate.
1985 * features/i386/x32-avx512-linux.c: Regenerate.
1986 * features/i386/x32-avx512.c: Regenerate.
1987
20ad026d
PA
19882014-10-01 Pedro Alves <palves@redhat.com>
1989
1990 * features/Makefile (WHICH): Remove arm-with-m,
1991 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1992
acc9fe45
PA
19932014-10-01 Pedro Alves <palves@redhat.com>
1994
1995 * features/Makefile (clean): New rule.
1996
e001e535
PA
19972014-10-01 Pedro Alves <palves@redhat.com>
1998
1999 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2000 (zmm14h): Add missing end quotes.
2001
bdc14417
PA
20022014-10-01 Pedro Alves <palves@redhat.com>
2003
2004 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2005 * features/aarch64.c: Regenerate.
2006
d83ad864
DB
20072014-09-30 Don Breazeal <donb@codesourcery.com>
2008
2009 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2010 code so as to work with follow_fork_inferior.
2011 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2012 (inf_ttrace_create_inferior): Remove reference to
2013 inf_ttrace_vfork_ppid.
2014 (inf_ttrace_attach): Ditto.
2015 (inf_ttrace_detach): Ditto.
2016 (inf_ttrace_kill): Use current_inferior instead of
2017 inf_ttrace_vfork_ppid.
2018 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2019 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2020 inferior away from the parent.
2021 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2022 target_follow_fork.
2023 (follow_fork_inferior): New function.
2024 (follow_inferior_reset_breakpoints): Make function static.
2025 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2026 * linux-nat.c (linux_child_follow_fork): Move target-independent
2027 code to infrun.c:follow_fork_inferior.
2028
29082443
AA
20292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2030
2031 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2032 * gdbarch.c: Regenerate.
2033 * gdbarch.h: Likewise.
2034 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2035 gdbarch method 'regset_from_core_section'.
2036 (get_core_register_section): Remove handling for the case that
2037 regset == NULL and regset_from_core_section is defined.
2038 (get_core_registers): Drop check for deleted method.
2039 * procfs.c (procfs_do_thread_registers): Adjust comment.
2040
f968fe80
AA
20412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2042
2043 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2044 (linux_nat_make_corefile_notes): Remove.
2045 (linux_target_install_ops): Do not set target method
2046 'make_corefile_notes'.
2047 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2048 Remove field.
2049 (linux_corefile_thread_callback): Instead of args->collect, call
2050 linux_collect_thread_registers.
2051 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2052 NULL unless there is a regset iterator.
2053 (linux_make_corefile_notes_1): Remove.
2054 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2055 by linux_make_corefile_notes.
2056 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2057
174ad59a
AA
20582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2059
2060 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2061 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2062 Remove.
2063 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2064
97094034
AA
20652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2066
2067 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2068 (xtensa_iterate_over_regset_sections): New.
2069 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2070
f73d3ce7
AA
20712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2072
2073 * vax-tdep.c (vax_regset_from_core_section): Remove.
2074 (vax_iterate_over_regset_sections): New.
2075 (vax_gdbarch_init): Adjust gdbarch initialization.
2076
cb24567a
AA
20772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2078
2079 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2080 (tilegx_regset_from_core_section): Remove.
2081 (tilegx_iterate_over_regset_sections): New.
2082 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2083
e5139de8
AA
20842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2085
2086 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2087 (sparc_iterate_over_regset_sections): New.
2088 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2089 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2090 targets.
2091 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2092 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2093 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2094 target method 'make_corefile_notes'.
2095
c6d41a6f
AA
20962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2097
2098 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2099 'sizeof_gregset' and 'sizeof_fpregset'.
2100 * sh-tdep.c (sh_regset_from_core_section): Remove.
2101 (sh_iterate_over_regset_sections): New.
2102 (sh_gdbarch_init): Adjust gdbarch initialization.
2103 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2104 sizeof_fpregset.
2105 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2106 'sizeof_gregset'.
2107
9845a0b5
AA
21082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2109
2110 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2111 (score7_linux_iterate_over_regset_sections): New.
2112 (score_gdbarch_init): Adjust gdbarch initialization.
2113
23ea9aeb
AA
21142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2115
2116 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2117 FreeBSD targets.
2118 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2119 method 'make_corefile_notes'.
2120 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2121 (ppcfbsd_regset_from_core_section): Remove.
2122 (ppcfbsd_iterate_over_regset_sections): New.
2123 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2124 initialization.
2125 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2126 (ppcnbsd_iterate_over_regset_sections): New.
2127 (ppcnbsd_init_abi): Adjust.
2128 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2129 (ppcobsd_iterate_over_regset_sections): New.
2130 (ppcobsd_init_abi): Adjust.
2131 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2132 (rs6000_aix_iterate_over_regset_sections): New.
2133 (rs6000_aix_init_osabi): Adjust.
2134
c5b8d704
AA
21352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2136
2137 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2138 (nios2_regset_from_core_section): Remove.
2139 (nios2_iterate_over_regset_sections): New.
2140 (nios2_linux_init_abi): Adjust gdbarch initialization.
2141
3636e608
AA
21422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2143
2144 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2145 (am33_iterate_over_regset_sections): New.
2146 (am33_linux_init_osabi): Adjust gdbarch initialization.
2147
d4036235
AA
21482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2149
2150 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2151 (mips_linux_iterate_over_regset_sections): New.
2152 (mips_linux_init_abi): Adjust gdbarch initialization.
2153 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2154 (mips64obsd_iterate_over_regset_sections): New.
2155 (mips64obsd_init_abi): Adjust.
2156 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2157 (mipsnbsd_iterate_over_regset_sections): New.
2158 (mipsnbsd_init_abi): Adjust.
2159
b61ddd6e
AA
21602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2161
2162 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2163 (m88k_iterate_over_regset_sections): New.
2164 (m88k_gdbarch_init): Adjust gdbarch initialization.
2165
55a2906a
AA
21662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2167
2168 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2169 (ia64_linux_iterate_over_regset_sections): New.
2170 (ia64_linux_init_abi): Adjust gdbarch initialization.
2171
022c98ab
AA
21722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2173
2174 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2175 (m68kbsd_iterate_over_regset_sections): New.
2176 (m68kbsd_init_abi): Adjust gdbarch initialization.
2177 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2178 (m68k_linux_iterate_over_regset_sections): New.
2179 (m68k_linux_init_abi): Adjust gdbarch initialization.
2180
5fac247f
AA
21812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2182
2183 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2184 (m32r_linux_regset_from_core_section): Remove.
2185 (m32r_linux_iterate_over_regset_sections): New.
2186 (m32r_linux_init_abi): Adjust gdbarch initialization.
2187
490496c3
AA
21882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2189
2190 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2191 (amd64obsd_iterate_over_regset_sections): New.
2192 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2193 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2194 Remove.
2195 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2196 regset_from_core_section initialization.
2197 * i386-tdep.c (i386_regset_from_core_section): Remove.
2198 (i386_iterate_over_regset_sections): New.
2199 (i386_gdbarch_init): Adjust gdbarch initialization.
2200 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2201 (i386_iterate_over_regset_sections): New prototype.
2202 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2203 Remove.
2204 (i386obsd_aout_iterate_over_regset_sections): New.
2205 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2206 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2207 targets.
2208 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2209 (amd64fbsd_init_abi): Call fbsd_init_abi.
2210 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2211 (i386fbsd4_init_abi): Call fbsd_init_abi.
2212 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2213 target method 'make_corefile_notes'.
2214 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2215
50c5eb53
AA
22162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2217
2218 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2219 (hppa_hpux_iterate_over_regset_sections): New.
2220 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2221 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2222 (hppa_linux_iterate_over_regset_sections): New.
2223 (hppa_linux_init_abi): Adjust.
2224 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2225 (hppanbsd_iterate_over_regset_sections): New.
2226 (hppanbsd_init_abi): Adjust.
2227 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2228 (hppaobsd_iterate_over_regset_sections): New.
2229 (hppaobsd_init_abi): Adjust.
2230
66afae4f
AA
22312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2232
2233 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2234 (frv_linux_iterate_over_regset_sections): New.
2235 (frv_linux_init_abi): Adjust gdbarch initialization.
2236
ed09174e
AA
22372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2238
2239 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2240 (armbsd_iterate_over_regset_sections): New prototype.
2241 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2242 (armbsd_iterate_over_regset_sections): New.
2243 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2244 initialization.
2245
dff2166e
AA
22462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2247
2248 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2249 (alpha_linux_iterate_over_regset_sections): New.
2250 (alpha_linux_init_abi): Adjust gdbarch initialization.
2251 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2252 prototype.
2253 (alphanbsd_iterate_over_regset_sections): New prototype.
2254
4108500a
AA
22552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2256
2257 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2258 Remove.
2259 (aarch64_linux_iterate_over_regset_sections): New.
2260 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2261
a904c024
AA
22622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2263
2264 * fbsd-tdep.c: New file.
2265 * fbsd-tdep.h: New file.
2266 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2267 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2268 (ALLDEPFILES): Add fbsd-tdep.c.
2269
8f0435f7
AA
22702014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2271
2272 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2273 parameter.
2274 * gdbarch.h: Regenerate.
2275 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2276 iterator.
2277 (get_core_register_section): Add parameter 'regset' and use it, if
2278 set. Add parameter 'min_size' and verify the bfd section size
2279 against it.
2280 (get_core_registers_cb): Add parameter 'regset' and pass it to
2281 get_core_register section. For the "standard" register sections
2282 ".reg" and ".reg2", set an appropriate default for human_name.
2283 (get_core_registers): Don't abort when the gdbarch has an iterator
2284 but no regset_from_core_section. Add NULL/0 for parameters
2285 'regset'/'min_size' in calls to get_core_register_section.
2286 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2287 'regset' and use it instead of calling the
2288 regset_from_core_section gdbarch method.
2289 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2290 * i386-tdep.c (i386_supply_xstateregset)
2291 (i386_collect_xstateregset, i386_xstateregset): Moved to
2292 i386-linux-tdep.c.
2293 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2294 .reg-xstate.
2295 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2296 core file support only if the regset iterator hasn't been set.
2297 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2298 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2299 Moved from i386-tdep.c and renamed to *_linux*.
2300 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2301 each callback invocation. Allow any .reg-xstate size when reading
2302 from a core file.
2303 * amd64-tdep.c (amd64_supply_xstateregset)
2304 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2305 amd64-linux-tdep.c.
2306 (amd64_regset_from_core_section): Remove.
2307 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2308 install an amd64-specific regset_from_core_section gdbarch method.
2309 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2310 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2311 Moved from amd64-tdep.c and renamed to *_linux*.
2312 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2313 to each callback invocation. Allow any .reg-xstate size when
2314 reading from a core file.
2315 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2316 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2317 each callback invocation.
2318 (arm_linux_init_abi): No longer set the regset_from_core_section
2319 gdbarch method.
2320 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2321 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2322 each callback invocation.
2323 (ppc_linux_init_abi): No longer set the regset_from_core_section
2324 gdbarch method.
2325 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2326 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2327 (s390_regset_from_core_section): Remove.
2328 (s390_iterate_over_regset_sections): Add regset parameter to each
2329 callback invocation.
2330 (s390_gdbarch_init): No longer set the regset_from_core_section
2331 gdbarch method. Drop initialization of deleted tdep fields.
2332
5aa82d05
AA
23332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2334
2335 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2336 (amd64_linux_iterate_over_regset_sections): New.
2337 (amd64_linux_init_abi_common): Don't install the regset section
2338 list, but the new iterator in gdbarch.
2339 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2340 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2341 (arm_linux_iterate_over_regset_sections): ...here. New function.
2342 (arm_linux_init_abi): Set iterator instead of section list.
2343 * corelow.c (get_core_registers_cb): New function, logic moved
2344 from...
2345 (get_core_registers): ...loop body here. Use new iterator method
2346 instead of walking through the regset section list.
2347 * gdbarch.sh: Remove 'core_regset_sections'. New method
2348 'iterate_over_regset_sections'. New typedef
2349 'iterate_over_regset_sections_cb'.
2350 * gdbarch.c: Regenerate.
2351 * gdbarch.h: Likewise.
2352 * i386-linux-tdep.c (i386_linux_regset_sections)
2353 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2354 Remove.
2355 (i386_linux_iterate_over_regset_sections): New.
2356 (i386_linux_init_abi): Don't choose a regset section list, but
2357 install new iterator in gdbarch.
2358 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2359 (linux_collect_regset_section_cb): New function, logic moved
2360 from...
2361 (linux_collect_thread_registers): ...loop body here. Use iterator
2362 method instead of walking through list.
2363 (linux_make_corefile_notes_1): Check for presence of iterator
2364 method instead of regset section list.
2365 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2366 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2367 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2368 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2369 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2370 (ppc_linux_init_abi): Don't choose from above regset section
2371 lists, but install new iterator in gdbarch.
2372 * regset.h (struct core_regset_section): Remove.
2373 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2374 have_linux_v1, have_linux_v2, and have_tdb.
2375 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2376 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2377 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2378 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2379 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2380 (s390_iterate_over_regset_sections): ...here. New function. Use
2381 new tdep fields.
2382 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2383 regset section lists, but install new iterator.
2384
2eca4a8d
JK
23852014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2386
2387 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2388
a73c2b56
SM
23892014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2390
2391 * progspace.c (print_program_space): Don't prune program spaces
2392 before printing them.
2393
03d46957
PA
23942014-09-25 Pedro Alves <palves@redhat.com>
2395
2396 * infrun.c (user_visible_resume_ptid): Don't check
2397 singlestep_breakpoints_inserted_p.
2398
e558d7c1
PA
23992014-09-25 Pedro Alves <palves@redhat.com>
2400
2401 * breakpoint.c (should_be_inserted): Add debug output.
2402
7f89fd65
PA
24032014-09-25 Pedro Alves <palves@redhat.com>
2404
2405 * infrun.c (stepping_past_instruction_at)
2406 (clear_exit_convenience_vars): Point at infrun.h instead of
2407 inferior.h.
2408 (handle_signal_stop): Fix typo.
2409
b7576e5c
YQ
24102014-09-24 Yao Qi <yao@codesourcery.com>
2411
2412 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2413 bitmask.
2414
9a6cf368
GB
24152014-09-22 Gary Benson <gbenson@redhat.com>
2416
2417 * target.c (target_stop): Updated comment.
2418
03f4463b
GB
24192014-09-22 Gary Benson <gbenson@redhat.com>
2420
2421 * target/target.h (target_stop_ptid): Renamed as...
2422 (target_stop_and_wait): New function. Updated comment.
2423 All uses updated.
2424 (target_continue_ptid): Renamed as...
2425 (target_continue_no_signal): New function. Updated comment.
2426 All uses updated.
2427
a25a5a45
PA
24282014-09-22 Pedro Alves <palves@redhat.com>
2429
2430 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2431 and "auto" merged.
2432 * breakpoint.c (enum ugll_insert_mode): New enum.
2433 (always_inserted_mode): Now a plain boolean.
2434 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2435 (breakpoints_always_inserted_mode): Delete.
2436 (breakpoints_should_be_inserted_now): New function.
2437 (insert_breakpoints): Pass UGLL_INSERT to
2438 update_global_location_list instead of calling
2439 insert_breakpoint_locations manually.
2440 (create_solib_event_breakpoint_1): New, factored out from ...
2441 (create_solib_event_breakpoint): ... this.
2442 (create_and_insert_solib_event_breakpoint): Use
2443 create_solib_event_breakpoint_1 instead of calling
2444 insert_breakpoint_locations manually.
2445 (update_global_location_list): Change parameter type from boolean
2446 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2447 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2448 (update_global_location_list_nothrow): Change parameter type from
2449 boolean to enum ugll_insert_mode.
2450 (_initialize_breakpoint): "breakpoint always-inserted" option is
2451 now a boolean command. Update help text.
2452 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2453 (breakpoints_should_be_inserted_now): New declaration.
2454 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2455 Remove breakpoints_always_inserted_mode check.
2456 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2457 * remote.c (remote_start_remote): Likewise.
2458
04086b45
PA
24592014-09-22 Pedro Alves <palves@redhat.com>
2460
2461 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2462 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2463 Instead, pass UGLL_INSERT to update_global_location_list.
2464 (update_global_location_list): Change parameter type from boolean
2465 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2466 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2467 (create_solib_event_breakpoint_1): New, factored out from ...
2468 (create_solib_event_breakpoint): ... this.
2469 (create_and_insert_solib_event_breakpoint): Use
2470 create_solib_event_breakpoint_1 instead of calling
2471 insert_breakpoint_locations manually.
2472 (update_global_location_list): Handle UGLL_INSERT.
2473
44702360
PA
24742014-09-22 Pedro Alves <palves@redhat.com>
2475
2476 * breakpoint.c (enum ugll_insert_mode): New enum.
2477 (update_global_location_list)
2478 (update_global_location_list_nothrow): Change parameter type from
2479 boolean to enum ugll_insert_mode. All callers adjusted.
2480
93c6145a
JB
24812014-09-19 Joel Brobecker <brobecker@adacore.com>
2482
2483 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2484 SystemTap support in GDB.
2485
89a5711c
DB
24862014-09-19 Don Breazeal <donb@codesourcery.com>
2487
2488 * linux-nat.c (linux_handle_extended_wait): Call
2489 linux_ptrace_get_extended_event.
2490 (wait_lwp): Call linux_is_extended_waitstatus.
2491 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2492 and linux_is_extended_waitstatus.
2493 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2494 linux_ptrace_get_extended_event.
2495 (linux_ptrace_get_extended_event): New function.
2496 (linux_is_extended_waitstatus): New function.
2497 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2498 (linux_is_extended_waitstatus): New declarations.
2499
c3b7b696
YQ
25002014-09-19 Yao Qi <yao@codesourcery.com>
2501
2502 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2503 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2504 comments. Callers update.
2505 (dwarf_decode_lines): Likewise.
2506 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2507 comments. Skip the line table if 'lowpc' is greater than
2508 'address'. Don't check
2509 dwarf2_per_objfile->has_section_at_zero.
2510
2b4fd423
DE
25112014-09-18 Doug Evans <dje@google.com>
2512
2513 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2514 * python/py-symtab.c (stpy_get_producer): New function.
2515 (symtab_object_getset): Add "producer" attribute.
2516
5e43d467
UW
25172014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2518
2519 PR gdb/17384
2520 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2521 (do_captured_read_memory_integer): Remove.
2522 (safe_read_memory_integer): Use target_read_memory directly instead
2523 of catching errors in do_captured_read_memory_integer.
2524
04e79979
MR
25252014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2526
2527 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2528 not gdb/doc.
2529
76aeec5b
SDJ
25302014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2531
2532 * objc-lang.c (find_implementation_from_class): Remove dead code.
2533
2f693f9d
SDJ
25342014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2535
2536 PR cli/7233
2537 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2538 "fprintf_unfiltered (gdb_stdlog...)".
2539
bb9d5f81
PP
25402014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2541
2542 PR breakpoints/12526
2543 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2544 val_bitsize.
2545 * breakpoint.c (watch_command_1): Use these fields to retain
2546 bitfield information.
2547 (extract_bitfield_from_watchpoint_value): New function.
2548 (watchpoint_check): Use it.
2549 (update_watchpoint): Use it. Optimize the address and length of a
2550 HW watchpoint pointing to a bitfield.
2551 * value.h (unpack_value_bitfield): New prototype.
2552 * value.c (unpack_value_bitfield): Make extern.
2553
05db5edd
ST
25542014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2555
2556 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2557 x86-dregs.o.
2558 * gnu-nat.c (inf_threads): New function.
2559 * gnu-nat.h (inf_threads_ftype): New typedef.
2560 (inf_threads): New declaration.
2561 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2562 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2563 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2564 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2565 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2566 (i386_gnu_dr_get_control): New functions.
2567 (reg_addr): New structure.
2568 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2569 i386 debugging register hooks.
2570 * NEWS: Mention this.
2571
5a578da5
OJ
25722014-08-13 Omair Javaid <omair.javaid@linaro.org>
2573
2574 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2575 vector data transfer instructions.
2576 (arm_record_coproc_data_proc): Updated.
2577
f20f80dd
OJ
25782014-08-13 Omair Javaid <omair.javaid@linaro.org>
2579
2580 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2581 arm_record_exreg_ld_st_insn.
2582 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2583 load/store insns.
2584
851f26ae
OJ
25852014-08-13 Omair Javaid <omair.javaid@linaro.org>
2586
2587 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2588 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2589 processing instructions.
2590
1e1b6563
OJ
25912014-08-13 Omair Javaid <omair.javaid@linaro.org>
2592
2593 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2594 for advance SIMD struct ld/st insn.
2595 (thumb2_record_decode_insn_handler): Replace stub handler with
2596 thumb2_record_asimd_struct_ld_st.
2597
60cc5e93
OJ
25982014-08-13 Omair Javaid <omair.javaid@linaro.org>
2599
2600 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2601 for asimd, vfp and coprocessor insns.
2602 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2603 and coprocessor insns.
2604 (thumb2_record_coproc_insn): New function.
2605 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2606 handlers.
2607 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2608 opcode 110 insns.
2609
81219e53
DE
26102014-09-13 Doug Evans <xdje42@gmail.com>
2611
2612 * NEWS: Mention new "queue-signal" command.
2613 * infcmd.c (queue_signal_command): New function.
2614 (_initialize_infcmd): Add new queue-signal command.
2615
d36bf488
DE
26162014-09-13 Doug Evans <xdje42@gmail.com>
2617
2618 * linux-nat.c (wait_lwp): Add debugging printf.
2619 (linux_nat_wait_1): Ditto.
2620
f37f681c
PA
26212014-09-12 Pedro Alves <palves@redhat.com>
2622
2623 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2624 (create_and_insert_solib_event_breakpoint): New functions.
2625 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2626 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2627 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2628 (remove_dbx_link_breakpoint): Delete function.
2629 (insert_dbx_link_bpt_in_file): Use
2630 create_and_insert_solib_event_breakpoint instead of
2631 deprecated_insert_raw_breakpoint.
2632 (procfs_wait): Don't check whether we hit __dbx_link here.
2633 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2634 here.
2635 * solib-irix.c (base_breakpoint): Delete global.
2636 (disable_break): Delete function.
2637 (enable_break): Use create_solib_event_breakpoint
2638 instead of deprecated_insert_raw_breakpoint.
2639 (irix_solib_handle_event): New function.
2640 (irix_solib_create_inferior_hook): Don't run the target or disable
2641 the mapping-complete breakpoint here.
2642 (_initialize_irix_solib): Install irix_solib_handle_event as
2643 so_ops->handle_event hook.
2644
9d9bf2df
EBM
26452014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2646 Ulrich Weigand  <uweigand@de.ibm.com>
2647
2648 PR tdep/17379
2649 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2650 instead of read_memory_unsigned_integer.
2651
b006a80e
GB
26522014-09-12 Gary Benson <gbenson@redhat.com>
2653
2654 * nat/linux-waitpid.c: Include common-defs.h.
2655 [GDBSERVER]: Add FIXME comment.
2656 [!GDBSERVER]: Don't include defs.h or signal.h.
2657 (linux_debug) [!GDBSERVER]: Remove empty block.
2658
296b1496
GB
26592014-09-12 Gary Benson <gbenson@redhat.com>
2660
2661 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2662 Don't include defs.h or server.h.
2663
53f81362
GB
26642014-09-12 Gary Benson <gbenson@redhat.com>
2665
2666 * nat/linux-btrace.c: Include common-defs.h.
2667 Don't include defs.h, server.h or gdbthread.h.
2668 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2669
727605ca
GB
26702014-09-12 Gary Benson <gbenson@redhat.com>
2671
2672 * common/agent.c: Include common-defs.h.
2673 Don't include defs.h or server.h.
2674 * common/buffer.c: Likewise.
2675 * common/common-debug.c: Likewise.
2676 * common/common-utils.c: Likewise.
2677 * common/errors.c: Likewise.
2678 * common/filestuff.c: Likewise.
2679 * common/format.c: Likewise.
2680 * common/gdb_vecs.c: Likewise.
2681 * common/print-utils.c: Likewise.
2682 * common/ptid.c: Likewise.
2683 * common/rsp-low.c: Likewise.
2684 * common/signals.c: Likewise.
2685 * common/vec.c: Likewise.
2686 * common/xml-utils.c: Likewise.
2687 * nat/linux-osdata.c: Likewise.
2688 * nat/linux-procfs.c: Likewise.
2689 * nat/linux-ptrace.c: Likewise.
2690 * nat/mips-linux-watch.c: Likewise.
2691 * target/waitstatus.c: Likewise.
2692
361c8ade
GB
26932014-09-12 Tom Tromey <tromey@redhat.com>
2694 Gary Benson <gbenson@redhat.com>
2695
2696 * common/common-regcache.h: New file.
2697 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2698 * regcache.h: Include common-regcache.h.
2699 (regcache_read_pc): Don't declare.
2700 * regcache.c (get_thread_regcache_for_ptid): New function.
2701 * nat/linux-btrace.c: Don't include regcache.h.
2702 Include common-regcache.h.
2703 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2704
a01cbb49
TS
27052014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2706
2707 * regcache.h (struct regset): Declare.
2708
98880d46
PA
27092014-09-11 Pedro Alves <palves@redhat.com>
2710
2711 PR gdb/17347
2712 * main.c: Include "infrun.h".
2713 (catch_command_errors, catch_command_errors_const): Wait for the
2714 foreground command to complete.
2715 * top.c (maybe_wait_sync_command_done): New function, factored out
2716 from ...
2717 (maybe_wait_sync_command_done): ... here.
2718 * top.h (maybe_wait_sync_command_done): New declaration.
2719
bd9269f7
GB
27202014-09-11 Tom Tromey <tromey@redhat.com>
2721 Gary Benson <gbenson@redhat.com>
2722
2723 * common/symbol.h: New file.
2724 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2725 * minsyms.c (find_minimal_symbol_address): New function.
2726 * common/agent.c: Include common/symbol.h.
2727 [!GDBSERVER]: Don't include objfiles.h.
2728 (agent_look_up_symbols): Use find_minimal_symbol_address.
2729
f8c1d06b
GB
27302014-09-11 Gary Benson <gbenson@redhat.com>
2731
2732 * target/target.h (target_stop_ptid, target_continue_ptid):
2733 Declare.
2734 * target.c (target_stop_ptid, target_continue_ptid): New
2735 functions.
2736 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2737 (agent_run_command): Always use target_stop_ptid and
2738 target_continue_ptid.
2739
721ec300
GB
27402014-09-11 Tom Tromey <tromey@redhat.com>
2741 Gary Benson <gbenson@redhat.com>
2742
2743 * target/target.h: New file.
2744 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2745 * target.h: Include target/target.h.
2746 (target_read_memory, target_write_memory): Don't declare.
2747 * target.c (target_read_uint32): New function.
2748 * common/agent.c: Include target/target.h.
2749 [!GDBSERVER]: Don't include target.h.
2750 (helper_thread_id): Type changed to uint32_t.
2751 (agent_get_helper_thread_id): Use target_read_uint32.
2752 (agent_run_command): Always use target_read_memory and
2753 target_write_memory.
2754 (agent_capability): Type changed to uint32_t.
2755 (agent_capability_check): Use target_read_uint32.
2756
c5e92cca
GB
27572014-09-11 Gary Benson <gbenson@redhat.com>
2758
2759 * common/common-debug.h (show_debug_regs): Declare.
2760 * common/common-debug.c (show_debug_regs): Define.
2761 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2762 all uses with show_debug_regs. Replace all uses that considered
2763 debug_hw_points as a multi-value integer with straight boolean
2764 uses.
2765 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2766 with show_debug_regs.
2767 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2768 all uses with show_debug_regs.
2769 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2770 uses with show_debug_regs.
2771
eeef931a
UW
27722014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2773
2774 * findvar.c (address_from_register): Handle targets requiring
2775 a special conversion routine even for plain pointer types.
2776
8efa9855
UW
27772014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2778
2779 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2780 (store_register): Do not call exec_one_dummy_insn.
2781
eb479039
JB
27822014-09-10 Joel Brobecker <brobecker@adacore.com>
2783
2784 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2785 dereference it first. Use value_enclosing_type instead of
2786 value_type.
2787 (ada_array_length): Likewise.
2788
deede10c
JB
27892014-09-10 Joel Brobecker <brobecker@adacore.com>
2790
2791 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2792 Adjust function implementation and documentation accordingly.
2793 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2794 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2795 Update call to ada_value_ptr_subscript.
2796
7828a5f5
JB
27972014-09-10 Joel Brobecker <brobecker@adacore.com>
2798
2799 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2800 instead of VAL's type.
2801
35782f14
JB
28022014-09-10 Joel Brobecker <brobecker@adacore.com>
2803
2804 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2805
d342a0da
DE
28062014-09-09 Doug Evans <xdje42@gmail.com>
2807
2808 PR guile/17367
2809 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2810 last parameter to pkg-config, not first.
2811 * configure.ac: Pass --with-guile provided pkg-config path to
2812 GDB_GUILE_PROGRAM_NAMES.
2813 * configure: Regenerate.
2814
b4a3d263
GKB
28152014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2816
2817 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2818 Bertazi".
2819
6e466374
MR
28202014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2821
2822 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2823 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2824 the list of sections determining GDB_OSABI_IRIX.
2825
a1ada89a
JH
28262014-09-09 James Hogan <james.hogan@imgtec.com>
2827
2828 * MAINTAINERS (Write After Approval): Add "James Hogan".
2829
86db008d
JH
28302014-09-09 James Hogan <james.hogan@imgtec.com>
2831
2832 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2833
72fde3df
JB
28342014-09-09 Joel Brobecker <brobecker@adacore.com>
2835
2836 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2837
92d8d229
DE
28382014-09-08 Doug Evans <xdje42@gmail.com>
2839
2840 PR 17247
2841 * guile.c: #include <signal.h>.
2842 (_initialize_guile): Block SIGCHLD while initializing Guile.
2843
2844 Replaces the following, which is reverted.
2845
2846 2014-07-26 Doug Evans <xdje42@gmail.com>
2847
2848 PR 17185
2849 * configure.ac: Add check for header gc/gc.h.
2850 Add check for function setenv.
2851 * configure: Regenerate.
2852 * config.in: Regenerate.
2853 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2854
d81412aa
DE
28552014-09-08 Doug Evans <xdje42@gmail.com>
2856
2857 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2858 with named constant. Fix style of pointer comparison.
2859 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2860
a9f116cb
GKB
28612014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2862
2863 PR gdb/17035
2864 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2865 decide whether we display the command on "show user".
2866 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2867 printing command name.
2868 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2869 * cli/cli-decode.c (cli_user_command_p): Create helper function
2870 to verify whether cmd_list_element is a user-defined command.
2871
c75bd3a2
JK
28722014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2873
2874 PR python/17355
2875 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2876 Fix goto out of TRY_CATCH.
2877
faa42425 28782014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2879 Tom Tromey <tromey@redhat.com>
faa42425
DE
2880
2881 PR 15276
2882 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2883 $_any_caller_matches.
2884 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2885 * python/lib/gdb/function/caller_is.py: New file.
2886
0d41ba00
DE
28872014-09-06 Doug Evans <xdje42@gmail.com>
2888
2889 * infcmd.c (program_info): Fix typo.
2890
474ca4f6
SDJ
28912014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2892
2893 PR gdb/17235
2894 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2895 'number'. New variable 'has_digit'. Rewrite code to deal with
2896 subexpressions on SDT probes.
2897
ebf13736
PA
28982014-09-04 Pedro Alves <palves@redhat.com>
2899
2900 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2901 the input is only one character long.
2902
eb0b0463
SDJ
29032014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2904
2905 PR fortran/17237
2906 * f-valprint.c (f_val_print): Specify the correct print option to
2907 use when printing integer values.
2908
5ee44bfa
GB
29092014-09-04 Gary Benson <gbenson@redhat.com>
2910
2911 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2912 Remove code to cope with LWPs wrapped as PIDs.
2913 Add assertions to ensure no wrapped LWPs are passed.
2914
4875ffdb
PA
29152014-09-04 Pedro Alves <palves@redhat.com>
2916
2917 * value.c (value_ranges_copy_adjusted): New function, factored out
2918 from ...
2919 (value_contents_copy_raw): ... here.
2920 (unpack_value_bits_as_long_1): Rename back to ...
2921 (unpack_bits_as_long): ... this. Remove 'original_value' and
2922 'result' parameters. Change return type to LONGEST.
2923 (unpack_value_bits_as_long): Delete.
2924 (unpack_value_field_as_long_1): Delete.
2925 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2926 (unpack_value_bitfield): New function.
2927 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2928 (value_fetch_lazy): Use unpack_value_bitfield.
2929 * value.h (unpack_value_bits_as_long): Delete declaration.
2930
5f3b99cf
SS
29312014-09-03 Sasha Smundak <asmundak@google.com>
2932
2933 * python/py-frame.c (frapy_read_register): New function.
2934
ac740bc7
JH
29352014-09-03 James Hogan <james.hogan@imgtec.com>
2936
2937 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2938 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2939
7d793aa9
SDJ
29402014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2941
2942 PR python/16699
2943 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2944 function.
2945 (add_cmd): Set "completer_handle_brkchars" to NULL.
2946 * cli/cli-decode.h (struct cmd_list_element)
2947 <completer_handle_brkchars>: New field.
2948 * command.h (completer_ftype_void): New typedef.
2949 (set_cmd_completer_handle_brkchars): New prototype.
2950 * completer.c (set_gdb_completion_word_break_characters): New
2951 function.
2952 (complete_line_internal): Call "completer_handle_brkchars"
2953 callback from command.
2954 * completer.h: Include "command.h".
2955 (set_gdb_completion_word_break_characters): New prototype.
2956 * python/py-cmd.c (cmdpy_completer_helper): New function.
2957 (cmdpy_completer_handle_brkchars): New function.
2958 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2959 (cmdpy_init): Set completer_handle_brkchars to
2960 cmdpy_completer_handle_brkchars.
2961
97ea6506
GB
29622014-09-03 Gary Benson <gbenson@redhat.com>
2963
2964 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2965 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2966 Loop conditions changed to equivalent form.
2967 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2968 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2969 ALL_DEBUG_ADDRESS_REGISTERS.
2970
d1437815
JB
29712014-09-03 Joel Brobecker <brobecker@adacore.com>
2972
2973 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2974 description fix.
2975
9b94fcf1
DE
29762014-09-02 Doug Evans <dje@google.com>
2977
2978 * typeprint.c (find_global_typedef): Fix comment.
2979
df7e5265
GB
29802014-09-02 Gary Benson <gbenson@redhat.com>
2981
2982 * i386-nat.h: Renamed as...
2983 * x86-nat.h: New file. All type, function and variable name
2984 prefixes changed from "i386_" to "x86_". All references updated.
2985 * i386-nat.c: Renamed as...
2986 * x86-nat.c: New file. All type, function and variable name
2987 prefixes changed from "i386_" to "x86_". All references updated.
2988 * common/i386-xstate.h: Renamed as...
2989 * common/x86-xstate.h: New file. All type, function and variable
2990 name prefixes changed from "i386_" to "x86_". All references
2991 updated.
2992 * nat/i386-cpuid.h: Renamed as...
2993 * nat/x86-cpuid.h: New file. All type, function and variable name
2994 prefixes changed from "i386_" to "x86_". All references updated.
2995 * nat/i386-gcc-cpuid.h: Renamed as...
2996 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2997 name prefixes changed from "i386_" to "x86_". All references
2998 updated.
2999 * nat/i386-dregs.h: Renamed as...
3000 * nat/x86-dregs.h: New file. All type, function and variable name
3001 prefixes changed from "i386_" to "x86_". All references updated.
3002 * nat/i386-dregs.c: Renamed as...
3003 * nat/x86-dregs.c: New file. All type, function and variable name
3004 prefixes changed from "i386_" to "x86_". All references updated.
3005
1c3569d4
MR
30062014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3007
3008 * varobj.c (_initialize_varobj): Move to the end of file.
3009
ff55e1b5
GB
30102014-08-29 Gary Benson <gbenson@redhat.com>
3011
3012 * common/common-exceptions.h: New file.
3013 * common/common-exceptions.c: Likewise.
3014 * Makefile.in (SFILES): Add common/common-exceptions.c.
3015 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3016 (COMMON_OBS): Add common-exceptions.o.
3017 (common-exceptions.o): New rule.
3018 * exceptions.h (common-exceptions.h): Include.
3019 (gdb_setjmp.h): Do not include.
3020 (return_reason): Moved to common-exceptions.h.
3021 (enum return_reason): Likewise.
3022 (RETURN_MASK): Likewise.
3023 (typedef return_mask): Likewise.
3024 (enum errors): Likewise.
3025 (struct gdb_exception): Likewise.
3026 (exceptions_state_mc_init): Likewise.
3027 (exceptions_state_mc_action_iter): Likewise.
3028 (exceptions_state_mc_action_iter_1): Likewise.
3029 (TRY_CATCH): Likewise.
3030 (throw_exception): Likewise.
3031 (throw_verror): Likewise.
3032 (throw_vquit): Likewise.
3033 (throw_error): Likewise.
3034 (throw_quit): Likewise.
3035 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3036 (enum catcher_action): Likewise.
3037 (struct catcher): Likewise.
3038 (current_catcher): Likewise.
3039 (catcher_list_size): Likewise.
3040 (exceptions_state_mc_init): Likewise.
3041 (catcher_pop): Likewise.
3042 (exceptions_state_mc): Likewise.
3043 (exceptions_state_mc_action_iter): Likewise.
3044 (exceptions_state_mc_action_iter_1): Likewise.
3045 (throw_exception): Likewise.
3046 (exception_messages): Likewise.
3047 (exception_messages_size): Likewise.
3048 (throw_it): Likewise.
3049 (throw_verror): Likewise.
3050 (throw_vquit): Likewise.
3051 (throw_error): Likewise.
3052 (throw_quit): Likewise.
3053 (prepare_to_throw_exception): New function.
3054
e9bcb658
GB
30552014-08-29 Gary Benson <gbenson@redhat.com>
3056
3057 * common/gdb_setjmp.h: New file.
3058 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3059 * configure.ac: Move sigsetjmp check...
3060 * common/common.m4: ...here.
3061 * configure: Regenerate.
3062 * cp-support.c (SIGJMP_BUF): Delete.
3063 (SIGSETJMP): Likewise.
3064 (SIGLONGJMP): Likewise.
3065 * exceptions.h (gdb_setjmp.h): Include.
3066 (setjmp.h): Do not include.
3067 (EXCEPTIONS_SIGJMP_BUF): Delete.
3068 (EXCEPTIONS_SIGSETJMP): Likewise.
3069 (EXCEPTIONS_SIGLONGJMP): Likewise.
3070 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3071 from gdb_setjmp.h.
3072 * exceptions.c: Likewise.
3073
e3180625
GB
30742014-08-29 Gary Benson <gbenson@redhat.com>
3075
3076 * cleanups.h: Moved to...
3077 * common/cleanups.h: New file.
3078 * cleanups.c: Moved to...
3079 * common/cleanups.c: New file. Include common-defs.h and
3080 cleanups.h. Do not include defs.h.
3081 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3082 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3083 (cleanups.o): New rule.
3084
e3d6ba5d
GB
30852014-08-29 Gary Benson <gbenson@redhat.com>
3086
3087 * common/errors.h (internal_warning): New declaration.
3088 (internal_vwarning): Likewise.
3089 * common/errors.c (internal_warning): New function.
3090 * utils.h (internal_warning): Don't declare.
3091 (internal_vwarning): Likewise.
3092 * utils.c (internal_warning): Removed.
3093
075c7033
GB
30942014-08-29 Gary Benson <gbenson@redhat.com>
3095
3096 * main.c (captured_main): Use warning during startup.
3097 Prefix startup warning messages with command name.
3098
91b35fd0
GB
30992014-08-29 Gary Benson <gbenson@redhat.com>
3100
3101 * main.c (captured_main): Handle usage errors with error.
3102
b1ec390e
GB
31032014-08-29 Gary Benson <gbenson@redhat.com>
3104
3105 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3106 exit pair with a call to error. Wrap the message with _().
3107
fd0ef3dd
GB
31082014-08-29 Gary Benson <gbenson@redhat.com>
3109
3110 * main.c (captured_main): Replace a fprintf/exit
3111 pair with a call to error. Wrap the message with _().
3112
e0e6bcab
GB
31132014-08-29 Gary Benson <gbenson@redhat.com>
3114
3115 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3116 pairs with calls to error. Wrap the message with _().
3117
0d2f5c07
GB
31182014-08-29 Gary Benson <gbenson@redhat.com>
3119
3120 * utils.c (vwarning): Protect calls to target_terminal_ours
3121 and wrap_here.
3122
5df43998
GB
31232014-08-29 Gary Benson <gbenson@redhat.com>
3124
3125 * exceptions.c (print_flush): Protect calls to
3126 target_terminal_ours and wrap_here.
3127
2437fd32
GB
31282014-08-29 Gary Benson <gbenson@redhat.com>
3129
3130 * utils.h (filtered_printing_initialized): New declaration.
3131 * utils.c (abort_with_message): New function.
3132 (internal_vproblem): Use abort_with_message for first level
3133 recursive internal problems, and if gdb_stderr is not set up.
3134 Protect calls to target_terminal_ours, begin_line and query.
3135
f1f58506
DE
31362014-08-28 Doug Evans <dje@google.com>
3137
3138 * symtab.c (in_prologue): Move definition to better spot.
3139 (skip_prologue_using_sal): Ditto.
3140
aab2f208
DE
31412014-08-28 Doug Evans <dje@google.com>
3142
3143 * symtab.c (find_function_start_sal): Move definition to better spot.
3144
6b65d1b6
YQ
31452014-08-28 Yao Qi <yao@codesourcery.com>
3146
3147 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3148 found_stack_adjust in forward scan. Remove condition check
3149 on found_stack_adjust which is always true. Indent the code.
3150
a1b34d15
YQ
31512014-08-28 Yao Qi <yao@codesourcery.com>
3152
3153 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3154 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3155 (dwarf_decode_lines): Remove argument
3156 want_line_info. Remove condition check on want_line_info.
3157 Callers update.
3158
d5962de5
DE
31592014-08-27 Doug Evans <dje@google.com>
3160
3161 * dwarf2read.c (dwarf_record_line): Fix typo.
3162
9b139002
SDJ
31632014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3164
3165 * target.h (struct target_ops::to_terminal_save_ours): Remove
3166 declaration.
3167 (target_terminal_save_ours): Remove macro.
3168 * target-delegates.c: Regenerate.
3169 * inf-child.c (inf_child_target): Don't set the nonexistent
3170 field to_terminal_save_ours.
3171 * inferior.h (child_terminal_save_ours): Remove declaration.
3172 * terminal.h (gdb_save_tty_state): New declaration.
3173 * inflow.c (child_terminal_save_ours): Rename to ...
3174 (gdb_save_tty_state): ... this.
3175 * tui/tui.c: Include terminal.h.
3176 (tui_enable): Use gdb_save_tty_state instead of
3177 target_terminal_save_ours.
3178 (tui_disable): Likewise.
3179
9debeba0
DE
31802014-08-25 Doug Evans <dje@google.com>
3181
3182 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3183 Pass NULL instead of 0 for context pointer.
3184
428fc5fc
YQ
31852014-08-25 Yao Qi <yao@codesourcery.com>
3186
3187 * dwarf2read.c: Fix grammatical error.
3188
cdc07690
YQ
31892014-08-24 Yao Qi <yao@codesourcery.com>
3190
3191 * dwarf2read.c (scan_partial_symbols): Update comments.
3192 Rename argument 'need_pc' with 'set_addrmap'.
3193 (add_partial_namespace): Rename argument 'need_pc' with
3194 'set_addrmap'.
3195 (add_partial_module): Likewise.
3196 (add_partial_subprogram): Likewise. Update comments.
3197 (dwarf2_name): Fix typo.
3198
a05a36a5
DE
31992014-08-22 Doug Evans <dje@google.com>
3200
3201 PR 17276
3202 * dwarf2read.c (dwarf_record_line_p): New function.
3203 (dwarf_decode_lines_1): Ignore subsequent line number entries
3204 for the same line if any entry had a non-zero discriminator.
3205
252a6764
DE
32062014-08-22 Doug Evans <dje@google.com>
3207
3208 * buildsym.h (record_line_ftype): New typedef.
3209 (record_line): Use it.
3210 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3211 (dwarf_decode_lines_1): Call them.
3212
510db052
YQ
32132014-08-22 Yao Qi <yao@codesourcery.com>
3214
3215 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3216 (ctf_end): Remove code.
3217
22fd09ae
JK
32182014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3219
3220 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3221 (linux_make_corefile_notes): call update_thread_list, protected against
3222 exceptions.
3223
656e8868
PA
32242014-08-21 Pedro Alves <palves@redhat.com>
3225
3226 * infcmd.c (attach_command): Remove comment.
3227
de589d04
WN
32282014-08-21 Bin Cheng <bin.cheng@arm.com>
3229
3230 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3231 unsigned LONGEST to ULONGEST.
3232
2a31c623
PA
32332014-08-20 Pedro Alves <palves@redhat.com>
3234
3235 * Makefile.in (check-read1): New rule.
3236
d36430db
JB
32372014-08-20 Joel Brobecker <brobecker@adacore.com>
3238
3239 * value.c (value_from_contents_and_address): Strip resolved_type's
3240 typedef layers before checking its TYPE_DATA_LOCATION.
3241
000339af
PA
32422014-08-20 Pedro Alves <palves@redhat.com>
3243
3244 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3245
5f52445b
YQ
32462014-08-20 Yao Qi <yao@codesourcery.com>
3247
3248 * amd64-tdep.c (amd64_classify): Add a blank line after the
3249 example. Move "*/" to a new line.
3250 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3251 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3252 * dwarf2read.c (psymtab_include_file_name): Likewise.
3253
9a0dc9e3
PA
32542014-08-19 Andrew Burgess <aburgess@broadcom.com>
3255 Pedro Alves <palves@redhat.com>
3256
3257 PR symtab/14604
3258 PR symtab/14605
3259 * ada-lang.c (coerce_unspec_val_to_type): Use
3260 value_contents_copy_raw.
3261 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3262 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3263 * cp-valprint.c (cp_print_value_fields): Let the common printing
3264 code handle optimized out values.
3265 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3266 * d-valprint.c (dynamic_array_type): Use
3267 value_bits_any_optimized_out.
3268 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3269 check_any_valid fields.
3270 (check_pieced_value_bits): Delete and inline ...
3271 (check_pieced_synthetic_pointer): ... here.
3272 (check_pieced_value_validity): Delete.
3273 (check_pieced_value_invalid): Delete.
3274 (pieced_value_funcs): Remove check_validity and check_any_valid
3275 fields.
3276 (read_pieced_value): Use mark_value_bits_optimized_out.
3277 (write_pieced_value): Switch to use
3278 mark_value_bytes_optimized_out.
3279 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3280 of assuming the whole value is optimized out.
3281 * findvar.c (read_frame_register_value): Remove special handling
3282 of optimized out registers.
3283 (value_from_register): Use mark_value_bytes_optimized_out.
3284 * frame-unwind.c (frame_unwind_got_optimized): Use
3285 mark_value_bytes_optimized_out.
3286 * jv-valprint.c (java_value_print): Adjust.
3287 (java_print_value_fields): Let the common printing code handle
3288 optimized out values.
3289 * mips-tdep.c (mips_print_register): Remove special handling of
3290 optimized out registers.
3291 * opencl-lang.c (lval_func_check_validity): Delete.
3292 (lval_func_check_any_valid): Delete.
3293 (opencl_value_funcs): Remove check_validity and check_any_valid
3294 fields.
3295 * p-valprint.c (pascal_object_print_value_fields): Let the common
3296 printing code handle optimized out values.
3297 * stack.c (read_frame_arg): Remove special handling of optimized
3298 out values. Fetch both VAL and ENTRYVAL before comparing
3299 contents. Adjust to value_available_contents_eq rename.
3300 * valprint.c (valprint_check_validity)
3301 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3302 (val_print_array_elements): Adjust.
3303 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3304 (value_bits_any_optimized_out): New function.
3305 (value_entirely_covered_by_range_vector): New function, factored
3306 out from value_entirely_unavailable.
3307 (value_entirely_unavailable): Reimplement.
3308 (value_entirely_optimized_out): New function.
3309 (insert_into_bit_range_vector): New function, factored out from
3310 mark_value_bits_unavailable.
3311 (mark_value_bits_unavailable): Reimplement.
3312 (struct ranges_and_idx): New struct.
3313 (find_first_range_overlap_and_match): New function, factored out
3314 from value_available_contents_bits_eq.
3315 (value_available_contents_bits_eq): Rename to ...
3316 (value_contents_bits_eq): ... this. Check both unavailable
3317 contents and optimized out contents.
3318 (value_available_contents_eq): Rename to ...
3319 (value_contents_eq): ... this.
3320 (allocate_value_lazy): Remove reference to the old optimized_out
3321 boolean.
3322 (allocate_optimized_out_value): Use
3323 mark_value_bytes_optimized_out.
3324 (require_not_optimized_out): Adjust to check whether the
3325 optimized_out vec is empty.
3326 (ranges_copy_adjusted): New function, factored out from
3327 value_contents_copy_raw.
3328 (value_contents_copy_raw): Also copy the optimized out ranges.
3329 Assert the destination ranges aren't optimized out.
3330 (value_contents_copy): Update comment, remove call to
3331 require_not_optimized_out.
3332 (value_contents_equal): Adjust to check whether the optimized_out
3333 vec is empty.
3334 (set_value_optimized_out, value_optimized_out_const): Delete.
3335 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3336 New functions.
3337 (value_entirely_optimized_out, value_bits_valid): Delete.
3338 (value_copy): Take a VEC copy of the 'optimized_out' field.
3339 (value_primitive_field): Remove special handling of optimized out.
3340 (value_fetch_lazy): Assert that lazy values have no unavailable
3341 regions. Use value_bits_any_optimized_out. Remove some special
3342 handling for optimized out values.
3343 * value.h: Add intro comment about <optimized out> and
3344 <unavailable>.
3345 (struct lval_funcs): Remove check_validity and check_any_valid
3346 fields.
3347 (set_value_optimized_out, value_optimized_out_const): Remove.
3348 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3349 New declarations.
3350 (value_bits_any_optimized_out): New declaration.
3351 (value_bits_valid): Delete declaration.
3352 (value_available_contents_eq): Rename to ...
3353 (value_contents_eq): ... this, and extend comments.
3354
6694c411
JK
33552014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3356
3357 Fix -fsanitize=address on unreadable inferior strings.
3358 * valprint.c (val_print_string): Fix access before BUFFER.
3359
89a1c21a
SM
33602014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3361
3362 * target.c (target_struct_size): Remove.
3363 (target_struct_allocsize): Remove.
3364 (DEFAULT_ALLOCSIZE): Remove.
3365 (target_ops_p): New typedef.
3366 (DEF_VEC_P (target_ops_p)): New vector type.
3367 (target_structs): Change type to VEC (target_ops_p).
3368 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3369 (find_default_run_target): Rewrite for loop following changes to
3370 target_structs.
3371
cb417230
JB
33722014-08-19 Joel Brobecker <brobecker@adacore.com>
3373
3374 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3375 Adjust code accordingly. Adjust function description comment.
3376
817e0957
YQ
33772014-08-19 Yao Qi <yao@codesourcery.com>
3378
3379 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3380 types.
3381
2974be62
AM
33822014-08-19 Alan Modra <amodra@gmail.com>
3383
3384 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3385 * config.in: Regenerate.
3386 * configure: Regenerate.
3387
34abf635
GB
33882014-08-19 Tom Tromey <tromey@redhat.com>
3389 Gary Benson <gbenson@redhat.com>
3390
3391 * common/common-debug.h: New file.
3392 * common/common-debug.c: Likewise.
3393 * debug.c: Likewise.
3394 * Makefile.in (SFILES): Add common/common-debug.c.
3395 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3396 (COMMON_OBS): Add common-debug.o and debug.o.
3397 (common-debug.o): New rule.
3398 * common/common-defs.h: Include common-debug.h.
3399 * common/agent.c (debug_agent_printf): New function.
3400 (DEBUG_AGENT): Redefine.
3401 * nat/i386-dregs.c (debug_printf): Undefine.
3402
f6e94d78
GB
34032014-08-19 Gary Benson <gbenson@redhat.com>
3404
3405 * common/common-defs.h: Include print-utils.h.
3406 * utils.h: Do not include print-utils.h.
3407
9239eeab
GB
34082014-08-19 Tom Tromey <tromey@redhat.com>
3409 Gary Benson <gbenson@redhat.com>
3410
3411 * common/common-types.h: New file.
3412 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3413 * common/common-defs.h: Include common-types.h.
3414 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3415 (ULONGEST): Remove.
3416
ef87c8bb
GB
34172014-08-19 Tom Tromey <tromey@redhat.com>
3418 Gary Benson <gbenson@redhat.com>
3419
3420 * common/errors.h: New file.
3421 * common/errors.c: Likewise.
3422 * Makefile.in (SFILES): Add common/errors.c.
3423 (HFILES_NO_SRCDIR): Add common/errors.h.
3424 (COMMON_OBS): Add errors.o.
3425 (errors.o): New rule.
3426 * common/common-defs.h: Include errors.h.
3427 * utils.h (perror_with_name, error, verror, warning, vwarning):
3428 Don't declare.
3429 * common/common-utils.h: (malloc_failure, internal_error):
3430 Likewise.
3431
196a707b
GB
34322014-08-19 Gary Benson <gbenson@redhat.com>
3433
3434 * utils.c (internal_vproblem): Always print the message.
3435
ded4fc8f
DE
34362014-08-18 Doug Evans <dje@google.com>
3437
3438 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3439
950c97d8
JB
34402014-08-18 Joel Brobecker <brobecker@adacore.com>
3441
3442 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3443 Return 0 if TYPE is dynamic.
3444 (print_range): Add handling of dynamic ranges.
3445
3cdcd0ce
JB
34462014-08-18 Keven Boell <keven.boell@intel.com>
3447 Joel Brobecker <brobecker@adacore.com>
3448
3449 * gdbtypes.h (struct main_type): Add field "data_location".
3450 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3451 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3452 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3453 a dynamic data location.
3454 (resolve_dynamic_type): Add DW_AT_data_location handling.
3455 (copy_recursive, copy_type): Copy the data_location information
3456 when present.
3457 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3458 * value.c (value_from_contents_and_address): Add
3459 DW_AT_data_location handling.
3460
08412b07
JB
34612014-08-18 Keven Boell <keven.boell@intel.com>
3462 Joel Brobecker <brobecker@adacore.com>
3463
3464 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3465 field "get_object_address".
3466 * dwarf2expr.c (execute_stack_op): Add handling for
3467 DW_OP_push_object_address.
3468 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3469 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3470 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3471 (dwarf_expr_get_obj_addr): New function.
3472 (dwarf_expr_ctx_funcs): Add get_object_address field.
3473 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3474 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3475 (dwarf2_evaluate_property): Add parameter "address". Use it.
3476 (needs_get_obj_addr): New function.
3477 (needs_frame_ctx_funcs): Add get_object_address field.
3478 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3479 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3480 (resolve_dynamic_array): Likewise.
3481
84754697
JB
34822014-08-18 Joel Brobecker <brobecker@adacore.com>
3483
3484 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3485 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3486 fixed value for records and unions for which some GNAT encodings
3487 are present.
3488
da5c522f
JB
34892014-08-18 Joel Brobecker <brobecker@adacore.com>
3490
3491 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3492 rewrite to avoid "else if" and "else" constructs. Should be
3493 a no-op in practice.
3494
0d72a7c3
JB
34952014-08-18 Joel Brobecker <brobecker@adacore.com>
3496
3497 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3498 of lexical block.
3499
e66d4446
SC
35002014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3501
3502 PR c++/17132
3503 * eval.c: Update all calls to find_overload_match.
3504 * valarith.c: Likewise.
3505 (value_user_defined_cpp_op, value_user_defined_op): New
3506 argument NOSIDE. Update all callers.
3507 * valops.c (find_overload_match): New argument NOSIDE.
3508 * value.h (find_overload_match): Update signature.
3509
940df408
SC
35102014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3511
3512 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3513 'items' methods instead of 'iteritems' method on dictionaries.
3514
699ca60a
DE
35152014-08-15 Doug Evans <dje@google.com>
3516
3517 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3518 closer to use.
3519
37780ee5
DE
35202014-08-15 Doug Evans <dje@google.com>
3521
3522 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3523
0ad93d4f
DE
35242014-08-15 Doug Evans <dje@google.com>
3525
3526 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3527
20d8c372
DE
35282014-08-15 Doug Evans <dje@google.com>
3529
3530 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3531 unused.
3532
cb039ba4
EZ
35332014-08-15 Eli Zaretskii <eliz@gnu.org>
3534
3535 * dcache.h: Include target.h, to avoid compile time warnings.
3536
eb7a547a
JB
35372014-08-15 Joel Brobecker <brobecker@adacore.com>
3538
3539 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3540 frame_info" partial declaration.
3541 * gdbarch.h: Regenerate.
3542
783cecc8
YQ
35432014-08-15 Yao Qi <yao@codesourcery.com>
3544
3545 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3546 Add parameter 'decode_for_pst_p'. Callers update.
3547
65c749e7
YQ
35482014-08-13 Yao Qi <yao@codesourcery.com>
3549
3550 PR build/17104
3551 * configure.ac: Use local variable 'pos'.
3552 * configure: Regenerated.
3553
d769e349
DE
35542014-08-11 Doug Evans <dje@google.com>
3555
3556 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3557 message, it is redundant with "Reading symbols from ..." message.
3558
24f1235e
DE
35592014-08-10 Doug Evans <xdje42@gmail.com>
3560
3561 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3562
dcd2e6ef
YQ
35632014-08-09 Yao Qi <yao@codesourcery.com>
3564
3565 PR remote/9053
3566 * remote.c (remote_xfer_partial): Remove dead code.
3567
070bdf0b
AA
35682014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3569
3570 * ia64-linux-tdep.c: Include "regset.h".
3571 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3572 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3573 (ia64_linux_supply_fpregset): New function.
3574 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3575 (ia64_linux_regset_from_core_section): New function.
3576 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3577 method.
3578
08f9f542
AA
35792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3580
3581 * m68klinux-tdep.c: Include "regset.h".
3582 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3583 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3584 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3585 (m68k_linux_regset_from_core_section): New function.
3586 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3587 method.
3588
8f1cee41
AA
35892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3590
3591 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3592 function. Move logic to...
3593 (tilegx_linux_regmap): ... this new register map.
3594 (tilegx_linux_regset): Refer to register map, replace supply
3595 method by regcache_supply_regset, and add collect method.
3596 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3597 TILEGX_FIRST_EASY_REGNUM.
3598
c5741217
AA
35992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3600
3601 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3602 that calls regcache_supply_regset and handles the EPC register
3603 separately. Move main logic to...
3604 (score7_linux_gregmap): ... this new register map.
3605 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3606 (score7_linux_gregset): Refer to register map. Add collect method.
3607 (score7_linux_regset_from_core_section): Replace
3608 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3609 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3610 (struct regset): Delete unused forward declaraction.
3611 (struct pt_regs): Delete structure definition.
3612 (elf_gregset_t): Delete typedef.
3613
81580573
AA
36142014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3615
3616 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3617 (nios2_core_regset): Add collect method.
3618
ba199d7d
AA
36192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3620
3621 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3622 platform-independent and don't write to read-only input buffer.
3623 (m32r_linux_collect_gregset): New function.
3624 (m32r_linux_gregset): Add collect method.
3625
0006a9da
AA
36262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3627
3628 * hppa-linux-tdep.c (greg_map): Rename to...
3629 (hppa_linux_gregmap): ... this. Also convert to
3630 regcache_map_entry format.
3631 (hppa_linux_supply_regset): Delete function.
3632 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3633 (hppa_linux_fpregmap): ... this new register map.
3634 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3635 register map, replace supply method by regcache_supply_regset, and
3636 add collect method regcache_collect_regset.
3637
901e1b23
AA
36382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3639
3640 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3641 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3642 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3643 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3644 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3645 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3646 (frv_linux_supply_gregset): Replace main logic by call to
3647 regcache_supply_regset, but keep clearing gr32-gr63.
3648 (frv_linux_supply_fpregset): Delete function.
3649 (frv_linux_gregset): Refer to appropriate register map and add
3650 regcache_collect_regset as the collect method.
3651 (frv_linux_fpregset): Likewise. Also exchange the supply method
3652 by regcache_supply_regset.
3653
1d6e7555
AA
36542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3655
3656 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3657 by call to alpha_supply_int_regs.
3658 (alpha_linux_collect_gregset): New function.
3659 (alpha_linux_supply_fpregset): Replace logic by call to
3660 alpha_supply_fp_regs.
3661 (alpha_linux_collect_fpregset): New function.
3662 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3663
d4d793bf
AA
36642014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3665
3666 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3667 by call to regcache_collect_regset.
3668 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3669 instead of aarch64_linux_supply_gregset/_fpregset.
3670 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3671 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3672 header file instead.
3673 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3674 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3675 functions. Move logic to ...
3676 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3677 register maps.
3678 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3679 refer to new register maps, replace *_regset_from_core by
3680 regcache_supply_regset, and also use regcache_collect_regset.
3681 * aarch64-linux-tdep.h: Include "regset.h".
3682 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3683 Delete prototypes.
3684 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3685 macros, moved from C source file.
3686 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3687 variable declarations.
3688
99b7da5d
AA
36892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3690
3691 * s390-linux-nat.c: Include "regset.h".
3692 (regmap_gregset): Delete macro.
3693 (s390_64_regmap_gregset): New register map for
3694 regcache_supply/_collect_regset.
3695 (s390_64_gregset): New regset.
3696 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3697 (regmap_fpregset): Delete macro.
3698 (s390_native_supply, s390_native_collect): Delete functions.
3699 (supply_gregset, fill_gregset): Replace s390-specific regmap
3700 handling by a call to regcache_supply/_collect_regset.
3701 (supply_fpregset, fill_fpregset): Call regcache_supply/
3702 _collect_regset instead of s390_native_supply/_collect.
3703 (fetch_regset, store_regset): Likewise. Also change the last
3704 parameter to a regset instead of a regmap.
3705 (s390_linux_fetch_inferior_registers)
3706 (390_linux_store_inferior_registers): Adjust last parameter in
3707 calls to fetch_regset and store_regset.
3708 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3709 (s390_gregmap): ... this. Also make static const and convert to
3710 regcache_map_entry format.
3711 (s390x_regmap_gregset): Delete.
3712 (s390_regmap_fpregset): Rename to...
3713 (s390_fpregmap): ... this. Make static const and convert to
3714 regcache_map_entry format.
3715 (s390_regmap_upper, s390_regmap_last_break)
3716 (s390x_regmap_last_break, s390_regmap_system_call)
3717 (s390_regmap_tdb): Likewise.
3718 (s390_supply_regset, s390_collect_regset): Remove functions.
3719 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3720 s390_supply_regset.
3721 (s390_gregset, s390_fpregset, s390_upper_regset)
3722 (s390_last_break_regset, s390x_last_break_regset)
3723 (s390_system_call_regset, s390_tdb_regset): Make global and
3724 replace s390_supply/_collect_regset by regcache_supply/
3725 _collect_regset.
3726 (s390x_gregset): Delete.
3727 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3728 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3729 (s390_regmap_fpregset, s390_regmap_last_break)
3730 (s390x_regmap_last_break, s390_regmap_system_call)
3731 (s390_regmap_tdb): Delete global variable declarations.
3732 (s390_gregset, s390_fpregset, s390_last_break_regset)
3733 (s390x_last_break_regset, s390_system_call_regset)
3734 (s390_tdb_regset): New global variable declarations.
3735
0b309272
AA
37362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3737
3738 * regcache.c: Include "regset.h".
3739 (regcache_transfer_regset): New local function.
3740 (regcache_supply_regset, regcache_collect_regset): New functions.
3741 * regcache.h (struct regcache_map_entry): New structure.
3742 (REGCACHE_MAP_SKIP): New enum value.
3743 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3744
7fefa8d7
AA
37452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3746
3747 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3748 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3749 (ppc_linux_collect_gregset ): Likewise.
3750 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3751 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3752 (ppc_collect_vrregset): Likewise.
3753 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3754 Likewise.
3755
96c4f946
YQ
37562014-08-07 Yao Qi <yao@codesourcery.com>
3757
3758 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3759 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3760 * remote.c (remote_read_bytes): Likewise.
3761
fffbe6a8
YQ
37622014-08-07 Yao Qi <yao@codesourcery.com>
3763
3764 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3765
5ee8a82c
YQ
37662014-08-07 Yao Qi <yao@codesourcery.com>
3767
3768 PR remote/17230
3769 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3770 TARGET_XFER_OK instead of 0.
3771
bb974a24
GB
37722014-08-07 Gary Benson <gbenson@redhat.com>
3773
3774 * common/common-defs.h: Include errno.h.
3775 * defs.h: Do not include errno.h.
3776 * ada-typeprint.c: Likewise.
3777 * c-typeprint.c: Likewise.
3778 * core-regset.c: Likewise.
3779 * corefile.c: Likewise.
3780 * corelow.c: Likewise.
3781 * event-loop.c: Likewise.
3782 * f-typeprint.c: Likewise.
3783 * gnu-nat.c: Likewise.
3784 * go32-nat.c: Likewise.
3785 * i386gnu-nat.c: Likewise.
3786 * m2-typeprint.c: Likewise.
3787 * nat/linux-btrace.c: Likewise.
3788 * p-typeprint.c: Likewise.
3789 * procfs.c: Likewise.
3790 * remote-sim.c: Likewise.
3791 * rs6000-nat.c: Likewise.
3792 * target.c: Likewise.
3793 * typeprint.c: Likewise.
3794 * ui-file.c: Likewise.
3795 * valops.c: Likewise.
3796 * valprint.c: Likewise.
3797
6d3d12eb
GB
37982014-08-07 Gary Benson <gbenson@redhat.com>
3799
3800 * common/common-defs.h: Include string.h.
3801 * aarch64-tdep.c: Do not include string.h.
3802 * ada-exp.y: Likewise.
3803 * ada-lang.c: Likewise.
3804 * ada-lex.l: Likewise.
3805 * ada-typeprint.c: Likewise.
3806 * ada-valprint.c: Likewise.
3807 * aix-thread.c: Likewise.
3808 * alpha-linux-tdep.c: Likewise.
3809 * alpha-mdebug-tdep.c: Likewise.
3810 * alpha-nat.c: Likewise.
3811 * alpha-osf1-tdep.c: Likewise.
3812 * alpha-tdep.c: Likewise.
3813 * alphanbsd-tdep.c: Likewise.
3814 * amd64-dicos-tdep.c: Likewise.
3815 * amd64-linux-tdep.c: Likewise.
3816 * amd64-nat.c: Likewise.
3817 * amd64-sol2-tdep.c: Likewise.
3818 * amd64fbsd-tdep.c: Likewise.
3819 * amd64obsd-tdep.c: Likewise.
3820 * arch-utils.c: Likewise.
3821 * arm-linux-nat.c: Likewise.
3822 * arm-linux-tdep.c: Likewise.
3823 * arm-tdep.c: Likewise.
3824 * arm-wince-tdep.c: Likewise.
3825 * armbsd-tdep.c: Likewise.
3826 * armnbsd-nat.c: Likewise.
3827 * armnbsd-tdep.c: Likewise.
3828 * armobsd-tdep.c: Likewise.
3829 * avr-tdep.c: Likewise.
3830 * ax-gdb.c: Likewise.
3831 * ax-general.c: Likewise.
3832 * bcache.c: Likewise.
3833 * bfin-tdep.c: Likewise.
3834 * breakpoint.c: Likewise.
3835 * build-id.c: Likewise.
3836 * buildsym.c: Likewise.
3837 * c-exp.y: Likewise.
3838 * c-lang.c: Likewise.
3839 * c-typeprint.c: Likewise.
3840 * c-valprint.c: Likewise.
3841 * charset.c: Likewise.
3842 * cli-out.c: Likewise.
3843 * cli/cli-cmds.c: Likewise.
3844 * cli/cli-decode.c: Likewise.
3845 * cli/cli-dump.c: Likewise.
3846 * cli/cli-interp.c: Likewise.
3847 * cli/cli-logging.c: Likewise.
3848 * cli/cli-script.c: Likewise.
3849 * cli/cli-setshow.c: Likewise.
3850 * cli/cli-utils.c: Likewise.
3851 * coffread.c: Likewise.
3852 * common/agent.c: Likewise.
3853 * common/buffer.c: Likewise.
3854 * common/buffer.h: Likewise.
3855 * common/common-utils.c: Likewise.
3856 * common/filestuff.c: Likewise.
3857 * common/filestuff.c: Likewise.
3858 * common/format.c: Likewise.
3859 * common/print-utils.c: Likewise.
3860 * common/rsp-low.c: Likewise.
3861 * common/signals.c: Likewise.
3862 * common/vec.h: Likewise.
3863 * common/xml-utils.c: Likewise.
3864 * core-regset.c: Likewise.
3865 * corefile.c: Likewise.
3866 * corelow.c: Likewise.
3867 * cp-abi.c: Likewise.
3868 * cp-name-parser.y: Likewise.
3869 * cp-support.c: Likewise.
3870 * cp-valprint.c: Likewise.
3871 * cris-tdep.c: Likewise.
3872 * d-exp.y: Likewise.
3873 * darwin-nat.c: Likewise.
3874 * dbxread.c: Likewise.
3875 * dcache.c: Likewise.
3876 * demangle.c: Likewise.
3877 * dicos-tdep.c: Likewise.
3878 * disasm.c: Likewise.
3879 * doublest.c: Likewise.
3880 * dsrec.c: Likewise.
3881 * dummy-frame.c: Likewise.
3882 * dwarf2-frame.c: Likewise.
3883 * dwarf2loc.c: Likewise.
3884 * dwarf2read.c: Likewise.
3885 * elfread.c: Likewise.
3886 * environ.c: Likewise.
3887 * eval.c: Likewise.
3888 * event-loop.c: Likewise.
3889 * exceptions.c: Likewise.
3890 * exec.c: Likewise.
3891 * expprint.c: Likewise.
3892 * f-exp.y: Likewise.
3893 * f-lang.c: Likewise.
3894 * f-typeprint.c: Likewise.
3895 * f-valprint.c: Likewise.
3896 * fbsd-nat.c: Likewise.
3897 * findcmd.c: Likewise.
3898 * findvar.c: Likewise.
3899 * fork-child.c: Likewise.
3900 * frame.c: Likewise.
3901 * frv-linux-tdep.c: Likewise.
3902 * frv-tdep.c: Likewise.
3903 * gdb.c: Likewise.
3904 * gdb_bfd.c: Likewise.
3905 * gdbarch.c: Likewise.
3906 * gdbarch.sh: Likewise.
3907 * gdbtypes.c: Likewise.
3908 * gnu-nat.c: Likewise.
3909 * gnu-v2-abi.c: Likewise.
3910 * gnu-v3-abi.c: Likewise.
3911 * go-exp.y: Likewise.
3912 * go-lang.c: Likewise.
3913 * go32-nat.c: Likewise.
3914 * guile/guile.c: Likewise.
3915 * guile/scm-auto-load.c: Likewise.
3916 * hppa-hpux-tdep.c: Likewise.
3917 * hppa-linux-nat.c: Likewise.
3918 * hppanbsd-tdep.c: Likewise.
3919 * hppaobsd-tdep.c: Likewise.
3920 * i386-cygwin-tdep.c: Likewise.
3921 * i386-dicos-tdep.c: Likewise.
3922 * i386-linux-tdep.c: Likewise.
3923 * i386-nto-tdep.c: Likewise.
3924 * i386-sol2-tdep.c: Likewise.
3925 * i386-tdep.c: Likewise.
3926 * i386bsd-tdep.c: Likewise.
3927 * i386gnu-nat.c: Likewise.
3928 * i386nbsd-tdep.c: Likewise.
3929 * i386obsd-tdep.c: Likewise.
3930 * i387-tdep.c: Likewise.
3931 * ia64-libunwind-tdep.c: Likewise.
3932 * ia64-linux-nat.c: Likewise.
3933 * inf-child.c: Likewise.
3934 * inf-ptrace.c: Likewise.
3935 * inf-ttrace.c: Likewise.
3936 * infcall.c: Likewise.
3937 * infcmd.c: Likewise.
3938 * inflow.c: Likewise.
3939 * infrun.c: Likewise.
3940 * interps.c: Likewise.
3941 * iq2000-tdep.c: Likewise.
3942 * irix5-nat.c: Likewise.
3943 * jv-exp.y: Likewise.
3944 * jv-lang.c: Likewise.
3945 * jv-typeprint.c: Likewise.
3946 * jv-valprint.c: Likewise.
3947 * language.c: Likewise.
3948 * linux-fork.c: Likewise.
3949 * linux-nat.c: Likewise.
3950 * lm32-tdep.c: Likewise.
3951 * m2-exp.y: Likewise.
3952 * m2-typeprint.c: Likewise.
3953 * m32c-tdep.c: Likewise.
3954 * m32r-linux-nat.c: Likewise.
3955 * m32r-linux-tdep.c: Likewise.
3956 * m32r-rom.c: Likewise.
3957 * m32r-tdep.c: Likewise.
3958 * m68hc11-tdep.c: Likewise.
3959 * m68k-tdep.c: Likewise.
3960 * m68kbsd-tdep.c: Likewise.
3961 * m68klinux-nat.c: Likewise.
3962 * m68klinux-tdep.c: Likewise.
3963 * m88k-tdep.c: Likewise.
3964 * machoread.c: Likewise.
3965 * macrocmd.c: Likewise.
3966 * main.c: Likewise.
3967 * mdebugread.c: Likewise.
3968 * mem-break.c: Likewise.
3969 * memattr.c: Likewise.
3970 * memory-map.c: Likewise.
3971 * mep-tdep.c: Likewise.
3972 * mi/mi-cmd-break.c: Likewise.
3973 * mi/mi-cmd-disas.c: Likewise.
3974 * mi/mi-cmd-env.c: Likewise.
3975 * mi/mi-cmd-stack.c: Likewise.
3976 * mi/mi-cmd-var.c: Likewise.
3977 * mi/mi-cmds.c: Likewise.
3978 * mi/mi-console.c: Likewise.
3979 * mi/mi-getopt.c: Likewise.
3980 * mi/mi-interp.c: Likewise.
3981 * mi/mi-main.c: Likewise.
3982 * mi/mi-parse.c: Likewise.
3983 * microblaze-rom.c: Likewise.
3984 * microblaze-tdep.c: Likewise.
3985 * mingw-hdep.c: Likewise.
3986 * minidebug.c: Likewise.
3987 * minsyms.c: Likewise.
3988 * mips-irix-tdep.c: Likewise.
3989 * mips-linux-tdep.c: Likewise.
3990 * mips-tdep.c: Likewise.
3991 * mips64obsd-tdep.c: Likewise.
3992 * mipsnbsd-tdep.c: Likewise.
3993 * mipsread.c: Likewise.
3994 * mn10300-linux-tdep.c: Likewise.
3995 * mn10300-tdep.c: Likewise.
3996 * monitor.c: Likewise.
3997 * moxie-tdep.c: Likewise.
3998 * mt-tdep.c: Likewise.
3999 * nat/linux-btrace.c: Likewise.
4000 * nat/linux-osdata.c: Likewise.
4001 * nat/linux-procfs.c: Likewise.
4002 * nat/linux-ptrace.c: Likewise.
4003 * nat/linux-waitpid.c: Likewise.
4004 * nbsd-tdep.c: Likewise.
4005 * nios2-linux-tdep.c: Likewise.
4006 * nto-procfs.c: Likewise.
4007 * nto-tdep.c: Likewise.
4008 * objc-lang.c: Likewise.
4009 * objfiles.c: Likewise.
4010 * opencl-lang.c: Likewise.
4011 * osabi.c: Likewise.
4012 * osdata.c: Likewise.
4013 * p-exp.y: Likewise.
4014 * p-lang.c: Likewise.
4015 * p-typeprint.c: Likewise.
4016 * parse.c: Likewise.
4017 * posix-hdep.c: Likewise.
4018 * ppc-linux-nat.c: Likewise.
4019 * ppc-sysv-tdep.c: Likewise.
4020 * ppcfbsd-tdep.c: Likewise.
4021 * ppcnbsd-tdep.c: Likewise.
4022 * ppcobsd-tdep.c: Likewise.
4023 * printcmd.c: Likewise.
4024 * procfs.c: Likewise.
4025 * prologue-value.c: Likewise.
4026 * python/py-auto-load.c: Likewise.
4027 * python/py-gdb-readline.c: Likewise.
4028 * ravenscar-thread.c: Likewise.
4029 * regcache.c: Likewise.
4030 * registry.c: Likewise.
4031 * remote-fileio.c: Likewise.
4032 * remote-m32r-sdi.c: Likewise.
4033 * remote-mips.c: Likewise.
4034 * remote-notif.c: Likewise.
4035 * remote-sim.c: Likewise.
4036 * remote.c: Likewise.
4037 * reverse.c: Likewise.
4038 * rs6000-aix-tdep.c: Likewise.
4039 * ser-base.c: Likewise.
4040 * ser-go32.c: Likewise.
4041 * ser-mingw.c: Likewise.
4042 * ser-pipe.c: Likewise.
4043 * ser-tcp.c: Likewise.
4044 * ser-unix.c: Likewise.
4045 * serial.c: Likewise.
4046 * sh-tdep.c: Likewise.
4047 * sh64-tdep.c: Likewise.
4048 * shnbsd-tdep.c: Likewise.
4049 * skip.c: Likewise.
4050 * sol-thread.c: Likewise.
4051 * solib-dsbt.c: Likewise.
4052 * solib-frv.c: Likewise.
4053 * solib-osf.c: Likewise.
4054 * solib-som.c: Likewise.
4055 * solib-spu.c: Likewise.
4056 * solib-target.c: Likewise.
4057 * solib.c: Likewise.
4058 * somread.c: Likewise.
4059 * source.c: Likewise.
4060 * sparc-nat.c: Likewise.
4061 * sparc-sol2-tdep.c: Likewise.
4062 * sparc-tdep.c: Likewise.
4063 * sparc64-tdep.c: Likewise.
4064 * sparc64fbsd-tdep.c: Likewise.
4065 * sparc64nbsd-tdep.c: Likewise.
4066 * sparcnbsd-tdep.c: Likewise.
4067 * spu-linux-nat.c: Likewise.
4068 * spu-multiarch.c: Likewise.
4069 * spu-tdep.c: Likewise.
4070 * stabsread.c: Likewise.
4071 * stack.c: Likewise.
4072 * std-regs.c: Likewise.
4073 * symfile.c: Likewise.
4074 * symmisc.c: Likewise.
4075 * symtab.c: Likewise.
4076 * target.c: Likewise.
4077 * thread.c: Likewise.
4078 * tilegx-linux-nat.c: Likewise.
4079 * tilegx-tdep.c: Likewise.
4080 * top.c: Likewise.
4081 * tracepoint.c: Likewise.
4082 * tui/tui-command.c: Likewise.
4083 * tui/tui-data.c: Likewise.
4084 * tui/tui-disasm.c: Likewise.
4085 * tui/tui-file.c: Likewise.
4086 * tui/tui-layout.c: Likewise.
4087 * tui/tui-out.c: Likewise.
4088 * tui/tui-regs.c: Likewise.
4089 * tui/tui-source.c: Likewise.
4090 * tui/tui-stack.c: Likewise.
4091 * tui/tui-win.c: Likewise.
4092 * tui/tui-windata.c: Likewise.
4093 * tui/tui-winsource.c: Likewise.
4094 * typeprint.c: Likewise.
4095 * ui-file.c: Likewise.
4096 * ui-out.c: Likewise.
4097 * user-regs.c: Likewise.
4098 * utils.c: Likewise.
4099 * v850-tdep.c: Likewise.
4100 * valarith.c: Likewise.
4101 * valops.c: Likewise.
4102 * valprint.c: Likewise.
4103 * value.c: Likewise.
4104 * varobj.c: Likewise.
4105 * vax-tdep.c: Likewise.
4106 * vaxnbsd-tdep.c: Likewise.
4107 * vaxobsd-tdep.c: Likewise.
4108 * windows-nat.c: Likewise.
4109 * xcoffread.c: Likewise.
4110 * xml-support.c: Likewise.
4111 * xstormy16-tdep.c: Likewise.
4112 * xtensa-linux-nat.c: Likewise.
4113
dccbb609
GB
41142014-08-07 Gary Benson <gbenson@redhat.com>
4115
4116 * common/common-defs.h: Include gdb_assert.h.
4117 * aarch64-tdep.c: Do not include gdb_assert.h.
4118 * addrmap.c: Likewise.
4119 * aix-thread.c: Likewise.
4120 * alpha-linux-tdep.c: Likewise.
4121 * alpha-mdebug-tdep.c: Likewise.
4122 * alphanbsd-tdep.c: Likewise.
4123 * amd64-nat.c: Likewise.
4124 * amd64-tdep.c: Likewise.
4125 * amd64bsd-nat.c: Likewise.
4126 * amd64fbsd-nat.c: Likewise.
4127 * amd64fbsd-tdep.c: Likewise.
4128 * amd64nbsd-nat.c: Likewise.
4129 * amd64nbsd-tdep.c: Likewise.
4130 * amd64obsd-nat.c: Likewise.
4131 * amd64obsd-tdep.c: Likewise.
4132 * arch-utils.c: Likewise.
4133 * arm-tdep.c: Likewise.
4134 * armbsd-tdep.c: Likewise.
4135 * auxv.c: Likewise.
4136 * bcache.c: Likewise.
4137 * bfin-tdep.c: Likewise.
4138 * blockframe.c: Likewise.
4139 * breakpoint.c: Likewise.
4140 * bsd-kvm.c: Likewise.
4141 * bsd-uthread.c: Likewise.
4142 * buildsym.c: Likewise.
4143 * c-exp.y: Likewise.
4144 * c-lang.c: Likewise.
4145 * charset.c: Likewise.
4146 * cleanups.c: Likewise.
4147 * cli-out.c: Likewise.
4148 * cli/cli-decode.c: Likewise.
4149 * cli/cli-dump.c: Likewise.
4150 * cli/cli-logging.c: Likewise.
4151 * cli/cli-script.c: Likewise.
4152 * cli/cli-utils.c: Likewise.
4153 * coffread.c: Likewise.
4154 * common/common-utils.c: Likewise.
4155 * common/queue.h: Likewise.
4156 * common/signals.c: Likewise.
4157 * common/vec.h: Likewise.
4158 * complaints.c: Likewise.
4159 * completer.c: Likewise.
4160 * corelow.c: Likewise.
4161 * cp-abi.c: Likewise.
4162 * cp-name-parser.y: Likewise.
4163 * cp-namespace.c: Likewise.
4164 * cp-support.c: Likewise.
4165 * cris-tdep.c: Likewise.
4166 * dbxread.c: Likewise.
4167 * dictionary.c: Likewise.
4168 * doublest.c: Likewise.
4169 * dsrec.c: Likewise.
4170 * dummy-frame.c: Likewise.
4171 * dwarf2-frame-tailcall.c: Likewise.
4172 * dwarf2-frame.c: Likewise.
4173 * dwarf2expr.c: Likewise.
4174 * dwarf2loc.c: Likewise.
4175 * dwarf2read.c: Likewise.
4176 * eval.c: Likewise.
4177 * event-loop.c: Likewise.
4178 * exceptions.c: Likewise.
4179 * expprint.c: Likewise.
4180 * f-valprint.c: Likewise.
4181 * fbsd-nat.c: Likewise.
4182 * findvar.c: Likewise.
4183 * frame-unwind.c: Likewise.
4184 * frame.c: Likewise.
4185 * frv-tdep.c: Likewise.
4186 * gcore.c: Likewise.
4187 * gdb-dlfcn.c: Likewise.
4188 * gdb_bfd.c: Likewise.
4189 * gdbarch.c: Likewise.
4190 * gdbarch.sh: Likewise.
4191 * gdbtypes.c: Likewise.
4192 * gnu-nat.c: Likewise.
4193 * gnu-v3-abi.c: Likewise.
4194 * go-lang.c: Likewise.
4195 * guile/scm-exception.c: Likewise.
4196 * guile/scm-gsmob.c: Likewise.
4197 * guile/scm-lazy-string.c: Likewise.
4198 * guile/scm-math.c: Likewise.
4199 * guile/scm-pretty-print.c: Likewise.
4200 * guile/scm-safe-call.c: Likewise.
4201 * guile/scm-utils.c: Likewise.
4202 * guile/scm-value.c: Likewise.
4203 * h8300-tdep.c: Likewise.
4204 * hppa-hpux-nat.c: Likewise.
4205 * hppa-tdep.c: Likewise.
4206 * hppanbsd-tdep.c: Likewise.
4207 * hppaobsd-tdep.c: Likewise.
4208 * i386-darwin-nat.c: Likewise.
4209 * i386-darwin-tdep.c: Likewise.
4210 * i386-nto-tdep.c: Likewise.
4211 * i386-tdep.c: Likewise.
4212 * i386bsd-nat.c: Likewise.
4213 * i386fbsd-tdep.c: Likewise.
4214 * i386gnu-nat.c: Likewise.
4215 * i386nbsd-tdep.c: Likewise.
4216 * i386obsd-tdep.c: Likewise.
4217 * i387-tdep.c: Likewise.
4218 * ia64-libunwind-tdep.c: Likewise.
4219 * ia64-tdep.c: Likewise.
4220 * inf-ptrace.c: Likewise.
4221 * inf-ttrace.c: Likewise.
4222 * infcall.c: Likewise.
4223 * infcmd.c: Likewise.
4224 * infrun.c: Likewise.
4225 * inline-frame.c: Likewise.
4226 * interps.c: Likewise.
4227 * jv-lang.c: Likewise.
4228 * jv-typeprint.c: Likewise.
4229 * linux-fork.c: Likewise.
4230 * linux-nat.c: Likewise.
4231 * linux-thread-db.c: Likewise.
4232 * m32c-tdep.c: Likewise.
4233 * m32r-linux-nat.c: Likewise.
4234 * m32r-tdep.c: Likewise.
4235 * m68k-tdep.c: Likewise.
4236 * m68kbsd-nat.c: Likewise.
4237 * m68kbsd-tdep.c: Likewise.
4238 * m88k-tdep.c: Likewise.
4239 * machoread.c: Likewise.
4240 * macroexp.c: Likewise.
4241 * macrotab.c: Likewise.
4242 * maint.c: Likewise.
4243 * mdebugread.c: Likewise.
4244 * memory-map.c: Likewise.
4245 * mep-tdep.c: Likewise.
4246 * mi/mi-common.c: Likewise.
4247 * microblaze-tdep.c: Likewise.
4248 * mingw-hdep.c: Likewise.
4249 * mips-linux-nat.c: Likewise.
4250 * mips-linux-tdep.c: Likewise.
4251 * mips-tdep.c: Likewise.
4252 * mips64obsd-tdep.c: Likewise.
4253 * mipsnbsd-tdep.c: Likewise.
4254 * mn10300-linux-tdep.c: Likewise.
4255 * mn10300-tdep.c: Likewise.
4256 * moxie-tdep.c: Likewise.
4257 * mt-tdep.c: Likewise.
4258 * nat/linux-btrace.c: Likewise.
4259 * nat/linux-osdata.c: Likewise.
4260 * nat/linux-ptrace.c: Likewise.
4261 * nat/mips-linux-watch.c: Likewise.
4262 * nios2-linux-tdep.c: Likewise.
4263 * nios2-tdep.c: Likewise.
4264 * objc-lang.c: Likewise.
4265 * objfiles.c: Likewise.
4266 * obsd-nat.c: Likewise.
4267 * opencl-lang.c: Likewise.
4268 * osabi.c: Likewise.
4269 * parse.c: Likewise.
4270 * ppc-linux-nat.c: Likewise.
4271 * ppc-sysv-tdep.c: Likewise.
4272 * ppcfbsd-nat.c: Likewise.
4273 * ppcfbsd-tdep.c: Likewise.
4274 * ppcnbsd-nat.c: Likewise.
4275 * ppcnbsd-tdep.c: Likewise.
4276 * ppcobsd-nat.c: Likewise.
4277 * ppcobsd-tdep.c: Likewise.
4278 * printcmd.c: Likewise.
4279 * procfs.c: Likewise.
4280 * prologue-value.c: Likewise.
4281 * psymtab.c: Likewise.
4282 * python/py-lazy-string.c: Likewise.
4283 * python/py-value.c: Likewise.
4284 * regcache.c: Likewise.
4285 * reggroups.c: Likewise.
4286 * registry.c: Likewise.
4287 * remote-sim.c: Likewise.
4288 * remote.c: Likewise.
4289 * rs6000-aix-tdep.c: Likewise.
4290 * rs6000-tdep.c: Likewise.
4291 * s390-linux-tdep.c: Likewise.
4292 * score-tdep.c: Likewise.
4293 * ser-base.c: Likewise.
4294 * ser-mingw.c: Likewise.
4295 * sh-tdep.c: Likewise.
4296 * sh64-tdep.c: Likewise.
4297 * solib-darwin.c: Likewise.
4298 * solib-spu.c: Likewise.
4299 * solib-svr4.c: Likewise.
4300 * source.c: Likewise.
4301 * sparc-nat.c: Likewise.
4302 * sparc-sol2-tdep.c: Likewise.
4303 * sparc-tdep.c: Likewise.
4304 * sparc64-sol2-tdep.c: Likewise.
4305 * sparc64-tdep.c: Likewise.
4306 * sparc64fbsd-tdep.c: Likewise.
4307 * sparc64nbsd-tdep.c: Likewise.
4308 * sparc64obsd-tdep.c: Likewise.
4309 * sparcnbsd-tdep.c: Likewise.
4310 * sparcobsd-tdep.c: Likewise.
4311 * spu-multiarch.c: Likewise.
4312 * spu-tdep.c: Likewise.
4313 * stabsread.c: Likewise.
4314 * stack.c: Likewise.
4315 * symfile.c: Likewise.
4316 * symtab.c: Likewise.
4317 * target-descriptions.c: Likewise.
4318 * target-memory.c: Likewise.
4319 * target.c: Likewise.
4320 * tic6x-linux-tdep.c: Likewise.
4321 * tic6x-tdep.c: Likewise.
4322 * tilegx-linux-nat.c: Likewise.
4323 * tilegx-tdep.c: Likewise.
4324 * top.c: Likewise.
4325 * tramp-frame.c: Likewise.
4326 * tui/tui-out.c: Likewise.
4327 * tui/tui-winsource.c: Likewise.
4328 * ui-out.c: Likewise.
4329 * user-regs.c: Likewise.
4330 * utils.c: Likewise.
4331 * v850-tdep.c: Likewise.
4332 * valops.c: Likewise.
4333 * value.c: Likewise.
4334 * varobj.c: Likewise.
4335 * vax-nat.c: Likewise.
4336 * xml-syscall.c: Likewise.
4337 * xml-tdesc.c: Likewise.
4338 * xstormy16-tdep.c: Likewise.
4339 * xtensa-linux-nat.c: Likewise.
4340 * xtensa-tdep.c: Likewise.
4341
e76df0d0
GB
43422014-08-07 Gary Benson <gbenson@redhat.com>
4343
4344 * common/common-defs.h: Include common-utils.h.
4345 * defs.h: Do not include common-utils.h.
4346 * common/gdb_assert.h: Likewise.
4347 * darwin-nat.h: Likewise.
4348 * nat/linux-btrace.c: Likewise.
4349 * target/waitstatus.h: Likewise.
4350
4cb9c816
GB
43512014-08-07 Gary Benson <gbenson@redhat.com>
4352
4353 * common/common-defs.h: Include ptid.h.
4354 * defs.h: Do not include ptid.h.
4355 * inferior.h: Likewise.
4356 * infrun.h: Likewise.
4357 * nat/linux-btrace.h: Likewise.
4358 * nat/linux-osdata.h: Likewise.
4359 * target/waitstatus.h: Likewise.
4360
3995eeee
GB
43612014-08-07 Gary Benson <gbenson@redhat.com>
4362
4363 * common/common-defs.h: Include gdb_locale.h.
4364 * defs.h: Do not include gdb_locale.h.
4365
cb9f1a9b
GB
43662014-08-07 Gary Benson <gbenson@redhat.com>
4367
4368 * common/common-defs.h: Include gdb/signals.h.
4369 * defs.h: Do not include gdb/signals.h.
4370
a5fceff8
GB
43712014-08-07 Gary Benson <gbenson@redhat.com>
4372
4373 * common/common-defs.h: Include pathmax.h.
4374 * defs.h: Do not include pathmax.h.
4375
b9391142
GB
43762014-08-07 Gary Benson <gbenson@redhat.com>
4377
4378 * common/common-defs.h: Include libiberty.h.
4379 * defs.h: Do not include libiberty.h.
4380 * common/queue.h: Likewise.
4381 * cp-name-parser.y: Likewise.
4382 * mi/mi-cmd-catch.c: Likewise.
4383 * python/python.c: Likewise.
4384
0e443c87
GB
43852014-08-07 Gary Benson <gbenson@redhat.com>
4386
4387 * common/common-defs.h: Include ansidecl.h.
4388 * defs.h: Do not include ansidecl.h.
4389 * common/buffer.h: Likewise.
4390 * common/common-utils.h: Likewise.
4391
8ebb3f56
GB
43922014-08-07 Gary Benson <gbenson@redhat.com>
4393
4394 * common/common-defs.h: Include stddef.h.
4395 * defs.h: Do not include stddef.h.
4396 * common/common-utils.h: Likewise.
4397 * amd64fbsd-nat.c: Likewise.
4398 * bcache.c: Likewise.
4399 * charset.c: Likewise.
4400 * common/buffer.h: Likewise.
4401 * common/vec.h: Likewise.
4402 * i386bsd-nat.c: Likewise.
4403 * nat/linux-btrace.h: Likewise.
4404 * ppcfbsd-nat.c: Likewise.
4405 * ppcnbsd-tdep.h: Likewise.
4406 * ppcobsd-nat.c: Likewise.
4407 * ppcobsd-tdep.h: Likewise.
4408 * python/py-gdb-readline.c: Likewise.
4409
8980bdf6
GB
44102014-08-07 Gary Benson <gbenson@redhat.com>
4411
4412 * common/common-defs.h: Include stdarg.h.
4413 * defs.h: Do not include stdarg.h.
4414 * ada-lang.c: Likewise.
4415 * common/common-utils.h: Likewise.
4416 * guile/scm-string.c: Likewise.
4417 * guile/scm-utils.c: Likewise.
4418 * m32c-tdep.c: Likewise.
4419
d7096f71
GB
44202014-08-07 Gary Benson <gbenson@redhat.com>
4421
4422 * common/common-defs.h: Include stdlib.h.
4423 * defs.h: Do not include stdlib.h.
4424 * addrmap.c: Likewise.
4425 * bcache.c: Likewise.
4426 * common/buffer.c: Likewise.
4427 * common/common-utils.c: Likewise.
4428 * cp-name-parser.y: Likewise.
4429 * go32-nat.c: Likewise.
4430 * mn10300-linux-tdep.c: Likewise.
4431 * nat/linux-osdata.c: Likewise.
4432 * tui/tui.c: Likewise.
4433 * windows-nat.c: Likewise.
4434
d02f550d
GB
44352014-08-07 Gary Benson <gbenson@redhat.com>
4436
4437 * common/common-defs.h: Include stdio.h.
4438 * defs.h: Do not include stdio.h.
4439 * ada-lang.c: Likewise.
4440 * common/buffer.c: Likewise.
4441 * common/common-utils.c: Likewise.
4442 * cp-name-parser.y: Likewise.
4443 * gnu-nat.c: Likewise.
4444 * go32-nat.c: Likewise.
4445 * i386gnu-nat.c: Likewise.
4446 * proc-api.c: Likewise.
4447 * proc-events.c: Likewise.
4448 * proc-flags.c: Likewise.
4449 * proc-why.c: Likewise.
4450 * python/python-internal.h: Likewise.
4451 * target-memory.c: Likewise.
4452 * tui/tui-io.c: Likewise.
4453 * tui/tui.c: Likewise.
4454
b6d7a4bf
SM
44552014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4456
4457 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4458 (scan_dyntag_auxv): Same.
4459
af19829b
YQ
44602014-08-06 Yao Qi <yao@codesourcery.com>
4461
4462 * amd64-linux-nat.c: Remove duplicated include
4463 "x86-linux-nat.h".
4464 * i386-linux-nat.c: Likewise.
4465
8e07a239
YQ
44662014-08-06 Yao Qi <yao@codesourcery.com>
4467
4468 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4469 operand" with "Special opcode" in comments.
4470
7bfe8241
GB
44712014-08-05 Gary Benson <gbenson@redhat.com>
4472
4473 * interps.c (initialize_interps): Remove prototype.
4474 (interpreter_initialized): Remove static global.
4475 (interp_add): Do not call initialize_interps.
4476 (initialize_interps): Remove function.
4477
d6c95504
GB
44782014-08-05 Gary Benson <gbenson@redhat.com>
4479
4480 * utils.c (vwarning): Remove spurious va_end.
4481
241fd515
AM
44822014-08-05 Alan Modra <amodra@gmail.com>
4483
4484 * charset.c (convert_between_encodings): Cast result of obstack_base.
4485 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4486 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4487 (read_unwind_info): Use size_t for some locals.
4488 * jit.c (finalize_symtab): Likewise.
4489 * utils.c (hashtab_obstack_allocate): Likewise.
4490 * symmisc.c (print_objfile_statistics): Update format strings.
4491
dc304a94
JK
44922014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4493
4494 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4495 (Changes in GDB 7.8): ... here.
4496
3cecbbbe
TT
44972014-08-04 Tom Tromey <tromey@redhat.com>
4498
4499 * target.c (set_targetdebug): New function.
4500 (initialize_targets): Pass set_targetdebug when creating "set
4501 debug target".
4502
6908c509
JB
45032014-08-01 Joel Brobecker <brobecker@adacore.com>
4504
4505 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4506 if detecting a variable-sized field that is not the last field.
4507 Fix struct type length computation.
4508
53e8f97d
JB
45092014-08-01 Joel Brobecker <brobecker@adacore.com>
4510
4511 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4512 Add debug trace.
4513
e068c55d
JB
45142014-08-01 Joel Brobecker <brobecker@adacore.com>
4515
4516 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4517 Remove "+ 8" offset in computation of CHAIN_VMA.
4518
4d4ca2a1
DE
45192014-07-31 Doug Evans <dje@google.com>
4520
4521 * inflow.c (child_terminal_inferior): Add comment.
4522 (child_terminal_ours_for_output): Add comment.
4523 (child_terminal_ours): Add comment.
4524 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4525 (linux_nat_terminal_ours): Add comment.
4526
462f517e
GB
45272014-07-31 Gary Benson <gbenson@redhat.com>
4528
4529 * common/btrace-common.h: Do not include defs.h or server.h.
4530 * nat/mips-linux-watch.h: Likewise.
4531 * gdb-dlfcn.h: Do not include defs.h.
4532 * tracefile.h: Likewise.
4533
74228e77
RM
45342014-07-30 Roland McGrath <mcgrathr@google.com>
4535
4536 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4537
014f9477
TT
45382014-07-30 Tom Tromey <tromey@redhat.com>
4539
4540 * bsd-kvm.c (bsd_kvm_open): Constify.
4541 * corelow.c (core_open): Constify.
4542 * ctf.c (ctf_open): Constify.
4543 * dbug-rom.c (dbug_open): Constify.
4544 * exec.c (exec_open): Constify.
4545 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4546 * microblaze-rom.c (picobug_open): Constify.
4547 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4548 Constify.
4549 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4550 * record-btrace.c (record_btrace_open): Constify.
4551 * record-full.c (record_full_core_open_1, record_full_open_1)
4552 (record_full_open): Constify.
4553 * remote-m32r-sdi.c (m32r_open): Constify.
4554 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4555 (rockhopper_open, lsi_open): Constify.
4556 * remote-sim.c (gdbsim_open): Constify.
4557 * remote.c (remote_open, extended_remote_open, remote_open_1):
4558 Constify.
4559 * target.h (struct target_ops) <to_open>: Make "arg" const.
4560 * tracefile-tfile.c (tfile_open): Constify.
4561
e799154c
TT
45622014-07-30 Tom Tromey <tromey@redhat.com>
4563
4564 * breakpoint.c (map_breakpoint_numbers): Update.
4565 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4566 (get_number_const): New function.
4567 (get_number): Rewrite using get_number_const.
4568 (init_number_or_range): Make "string" const.
4569 (number_is_in_list): Make "list" const.
4570 * cli/cli-utils.h (get_number_const): Declare.
4571 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4572 (init_number_or_range, number_is_in_list): Update.
4573 * printcmd.c (map_display_numbers): Update.
4574 * value.c (value_from_history_ref): Constify.
4575 * value.h (value_from_history_ref): Update.
4576
5f08566b
TT
45772014-07-30 Tom Tromey <tromey@redhat.com>
4578
4579 * corefile.c (hook_type, call_extra_exec_file_hooks)
4580 (specify_exec_file_hook): Constify.
4581 * exec.c (exec_file_attach): Make "filename" const.
4582 * gdbcore.h (deprecated_exec_file_display_hook)
4583 (specify_exec_file_hook, exec_file_attach): Constify.
4584 * main.c (captured_main): Use catch_command_errors_const.
4585
8981c758
TT
45862014-07-30 Tom Tromey <tromey@redhat.com>
4587
4588 * target.c (open_target): New function.
4589 (add_target_with_completer, add_deprecated_target_alias): Use
4590 set_cmd_sfunc, set_cmd_context.
4591 (debug_to_open): Remove.
4592 (setup_target_debug): Update.
4593
a1c7835a
YQ
45942014-07-30 Yao Qi <yao@codesourcery.com>
4595
4596 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4597 comments.
4598 * parse.c (exp_iterate): Update comments.
4599
976411d6
GB
46002014-07-30 Gary Benson <gbenson@redhat.com>
4601
4602 * common/common-defs.h: New file.
4603 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4604 * defs.h: Include common-defs.h.
4605 Do not include config.h or build-gnulib/config.h.
4606
5d4848a4
GB
46072014-07-30 Gary Benson <gbenson@redhat.com>
4608
4609 * common/common-utils.h: Do not include config.h.
4610 * nat/linux-btrace.h: Likewise.
4611
d41f6d8e
GB
46122014-07-30 Gary Benson <gbenson@redhat.com>
4613
4614 * btrace.c: Include defs.h.
4615 * common/ptid.c: Include defs.h or server.h as appropriate.
4616 * nat/mips-linux-watch.c: Likewise.
4617
84202f9c
TT
46182014-07-29 Tom Tromey <tromey@redhat.com>
4619
4620 * target.c (target_is_pushed): Simplify.
4621
2530441c
JB
46222014-07-29 Joel Brobecker <brobecker@adacore.com>
4623
4624 GDB 7.8 released.
4625
7e09a223
YQ
46262014-07-29 Yao Qi <yao@codesourcery.com>
4627
4628 PR gdb/17206
4629 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4630
7ebdbe92
DE
46312014-07-28 Doug Evans <xdje42@gmail.com>
4632
4633 PR guile/17203
4634 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4635 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4636 parameters.
4637
f347ffc9
WN
46382014-07-28 Will Newton <will.newton@linaro.org>
4639
4640 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4641 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4642 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4643 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4644 (THUMB2_EABI_SYSCALL): Likewise.
4645 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4646 struct tramp_frame.
4647 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4648 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4649
37c5f1f7
DE
46502014-07-27 Doug Evans <xdje42@gmail.com>
4651
4652 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4653
0c3abbc7
DE
46542014-07-27 Doug Evans <xdje42@gmail.com>
4655
4656 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4657
e76c5d17
DE
46582014-07-26 Ludovic Courtès <ludo@gnu.org>
4659 Doug Evans <xdje42@gmail.com>
4660
4661 PR guile/17146
4662 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4663 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4664 * configure.ac: Try to use guild to compile an scm file, if it fails
4665 then disable guile support.
4666 * configure: Regenerate.
4667 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4668 GUILE_FILE_LIST.
4669 (GUILE_COMPILED_FILES): New variable.
4670 (GUILE_FILES) Update.
4671 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4672 (stamp-guile): Compile scm files.
4673 * guile/guile.c (boot_guile_support): New function.
4674 (standard_throw_args_p): New function.
4675 (print_standard_throw_error, print_throw_error): New functions.
4676 (handle_boot_error): New function.
4677 (initialize_scheme_side): Rewrite to call boot_guile_support.
4678 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4679 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4680
186fcde0
DE
46812014-07-26 Ludovic Courtès <ludo@gnu.org>
4682 Doug Evans <xdje42@gmail.com>
4683
4684 PR guile/17146
4685 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4686 * guile/lib/gdb/support.scm: New file.
4687 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4688 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4689 All uses updated.
4690 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4691 All uses updated.
4692 (%assert-type): Ditto, and renamed to assert-type.
4693 (%exception-print-style): Delete.
4694
4df42755
DE
46952014-07-26 Doug Evans <xdje42@gmail.com>
4696
4697 PR build/17105
4698 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4699 * configure: Regenerate.
4700 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4701 PYTHON_FILES.
4702 (PYTHON_FILES): New variable.
4703 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4704 (GUILE_FILES): New variable.
4705 (stamp-python, install-python, uninstall-python): Handle empty
4706 file list.
4707 (stamp-guile, install-guile, uninstall-guile): Ditto.
4708
ee7333ae
DE
47092014-07-26 Doug Evans <xdje42@gmail.com>
4710
4711 PR guile/17177
4712 * guile/lib/gdb.scm (pretty-printers): Export.
4713 (set-pretty-printers!): Export.
4714 * guile/lib/gdb/printing.scm (gdb module): Update.
4715 (prepend-pretty-printer!, append-pretty-printer!): Update.
4716 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4717 (pretty_printer_list_var): Delete.
4718 (pretty_printer_list): New static global.
4719 (gdbscm_pretty_printers): New function.
4720 (gdbscm_set_pretty_printers_x): New function.
4721 (ppscm_find_pretty_printer_from_gdb): Update.
4722 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4723 (gdbscm_initialize_pretty_printers): Update.
4724
74edf516
DE
47252014-07-26 Doug Evans <xdje42@gmail.com>
4726
4727 PR 17185
4728 * configure.ac: Add check for header gc/gc.h.
4729 Add check for function setenv.
4730 * configure: Regenerate.
4731 * config.in: Regenerate.
4732 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4733
d54398a7
MR
47342014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4735
4736 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4737 variation in gdbarch matching.
4738
ab16fce8
TT
47392014-07-25 Tom Tromey <tromey@redhat.com>
4740
4741 * exec.c (using_exec_ops): Remove.
4742 (exec_close_1): Update. Remove extraneous block, reindent.
4743 (add_target_sections): Use target_is_pushed.
4744
88056fbb
PA
47452014-07-25 Pedro Alves <palves@redhat.com>
4746
4747 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4748 * monitor.c (monitor_create_inferior): Likewise.
4749 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4750 * remote-sim.c (gdbsim_create_inferior): Likewise.
4751 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4752 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4753 * windows-nat.c (do_initial_windows_stuff): Likewise.
4754
70509625
PA
47552014-07-25 Pedro Alves <palves@redhat.com>
4756
4757 * NEWS: Mention signal passing and "signal" command changes.
4758 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4759 comment.
4760 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4761 call.
4762 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4763 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4764 (jump_command): Adjust clear_proceed_status call.
4765 (signal_command): Warn if other thread that are resumed have
4766 signals that will be delivered. Adjust clear_proceed_status call.
4767 (until_next_command, finish_command)
4768 (proceed_after_attach_callback, attach_command_post_wait)
4769 (attach_command): Adjust clear_proceed_status call.
4770 * infrun.c (proceed_after_vfork_done): Likewise.
4771 (proceed_after_attach_callback): Adjust comment.
4772 (clear_proceed_status_thread): Clear stop_signal if not in pass
4773 state.
4774 (clear_proceed_status_callback): Delete.
4775 (clear_proceed_status): New 'step' parameter. Only clear the
4776 proceed status of threads the command being prepared is about to
4777 resume.
4778 (proceed): If passed in an explicit signal, override stop_signal
4779 with it. Don't pass the last stop signal to the thread we're
4780 resuming.
4781 (init_wait_for_inferior): Adjust clear_proceed_status call.
4782 (switch_back_to_stepped_thread): Clear the signal if it should not
4783 be passed.
4784 * infrun.h (clear_proceed_status): New 'step' parameter.
4785 (user_visible_resume_ptid): Add comment.
4786 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4787 signal is in pass state.
4788 * remote.c (append_pending_thread_resumptions): Likewise.
4789 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4790
d8be2939
TT
47912014-07-25 Tom Tromey <tromey@redhat.com>
4792
4793 * target.h (target_stopped_data_address)
4794 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4795 parentheses.
4796
7d0d9d2b
PL
47972014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4798
4799 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4800 comments.
4801 (avr_pointer_to_address): Likewise.
4802
e9e7f724
TT
48032014-07-24 Tom Tromey <tromey@redhat.com>
4804
4805 * monitor.c (compile_pattern): Update.
4806 * target.h (struct target_ops) <to_shortname, to_longname,
4807 to_doc>: Now const.
4808
1947513d
TT
48092014-07-24 Tom Tromey <tromey@redhat.com>
4810
4811 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4812 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4813 (add_info_alias, add_com): Make "doc" const.
4814 (print_doc_line): Make "str" const.
4815 (delete_cmd): Update.
4816 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4817 (print_doc_line): Update.
4818 * cli/cli-script.c (document_command): Update.
4819 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4820 (add_com, add_info, add_info_alias): Update.
4821 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4822 * python/py-cmd.c (cmdpy_destroyer): Update.
4823
64e61d29
TT
48242014-07-24 Tom Tromey <tromey@redhat.com>
4825
4826 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4827 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4828 (help_cmd_list): Constify.
4829 (lookup_cmd): Update.
4830 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4831 const.
4832 (help_cmd_list, apropos_cmd): Update.
4833 * cli/cli-script.c (show_user): Update.
4834 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4835 * cli/cli-setshow.h (cmd_show_list): Update.
4836 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4837 (cmd_show_list): Update.
4838 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4839 * python/py-cmd.c (cmdpy_destroyer): Update.
4840
429e55ea
TT
48412014-07-24 Tom Tromey <tromey@redhat.com>
4842
4843 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4844 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4845 const.
4846 * command.h (deprecate_cmd): Update.
4847 * maint.c (maintenance_do_deprecate): Add casts.
4848
64669f3b
TT
48492014-07-24 Tom Tromey <tromey@redhat.com>
4850
4851 * cli/cli-decode.c (help_cmd): Make parameter "const".
4852 * cli/cli-decode.h (help_cmd): Update.
4853
d3d3328b
TT
48542014-07-24 Tom Tromey <tromey@redhat.com>
4855
4856 * stack.c (up_silently_base, down_silently_base): Make argument
4857 const.
4858
414842dc
TT
48592014-07-24 Tom Tromey <tromey@redhat.com>
4860
4861 * solib.c (solib_add): Make "pattern" const.
4862 * solib.h (solib_add): Update.
4863
baa336ce
TT
48642014-07-24 Tom Tromey <tromey@redhat.com>
4865
4866 * remote.c (remote_serial_open, print_packet, putpkt)
4867 (putpkt_binary): Constify.
4868 * remote.h (putpkt): Update.
4869
5a19e2d0
TT
48702014-07-24 Tom Tromey <tromey@redhat.com>
4871
4872 * monitor.c (monitor_open): Make "args" const.
4873 * monitor.h (monitor_open): Update.
4874
fc4baa5e
TT
48752014-07-24 Tom Tromey <tromey@redhat.com>
4876
4877 * maint.c (match_bfd_flags): Make "string" const.
4878 (print_bfd_section_info): Remove casts.
4879 (print_objfile_section_info): Make "string" const.
4880
0d5f0dbe
TT
48812014-07-24 Tom Tromey <tromey@redhat.com>
4882
4883 * inf-child.c (inf_child_open_target): Make "arg" const.
4884 * inf-child.h (inf_child_open_target): Update.
4885
41c77899
TT
48862014-07-24 Tom Tromey <tromey@redhat.com>
4887
4888 * environ.c (unset_in_environ): Make "var" const.
4889 * environ.h (unset_in_environ): Update.
4890
93db0d79
TT
48912014-07-24 Tom Tromey <tromey@redhat.com>
4892
4893 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4894 Make "cmd" const.
4895 (scan_filename_with_cleanup): Likewise.
4896 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4897 Make arguments const.
4898 (restore_command): Update.
4899
36d6eb95
PA
49002014-07-24 Pedro Alves <palves@redhat.com>
4901
4902 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4903
8009206a
TT
49042014-07-24 Tom Tromey <tromey@redhat.com>
4905 Gary Benson <gbenson@redhat.com>
4906
4907 * nat/linux-ptrace.c (additional_flags): New global.
4908 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4909 additional_flags; don't check GDBSERVER.
4910 (linux_ptrace_set_additional_flags): New function.
4911 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4912 Declare.
4913 * linux-nat.c (_initialize_linux_nat): Call
4914 linux_ptrace_set_additional_flags.
4915
a7068b60
TT
49162014-07-24 Tom Tromey <tromey@redhat.com>
4917
4918 * make-target-delegates (munge_type, write_debugmethod): New
4919 functions.
4920 (debug_names): New global.
4921 ($TARGET_DEBUG_PRINTER): New global.
4922 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4923 name.
4924 Write debug methods. Generate init_debug_target.
4925 * target-debug.h: New file.
4926 * target-delegates.c: Rebuild.
4927 * target.c: Include target-debug.h.
4928 (debug_target): Hoist definition.
4929 (target_kill, target_get_section_table, target_memory_map)
4930 (target_flash_erase, target_flash_done, target_detach)
4931 (target_disconnect, target_wait, target_resume)
4932 (target_pass_signals, target_program_signals, target_follow_fork)
4933 (target_mourn_inferior, target_search_memory)
4934 (target_thread_address_space, target_close)
4935 (target_find_new_threads, target_core_of_thread)
4936 (target_verify_memory, target_insert_mask_watchpoint)
4937 (target_remove_mask_watchpoint): Remove targetdebug code.
4938 (debug_to_post_attach, debug_to_prepare_to_store)
4939 (debug_to_files_info, debug_to_insert_breakpoint)
4940 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4941 (debug_to_region_ok_for_hw_watchpoint)
4942 (debug_to_can_accel_watchpoint_condition)
4943 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4944 (debug_to_watchpoint_addr_within_range)
4945 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4946 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4947 (debug_to_terminal_init, debug_to_terminal_inferior)
4948 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4949 (debug_to_terminal_save_ours, debug_to_terminal_info)
4950 (debug_to_load, debug_to_post_startup_inferior)
4951 (debug_to_insert_fork_catchpoint)
4952 (debug_to_remove_fork_catchpoint)
4953 (debug_to_insert_vfork_catchpoint)
4954 (debug_to_remove_vfork_catchpoint)
4955 (debug_to_insert_exec_catchpoint)
4956 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4957 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4958 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4959 (setup_target_debug): Call init_debug_target.
4960 * target.h (TARGET_DEBUG_PRINTER): New macro.
4961 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4962 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4963
2c51604d
GB
49642014-07-24 Gary Benson <gbenson@redhat.com>
4965
4966 * exceptions.h (throw_vfatal): Renamed to...
4967 (throw_vquit): New declaration.
4968 (throw_quit): Likewise.
4969 * exceptions.c (throw_vfatal): Renamed to...
4970 (throw_vquit): New function.
4971 (throw_quit): Likewise.
4972 (throw_error): Call throw_verror rather than throw_it.
4973 * utils.h (vfatal): Removed.
4974 (fatal): Likewise.
4975 * utils.c (vfatal): Removed.
4976 (fatal): Likewise.
4977 (internal_verror): Replaced call to fatal with call to throw_quit.
4978 (quit): Replaced calls to fatal with calls to throw_quit.
4979
34211963
ME
49802014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4981
4982 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4983 target_read_code.
4984
a52b4d3e
ME
49852014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4986
4987 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4988 less than zero in conditional expression.
4989
a8bdc56b
TT
49902014-07-23 Tom Tromey <tromey@redhat.com>
4991
4992 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4993 ($INTRO_PART): Don't match whitespace.
4994 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4995 argument matching.
4996 ($METHOD): Add $METHOD_TRAILER.
4997 (trim): Rewrite.
4998 (scan_target_h): New sub.
4999 Change main loop not to collect state.
5000 * target-delegates.c: Rebuild.
5001
91b52240
GB
50022014-07-23 Gary Benson <gbenson@redhat.com>
5003
5004 * cp-support.c (gdb_demangle): Fix build on systems without
5005 sigaltstack.
5006
45326f6f
JK
50072014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5008
5009 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5010 for reference entry value target data value.
5011
e214cf6c
JK
50122014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5013
5014 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5015 value_available_contents_eq.
5016
bddbbedd
PA
50172014-07-22 Pedro Alves <palves@redhat.com>
5018
5019 * value.c (allocate_optimized_out_value): Don't mark value as
5020 non-lazy.
5021
45c71484
JW
50222014-07-22 Jiong Wang <jiong.wang@arm.com>
5023
5024 * MAINTAINERS (Write After Approval): Update my email address.
5025
9597b22a
DE
50262014-07-20 Doug Evans <dje@google.com>
5027
5028 PR server/17147
5029 * remote.c (putpkt_binary): Add text to error message.
5030
91101fe5
YQ
50312014-07-20 Yao Qi <yao@codesourcery.com>
5032
5033 * eval.c: Remove "Chill" from comments.
5034 * gdbtypes.h: Likewise.
5035 * symtab.h: Likewise.
5036
c9402c95
YQ
50372014-07-20 Yao Qi <yao@codesourcery.com>
5038
5039 * std-operator.def: Update comments to TERNOP_SLICE.
5040
ae8fddda
YQ
50412014-07-20 Yao Qi <yao@codesourcery.com>
5042
5043 * std-operator.def: Remove BINOP_RANGE.
5044 * breakpoint.c (watchpoint_exp_is_const): Update.
5045 * expprint.c (dump_subexp_body_standard): Likewise.
5046 * eval.c (init_array_element): Remove dead code.
5047 (evaluate_subexp_standard): Likewise.
5048
9c816640
YQ
50492014-07-20 Yao Qi <yao@codesourcery.com>
5050
5051 * std-operator.def: Remove BINOP_IN.
5052 * breakpoint.c (watchpoint_exp_is_const): Update.
5053 * eval.c (evaluate_subexp_standard): Likewise.
5054 * expprint.c (dump_subexp_body_standard): Likewise.
5055
164224e9
ME
50562014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5057
5058 * microblaze-tdep.c (microblaze_register_names): Add
5059 the rshr and rslr register names.
5060 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5061 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5062 Use of tdesc_numbered_register. Use of
5063 microblaze_register_g_packet_guesses. Use of
5064 tdesc_use_registers. Use of set_gdbarch_register_type.
5065 (microblaze_register_g_packet_guesses): New.
5066 * microblaze-tdep.h (microblaze_reg_num): Add
5067 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5068 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5069 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5070 * features/microblaze-core.xml: New file.
5071 * features/microblaze-stack-protect.xml: New file.
5072 * features/microblaze-with-stack-protect.c: New file.
5073 * features/microblaze-with-stack-protect.xml: New file.
5074 * features/microblaze.xml: New file.
5075 * features/microblaze.c: New file.
5076 * features/Makefile (microblaze-with-stack-protect): Add
5077 microblaze-with-stack-protect microblaze and microblaze-expedite.
5078 * regformats/microblaze-with-stack-protect.dat: New file.
5079 * regformats/microblaze.dat: New file.
5080 * doc/gdb.texinfo (MicroBlaze Features): Added.
5081
e8b2341c
TT
50822014-07-18 Tom Tromey <tromey@redhat.com>
5083
5084 * exec.c (exec_ops): Now static.
5085 * exec.h (exec_ops): Don't declare.
5086
44e89118
TT
50872014-07-18 Tom Tromey <tromey@redhat.com>
5088
5089 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5090 to find_target_beneath.
5091 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5092 find_target_beneath.
5093 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5094
b0ed115f
TT
50952014-07-18 Tom Tromey <tromey@redhat.com>
5096
5097 PR gdb/17130:
5098 * utils.c (quit): Use target_supports_terminal_ours.
5099 * target.h (target_supports_terminal_ours): Declare.
5100 * target.c (target_supports_delete_record): Don't check
5101 to_delete_record against NULL.
5102 (target_supports_terminal_ours): New function.
5103
e75fdfca
TT
51042014-07-18 Tom Tromey <tromey@redhat.com>
5105
5106 PR gdb/17130:
5107 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5108 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5109 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5110 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5111 * windows-nat.c (windows_xfer_partial): Always delegate.
5112 * record-btrace.c (record_btrace_xfer_partial): Simplify
5113 delegation.
5114 (record_btrace_fetch_registers, record_btrace_store_registers)
5115 (record_btrace_prepare_to_store, record_btrace_resume)
5116 (record_btrace_wait, record_btrace_find_new_threads)
5117 (record_btrace_thread_alive): Likewise.
5118 * procfs.c (procfs_xfer_partial): Always delegate.
5119 * corelow.c (core_xfer_partial): Always delegate.
5120 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5121
83814951
TT
51222014-07-18 Tom Tromey <tromey@redhat.com>
5123
5124 * exec.c (exec_make_note_section): Move earlier.
5125
b8b8facf
DE
51262014-07-17 Doug Evans <dje@google.com>
5127
74b49205 5128 PR gdb/17170
b8b8facf
DE
5129 * maint.c (count_symtabs_and_blocks): Handle NULL
5130 current_program_space.
5131 (report_command_stats): Check global enabled flag in addition to
5132 recorded enabled flag.
5133 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5134
69ff6be5
PA
51352014-07-16 Pedro Alves <palves@redhat.com>
5136
5137 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5138
252db1b5
TT
51392014-07-16 Tom Tromey <tromey@redhat.com>
5140
5141 * target.h (struct target_ops) <to_delete_record>: Reformat
5142 comment.
5143
a432721e
TT
51442014-07-16 Tom Tromey <tromey@redhat.com>
5145
5146 * target-delegates.c: Rebuild.
5147
487d9753
PL
51482014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5149
5150 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5151 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5152 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5153 (avr_pointer_to_address): Likewise.
5154 (avr_address_class_type_flags): New function.
5155 (avr_address_class_type_flags_to_name): Likewise.
5156 (avr_address_class_name_to_type_flags): Likewise.
5157 (avr_gdbarch_init): Set address_class_type_flags,
5158 address_class_type_flags_to_name and
5159 address_class_name_to_type_flags.
5160
57745c90
PA
51612014-07-15 Pedro Alves <palves@redhat.com>
5162
5163 * linux-nat.c (kill_callback): Save errno and work with saved
5164 copy.
5165
2d40be18
SM
51662014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5167
5168 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5169
572f6555
EBM
51702014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5171
5172 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5173 breakpoint support correctly.
5174
cc1c52ad
PA
51752014-07-14 Pedro Alves <palves@redhat.com>
5176
5177 * utils.c (prompt_for_continue): Call target_terminal_ours.
5178
1e973570
PA
51792014-07-14 Pedro Alves <palves@redhat.com>
5180
5181 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5182 catch_errors. Don't re-enable stdin or notify observers where,
5183 and rethrow error.
5184 (fetch_inferior_event_wrapper): Delete.
5185
93d6eb10
PA
51862014-07-14 Pedro Alves <palves@redhat.com>
5187
5188 PR gdb/17072
5189 * top.c: Include "inf-loop.h".
5190 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5191 field.
5192 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5193 was async before.
5194 (gdb_readline_wrapper): Store whether the target is async, and
5195 make it sync.
5196
0017922d
PA
51972014-07-14 Pedro Alves <palves@redhat.com>
5198
5199 PR gdb/17072
5200 * top.c (gdb_readline_wrapper_line): Tweak comment.
5201 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5202 the input handler callback.
5203
94696ad3
PA
52042014-07-14 Pedro Alves <palves@redhat.com>
5205
5206 PR gdb/17072
5207 * main.c: Include event-top.h.
5208 (handle_command_errors): New function.
5209 (catch_command_errors, catch_command_errors_const): Use it.
5210
9d1e69a2
PA
52112014-07-14 Pedro Alves <palves@redhat.com>
5212
5213 * exceptions.c (catch_command_errors, catch_command_errors_const):
5214 Moved to main.c.
5215 * exceptions.h (catch_command_errors_ftype)
5216 (catch_command_errors_const_ftype): Moved to main.c.
5217 (catch_command_errors, catch_command_errors_const): Delete
5218 declarations.
5219 * main.c (catch_command_errors_ftype)
5220 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5221 (catch_command_errors, catch_command_errors_const)): Moved here
5222 from exceptions.c and make static.
5223
feefc97b
PA
52242014-07-14 Pedro Alves <palves@redhat.com>
5225
5226 * exceptions.c (print_any_exception): Delete.
5227 (catch_exceptions_with_msg): Use exception_print instead of
5228 print_any_exception.
5229 (catch_errors): Use exception_fprintf instead of
5230 print_any_exception.
5231 (catch_command_errors, catch_command_errors_const): Use
5232 exception_print instead of print_any_exception.
5233
c933f875
PA
52342014-07-14 Pedro Alves <palves@redhat.com>
5235
5236 * infcall.c (run_inferior_call): Set 'sync_execution' while
5237 running the inferior call.
5238
feb6f816
PA
52392014-07-14 Pedro Alves <palves@redhat.com>
5240
5241 * value.c (value_contents_equal): Delete function.
5242 * value.h (value_contents_equal): Delete declaration.
5243
d98b7a16
TT
52442014-07-14 Tom Tromey <tromey@redhat.com>
5245
5246 PR exp/17106:
5247 * gdbtypes.c (is_dynamic_type_internal): New function, from
5248 is_dynamic_type.
5249 (is_dynamic_type): Rewrite.
5250 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5251 (resolve_dynamic_struct): Likewise.
5252 (resolve_dynamic_type_internal): New function, from
5253 resolve_dynamic_type.
5254 (resolve_dynamic_type): Rewrite.
5255
548740d6
TT
52562014-07-14 Tom Tromey <tromey@redhat.com>
5257
5258 * target.c (target_require_runnable): Also check record_stratum.
5259 Update comment.
5260
808f7ab1
YQ
52612014-07-11 Yao Qi <yao@codesourcery.com>
5262
5263 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5264 thumb_instruction_restores_sp return true.
5265
540314bd
YQ
52662014-07-11 Yao Qi <yao@codesourcery.com>
5267
5268 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5269 (thumb_in_function_epilogue_p): Call
5270 thumb_instruction_restores_sp.
5271
1db01f22
YQ
52722014-07-11 Yao Qi <yao@codesourcery.com>
5273
5274 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5275 'add sp, #imm'.
5276 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5277
3116063b
GB
52782014-07-11 Gary Benson <gbenson@redhat.com>
5279
5280 * amd64-linux-nat.c (gdbcore.h): Remove include.
5281 (regset.h): Likewise.
5282 (nat/linux-btrace.h): Likewise.
5283 (btrace.h): Likewise.
5284 (gdb_assert.h): Likewise.
5285 (string.h): Likewise.
5286 (sys/uio.h): Likewise.
5287 (sys/debugreg.h): Likewise.
5288 (sys/syscall.h): Likewise.
5289 (sys/procfs.h): Likewise.
5290 (sys/user.h): Likewise.
5291 (asm/ptrace.h): Likewise.
5292 (i386-nat.h): Likewise.
5293 * i386-linux-nat.c (i386-nat.h): Likewise.
5294 (regset.h): Likewise.
5295 (target.h): Likewise.
5296 (linux-nat.h): Likewise.
5297 (nat/linux-btrace.h): Likewise.
5298 (btrace.h): Likewise.
5299 (gdb_assert.h): Likewise.
5300 (string.h): Likewise.
5301 (sys/uio.h): Likewise.
5302 (sys/user.h): Likewise.
5303 (sys/procfs.h): Likewise.
5304 (sys/reg.h): Likewise.
5305 (sys/debugreg.h): Likewise.
5306 (ORIG_EAX): Remove definition.
5307
040baaf6
GB
53082014-07-11 Gary Benson <gbenson@redhat.com>
5309
5310 * i386-linux-nat.h: New file.
5311 * x86-linux-nat.h: Likewise.
5312 * x86-linux-nat.c: Likewise.
5313 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5314 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5315 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5316 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5317 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5318 (PTRACE_SETREGSET): Likewise.
5319 (arch_lwp_info): Now in x86-linux-nat.c.
5320 (have_ptrace_getregset): Now in x86-linux-nat.h.
5321 (x86_linux_dr_get): Now in x86-linux-nat.c.
5322 (x86_linux_dr_set): Likewise.
5323 (x86_linux_dr_get_addr): Likewise.
5324 (x86_linux_dr_get_control): Likewise.
5325 (x86_linux_dr_get_status): Likewise.
5326 (update_debug_registers_callback): Likewise.
5327 (x86_linux_dr_set_control): Likewise.
5328 (x86_linux_dr_set_addr): Likewise.
5329 (x86_linux_prepare_to_resume): Likewise.
5330 (x86_linux_new_thread): Likewise.
5331 (x86_linux_new_fork): Likewise.
5332 (x86_linux_get_thread_area): Likewise.
5333 (super_post_startup_inferior): Likewise.
5334 (x86_linux_child_post_startup_inferior): Likewise.
5335 (AMD64_LINUX_USER64_CS): Likewise.
5336 (AMD64_LINUX_X32_DS): Likewise.
5337 (x86_linux_read_description): Likewise.
5338 (x86_linux_enable_btrace): Likewise.
5339 (x86_linux_disable_btrace): Likewise.
5340 (x86_linux_teardown_btrace): Likewise.
5341 (x86_linux_read_btrace): Likewise.
5342 (x86_linux_create_target): Likewise.
5343 (x86_linux_add_target): Likewise.
5344 * i386-linux-nat.c (x86-linux-nat.h): New include.
5345 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5346 (PTRACE_SETREGSET): Likewise.
5347 (arch_lwp_info): Now in x86-linux-nat.c.
5348 (have_ptrace_getregset): Now in x86-linux-nat.h.
5349 (x86_linux_dr_get): Now in x86-linux-nat.c.
5350 (x86_linux_dr_set): Likewise.
5351 (x86_linux_dr_get_addr): Likewise.
5352 (x86_linux_dr_get_control): Likewise.
5353 (x86_linux_dr_get_status): Likewise.
5354 (update_debug_registers_callback): Likewise.
5355 (x86_linux_dr_set_control): Likewise.
5356 (x86_linux_dr_set_addr): Likewise.
5357 (x86_linux_prepare_to_resume): Likewise.
5358 (x86_linux_new_thread): Likewise.
5359 (x86_linux_new_fork): Likewise.
5360 (x86_linux_get_thread_area): Likewise.
5361 (super_post_startup_inferior): Likewise.
5362 (x86_linux_child_post_startup_inferior): Likewise.
5363 (AMD64_LINUX_USER64_CS): Likewise.
5364 (AMD64_LINUX_X32_DS): Likewise.
5365 (x86_linux_read_description): Likewise.
5366 (x86_linux_enable_btrace): Likewise.
5367 (x86_linux_disable_btrace): Likewise.
5368 (x86_linux_teardown_btrace): Likewise.
5369 (x86_linux_read_btrace): Likewise.
5370 (x86_linux_create_target): Likewise.
5371 (x86_linux_add_target): Likewise.
5372
1aa7e42c
GB
53732014-07-11 Gary Benson <gbenson@redhat.com>
5374
5375 * amd64-linux-nat.c: Comment and whitespace changes.
5376 * i386-linux-nat.c: Comment and whitespace changes.
5377
c1e246a0
GB
53782014-07-11 Gary Benson <gbenson@redhat.com>
5379
5380 * amd64-linux-nat.c (x86_linux_create_target): New function.
5381 (x86_linux_add_target): Likewise.
5382 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5383 * i386-linux-nat.c (x86_linux_create_target): New function.
5384 (x86_linux_add_target): Likewise.
5385 (_initialize_i386_linux_nat): Delegate to the above new functions.
5386
8c420b8d
GB
53872014-07-11 Gary Benson <gbenson@redhat.com>
5388
5389 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5390 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5391 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5392 (ps_get_thread_area): Delegate to the above.
5393
cb1da100
GB
53942014-07-11 Gary Benson <gbenson@redhat.com>
5395
5396 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5397 x86_linux_read_description. All uses updated. amd64-specific
5398 code conditionalized. Conditionalized i386-specific code added.
5399 Redundant cast removed.
5400 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5401 x86_linux_read_description. All uses updated. i386-specific
5402 code conditionalized. Conditionalized amd64-specific code added.
5403 One sizeof replaced with the actual type it is describing.
5404
2acf3cd0
GB
54052014-07-11 Gary Benson <gbenson@redhat.com>
5406
5407 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5408 x86_linux_dr_get. All uses updated.
5409 (amd64_linux_dr_set): Renamed to
5410 x86_linux_dr_set. All uses updated.
5411 (amd64_linux_dr_get_addr): Renamed to
5412 x86_linux_dr_get_addr. All uses updated.
5413 (amd64_linux_dr_get_control): Renamed to
5414 x86_linux_dr_get_control. All uses updated.
5415 (amd64_linux_dr_get_status): Renamed to
5416 x86_linux_dr_get_status. All uses updated.
5417 (amd64_linux_dr_set_control): Renamed to
5418 x86_linux_dr_set_control. All uses updated.
5419 (amd64_linux_dr_set_addr): Renamed to
5420 x86_linux_dr_set_addr. All uses updated.
5421 (amd64_linux_prepare_to_resume): Renamed to
5422 x86_linux_prepare_to_resume. All uses updated.
5423 (amd64_linux_new_thread): Renamed to
5424 x86_linux_new_thread. All uses updated.
5425 (amd64_linux_new_fork): Renamed to
5426 x86_linux_new_fork. All uses updated.
5427 (amd64_linux_child_post_startup_inferior): Renamed to
5428 x86_linux_child_post_startup_inferior. All uses updated.
5429 (amd64_linux_enable_btrace): Renamed to
5430 x86_linux_enable_btrace. All uses updated.
5431 (amd64_linux_disable_btrace): Renamed to
5432 x86_linux_disable_btrace. All uses updated.
5433 (amd64_linux_teardown_btrace): Renamed to
5434 x86_linux_teardown_btrace. All uses updated.
5435 (amd64_linux_read_btrace): Renamed to
5436 x86_linux_read_btrace. All uses updated.
5437 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5438 x86_linux_dr_get. All uses updated.
5439 (i386_linux_dr_set): Renamed to
5440 x86_linux_dr_set. All uses updated.
5441 (i386_linux_dr_get_addr): Renamed to
5442 x86_linux_dr_get_addr. All uses updated.
5443 (i386_linux_dr_get_control): Renamed to
5444 x86_linux_dr_get_control. All uses updated.
5445 (i386_linux_dr_get_status): Renamed to
5446 x86_linux_dr_get_status. All uses updated.
5447 (i386_linux_dr_set_control): Renamed to
5448 x86_linux_dr_set_control. All uses updated.
5449 (i386_linux_dr_set_addr): Renamed to
5450 x86_linux_dr_set_addr. All uses updated.
5451 (i386_linux_prepare_to_resume): Renamed to
5452 x86_linux_prepare_to_resume. All uses updated.
5453 (i386_linux_new_thread): Renamed to
5454 x86_linux_new_thread. All uses updated.
5455 (i386_linux_new_fork): Renamed to
5456 x86_linux_new_fork. All uses updated.
5457 (i386_linux_child_post_startup_inferior): Renamed to
5458 x86_linux_child_post_startup_inferior. All uses updated.
5459 (i386_linux_enable_btrace): Renamed to
5460 x86_linux_enable_btrace. All uses updated.
5461 (i386_linux_disable_btrace): Renamed to
5462 x86_linux_disable_btrace. All uses updated.
5463 (i386_linux_teardown_btrace): Renamed to
5464 x86_linux_teardown_btrace. All uses updated.
5465 (i386_linux_read_btrace): Renamed to
5466 x86_linux_read_btrace. All uses updated.
5467
b9c1d481
AS
54682014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5469
5470 * remote.c (extended_remote_post_attach): New function.
5471 (init_extended_remote_ops): Install it as to_post_attach method.
5472
7180e04a
PA
54732014-07-09 Pedro Alves <palves@redhat.com>
5474
5475 * infcmd.c (attach_command_post_wait): Don't call
5476 target_terminal_inferior here.
5477 (attach_command): Call it here instead.
5478
9a9a7608
AB
54792014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5480
5481 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5482 field.
5483 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5484 from varobj.c, with additional checks.
5485 (c_varobj_ops): Fill in is_path_expr_parent field.
5486 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5487 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5488 field.
5489 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5490 ops method.
5491 (varobj_default_is_path_expr_parent): New function.
5492 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5493 (varobj_default_is_path_expr_parent): Declare new function.
5494
1f267ae3
MM
54952014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5496
5497 * infcmd.c (finish_backward): Turn internal error into normal error.
5498
b2ee242b
PA
54992014-07-07 Pedro Alves <palves@redhat.com>
5500
8a869bca 5501 PR gdb/17096
b2ee242b
PA
5502 * remote.c (async_handle_remote_sigint)
5503 (async_handle_remote_sigint_twice): Call
5504 gdb_call_async_signal_handler instead of
5505 mark_async_signal_handler.
5506
38e229b2
TT
55072014-07-07 Tom Tromey <tromey@redhat.com>
5508
5509 * target-delegates.c: Rebuild.
5510 * target.c (target_info_record): Remove.
5511 * record.c (info_record_command): Unconditionally call
5512 to_info_record.
5513 * target.h (struct target_ops) <to_info_record>: Use
5514 TARGET_DEFAULT_IGNORE.
5515 (target_info_record): Remove.
5516
f0f9ff95
TT
55172014-07-07 Tom Tromey <tromey@redhat.com>
5518
5519 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5520 TARGET_DEFAULT_NORETURN.
5521 * target.c (generic_tls_error): New function.
5522 (target_translate_tls_address): Don't search target stack.
5523 * target-delegates.c: Rebuild.
5524 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5525 stack.
5526 * linux-thread-db.c (thread_db_get_thread_local_address):
5527 Unconditionally call beneath target.
5528
4a5be5ee
MK
55292014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5530
5531 * cli/cli-logging.c (pop_output_files): Assign targerr to
5532 gdb_stdtargerr.
5533
92c3b204
AB
55342014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5535
5536 * MAINTAINERS (Write After Approval): Update my email address.
5537
9b11e3a7
GB
55382014-07-02 Gary Benson <gbenson@redhat.com>
5539
5540 * proc-service.c (ps_xfer_memory): Update comment.
5541 (ps_pstop): Remove unused function.
5542 (ps_pcontinue): Likewise.
5543 (ps_lstop): Likewise.
5544 (ps_lcontinue): Likewise.
5545 (ps_lgetxregsize): Likewise.
5546 (ps_lgetxregs): Likewise.
5547 (ps_lsetxregs): Likewise.
5548 (ps_plog): Likewise.
5549 (ps_ptread): Likewise.
5550 (ps_ptwrite): Likewise.
5551
cf363f18
MW
55522014-07-01 Mark Wielaard <mjw@redhat.com>
5553
5554 * dwarf2read.c (add_array_cv_type): New function.
5555 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5556 (read_tag_volatile_type): Likewise.
5557
82ae6c8d
TT
55582014-07-01 Tom Tromey <tromey@redhat.com>
5559
5560 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5561 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5562 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5563 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5564 * command.h (cmd_cfunc_ftype): Move earlier.
5565 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5566 (add_com, add_info): Use cmd_cfunc_ftype.
5567
96142726
TT
55682014-06-30 Tom Tromey <tromey@redhat.com>
5569
5570 * symtab.c (operator_chars): Make parameters and return type
5571 const.
5572 (file_matches): Make "files" const.
5573 (struct search_symbols_data) <files>: Now const.
5574 (search_symbols): Make "regexp" and "files" parameters const.
5575 Update.
5576 (symtab_symbol_info): Remove cast.
5577 (rbreak_command): Update.
5578 * symtab.h (search_symbols): Update.
5579
b67a2c6f
YQ
55802014-06-27 Yao Qi <yao@codesourcery.com>
5581
5582 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5583 Change parameter type to 'struct thread_info *'. Caller
5584 updated.
5585 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5586 Update declaration.
5587 * dummy-frame.c (struct dummy_frame_id): New.
5588 (dummy_frame_id_eq): New function.
5589 (struct dummy_frame) <id>: Change its type to 'struct
5590 dummy_frame_id'.
5591 (dummy_frame_push): Add parameter ptid and save it in
5592 dummy_frame_id.
5593 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5594 inferior_ptid.
5595 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5596 to inferior_ptid.
5597 (lookup_dummy_frame): Change parameter type to 'struct
5598 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5599 instead of frame_id_eq.
5600 (dummy_frame_pop): Add parameter ptid. Callers updated.
5601 Update comments. Compose dummy_frame_id and pass it to
5602 lookup_dummy_frame.
5603 (dummy_frame_discard): Add parameter ptid.
5604 (dummy_frame_sniffer): Compose dummy_frame_id and call
5605 dummy_frame_id_eq instead of frame_id_eq.
5606 (fprint_dummy_frames): Print ptid.
5607 * dummy-frame.h: Remove comments.
5608 (dummy_frame_push): Add ptid in declaration.
5609 (dummy_frame_pop, dummy_frame_discard): Likewise.
5610
5b10184c
TT
56112014-06-26 Tom Tromey <tromey@redhat.com>
5612
5613 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5614 * command.h (error_no_arg): Update.
5615
06900326
TT
56162014-06-26 Tom Tromey <tromey@redhat.com>
5617
5618 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5619 (do_show_command): Make "arg" const.
5620 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5621
c2bcbb1d
TT
56222014-06-26 Tom Tromey <tromey@redhat.com>
5623
5624 * record-full.c (record_full_get_bookmark): Make "args" const.
5625 (record_full_goto_bookmark): Make "raw_bookmark" const.
5626 * record.c (record_goto): New function.
5627 (cmd_record_goto): Use it. Now static.
5628 * record.h (record_goto): Declare.
5629 (cmd_record_goto): Remove declaration.
5630 * target-delegates.c: Rebuild.
5631 * target.h (struct target_ops) <to_get_bookmark,
5632 to_goto_bookmark>: Make parameter const.
5633
9cbe5fff
TT
56342014-06-26 Tom Tromey <tromey@redhat.com>
5635
5636 * defs.h (generic_load): Update.
5637 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5638 * monitor.c (monitor_load): Make "args" const.
5639 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5640 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5641 const.
5642 (mips_load): Make "file" const.
5643 * remote-sim.c (gdbsim_load): Make "args" const.
5644 * remote.c (remote_load): Make "name" const.
5645 * symfile.c (generic_load): Make "args" const.
5646 * target-delegates.c: Rebuild.
5647 * target.c (target_load): Make "arg" const.
5648 (debug_to_load): Make "args" const.
5649 * target.h (struct target_ops) <to_load>: Make parameter const.
5650 (target_load): Update.
5651
34a68019
TT
56522014-06-26 Tom Tromey <tromey@redhat.com>
5653
5654 PR symtab/16902:
5655 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5656 (dwarf2_physname, read_partial_die)
5657 (guess_partial_die_structure_name, fixup_partial_die)
5658 (guess_full_die_structure_name, anonymous_struct_prefix)
5659 (dwarf2_name): Use per-BFD obstack.
5660
efc889c1
YQ
56612014-06-26 Yao Qi <yao@codesourcery.com>
5662
5663 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5664 dummyframe and this_id into inner block below.
5665
4395285e
YQ
56662014-06-26 Yao Qi <yao@codesourcery.com>
5667
5668 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5669 with "signal_pass[0]" in the initialization of signal_pass.
5670
aef92902
MM
56712014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5672
5673 * record-btrace.c (record_btrace_generating_corefile)
5674 (record_btrace_prepare_to_generate_core)
5675 (record_btrace_done_generating_core): New.
5676 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5677 (record_btrace_store_registers, record_btrace_prepare_to_store):
5678 Forward request when generating a core file.
5679 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5680 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5681 to_done_generating_core.
5682
5fff78c4
MM
56832014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5684
5685 * target.h (target_ops) <to_prepare_to_generate_core>
5686 <to_done_generating_core>: New.
5687 (target_prepare_to_generate_core, target_done_generating_core): New.
5688 * target.c (target_prepare_to_generate_core)
5689 (target_done_generating_core): New.
5690 * target-delegates.c: Regenerate.
5691 * gcore.c: (write_gcore_file): Rename to ...
5692 (write_gcore_file_1): ...this.
5693 (write_gcore_file): Call target_prepare_to_generate_core
5694 and target_done_generating_core.
5695
1d1f1ccb
MM
56962014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5697
5698 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5699 * gcore.c (write_gcore_file): Free memory returned from
5700 make_corefile_notes.
5701 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5702 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5703
3343ef86
YQ
57042014-06-24 Yao Qi <yao@codesourcery.com>
5705
5706 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5707 (arm_linux_init_abi): Set skip_trampoline_code with
5708 gdbarch_skip_trampoline_code instead of
5709 find_solib_trampoline_target.
5710
18d18ac8
YQ
57112014-06-24 Yao Qi <yao@codesourcery.com>
5712
5713 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5714 arm_skip_bx_reg returns non-zero.
5715
80d8d390
YQ
57162014-06-24 Yao Qi <yao@codesourcery.com>
5717
5718 * arm-tdep.c (arm_skip_bx_reg): New function.
5719 (arm_skip_stub): Call arm_skip_bx_reg.
5720
6a18a01c
DB
57212014-06-23 Don Breazeal <donb@codesourcery.com>
5722
5723 * MAINTAINERS: Add myself as write-after-approval maintainer.
5724
8e9db26e
PA
57252014-06-23 Pedro Alves <palves@redhat.com>
5726
5727 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5728 DR_CONTROL before setting DR0..DR3.
5729 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5730 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5731 bits of DR_CONTROL related to the debug register slot being
5732 disabled. If all slots are vacant, clear local slowdown as well,
5733 and assert DR_CONTROL is 0.
5734
70afc5b7
SC
57352014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5736
5737 * python/lib/gdb/command/xmethods.py
5738 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5739 current progspace only if the string "progspace" matches LOCUS_RE.
5740
840ed64d
JK
57412014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5742
5743 Fix --with-system-readline with readline-6.3 patch 5.
5744 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5745 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5746 types.
5747
26f2dc30
TT
57482014-06-20 Tom Tromey <tromey@redhat.com>
5749
5750 * dwarf2read.c (dw2_get_real_path): Use correct type in
5751 OBSTACK_CALLOC.
5752 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5753
125f8a3d
GB
57542014-06-20 Gary Benson <gbenson@redhat.com>
5755
5756 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5757 * common/glibc_thread_db.h: Likewise.
5758 * common/i386-cpuid.h: Likewise.
5759 * common/i386-gcc-cpuid.h: Likewise.
5760 * common/linux-btrace.h: Likewise.
5761 * common/linux-osdata.h: Likewise.
5762 * common/linux-procfs.h: Likewise.
5763 * common/linux-ptrace.h: Likewise.
5764 * common/mips-linux-watch.h: Likewise.
5765 * common/linux-btrace.c: Moved to nat.
5766 * common/linux-osdata.c: Likewise.
5767 * common/linux-procfs.c: Likewise.
5768 * common/linux-ptrace.c: Likewise.
5769 * common/mips-linux-watch.c: Likewise.
5770 * nat/gdb_thread_db.h: Moved from common.
5771 * nat/glibc_thread_db.h: Likewise.
5772 * nat/i386-cpuid.h: Likewise.
5773 * nat/i386-gcc-cpuid.h: Likewise.
5774 * nat/linux-btrace.c: Likewise.
5775 * nat/linux-btrace.h: Likewise.
5776 * nat/linux-osdata.c: Likewise.
5777 * nat/linux-osdata.h: Likewise.
5778 * nat/linux-procfs.c: Likewise.
5779 * nat/linux-procfs.h: Likewise.
5780 * nat/linux-ptrace.c: Likewise.
5781 * nat/linux-ptrace.h: Likewise.
5782 * nat/mips-linux-watch.c: Likewise.
5783 * nat/mips-linux-watch.h: Likewise.
5784 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5785 (object file files): Reordered.
5786 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5787 of glibc_thread_db.h.
5788
42995dbd
GB
57892014-06-20 Gary Benson <gbenson@redhat.com>
5790
5791 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5792 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5793 (i386_dr_low): Likewise.
5794 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5795 (i386_dr_low_set_addr): Likewise.
5796 (i386_dr_low_get_addr): Likewise.
5797 (i386_dr_low_can_set_control): Likewise.
5798 (i386_dr_low_set_control): Likewise.
5799 (i386_dr_low_get_control): Likewise.
5800 (i386_dr_low_get_status): Likewise.
5801 (i386_get_debug_register_length): Likewise.
5802 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5803 (i386_dr_low): Likewise.
5804 * nat/i386-dregs.c (i386-low.h): Remove include.
5805 (i386-nat.h): Likewise.
5806 (nat/i386-dregs.h): New include.
5807 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5808 (i386_dr_low_set_addr): Likewise.
5809 (i386_dr_low_get_addr): Likewise.
5810 (i386_dr_low_can_set_control): Likewise.
5811 (i386_dr_low_set_control): Likewise.
5812 (i386_dr_low_get_control): Likewise.
5813 (i386_dr_low_get_status): Likewise.
5814 (i386_get_debug_register_length): Likewise.
5815 (debug_hw_points): Likewise.
5816
3ed9baed
IB
58172014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5818
5819 * Makefile.in (SFILES): Add d-exp.y.
5820 (YYFILES): Add d-exp.c.
5821 (YYOBJ): Add d-exp.o.
5822 (local-maintainer-clean): Delete d-exp.c.
5823 * d-exp.y: New file.
5824 * d-lang.h (d_parse): New declaration.
5825 (d_error): New declaration.
5826 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5827 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5828 PREC_ORDER operators.
5829 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5830
78c164b0
YQ
58312014-06-19 Yao Qi <yao@codesourcery.com>
5832
5833 * gdbthread.h (any_running): Remove the declaration.
5834 * thread.c (any_running): Remove.
5835
f6e29b6e
YQ
58362014-06-19 Yao Qi <yao@codesourcery.com>
5837
5838 * gdbthread.h (struct thread_info) <state>: Change its type to
5839 'enum thread_state'. Update comments.
5840
034f788c
PA
58412014-06-19 Pedro Alves <palves@redhat.com>
5842
5843 * gdbthread.h (ALL_THREADS): Delete.
5844 (ALL_NON_EXITED_THREADS): New macro.
5845 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5846 instead of ALL_THREADS.
5847 * infrun.c (find_thread_needs_step_over)
5848 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5849 instead of ALL_THREADS.
5850 * record-btrace.c (record_btrace_open)
5851 (record_btrace_stop_recording, record_btrace_close)
5852 (record_btrace_is_replaying, record_btrace_resume)
5853 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5854 * remote.c (append_pending_thread_resumptions): Likewise.
5855 * thread.c (thread_apply_all_command): Likewise.
5856
46e33252
GB
58572014-06-19 Gary Benson <gbenson@redhat.com>
5858
5859 * i386-nat.c (i386_stopped_by_watchpoint):
5860 Use i386_dr_stopped_by_watchpoint.
5861 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5862 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5863
3a8ee006
GB
58642014-06-19 Gary Benson <gbenson@redhat.com>
5865
5866 * nat/i386-dregs.c: New file.
5867 * Makefile.in (i386-dregs.o): New rule.
5868 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5869 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5870 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5871 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5872 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5873 * config/i386/go32.mh (NATDEPFILES): Likewise.
5874 * config/i386/linux.mh (NATDEPFILES): Likewise.
5875 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5876 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5877 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5878 * i386-nat.h (debug_hw_points): New declaration.
5879 * i386-nat.c (breakpoint.h): Remove include.
5880 (command.h): Likewise.
5881 (target.h): Likewise.
5882 (gdb_assert.h): Likewise.
5883 (debug_hw_points): Made nonstatic.
5884 (debug_printf): Now in i386-dregs.c.
5885 (TARGET_HAS_DR_LEN_8): Likewise.
5886 (DR_CONTROL_SHIFT): Likewise.
5887 (DR_CONTROL_SIZE): Likewise.
5888 (DR_RW_EXECUTE): Likewise.
5889 (DR_RW_WRITE): Likewise.
5890 (DR_RW_READ): Likewise.
5891 (DR_RW_IORW): Likewise.
5892 (DR_LEN_1): Likewise.
5893 (DR_LEN_2): Likewise.
5894 (DR_LEN_4): Likewise.
5895 (DR_LEN_8): Likewise.
5896 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5897 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5898 (DR_ENABLE_SIZE): Likewise.
5899 (DR_LOCAL_SLOWDOWN): Likewise.
5900 (DR_GLOBAL_SLOWDOWN): Likewise.
5901 (DR_CONTROL_RESERVED): Likewise.
5902 (I386_DR_CONTROL_MASK): Likewise.
5903 (I386_DR_VACANT): Likewise.
5904 (I386_DR_LOCAL_ENABLE): Likewise.
5905 (I386_DR_GLOBAL_ENABLE): Likewise.
5906 (I386_DR_DISABLE): Likewise.
5907 (I386_DR_SET_RW_LEN): Likewise.
5908 (I386_DR_GET_RW_LEN): Likewise.
5909 (I386_DR_WATCH_HIT): Likewise.
5910 (i386_wp_op_t): Likewise.
5911 (i386_show_dr): Likewise.
5912 (i386_length_and_rw_bits): Likewise.
5913 (i386_insert_aligned_watchpoint): Likewise.
5914 (i386_remove_aligned_watchpoint): Likewise.
5915 (i386_handle_nonaligned_watchpoint): Likewise.
5916 (i386_update_inferior_debug_regs): Likewise.
5917 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5918 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5919 (i386_region_ok_for_watchpoint):
5920 Use i386_dr_region_ok_for_watchpoint.
5921 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5922
322a8e06
GB
59232014-06-19 Gary Benson <gbenson@redhat.com>
5924
5925 * i386-nat.c (i386_insert_hw_breakpoint): Use
5926 i386_insert_watchpoint.
5927 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5928
8f26655c
GB
59292014-06-19 Gary Benson <gbenson@redhat.com>
5930
5931 * i386-nat.c (i386_dr_show): Renamed to
5932 i386_show_dr and made static. All uses updated.
5933 (i386_dr_length_and_rw_bits): Renamed to
5934 i386_length_and_rw_bits and made static.
5935 All uses updated.
5936 (i386_dr_insert_aligned_watchpoint): Renamed to
5937 i386_insert_aligned_watchpoint and made static.
5938 All uses updated.
5939 (i386_dr_remove_aligned_watchpoint): Renamed to
5940 i386_remove_aligned_watchpoint and made static.
5941 All uses updated.
5942 (i386_dr_update_inferior_debug_regs): Renamed to
5943 i386_update_inferior_debug_regs and made static.
5944 All uses updated.
5945 * nat/i386-dregs.h (i386_dr_show): Removed.
5946 (i386_dr_length_and_rw_bits): Likewise.
5947 (i386_dr_insert_aligned_watchpoint): Likewise.
5948 (i386_dr_remove_aligned_watchpoint): Likewise.
5949 (i386_dr_update_inferior_debug_regs): Likewise.
5950
992c7d70
GB
59512014-06-19 Gary Benson <gbenson@redhat.com>
5952
5953 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5954 * configure: Regenerate.
5955 * config.in: Likewise.
5956 * main.c (signal.h): New include.
5957 (setup_alternate_signal_stack): New function.
5958 (captured_main): Call the above.
5959 * cp-support.c (signal.h): New include.
5960 (catch_demangler_crashes): New flag.
5961 (SIGJMP_BUF): New define.
5962 (SIGSETJMP): Likewise.
5963 (SIGLONGJMP): Likewise.
5964 (gdb_demangle_jmp_buf): New static global.
5965 (gdb_demangle_attempt_core_dump): Likewise.
5966 (gdb_demangle_signal_handler): New function.
5967 (gdb_demangle): If catch_demangler_crashes is set, install the
5968 above signal handler before calling bfd_demangle, and restore
5969 the original signal handler afterwards. Display the offending
5970 symbol and call demangler_warning the first time a segmentation
5971 fault is caught.
5972 (_initialize_cp_support): New maint set/show command.
5973
eae7090b
GB
59742014-06-19 Gary Benson <gbenson@redhat.com>
5975
5976 * utils.h (resource_limit_kind): New enum.
5977 (can_dump_core): New declaration.
5978 (warn_cant_dump_core): Likewise.
5979 (dump_core): Likewise.
5980 * utils.c (dump_core): Made nonstatic. Added new
5981 parameter "limit_kind".
5982 (can_dump_core): Made nonstatic. Moved printing code to...
5983 (warn_cant_dump_core): New function.
5984 (can_dump_core_warn): Likewise.
5985 (internal_vproblem): Replace calls to can_dump_core with
5986 calls to can_dump_core_warn. Supply new argument to each.
5987
57fcfb1b
GB
59882014-06-19 Gary Benson <gbenson@redhat.com>
5989
5990 * utils.h (demangler_vwarning): New declaration.
5991 (demangler_warning): Likewise.
5992 * utils.c (struct internal_problem)
5993 <user_settable_should_quit>: New field.
5994 <user_settable_should_dump_core>: Likewise
5995 (internal_error_problem): Add values for above new fields.
5996 (internal_warning_problem): Likewise.
5997 (demangler_warning_problem): New static global.
5998 (demangler_vwarning): New function.
5999 (demangler_warning): Likewise.
6000 (add_internal_problem_command): Selectively add commands.
6001 (_initialize_utils): New internal problem command.
6002 * maint.c (maintenance_demangler_warning): New function.
6003 (_initialize_maint_cmds): New command.
6004
17a40b44
TT
60052014-06-18 Tom Tromey <tromey@redhat.com>
6006
6007 * f-valprint.c (info_common_command_for_block): Update.
6008 * symtab.h (struct general_symbol_info) <common_block>: Now
6009 const.
6010
346d1dfe
TT
60112014-06-18 Tom Tromey <tromey@redhat.com>
6012
6013 * symtab.h (struct symtab) <blockvector>: Now const.
6014 * ada-lang.c (ada_add_global_exceptions): Update.
6015 * buildsym.c (augment_type_symtab): Update.
6016 * dwarf2read.c (dw2_lookup_symbol): Update.
6017 * jit.c (finalize_symtab): Update.
6018 * jv-lang.c (add_class_symtab_symbol): Update.
6019 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6020 Update.
6021 * objfiles.c (objfile_relocate1): Update.
6022 * psymtab.c (lookup_symbol_aux_psymtabs)
6023 (maintenance_check_psymtabs): Update.
6024 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6025 Update.
6026 * spu-tdep.c (spu_catch_start): Update.
6027 * symmisc.c (dump_symtab_1): Update.
6028 * symtab.c (lookup_global_symbol_from_objfile)
6029 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6030 (basic_lookup_transparent_type_quick)
6031 (basic_lookup_transparent_type, find_pc_sect_symtab)
6032 (find_pc_sect_line, search_symbols): Update.
6033 * block.c (find_block_in_blockvector): Make "bl" const.
6034 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6035 const.
6036 (blockvector_contains_pc): Make "bv" const.
6037 (block_for_pc_sect): Update.
6038 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6039 (blockvector_contains_pc): Update.
6040 * breakpoint.c (resolve_sal_pc): Update.
6041 * inline-frame.c (block_starting_point_at): Update.
6042
1834676b
TT
60432014-06-18 Tom Tromey <tromey@redhat.com>
6044
6045 * completer.c (complete_line): Make "line_buffer" const.
6046 * completer.h (complete_line): Update.
6047
ac1a991b
TT
60482014-06-18 Tom Tromey <tromey@redhat.com>
6049
6050 * symtab.c (add_macro_name): Remove unneeded cast.
6051
5bc98e52
TT
60522014-06-18 Tom Tromey <tromey@redhat.com>
6053
6054 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6055 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6056
8236def8
TT
60572014-06-18 Tom Tromey <tromey@redhat.com>
6058
6059 * probe.c (info_probes_for_ops): Make "arg" const.
6060 * probe.h (info_probes_for_ops): Update.
6061
3977b71f
TT
60622014-06-18 Tom Tromey <tromey@redhat.com>
6063
6064 * varobj.c (varobj_create): Update.
6065 * valops.c (value_of_this): Update.
6066 * tracepoint.c (add_local_symbols, scope_info): Update.
6067 * symtab.h (struct general_symbol_info) <block>: Now const.
6068 * symtab.c (skip_prologue_sal)
6069 (default_make_symbol_completion_list_break_on)
6070 (skip_prologue_using_sal): Update.
6071 * stack.h (iterate_over_block_locals)
6072 (iterate_over_block_local_vars): Update.
6073 * stack.c (print_frame_args): Update.
6074 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6075 parameter const.
6076 (get_selected_block): Make return type const.
6077 * python/py-frame.c (frapy_block): Update.
6078 * python/py-block.c (gdbpy_block_for_pc): Update.
6079 * p-exp.y (%union) <bval>: Now const.
6080 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6081 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6082 * m2-exp.y (%union) <bval>: Now const.
6083 * linespec.c (get_current_search_block): Make return type const.
6084 (create_sals_line_offset, find_label_symbols): Update.
6085 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6086 Update.
6087 (block_starting_point_at): Make "block" const.
6088 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6089 (check_exception_resume): Update.
6090 * guile/scm-frame.c (gdbscm_frame_block): Update.
6091 * guile/scm-block.c (gdbscm_lookup_block): Update.
6092 * frame.h (get_frame_block): Update.
6093 (get_selected_block): Make return type const.
6094 * frame.c (frame_id_inner): Update.
6095 * f-valprint.c (info_common_command_for_block)
6096 (info_common_command): Update.
6097 * dwarf2loc.c (dwarf2_find_location_expression)
6098 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6099 (locexpr_describe_location_piece): Update.
6100 * c-exp.y (%union) <bval>: Now const.
6101 * breakpoint.c (resolve_sal_pc): Update.
6102 * blockframe.c (get_frame_block):Make return type const.
6103 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6104 (block_innermost_frame): Update.
6105 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6106 (block_for_pc, block_for_pc_sect): Update.
6107 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6108 'pblock' const.
6109 (block_for_pc_sect, block_for_pc): Make return type const.
6110 * ax-gdb.c (gen_expr): Update.
6111 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6112 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6113 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6114 (ada_read_var_value): Update.
6115 * ada-exp.y (struct name_info) <block>: Now const.
6116 (%union): Likewise.
6117 (block_lookup): Constify.
6118
b9228891
GB
61192014-06-18 Gary Benson <gbenson@redhat.com>
6120
6121 * nat/i386-dregs.h: New file.
6122 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6123 * i386-nat.h (i386-dregs.h): New include.
6124 (DR_FIRSTADDR): Now in i386-dregs.h.
6125 (DR_LASTADDR): Likewise.
6126 (DR_NADDR): Likewise.
6127 (DR_STATUS): Likewise.
6128 (DR_CONTROL): Likewise.
6129 (i386_debug_reg_state): Likewise.
6130 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6131
a1aa2221
LM
61322014-06-18 Don Breazeal <donb@codesourcery.com>
6133
6134 * breakpoint.c (set_longjmp_breakpoint): Call
6135 momentary_breakpoint_from_master with additional argument.
6136 (set_longjmp_breakpoint_for_call_dummy): Call
6137 momentary_breakpoint_from_master with additional argument.
6138 (set_std_terminate_breakpoint): Call
6139 momentary_breakpoint_from_master with additional argument.
6140 (momentary_breakpoint_from_master): Add argument to function
6141 definition and use it to initialize structure member flag.
74228e77 6142 (clone_momentary_breakpoint): Call
a1aa2221
LM
6143 momentary_breakpoint_from_master with additional argument.
6144 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6145 member flags set in momentary_breakpoint_from_master.
6146
4be83cc2
GB
61472014-06-18 Gary Benson <gbenson@redhat.com>
6148
6149 * i386-nat.c (i386_show_dr): Renamed to
6150 i386_dr_show and made nonstatic. All uses updated.
6151 (i386_length_and_rw_bits): Renamed to
6152 i386_dr_length_and_rw_bits and made nonstatic.
6153 All uses updated.
6154 (i386_insert_aligned_watchpoint): Renamed to
6155 i386_dr_insert_aligned_watchpoint and made nonstatic.
6156 All uses updated.
6157 (i386_remove_aligned_watchpoint): Renamed to
6158 i386_dr_remove_aligned_watchpoint and made nonstatic.
6159 All uses updated.
6160 (i386_update_inferior_debug_regs): Renamed to
6161 i386_dr_update_inferior_debug_regs and made nonstatic.
6162 All uses updated.
6163
131aa0d4
GB
61642014-06-18 Gary Benson <gbenson@redhat.com>
6165
6166 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6167 (i386_dr_low_can_set_control): Likewise.
6168 (i386_dr_low_set_addr): Likewise.
6169 (i386_dr_low_set_control): Likewise.
6170 (i386_dr_low_get_addr): Likewise.
6171 (i386_dr_low_get_status): Likewise.
6172 (i386_dr_low_get_control): Likewise.
6173 (i386_insert_aligned_watchpoint): Use new macros.
6174 (i386_update_inferior_debug_regs): Likewise.
6175 (i386_stopped_data_address): Likewise.
6176
d9305f7f
GB
61772014-06-18 Gary Benson <gbenson@redhat.com>
6178
6179 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6180 New parameter. All uses updated.
6181
ea008da4
GB
61822014-06-18 Gary Benson <gbenson@redhat.com>
6183
6184 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6185 All uses updated.
6186
1b6d4134
GB
61872014-06-18 Gary Benson <gbenson@redhat.com>
6188
6189 * i386-nat.c (debug_printf): New macro.
6190 (i386_get_debug_register_length): Likewise.
6191 (TARGET_HAS_DR_LEN_8): Use above macro.
6192 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6193 and printf_unfiltered. Use phex to format values.
6194
9b4550ef
GB
61952014-06-18 Gary Benson <gbenson@redhat.com>
6196
6197 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6198 Make const.
6199
6e62758f
GB
62002014-06-18 Gary Benson <gbenson@redhat.com>
6201
6202 * i386-nat.c: Comment changes.
6203
51c79e94
GB
62042014-06-18 Gary Benson <gbenson@redhat.com>
6205
6206 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6207
3e11889a
GB
62082014-06-18 Gary Benson <gbenson@redhat.com>
6209
6210 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6211 (i386_insert_aligned_watchpoint): Likewise.
6212 (i386_remove_aligned_watchpoint): Likewise.
6213 (i386_handle_nonaligned_watchpoint): Likewise.
6214
fc6e2f03
GB
62152014-06-18 Gary Benson <gbenson@redhat.com>
6216
6217 * i386-nat.c: Whitespace changes.
6218
2afe7d50
SB
62192014-06-17 Samuel Bronson <naesten@gmail.com>
6220
6221 * MAINTAINERS: Update Roland McGrath's email address.
6222 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6223 Red Hat a while ago, and giving me a current address.
2afe7d50 6224
3bca49ee
TT
62252014-06-17 Tom Tromey <tromey@redhat.com>
6226
6227 * utils.h (savestring): Remove declaration.
6228
6e366df1
TT
62292014-06-17 Tom Tromey <tromey@redhat.com>
6230
6231 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6232
6be47f0c
KS
62332014-06-16 Keith Seitz <keiths@redhat.com>
6234
6235 PR mi/15863
6236 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6237 to update the varobj if inferior_ptid is null_ptid.
6238
7bc112c1
TT
62392014-06-16 Tom Tromey <tromey@redhat.com>
6240
6241 * target.h (struct target_ops) <to_info_proc>: Make parameter
6242 const.
6243 (target_info_proc): Update.
6244 * target.c (target_info_proc): Make "args" const.
6245 * procfs.c (procfs_info_proc): Update.
6246 * linux-tdep.c (linux_info_proc): Update.
6247 (linux_core_info_proc_mappings): Make "args" const.
6248 (linux_core_info_proc): Update.
6249 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6250 * gdbarch.c: Rebuild.
6251 * gdbarch.h: Rebuild.
6252 * corelow.c (core_info_proc): Update.
6253
fee354ee
TT
62542014-06-16 Tom Tromey <tromey@redhat.com>
6255
6256 * target.h (struct target_ops) <to_disconnect>: Make parameter
6257 const.
6258 (target_disconnect): Update.
6259 * target.c (target_disconnect): Make "args" const.
6260 * target-delegates.c: Rebuild.
6261 * remote.c (remote_disconnect): Update.
6262 * record.h (record_disconnect): Update.
6263 * record.c (record_disconnect): Update.
6264 * inf-child.c (inf_child_disconnect): Update.
6265
a30bf1f1
TT
62662014-06-16 Tom Tromey <tromey@redhat.com>
6267
6268 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6269 * target.c (debug_to_rcmd, default_rcmd): Update.
6270 * target-delegates.c: Rebuild.
6271 * remote.c (remote_rcmd): Update.
6272 * monitor.c (monitor_rcmd): Update.
6273
d03de421
PA
62742014-06-16 Pedro Alves <palves@redhat.com>
6275
6276 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6277 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6278 have OBJF_SHARED set.
6279 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6280 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6281 instead of OBJF_USERLOADED.
6282 * objfiles.h (OBJF_SHARED): Update comment.
6283 (userloaded_objfile_contains_address_p): Rename to ...
6284 (shared_objfile_contains_address_p): ... this, and update
6285 comments.
6286 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6287 new objfile.
6288 (remove_symbol_file_command): Skip objfiles that don't have
6289 OBJF_SHARED set.
6290
99f4262f
TT
62912014-06-16 Tom Tromey <tromey@redhat.com>
6292
6293 * minsyms.h (prim_record_minimal_symbol)
6294 (prim_record_minimal_symbol_and_info): Update comments.
6295
97d66cc6
EZ
62962014-06-14 Eli Zaretskii <eliz@gnu.org>
6297
6298 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6299 or --without-guile, according to how GDB was built.
6300
635c7e8a
TT
63012014-06-13 Tom Tromey <tromey@redhat.com>
6302
6303 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6304 to help_list.
6305 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6306 to help_list.
6307 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6308 help_list.
6309 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6310 help_list.Pass all_commands, not -1, to help_list.
6311 * cli/cli-dump.c (dump_command, append_command)
6312 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6313 (binary_dump_command, binary_append_command): Pass all_commands,
6314 not -1, to help_list.
6315 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6316 -1, to help_list.
6317 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6318 -1, to help_list.
6319 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6320 help_list.
6321 * top.c (set_history): Pass all_commands, not -1, to help_list.
6322 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6323 all_commands, not -1, to help_list.
6324 * symfile.c (overlay_command): Pass all_commands, not -1, to
6325 help_list.
6326 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6327 help_list.
6328 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6329 help_list.
6330 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6331 -1, to help_list.
6332 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6333 not -1, to help_list.
6334 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6335 not -1, to help_list.
6336 * maint.c (maintenance_command, maintenance_info_command)
6337 (maintenance_print_command, maintenance_set_cmd): Pass
6338 all_commands, not -1, to help_list.
6339 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6340 help_list.
6341 * language.c (set_check): Pass all_commands, not -1, to help_list.
6342 * infcmd.c (unset_command): Pass all_commands, not -1, to
6343 help_list.
6344 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6345 help_list.
6346 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6347 help_list.
6348 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6349 help_list.
6350 * breakpoint.c (save_command): Pass all_commands, not -1, to
6351 help_list.
6352 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6353 all_commands, not -1, to help_list.
6354
b94ade42
PL
63552014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6356
6357 * regcache.c (struct register_to_invalidate): New structure.
6358 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6359 functions.
6360 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6361
31f628ae
YQ
63622014-06-12 Yao Qi <yao@codesourcery.com>
6363
6364 * varobj.c (varobj_get_num_children): Call
6365 varobj_is_dynamic_p.
6366 (varobj_list_children): Likewise.
6367 (varobj_update): Likewise. Update comments.
6368
cde5ef40
YQ
63692014-06-12 Yao Qi <yao@codesourcery.com>
6370
6371 * varobj.c (varobj_pretty_printed_p): Rename to ...
6372 (varobj_is_dynamic_p): ... this. New function.
6373 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6374 (varobj_is_dynamic_p): Declare.
6375 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6376 (mi_print_value_p, varobj_update_one): Likewise.
6377
576ea091
YQ
63782014-06-12 Pedro Alves <pedro@codesourcery.com>
6379 Yao Qi <yao@codesourcery.com>
6380
6381 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6382 (varobj_get_iterator): Wrap up code for pretty-printer by
6383 "#if HAVE_PYTHON" and "#endif".
6384 (update_dynamic_varobj_children): Likewise.
6385
827f100c
YQ
63862014-06-12 Pedro Alves <pedro@codesourcery.com>
6387 Yao Qi <yao@codesourcery.com>
6388
6389 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6390 gdb_python_initialized is false. Move some code from varobj.c.
6391 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6392 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6393 (struct varobj_item): Moved to varobj-iter.h".
6394 (varobj_clear_saved_item): New function.
6395 (update_dynamic_varobj_children): Move python-related code to
6396 py-varobj.c.
6397 (free_variable): Call varobj_clear_saved_item and
6398 varobj_iter_delete.
6399
e5250216
YQ
64002014-06-12 Pedro Alves <pedro@codesourcery.com>
6401 Yao Qi <yao@codesourcery.com>
6402
6403 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6404 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6405 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6406 (py-varobj.o): New rule.
6407 * python/py-varobj.c: New file.
6408 * python/python-internal.h (py_varobj_get_iterator): Declare.
6409 * varobj-iter.h: New file.
6410 * varobj.c: Include "varobj-iter.h"
6411 (struct varobj) <child_iter>: Change its type from "PyObject *"
6412 to "struct varobj_iter *".
6413 <saved_item>: Likewise.
6414 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6415 [HAVE_PYTHON] (varobj_get_iterator): New function.
6416 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6417 python-specific code to python/py-varobj.c.
6418 (install_visualizer): Call varobj_iter_delete instead of
6419 Py_XDECREF.
6420 * varobj.h (varobj_ensure_python_env): Declare.
6421
5a2e0d6e
YQ
64222014-06-12 Yao Qi <yao@codesourcery.com>
6423
6424 * varobj.c (struct varobj_item): New structure.
6425 (create_child_with_value): Update declaration.
6426 (varobj_add_child): Replace arguments 'name' and 'value' with
6427 'item'. All callers updated.
6428 (install_dynamic_child): Likewise.
6429 (update_dynamic_varobj_children): Likewise.
6430 (varobj_add_child): Likewise.
6431 (create_child_with_value): Likewise.
6432
919b9a93
JB
64332014-06-11 Joel Brobecker <brobecker@adacore.com>
6434
6435 * NEWS: Create a new section for the next release branch.
6436 Rename the section of the current branch, now that it has
6437 been cut.
6438
71a55bdf
JB
64392014-06-11 Joel Brobecker <brobecker@adacore.com>
6440
6441 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6442 * version.in: Bump version to 7.8.50.DATE-cvs.
6443
364fe1f7
PA
64442014-06-11 Pedro Alves <palves@redhat.com>
6445
6446 PR remote/17028
6447 * ser-mingw.c (net_windows_socket_check_pending): New function.
6448 (net_windows_select_thread): Ignore spurious wakeups. Use
6449 net_windows_socket_check_pending.
6450 (net_windows_wait_handle): Check for pending events with
6451 ioctlsocket, through net_windows_socket_check_pending, instead of
6452 checking the socket's event.
6453
5a6c7709
SC
64542014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6455
6456 * python/python-internal.h (gdb_PyObject_GetAttrString)
6457 (gdb_PyObject_HasAttrString): New inline function definitions.
6458 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6459 char * of the second argument to PyObject_GetAttrString.
74228e77 6460
0e58ee40
JB
64612014-06-10 Joel Brobecker <brobecker@adacore.com>
6462
6463 * serial.c (serial_write): Fix index of character to be printed
6464 in call to serial_logchar when serial debug traces are enabled.
6465
d190df30
JB
64662014-06-10 Joel Brobecker <brobecker@adacore.com>
6467
6468 * gdbtypes (resolve_dynamic_range): Add function description.
6469
b4b01d36
PA
64702014-06-09 Pedro Alves <palves@redhat.com>
6471
6472 * linux-nat.c (linux_child_follow_fork): Initialize status with
6473 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6474 inner block. Only pass the signal to PTRACE_DETACH if in pass
6475 state.
6476
3657956b
GB
64772014-06-09 Gary Benson <gbenson@redhat.com>
6478
6479 * common/signals.c (gdb_signal_from_host): Reorder to separate
6480 the always-available ANSI-standard signals from the signals that
6481 require checking.
6482 (do_gdb_signal_to_host): Likewise.
6483 * proc-events.c (signal_table): Likewise.
6484
c077881a
HZ
64852014-06-08 Hui Zhu <hui@codesourcery.com>
6486
6487 * common/linux-ptrace.c (linux_disable_event_reporting): New
6488 function.
6489 * common/linux-ptrace.h (linux_disable_event_reporting): New
6490 declaration.
6491 * linux-nat.c (linux_child_follow_fork): Do a single step before
6492 detach.
6493
4186eb54
KS
64942014-06-07 Keith Seitz <keiths@redhat.com>
6495
6496 Revert:
6497 PR c++/16253
6498 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6499 from symbol_matches_domain in symtab.c. All local callers
6500 of symbol_matches_domain updated.
6501 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6502 search STRUCT_DOMAIN.
6503 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6504 independently. standard_lookup will do that automatically.
6505 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6506 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6507 (cp_lookup_symbol_in_namespace): Likewise.
6508 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6509 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6510 may return a STRUCT_DOMAIN match.
6511 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6512 * cp-support.c: Include language.h.
6513 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6514 VAR_DOMAIN.
6515 * psymtab.c (match_partial_symbol): Compare the requested
6516 domain with the symbol's domain directly.
6517 (lookup_partial_symbol): Likewise.
6518 * symtab.c (lookup_symbol_in_language): Explain when/why
6519 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6520 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6521 appropriate languages.
6522 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6523 and moved to ada-lang.c
6524 (lookup_block_symbol): Explain that this function only returns
6525 symbol matching the requested DOMAIN.
6526 Compare the requested domain with the symbol's domain directly.
6527 (iterate_over_symbols): Compare the requested domain with the
6528 symbol's domain directly.
6529 * symtab.h (symbol_matches_domain): Remove.
6530
25326a28 65312014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6532
6533 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6534 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6535 (gdbscm_guile_version_is_at_least): Declare.
6536 (gdbscm_scm_string_to_int): Declare.
6537 * guile/guile.c (gdbscm_guile_major_version): New global.
6538 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6539 (guile_datadir): New static global.
6540 (gdbscm_guile_data_directory): New function.
6541 (initialize_scheme_side): Update.
6542 (misc_guile_functions): Add guile-data-directory.
6543 (initialize_gdb_module): Fetch guile version number.
6544 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6545 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6546 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6547 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6548 comments.
6549 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6550 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6551 * guile/scm-value.c (gdbscm_value_to_string): Only call
6552 scm_port_conversion_strategy if Guile version >= 2.0.6.
6553
0a770bb2 65542014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6555
6556 * main.c (print_gdb_help): Add -q and --silent.
6557
73ba372c
GB
65582014-06-06 Gary Benson <gbenson@redhat.com>
6559
6560 * common/signals.c: Remove preprocessor conditionals for
6561 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6562 SIGSEGV and SIGTERM.
6563 * proc-events.c: Likewise.
6564
c33b2f12
MM
65652014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6566
6567 * symfile.c (symfile_free_objfile): Remove restriction to
6568 OBJF_USERLOADED.
6569 * symfile-mem.c (symbol_file_add_from_memory): Call
6570 add_target_sections_of_objfile.
6571
fb934770
LC
65722014-06-05 Ludovic Courtès <ludo@gnu.org>
6573
6574 * guile/scm-value.c (gdbscm_history_append_x): Use
6575 'vlscm_get_value_smob_arg_unsafe' instead of
6576 'vlscm_scm_to_value'.
6577
6ef284bd
SM
65782014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6579
6580 PR mi/15806
6581 * utils.c (printchar): Don't escape at all if quoter is NUL.
6582 Update function documentation to clarify effect of parameter
6583 QUOTER.
6584 * remote.c (escape_buffer): Pass '\\' as the quoter to
6585 fputstrn_unfiltered.
6586 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6587 generate the output.
6588 (mi_solib_unloaded): Same.
6589
270c9937
JB
65902014-06-05 Joel Brobecker <brobecker@adacore.com>
6591
6592 * development.sh: Delete.
6593 * Makefile.in (config.status): Adjust dependency on development.sh.
6594 * configure.ac: Adjust development.sh source call.
6595 * configure: Regenerate.
6596
16f691fb
DE
65972014-06-04 Doug Evans <xdje42@gmail.com>
6598
6599 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6600 is_scheme_bkpt, spec.
6601 (bpscm_make_breakpoint_smob): Initialize new members.
6602 (gdbscm_create_breakpoint_x): Split into two ...
6603 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6604 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6605 (scheme_function breakpoint_functions): Update.
6606 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6607 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6608 register-breakpoint!.
6609
ef7cab6b
JB
66102014-06-04 Joel Brobecker <brobecker@adacorer.com>
6611
6612 PR server/17023
6613 * mem-break.c (z_type_supported): Return zero if
6614 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6615
012370f6
TT
66162014-06-04 Tom Tromey <tromey@redhat.com>
6617
6618 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6619 value_from_contents_and_address_unresolved.
6620 (ada_template_to_fixed_record_type_1): Likewise.
6621 (ada_which_variant_applies): Likewise.
6622 * value.h (value_from_contents_and_address_unresolved): Declare.
6623 * value.c (value_from_contents_and_address_unresolved): New
6624 function.
6625 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6626 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6627 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6628
92e2a17f
TT
66292014-06-04 Tom Tromey <tromey@redhat.com>
6630
6631 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6632
c0939df1
TT
66332014-06-04 Tom Tromey <tromey@redhat.com>
6634
6635 * procfs.c (procfs_attach): Make "args" const.
6636 * windows-nat.c (windows_attach): Make "args" const.
6637 * nto-procfs.c (procfs_attach): Make "args" const.
6638 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6639 * go32-nat.c (go32_attach): Make "args" const.
6640 * gnu-nat.c (gnu_attach): Make "args" const.
6641 * darwin-nat.c (darwin_attach): Make "args" const.
6642 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6643 * linux-nat.c (linux_nat_attach): Make "args" const.
6644 * remote.c (extended_remote_attach_1, extended_remote_attach):
6645 Make "args" const.
6646 * target.h (struct target_ops) <to_attach>: Make "args" const.
6647 (find_default_attach): Likewise.
6648 * utils.c (parse_pid_to_attach): Make "args" const.
6649 * utils.h (parse_pid_to_attach): Update.
6650
8eaff7cd
TT
66512014-06-04 Tom Tromey <tromey@redhat.com>
6652
6653 * target-delegates.c: Rebuild.
6654 * target.c (default_thread_address_space): New function.
6655 (target_thread_address_space): Simplify.
6656 * target.h (struct target_ops) <to_thread_address_space>: Add
6657 TARGET_DEFAULT_FUNC.
6658
1913f160
DE
66592014-06-04 Doug Evans <xdje42@gmail.com>
6660
6661 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6662
70ad5bff
MM
66632014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6664
6665 * record-btrace.c: Include event-loop.h and inf-loop.h.
6666 (record_btrace_resume_exec_dir)
6667 (record_btrace_async_inferior_event_handler)
6668 (record_btrace_handle_async_inferior_event): New.
6669 (record_btrace_open): Create async event handler.
6670 (record_btrace_close): Delete async event handler.
6671 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6672 Mark async event handler.
6673 (record_btrace_execution_direction): New.
6674 (init_record_btrace_ops): Initialize to_execution_direction.
6675
b6210538
DE
66762014-06-03 Doug Evans <xdje42@gmail.com>
6677
6678 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6679 (gdbscm_make_parameter): Ditto.
6680
a5b1fd27
DE
66812014-06-03 Doug Evans <dje@google.com>
6682
6683 * exec.c (exec_close_1): Call clear_section_table instead of
6684 resize_section_table.
6685 (clear_section_table): New function.
6686 (resize_section_table): Make static. Rename arg num_added to
6687 adjustment.
6688 * exec.h (clear_section_table): Declare.
6689 (resize_section_table): Delete.
6690 * progspace.c (release_program_space): Call clear_section_table
6691 instead of resize_section_table.
6692
0c6e92a5
SC
66932014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6694
6695 * NEWS (Python Scripting): Add entry about the new xmethods
6696 feature.
6697
883964a7
SC
66982014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6699
6700 * python/py-xmethods.c: New file.
6701 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6702 (objfpy_dealloc): XDECREF on the new xmethods field.
6703 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6704 field.
6705 (objfpy_get_xmethods): New function.
6706 (objfile_getset): New entry 'xmethods'.
6707 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6708 (pspy_dealloc): XDECREF on the new xmethods field.
6709 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6710 field.
6711 (pspy_get_xmethods): New function.
6712 (pspace_getset): New entry 'xmethods'.
6713 * python/python-internal.h: Add declarations for new functions.
6714 * python/python.c (_initialize_python): Invoke
6715 gdbpy_initialize_xmethods.
6716 * python/lib/gdb/__init__.py (xmethods): New
6717 attribute.
6718 * python/lib/gdb/xmethod.py: New file.
6719 * python/lib/gdb/command/xmethods.py: New file.
6720
58992dc5
SC
67212014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6722
6723 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6724 best match method returned by find_overload_match is an xmethod.
6725 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6726 the best matching operator returned by find_overload_match is an
6727 xmethod.
6728 * valops.c: #include "extension.h".
6729 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6730 Return void. The list of matching source methods is returned in
6731 "fn_list" and a vector of matching debug method workers is
6732 returned in "xm_worker_vec". Update all callers.
6733 (value_find_oload_method_list): Likewise.
6734 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6735 non-NULL, then the index of the best matching method in this
6736 vector is returned. Update all callers.
6737 (find_overload_match): Include xmethods while performing overload
6738 resolution.
6739
e81e7f5e
SC
67402014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6741
6742 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6743 * extension-priv.h (struct extension_language_ops): Add the
6744 xmethod interface.
6745 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6746 get_matching_xmethod_workers, get_xmethod_argtypes,
6747 invoke_xmethod, free_xmethod_worker,
6748 free_xmethod_worker_vec): New functions.
6749 * extension.h: #include "common/vec.h".
6750 New function declarations.
6751 (struct xmethod_worker): New struct.
6752 (VEC (xmethod_worker_ptr)): New vector type.
6753 (xmethod_worker_ptr): New typedef.
6754 (xmethod_worker_vec): Likewise.
6755 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6756 builtin_type.
6757 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6758 (struct builtin_type): New field "xmethod".
6759 * valarith.c (value_ptradd): Assert that the value argument is not
6760 lval_xcallable.
6761 * valops.c (value_must_coerce_to_target): Return 0 for
6762 lval_xcallable values.
6763 * value.c (struct value): New field XM_WORKER in the field
6764 LOCATION.
6765 (value_address, value_raw_address): Return 0 for lval_xcallable
6766 values.
6767 (set_value_address): Assert that the value is not an
6768 lval_xcallable.
6769 (value_free): Free the associated xmethod worker when freeing
6770 lval_xcallable values.
6771 (set_value_component_location): Assert that the WHOLE value is not
6772 lval_xcallable.
6773 (value_of_xmethod, call_xmethod): New functions.
6774 * value.h: Declare "struct xmethod_worker".
6775 Declare new functions value_of_xmethod, call_xmethod.
6776
ef370185
JB
67772014-06-03 Joel Brobecker <brobecker@adacore.com>
6778 Pedro Alves <palves@redhat.com>
6779
6780 PR breakpoints/17000
6781 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6782 New function, extracted from software_breakpoint_inserted_here_p.
6783 (software_breakpoint_inserted_here_p): Replace factored out code
6784 by call to find_non_raw_software_breakpoint_inserted_here.
6785 (bp_target_info_copy_insertion_state): New function.
6786 (bkpt_insert_location): Handle the case of a single-step
6787 breakpoint already inserted at the same address.
6788 (bkpt_remove_location): Handle the case of a single-step
6789 breakpoint still inserted at the same address.
6790 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6791 breakpoint already inserted at the same address.
6792 (deprecated_remove_raw_breakpoint): Handle the case of a
6793 non-raw breakpoint still inserted at the same address.
6794 (find_single_step_breakpoint): New function, extracted from
6795 single_step_breakpoint_inserted_here_p.
6796 (find_single_step_breakpoint): New function,
6797 factored out from single_step_breakpoint_inserted_here_p.
6798 (single_step_breakpoint_inserted_here_p): Reimplement.
6799
1e2ccb61
BM
68002014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6801
6802 Pushed by Joel Brobecker <brobecker@adacore.com>
6803 * source.c (show_substitute_path_command): Fix display of matching
6804 substitution rules.
6805
d3448d85
GB
68062014-06-03 Gary Benson <gbenson@redhat.com>
6807
6808 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6809
06eb1586
DE
68102014-06-02 Doug Evans <xdje42@gmail.com>
6811
6812 Add parameter support for Guile.
6813 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6814 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6815 (scm-param.o): New rule.
6816 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6817 (gdbscm_misc_error): Declare.
6818 (gdbscm_canonicalize_command_name): Declare.
6819 (gdbscm_scm_to_host_string): Declare.
6820 (gdbscm_scm_from_host_string): Declare.
6821 (gdbscm_initialize_parameters): Declare.
6822 * guile/guile.c (initialize_gdb_module): Call
6823 gdbscm_initialize_parameters.
6824 * guile/lib/gdb.scm: Export parameter symbols.
6825 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6826 cmdscm_canonicalize_name and made public. All callers updated.
6827 * guile/scm-exception.c (gdbscm_misc_error): New function.
6828 * guile/scm-param.c: New file.
6829 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6830 (gdbscm_scm_to_host_string): New function.
6831 (gdbscm_scm_from_host_string): New function.
6832 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6833
e698b8c4
DE
68342014-06-02 Doug Evans <xdje42@gmail.com>
6835
6836 Add command support for Guile.
6837 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6838 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6839 (scm-cmd.o): New rule.
6840 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6841 (gdbscm_user_error_p): Declare.
6842 (gdbscm_parse_command_name): Declare.
6843 (gdbscm_valid_command_class_p): Declare.
6844 (gdbscm_initialize_commands): Declare.
6845 * guile/guile.c (initialize_gdb_module): Call
6846 gdbscm_initialize_commands.
6847 * guile/lib/gdb.scm: Export command symbols.
6848 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6849 (throw-user-error): New function.
6850 * guile/scm-cmd.c: New file.
6851 * guile/scm-exception.c (user_error_symbol): New static global.
6852 (gdbscm_user_error_p): New function.
6853 (gdbscm_initialize_exceptions): Set user_error_symbol.
6854 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6855
fb1f94b0
PM
68562014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6857
6858 * top.c (command_loop): Handle comments here...
6859 (command_line_input): ... not here.
6860
ded03782
DE
68612014-06-02 Doug Evans <xdje42@gmail.com>
6862
6863 Add progspace support for Guile.
6864 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6865 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6866 (scm-progspace.o): New rule.
6867 * guile/guile-internal.h (pspace_smob): New typedef.
6868 (psscm_pspace_smob_pretty_printers): Declare.
6869 (psscm_pspace_smob_from_pspace): Declare.
6870 (psscm_scm_from_pspace): Declare.
6871 * guile/guile.c (initialize_gdb_module): Call
6872 gdbscm_initialize_pspaces.
6873 * guile/lib/gdb.scm: Export progspace symbols.
6874 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6875 support.
6876 (append-pretty-printer!): Ditto.
6877 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6878 Implement.
6879 * guile/scm-progspace.c: New file.
6880
397998fc
AM
68812014-06-03 Alan Modra <amodra@gmail.com>
6882
6883 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6884 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6885
6aa5f3a6
DE
68862014-06-02 Doug Evans <dje@google.com>
6887
6888 Add support for skeletonless type units.
6889 * dwarf2read.c (struct dwarf2_per_objfile): New member
6890 n_allocated_type_units.
6891 (struct dwarf2_per_objfile) <tu_stats>: New member
6892 nr_all_type_units_reallocs.
6893 (create_signatured_type_table_from_index): Initialize
6894 n_allocated_type_units
6895 (create_all_type_units): Ditto.
6896 (add_type_unit): Move up in file. New arg slot.
6897 All callers updated. Increase space for all_type_units more
6898 efficiently.
6899 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6900 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6901 (lookup_dwp_signatured_type): Ditto.
6902 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6903 All callers updated.
6904 (build_type_psymtabs_1): Leave type_unit_groups as
6905 NULL if no TUs present.
6906 (print_tu_stats): New function.
6907 (process_skeletonless_type_unit): New function.
6908 (process_dwo_file_for_skeletonless_type_units): New
6909 function.
6910 (process_skeletonless_type_units): New function.
6911 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6912 Call print tu_stats if debugging enabled.
6913
41fac0cf
PA
69142014-06-02 Pedro Alves <palves@redhat.com>
6915
6916 * breakpoint.c (build_target_command_list): Don't build a command
6917 list if we have any duplicate location that isn't a dprintf.
6918
cd1608cc
PA
69192014-06-02 Pedro Alves <palves@redhat.com>
6920
6921 * breakpoint.c (dprintf_breakpoint_hit): New function.
6922 (initialize_breakpoint_ops): Install it as dprintf's
6923 breakpoint_hit method.
6924
486ef3b9
JB
69252014-06-02 Joel Brobecker <brobecker@adacore.com>
6926
6927 * source.c (substitute_path_rule_matches): Simplify using
6928 filename_ncmp instead of FILENAME_CMP.
6929
230cd560
JB
69302014-06-02 Joel Brobecker <brobecker@adacore.com>
6931
6932 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6933
16954d5d
LC
69342014-06-01 Ludovic Courtès <ludo@gnu.org>
6935
6936 * configure.ac: When Guile is available, check for the
6937 availability of 'scm_new_smob'.
6938 * configure, config.h.in: Regenerate.
6939 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6940 function.
6941
53e8a631
AB
69422014-05-30 Andrew Burgess <aburgess@broadcom.com>
6943
6944 * frame.c (struct frame_info): Add stop_string field.
6945 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6946 (get_prev_frame_always): Old content moved into
6947 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6948 TRY_CATCH, handle MEMORY_ERROR exceptions.
6949 (frame_stop_reason_string): New function definition.
6950 * frame.h (unwind_stop_reason_to_string): Extend comment to
6951 mention frame_stop_reason_string.
6952 (frame_stop_reason_string): New function declaration.
6953 * stack.c (frame_info): Switch to frame_stop_reason_string.
6954 (backtrace_command_1): Switch to frame_stop_reason_string.
6955 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6956 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6957 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6958
70e38b8e
AB
69592014-05-30 Andrew Burgess <aburgess@broadcom.com>
6960
6961 * frame.c (frame_stop_reason_string): Rename to ...
6962 (unwind_stop_reason_to_string): this.
6963 * frame.h (frame_stop_reason_string): Rename to ...
6964 (unwind_stop_reason_to_string): this.
6965 * stack.c (frame_info): Update call to frame_stop_reason_string.
6966 (backtrace_command_1): Likewise.
6967 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6968 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6969
938f0e2f
AB
69702014-05-30 Andrew Burgess <aburgess@broadcom.com>
6971
6972 * frame.c (remove_prev_frame): New function.
6973 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6974 remove_prev_frame.
6975
a09dd441
PA
69762014-05-29 Pedro Alves <palves@redhat.com>
6977
6978 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6979 and make it const. When a single-step decays to a continue,
6980 clear 'step', not 'hw_step'. Pass whether the caller wanted
6981 to step to user_visible_resume_ptid, not what we ask the
6982 target to do.
6983
bdc36728
PA
69842014-05-29 Pedro Alves <palves@redhat.com>
6985
6986 * infrun.c (process_event_stop_test, handle_step_into_function)
6987 (handle_step_into_function_backward): Adjust.
6988 Don't set the even thread's stop_step and call stop_waiting before
6989 calling end_stepping_range. Instead do that ...
6990 (end_stepping_range): ... here. Take an ecs pointer parameter.
6991
22bcd14b
PA
69922014-05-29 Pedro Alves <palves@redhat.com>
6993
6994 * infrun.c (stop_stepping): Rename to ...
6995 (stop_waiting): ... this.
6996 (proceed): Update comment.
6997 (process_event_stop_test, handle_inferior_event)
6998 (handle_signal_stop, handle_step_into_function)
6999 (handle_step_into_function_backward): Update.
7000
4ae57c05
PA
70012014-05-29 Pedro Alves <palves@redhat.com>
7002
7003 * infcall.c (run_inferior_call): Don't check whether the current
7004 thread is running after the proceed call.
7005
329ea579
PA
70062014-05-29 Pedro Alves <palves@redhat.com>
7007 Tom Tromey <tromey@redhat.com>
7008
7009 * NEWS: Mention "maint set target-async", "set mi-async", and that
7010 background execution commands are now always available.
7011 * target.h (target_async_permitted): Update comment.
7012 * target.c (target_async_permitted, target_async_permitted_1):
7013 Default to 1.
7014 (set_target_async_command): Rename to ...
7015 (maint_set_target_async_command): ... this.
7016 (show_target_async_command): Rename to ...
7017 (maint_show_target_async_command): ... this.
7018 (_initialize_target): Adjust.
7019 * infcmd.c (prepare_execution_command): Make extern.
7020 * inferior.h (prepare_execution_command): Declare.
7021 * infrun.c (set_observer_mode): Leave target async alone.
7022 * mi/mi-interp.c (mi_interpreter_init): Install
7023 mi_on_sync_execution_done as sync_execution_done observer.
7024 (mi_on_sync_execution_done): New function.
7025 (mi_execute_command_input_handler): Don't print the prompt if we
7026 just started a synchronous command with an async target.
7027 (mi_on_resume): Check sync_execution before printing prompt.
7028 * mi/mi-main.h (mi_async_p): Declare.
7029 * mi/mi-main.c: Include gdbcmd.h.
7030 (mi_async_p): New function.
7031 (mi_async, mi_async_1): New globals.
7032 (set_mi_async_command, show_mi_async_command, mi_async): New
7033 functions.
7034 (exec_continue): Call prepare_execution_command.
7035 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7036 (mi_execute_async_cli_command): Use mi_async_p.
7037 (_initialize_mi_main): Install "set mi-async". Make
7038 "target-async" a deprecated alias.
7039
92bcb5f9
PA
70402014-05-29 Pedro Alves <palves@redhat.com>
7041
7042 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7043 (_initialize_cli_interp): Adjust.
7044 * event-loop.c: Include "observer.h".
7045 (start_event_loop): Notify 'command_error' observers instead of
7046 calling display_gdb_prompt. Remove FIXME comment.
7047 * event-top.c (display_gdb_prompt): Remove call into the
7048 interpreters.
7049 * inf-loop.c: Include "observer.h".
7050 (inferior_event_handler): Notify 'command_error' observers instead
7051 of calling display_gdb_prompt.
7052 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7053 observers instead of calling display_gdb_prompt.
7054 * interps.c (interp_set): Don't call display_gdb_prompt.
7055 (current_interp_display_prompt_p): Delete.
7056 * interps.h (interp_prompt_p): Delete declaration.
7057 (interp_prompt_p_ftype): Delete.
7058 (struct interp_procs) <prompt_proc_p>: Delete field.
7059 (current_interp_display_prompt_p): Delete declaration.
7060 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7061 (_initialize_mi_interp): Adjust.
7062 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7063 'command_error' observers.
7064 (tui_on_sync_execution_done, tui_on_command_error): New
7065 functions.
7066 (tui_display_prompt_p): Delete.
7067 (_initialize_tui_interp): Adjust.
7068
fd664c91
PA
70692014-05-29 Pedro Alves <palves@redhat.com>
7070
7071 PR gdb/13860
7072 * cli/cli-interp.c: Include infrun.h and observer.h.
7073 (cli_uiout, cli_interp): New globals.
7074 (cli_on_signal_received, cli_on_end_stepping_range)
7075 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7076 functions.
7077 (cli_interpreter_init): Install them as 'end_stepping_range',
7078 'signal_received' 'signal_exited', 'exited' and 'no_history'
7079 observers.
7080 (_initialize_cli_interp): Remove cli_interp local.
7081 * infrun.c (handle_inferior_event): Call the several stop reason
7082 observers instead of printing the stop reason directly.
7083 (end_stepping_range): New function.
7084 (print_end_stepping_range_reason, print_signal_exited_reason)
7085 (print_exited_reason, print_signal_received_reason)
7086 (print_no_history_reason): Make static, and add an uiout
7087 parameter. Print to that instead of to CURRENT_UIOUT.
7088 * infrun.h (print_end_stepping_range_reason)
7089 (print_signal_exited_reason, print_exited_reason)
7090 (print_signal_received_reason print_no_history_reason): New
7091 declarations.
7092 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7093 'mi_uiout'.
7094 <cli_uiout>: New field.
7095 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7096 uiout for CLI output. Install 'signal_received',
7097 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7098 observers.
7099 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7100 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7101 (mi_on_no_history): New functions.
7102 (ui_out_free_cleanup): Delete function.
7103 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7104 instead use the one already stored in the MI interpreter data.
7105 (mi_ui_out): Adjust.
7106 * tui/tui-interp.c: Include infrun.h and observer.h.
7107 (tui_interp): New global.
7108 (tui_on_signal_received, tui_on_end_stepping_range)
7109 (tui_on_signal_exited, tui_on_exited)
7110 (tui_on_no_history): New functions.
7111 (tui_init): Install them as 'end_stepping_range',
7112 'signal_received' 'signal_exited', 'exited' and 'no_history'
7113 observers.
7114 (_initialize_tui_interp): Delete tui_interp local.
7115
8817a6f2
PA
71162014-05-29 Pedro Alves <palves@redhat.com>
7117
7118 PR gdb/15713
7119 * linux-nat.c (linux_nat_resume_callback): Rename the second
7120 parameter to 'except'. Skip LP if it points to EXCEPT.
7121 (linux_nat_resume): Don't mark the event lwp as not stopped
7122 before resuming sibling lwps. Instead ask
7123 linux_nat_resume_callback to skip the event lwp. Mark it as not
7124 stopped after actually resuming it.
7125 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7126 resuming it.
7127 (wait_lwp): Mark the lwp as stopped here.
7128 (stop_wait_callback): Mark the lwp as not stopped right after
7129 resuming it. Don't mark lwps as stopped here.
7130 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7131 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7132
251bde03
PA
71332014-05-29 Pedro Alves <palves@redhat.com>
7134
7135 PR PR15693
7136 * infrun.c (resume): Determine how much to resume depending on
7137 whether the caller wanted a step, not whether we can hardware step
7138 the target. Mark all threads that we intend to run as running,
7139 unless we're calling an inferior function.
7140 (normal_stop): If the thread is running an infcall, don't finish
7141 thread state.
7142 * target.c (target_resume): Don't mark threads as running here.
7143
7f3c0343
JB
71442014-05-28 Joel Brobecker <brobecker@adacore.com>
7145
7146 * serial.c (_initialize_serial): Remove support for
7147 the "set remotebaud" and "show remotebaud" commands.
7148 * NEWS: Add entry documenting the removal of that command.
7149
ee34b3f9
YQ
71502014-05-28 Yao Qi <yao@codesourcery.com>
7151
7152 * charset.c: Fix typo in comments.
7153
add6c04d
GB
71542014-05-27 Gary Benson <gbenson@redhat.com>
7155
7156 * utils.c (internal_vproblem): Prompt for a bug report.
7157
92c48fc5
AW
71582014-05-26 Andy Wingo <wingo@igalia.com>
7159
7160 * guile/scm-arch.c (arscm_mark_arch_smob):
7161 * guile/scm-block.c (bkscm_mark_block_smob)
7162 (bkscm_mark_block_syms_progress_smob):
7163 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7164 * guile/scm-exception.c (exscm_mark_exception_smob):
7165 * guile/scm-frame.c (frscm_mark_frame_smob):
7166 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7167 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7168 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7169 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7170 (ppscm_mark_pretty_printer_worker_smob):
7171 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7172 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7173 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7174 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7175 mark functions.
7176 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7177 function.
7178
b2715b27
AW
71792014-05-26 Andy Wingo <wingo@igalia.com>
7180 Doug Evans <xdje42@gmail.com>
7181
7182 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7183 empty_base_class. All uses updated.
7184 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7185 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7186 Adapt all callers.
7187 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7188 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7189 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7190 (gdbscm_gsmob_has_property_p, add_property_name)
7191 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7192 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7193 (gdb-object-has-property?, gdb-object-properties): Remove.
7194 (gdb-object-kind): Renamed from gsmob-kind.
7195
214ab2da
AW
71962014-05-26 Andy Wingo <wingo@igalia.com>
7197
7198 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7199 * configure: Regenerate.
7200
589fdceb
MM
72012014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7202
7203 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7204
67b5c0c1
MM
72052014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7206
7207 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7208 (replay_memory_access_read_only, replay_memory_access_read_write)
7209 (replay_memory_access_types, replay_memory_access)
7210 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7211 (cmd_set_record_btrace, cmd_show_record_btrace)
7212 (cmd_show_replay_memory_access): New.
7213 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7214 (record_btrace_remove_breakpoint): Replace
7215 record_btrace_allow_memory_access with replay_memory_access.
7216 (_initialize_record_btrace): Add commands.
7217 * NEWS: Announce it.
7218
036cd381
RR
72192014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7220
7221 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7222
c77c1e42
RR
72232014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7224
7225 * MAINTAINERS (Write After Approval): Move self back from
7226 paper trail.
7227
45741a9c
PA
72282014-05-22 Pedro Alves <palves@redhat.com>
7229
7230 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7231 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7232 (disable_randomization, enum exec_direction_kind)
7233 (execution_direction, stop_registers, start_remote)
7234 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7235 (wait_for_inferior, normal_stop, get_last_target_status)
7236 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7237 (insert_step_resume_breakpoint_at_sal)
7238 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7239 (set_step_info, print_stop_event, signal_stop_state)
7240 (signal_print_state, signal_pass_state, signal_stop_update)
7241 (signal_print_update, signal_pass_update)
7242 (update_signals_program_target, clear_exit_convenience_vars)
7243 (displaced_step_dump_bytes, update_observer_mode)
7244 (signal_catch_update, gdb_signal_from_command): Move
7245 declarations ...
7246 * infrun.h: ... to this new file.
7247 * amd64-tdep.c: Include infrun.h.
7248 * annotate.c: Include infrun.h.
7249 * arch-utils.c: Include infrun.h.
7250 * arm-linux-tdep.c: Include infrun.h.
7251 * arm-tdep.c: Include infrun.h.
7252 * break-catch-sig.c: Include infrun.h.
7253 * breakpoint.c: Include infrun.h.
7254 * common/agent.c: Include infrun.h instead of inferior.h.
7255 * corelow.c: Include infrun.h.
7256 * event-top.c: Include infrun.h.
7257 * go32-nat.c: Include infrun.h.
7258 * i386-tdep.c: Include infrun.h.
7259 * inf-loop.c: Include infrun.h.
7260 * infcall.c: Include infrun.h.
7261 * infcmd.c: Include infrun.h.
7262 * infrun.c: Include infrun.h.
7263 * linux-fork.c: Include infrun.h.
7264 * linux-nat.c: Include infrun.h.
7265 * linux-thread-db.c: Include infrun.h.
7266 * monitor.c: Include infrun.h.
7267 * nto-tdep.c: Include infrun.h.
7268 * procfs.c: Include infrun.h.
7269 * record-btrace.c: Include infrun.h.
7270 * record-full.c: Include infrun.h.
7271 * remote-m32r-sdi.c: Include infrun.h.
7272 * remote-mips.c: Include infrun.h.
7273 * remote-notif.c: Include infrun.h.
7274 * remote-sim.c: Include infrun.h.
7275 * remote.c: Include infrun.h.
7276 * reverse.c: Include infrun.h.
7277 * rs6000-tdep.c: Include infrun.h.
7278 * s390-linux-tdep.c: Include infrun.h.
7279 * solib-irix.c: Include infrun.h.
7280 * solib-osf.c: Include infrun.h.
7281 * solib-svr4.c: Include infrun.h.
7282 * target.c: Include infrun.h.
7283 * top.c: Include infrun.h.
7284 * windows-nat.c: Include infrun.h.
7285 * mi/mi-interp.c: Include infrun.h.
7286 * mi/mi-main.c: Include infrun.h.
7287 * python/py-threadevent.c: Include infrun.h.
7288
98eb56a4
PA
72892014-05-22 Pedro Alves <palves@redhat.com>
7290
7291 * infrun.c (handle_inferior_event): Store the exit code for
7292 --return-child-result here, instead of ...
7293 (print_exited_reason): ... here.
7294
17b2616c
PA
72952014-05-21 Pedro Alves <palves@redhat.com>
7296
7297 PR gdb/13860
7298 * gdbthread.h (struct thread_control_state): New field
7299 `command_interp'.
7300 * infrun.c (follow_fork): Copy the new thread control field to the
7301 child fork thread.
7302 (clear_proceed_status_thread): Clear the new thread control field.
7303 (proceed): Set the new thread control field.
7304 * interps.h (command_interp): Declare.
7305 * interps.c (command_interpreter): New global.
7306 (command_interp): New function.
7307 (interp_exec): Set `command_interpreter' while here.
7308 * cli-out.c (cli_uiout_dtor): New function.
7309 (cli_ui_out_impl): Install it.
7310 * mi/mi-interp.c: Include cli-out.h.
7311 (mi_cmd_interpreter_exec): Add comment.
7312 (restore_current_uiout_cleanup): New function.
7313 (ui_out_free_cleanup): New function.
7314 (mi_on_normal_stop): If finishing an execution command started by
7315 a CLI command, or any kind of breakpoint-like event triggered,
7316 print the stop event to the output (CLI) stream.
7317 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7318
5166082f
PA
73192014-05-21 Pedro Alves <palves@redhat.com>
7320
7321 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7322 current source line having changed.
7323 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7324 * infrun.c (normal_stop): Adjust call to
7325 set_current_sal_from_frame.
7326 * source.c (clear_lines_listed_range): New function.
7327 (set_current_source_symtab_and_line, identify_source_line): Clear
7328 the lines listed range.
7329 (line_info): Handle the first "info line" after the current source
7330 line having changed.
7331 * stack.c (print_stack_frame): Remove center handling.
7332 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7333 center sal.line.
7334
c1ee2fb3
PA
73352014-05-21 Pedro Alves <palves@redhat.com>
7336
7337 * inf-child.c (inf_child_mourn_inferior): New function.
7338 * inf-child.h (inf_child_mourn_inferior): New declaration.
7339 * darwin-nat.c (darwin_mourn_inferior): Use
7340 inf_child_mourn_inferior.
7341 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7342 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7343 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7344 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7345 * windows-nat.c (windows_mourn_inferior): Likewise.
7346
5c6d4fb2
DE
73472014-05-21 Doug Evans <xdje42@gmail.com>
7348
250748cb 7349 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7350
4a2722c5
DE
73512014-05-21 Doug Evans <xdje42@gmail.com>
7352
17292b30 7353 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7354 (gdbscm_out_of_range_error): Ditto.
7355 (gdbscm_memory_error): Ditto.
250748cb
DE
7356 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7357 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7358 (gdbscm_out_of_range_error): Update.
7359 (gdbscm_memory_error): Update.
7360 (gdbscm_scm_to_target_string_unsafe): Delete.
7361
6a3cb8e8
PA
73622014-05-21 Pedro Alves <palves@redhat.com>
7363
7364 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7365 globals.
7366 (inf_child_open_target): New function.
7367 (inf_child_open): Use inf_child_open_target to push the target
7368 instead of erroring out.
7369 (inf_child_disconnect, inf_child_close)
7370 (inf_child_maybe_unpush_target): New functions.
7371 (inf_child_target): Install inf_child_disconnect and
7372 inf_child_close. Store a pointer to the returned object.
7373 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7374 declarations.
7375 * target.c (auto_connect_native_target): New global.
7376 (show_default_run_target): New function.
7377 (find_default_run_target): Return NULL if automatically connecting
7378 to the native target is disabled.
7379 (_initialize_target): Install set/show auto-connect-native-target.
7380 * NEWS: Mention "set auto-connect-native-target", and "target
7381 native".
7382 * linux-nat.c (super_close): New global.
7383 (linux_nat_close): Call super_close.
7384 (linux_nat_add_target): Store a pointer to the base class's
7385 to_close method.
7386 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7387 inf_child_maybe_unpush.
7388 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7389 already pushed.
7390 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7391 the inferior. Use inf_child_maybe_unpush_target.
7392 (inf_ttrace_attach): Don't push the target if it is already
7393 pushed.
7394 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7395 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7396 after mourning the inferior. Use inf_child_maybe_unpush_target.
7397 (darwin_attach_pid): Don't push the target if it is already
7398 pushed.
7399 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7400 mourning the inferior. Use inf_child_maybe_unpush_target.
7401 (gnu_detach): Use inf_child_maybe_unpush_target.
7402 * go32-nat.c (go32_create_inferior): Don't push the target if it
7403 is already pushed.
7404 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7405 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7406 (procfs_open): Rename to ...
7407 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7408 comments. Can target_preopen before changing node. Call
7409 inf_child_open_target to push the target explicitly.
7410 (procfs_attach): Don't push the target if it is already pushed.
7411 (procfs_detach): Use inf_child_maybe_unpush_target.
7412 (procfs_create_inferior): Don't push the target if it is already
7413 pushed.
7414 (nto_native_ops): New global.
7415 (procfs_open): Reimplement.
7416 (procfs_native_open): New function.
7417 (init_procfs_targets): Install procfs_native_open as to_open of
7418 "target native". Store a pointer to the "native" target in
7419 nto_native_ops.
7420 * procfs.c (procfs_attach): Don't push the target if it is already
7421 pushed.
7422 (procfs_detach): Use inf_child_maybe_unpush_target.
7423 (procfs_mourn_inferior): Only unpush the target after mourning the
7424 inferior. Use inf_child_maybe_unpush_target.
7425 (procfs_init_inferior): Don't push the target if it is already
7426 pushed.
7427 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7428 if it is already pushed.
7429
930ee1b1
PA
74302014-05-21 Pedro Alves <palves@redhat.com>
7431
7432 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7433 and "procfs" targets are now called "native" instead.
7434
1f5d1b13
PA
74352014-05-21 Pedro Alves <palves@redhat.com>
7436
7437 * go32-nat.c (go32_open): Delete.
7438 (go32_target): Don't override the to_open method.
7439
132f8e03
PA
74402014-05-21 Pedro Alves <palves@redhat.com>
7441
7442 * nto-procfs.c (procfs_can_run): New function.
7443 (nto_procfs_ops): New global.
7444 (init_procfs_targets): New, based on procfs_target. Install
7445 "target native" in addition to "target procfs".
7446 (_initialize_procfs): Call init_procfs_targets instead of adding
7447 the target here.
7448
03c136c3
PA
74492014-05-21 Pedro Alves <palves@redhat.com>
7450
7451 * windows-nat.c (windows_target): Don't override to_shortname,
7452 to_longname or to_doc.
7453
a635d0f3
PA
74542014-05-21 Pedro Alves <palves@redhat.com>
7455
7456 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7457 to_doc.
7458
4f9b5133
PA
74592014-05-21 Pedro Alves <palves@redhat.com>
7460
7461 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7462 to_shortname, to_longname or to_doc.
7463
bc85afde
PA
74642014-05-21 Pedro Alves <palves@redhat.com>
7465
7466 * go32-nat.c (go32_target): Don't override to_shortname,
7467 to_longname or to_doc.
7468
4ebfc96e
PA
74692014-05-21 Pedro Alves <palves@redhat.com>
7470
7471 * inf-child.c (inf_child_open): Remove mention of "child".
7472 (inf_child_target): Rename target to "native" instead of "child".
7473
2648dfed
AA
74742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7475
7476 * Makefile.in (SFILES): Delete "regset.c".
7477 (COMMON_OBS): Delete "regset.o".
7478 * regset.c: Remove.
7479 * regset.h (regset_alloc): Delete prototype.
7480
b13feb94
AA
74812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7482
7483 * sparc-linux-tdep.c (sparc32_linux_gregset)
7484 (sparc32_linux_fpregset): New static regset structures.
7485 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7486 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7487 'fpregset' fields.
7488 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7489 (sparc64_linux_fpregset): New static regset structures.
7490 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7491 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7492 New static regset structures.
7493 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7494 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7495 New static regset structures.
7496 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7497 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7498 New static regset structures.
7499 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7500 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7501 New static regset structures.
7502 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7503
b4fd25c9
AA
75042014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7505
7506 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7507 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7508 register maps ("regmaps") from "*regset" to "*regmap". Do this
7509 for all regmap types and variables.
7510 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7511 (sparc32_linux_supply_core_gregset)
7512 (sparc32_linux_collect_core_gregset)
7513 (sparc32_linux_supply_core_fpregset)
7514 (sparc32_linux_collect_core_fpregset): Likewise.
7515 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7516 (sparc_gregmap, sparc_fpregmap): ... these.
7517 (sparc_supply_gregset, sparc_collect_gregset)
7518 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7519 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7520 (_initialize_sparc_nat): Rename regmaps.
7521 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7522 (sparc_gregmap, sparc_fpregmap): ... these.
7523 (sparc_supply_gregset, sparc_collect_gregset)
7524 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7525 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7526 Rename macros to...
7527 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7528 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7529 Likewise.
7530 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7531 Rename to...
7532 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7533 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7534 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7535 regmaps.
7536 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7537 (sparc32_bsd_fpregset): Rename to...
7538 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7539 (sparc32_bsd_fpregmap): ... these.
7540 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7541 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7542 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7543 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7544 (struct sparc_gregmap, struct sparc_fpregmap)
7545 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7546 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7547 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7548 (sparc32_supply_regset, sparc32_collect_gregset)
7549 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7550 prototypes.
7551 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7552 (sparc64_linux_ptrace_gregmap): ... this.
7553 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7554 (_initialize_sparc64_linux_nat): Rename regmaps.
7555 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7556 (sparc64_linux_core_gregmap): ... this.
7557 (sparc64_linux_supply_core_gregset)
7558 (sparc64_linux_collect_core_gregset)
7559 (sparc64_linux_supply_core_fpregset)
7560 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7561 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7562 (sparc64_sol2_fpregset): Rename to...
7563 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7564 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7565 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7566 regmaps.
7567 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7568 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7569 (sparc64_bsd_fpregset): Rename to...
7570 (struct sparc_gregmap, sparc64_sol2_gregmap)
7571 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7572 (sparc64_bsd_fpregmap): ... these.
7573 (sparc64_supply_gregset, sparc64_collect_gregset)
7574 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7575 prototypes.
7576 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7577 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7578 (sparc64fbsd_gregmap): ... this.
7579 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7580 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7581 Rename regmaps.
7582 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7583 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7584 (sparc64nbsd_collect_fpregset): Likewise.
7585 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7586 (sparc64nbsd_gregmap): ... this.
7587 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7588 regmaps.
7589 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7590 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7591 (sparc64obsd_gregmap): ... this.
7592 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7593 regmaps.
7594 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7595 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7596 (sparc32nbsd_gregmap): ... this.
7597 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7598 regmaps.
7599
8fea3224
AA
76002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7601
7602 * score-tdep.c (score7_linux_gregset): New static regset
7603 structure.
7604 (score7_linux_regset_from_core_section): Remove dynamic regset
7605 allocation.
7606 (score_gdbarch_init): Drop allocation of tdep structure.
7607 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7608
24534243
AA
76092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7610
7611 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7612 regset structures.
7613 (am33_regset_from_core_section): Remove dynamic regset
7614 allocations.
7615
b7195f27
AA
76162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7617
7618 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7619 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7620 structures.
7621 (mips_linux_regset_from_core_section): Remove dynamic regset
7622 allocations.
7623 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7624 'gregset64', 'fpregset', and 'fpregset64'.
7625 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7626 deleted tdep fields.
7627
ecc37a5a
AA
76282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7629
7630 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7631 regset structures.
7632 (amd64_regset_from_core_section): Remove dynamic regset
7633 allocations.
7634 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7635 structure.
7636 (amd64obsd_regset_from_core_section): Remove dynamic regset
7637 allocation.
7638 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7639 Likewise.
7640 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7641 x86-common regset supply function.
7642 * i386-tdep.c (i386_collect_gregset): Make static.
7643 (i386_gregset): New global regset structure.
7644 (i386_fpregset, i386_xstateregset): New static regset structures.
7645 (i386_regset_from_core_section): Remove dynamic regset
7646 allocations.
7647 (i386_gdbarch_init): Remove initialization of tdep fields
7648 'gregset', 'fpregset', and 'xstateregset'.
7649 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7650 'fpregset', and 'xstateregset'.
7651 (i386_collect_gregset): Remove prototype.
7652 (i386_gregset): New declaration.
7653 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7654 structure.
7655 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7656 allocation.
7657
b7611c43
AA
76582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7659
7660 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7661 (arm_linux_vfpregset): New static regset structures.
7662 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7663 regset structures.
7664 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7665 and 'vfpregset' fields.
7666
a069a2bd
AA
76672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7668
7669 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7670 (aarch64_linux_fpregset): New static regset structures.
7671 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7672 of regset structures.
7673 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7674 'fpregset' fields.
7675
09424cff
AA
76762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7677
7678 * regset.h (struct regset): Remove gdbarch field.
7679 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7680 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7681 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7682 Likewise.
7683 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7684 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7685 (ppc32_linux_vsxregset): Likewise.
7686 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7687 via the regcache instead of the regset.
7688 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7689 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7690 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7691 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7692 Likewise.
7693
3ca7dae4
AA
76942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7695
7696 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7697 Constify structures.
7698 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7699 (alphanbsd_aout_gregset): Likewise.
7700 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7701 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7702 Likewise.
7703 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7704 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7705 Likewise.
7706 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7707 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7708 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7709 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7710 * m88k-tdep.c (m88k_gregset): Likewise.
7711 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7712 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7713 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7714 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7715 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7716 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7717 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7718 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7719 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7720 Likewise.
7721 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7722 * sh-tdep.h (sh_corefile_gregset): Likewise.
7723 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7724 * vax-tdep.c (vax_gregset): Likewise.
7725
5876f503
JK
77262014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7727
7728 Fix TLS access for -static -pthread.
7729 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7730 (try_thread_db_load_1): Initialize it.
7731 (thread_db_get_thread_local_address): Call it if LM is zero.
7732 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7733 * target.h (struct target_ops) (to_get_thread_local_address): Add
7734 load_module_addr comment.
7735
0256a6ac
PA
77362014-05-21 Pedro Alves <palves@redhat.com>
7737
7738 * dcache.c (dcache_read_memory_partial): If reading the cache line
7739 fails, fallback to reading just the memory the caller wanted.
7740
227533ac
DE
77412014-05-20 Doug Evans <dje@google.com>
7742
7743 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7744 instead of get_current_arch.
7745
936d2992
PA
77462014-05-20 Pedro Alves <palves@redhat.com>
7747
7748 * NEWS: Mention that compare-sections now works with all targets.
7749
7750 * remote.c (PACKET_qCRC): New enum value.
7751 (remote_verify_memory): Don't send qCRC if the target has no
7752 execution. Use packet_support/packet_ok. If the target doesn't
7753 support the qCRC packet, fallback to a deep memory copy.
7754 (compare_sections_command): Say "target image" instead of "remote
7755 executable".
7756 (_initialize_remote): Add PACKET_qCRC to the list of config
7757 packets that have no associated command. Extend comment.
7758 * target.c (simple_verify_memory, default_verify_memory): New
7759 function.
7760 * target.h (struct target_ops) <to_verify_memory>: Default to
7761 default_verify_memory.
7762 (simple_verify_memory): New declaration.
7763 * target-delegates.c: Regenerate.
7764
e59fa00f
MM
77652014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7766
7767 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7768
f2205de0
HZ
77692014-05-20 Hui Zhu <hui@codesourcery.com>
7770 Yao Qi <yao@codesourcery.com>
7771
7772 PR backtrace/16558
7773 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7774 and change address of sp and pc.
7775
c4e54771
TT
77762014-05-19 Tom Tromey <tromey@redhat.com>
7777
7778 * gdbtypes.c (rank_function): Use XNEWVEC.
7779 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7780
73051182
DE
77812014-05-19 Doug Evans <dje@google.com>
7782
7783 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7784 build_type_unit_groups and moved closer to only caller. Remove
7785 arguments. All references updated. Remove outdated .gdb_index
7786 comment.
7787 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7788 build_type_psymtabs_1.
7789
8832e7e3
DE
77902014-05-19 Doug Evans <dje@google.com>
7791
7792 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7793 n_type_unit_groups, all_type_unit_groups. All uses removed.
7794 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7795 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7796 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7797 (add_type_unit_group_to_table): Delete.
7798
cd8ae15e
DE
77992014-05-19 Doug Evans <dje@google.com>
7800
7801 * eval.c (evaluate_subexp_standard): Add some comments.
7802
08f4850b
DE
78032014-05-17 Doug Evans <xdje42@gmail.com>
7804
7805 * progspace.c (remove_program_space): Delete, unused.
7806 * progspace.h (remove_program_space): Ditto.
7807
bed8455c
DE
78082014-05-17 Doug Evans <xdje42@gmail.com>
7809
7810 * inferior.c (prune_inferiors): Fix comment.
7811 (remove_inferior_command): Call prune_program_spaces.
7812
8d551b02
DE
78132014-05-16 Doug Evans <dje@google.com>
7814
7815 New command line option -D.
7816 * NEWS: Mention it.
7817 * main.c (set_gdb_data_directory): New function.
7818 (captured_main): Recognize -D. Flag error for --data-directory "".
7819 Call set_gdb_data_directory.
7820 (print_gdb_help): Print --data-directory, -D.
7821 * main.h (set_gdb_data_directory): Declare.
7822 * top.c (staged_gdb_datadir): New static global.
7823 (set_gdb_datadir): Call set_gdb_data_directory
7824 (show_gdb_datadir): New function.
7825 (init_main): Update init of data-directory parameter.
7826
18848e28
GF
78272014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7828
7829 Import the "dirfd" gnulib module.
7830 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7831 * gnulib/aclocal.m4: Update.
7832 * gnulib/config.in: Update.
7833 * gnulib/configure: Update.
7834 * gnulib/import/Makefile.am: Update.
7835 * gnulib/import/Makefile.in: Update.
7836 * gnulib/import/dirfd.c: New.
7837 * gnulib/import/m4/dirfd.m4: New.
7838 * gnulib/import/m4/gnulib-cache.m4: Update.
7839 * gnulib/import/m4/gnulib-comp.m4: Update.
7840
95c64f92
YQ
78412014-05-16 Pierre Muller <muller@sourceware.org>
7842 Yao Qi <yao@codesourcery.com>
7843
7844 * valprint.c (print_wchar): Move the code on checking whether
7845 W is a printable wide char to the default branch of switch
7846 statement below. Call wchar_printable instead of gdb_iswprint.
7847
cac395ea
TM
78482014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7849
19679eca 7850 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7851 ldr.w and ldrd instructions.
7852
83655187
DE
78532014-05-15 Doug Evans <dje@google.com>
7854
7855 * dwarf2read.c (read_structure_type): Delete outdated comments.
7856
dd756689
TT
78572014-05-14 Tom Tromey <tromey@redhat.com>
7858
7859 * macrocmd.c (print_macro_definition): Reindent.
7860
75ddda77
DE
78612014-05-13 Doug Evans <xdje42@gmail.com>
7862
7863 * python/py-cmd.c (cmdpy_completer): Add comment.
7864 (completers): Make const.
7865
b0f16a3e
SM
78662014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7867
7868 * infrun.c (resume): Remove should_resume (unused). Move up
7869 declaration of resume_ptid.
7870
033c3379
TT
78712014-05-13 Tom Tromey <tromey@redhat.com>
7872
7873 * language.h (unop_type_check): Remove.
7874 (binop_type_check): Don't declare.
7875
9b44a3a5
AA
78762014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7877
7878 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7879 call to regcache_raw_collect.
7880
303a33fa
SM
78812014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7882
7883 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7884 mi_console->quote as the quoting character.
7885
196100a0
SM
78862014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7887
7888 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7889
f989a1c8
TT
78902014-04-29 Tom Tromey <tromey@redhat.com>
7891
7892 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7893 "show debug varobj".
7894
9404b58f
KM
78952014-05-07 Kyle McMartin <kyle@redhat.com>
7896
7897 Pushed by Joel Brobecker <brobecker@adacore.com>.
7898 * aarch64-tdep.c (aarch64_software_single_step): New function.
7899 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7900 with aarch64_software_single_step.
7901
5e49ba57
JB
79022014-05-05 Joel Brobecker <brobecker@adacore.com>
7903
7904 GDB 7.7.1 released.
7905
c888a17d
KS
79062014-05-05 Keith Seitz <keiths@redhat.com>
7907
7908 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7909 variable or history value is successfully parsed.
7910
290a839c
YQ
79112014-05-05 Yao Qi <yao@codesourcery.com>
7912 Pedro Alves <palves@redhat.com>
7913
7914 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7915 address of blocks that intersects the requested range. Trim
7916 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7917 sections.
7918 * ctf.c (ctf_xfer_partial): Likewise.
7919
91256dc2
YQ
79202014-05-05 Yao Qi <yao@codesourcery.com>
7921
7922 * printcmd.c (display_command): Remove the check to
7923 target_has_execution.
7924
07284463
MK
79252014-05-03 Mark Kettenis <kettenis@gnu.org>
7926
7927 * ppcobsd-nat.c: Include "obsd-nat.h".
7928 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7929 add_target.
7930 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7931
30a1e6cc
SDJ
79322014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7933
7934 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7935 and 16-bit signed and unsigned arguments. Update comment.
7936 (stap_parse_probe_arguments): Extend code to handle such
7937 arguments. Use warning instead of complaint to notify about
7938 unrecognized bitness.
7939
f33da99a
SDJ
79402014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7941
7942 PR breakpoints/16889
7943 * stap-probe.c (stap_parse_probe_arguments): Simplify
7944 check for non-prefixed probes (i.e., probes whose
7945 arguments do not start with "N@"). Always set the
7946 argument type to a sane value.
7947
95cf3b38
DT
79482014-05-01 David Taylor <dtaylor@emc.com>
7949
7950 * remote.c (compare_sections_command): Add -r option to compare
7951 all loadable read-only sections.
7952
1cfdf534
SC
79532014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7954
7955 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7956 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7957 Update all callers.
7958 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7959 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7960 Remove unused CORE_ADDR argument. Update all callers.
7961
ca4f7f8b
PA
79622014-04-29 Pedro Alves <palves@redhat.com>
7963
7964 * remote.c (struct packet_config) <detect>: Extend comment.
7965 (add_packet_config_cmd): Don't set the config's detect or support
7966 fields here.
7967 (init_all_packet_configs): Also initialize the config's 'detect'
7968 field.
7969 (reset_all_packet_configs_support): New function.
7970 (remote_open_1): Call reset_all_packet_configs_support instead of
7971 init_all_packet_configs.
7972 (_initialize_remote): Initialize all packet configs. Assert that
7973 all packets have an associated command, except a few known
7974 outliers.
7975
11c1ba78
JB
79762014-04-28 Joel Brobecker <brobecker@adacore.com>
7977
7978 * dwarf2read.c (read_subrange_type): Handle dynamic
7979 DW_AT_lower_bound attributes.
7980
8739bc53
JB
79812014-04-28 Joel Brobecker <brobecker@adacore.com>
7982
7983 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7984 dynamic bounds before computing its upper bound.
7985 (ada_discrete_type_low_bound): Same as above with the lower bound.
7986
6f8a3220
JB
79872014-04-28 Joel Brobecker <brobecker@adacore.com>
7988
7989 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7990 range types. Adjust the array handling implementation to
7991 take advantage of this change.
7992 (resolve_dynamic_range): New function, mostly extracted from
7993 resolve_dynamic_bounds.
7994 (resolve_dynamic_array): New function, mostly extracted from
7995 resolve_dynamic_bounds.
7996 (resolve_dynamic_bounds): Delete.
7997 (resolve_dynamic_type): Reimplement. Add handling of
7998 TYPE_CODE_RANGE types.
7999
4d072ce4
JB
80002014-04-28 Joel Brobecker <brobecker@adacore.com>
8001
8002 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8003 handling of parallel ___XA types.
8004
52865325
JB
80052014-04-28 Joel Brobecker <brobecker@adacore.com>
8006
8007 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8008 unnecessary second call to static_unwrap_type.
8009
433e77fa
HZ
80102014-04-27 Hui Zhu <hui@codesourcery.com>
8011
8012 * stack.c (print_frame_info): Call do_gdb_disassembly with
8013 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8014
b51a69ee
DE
80152014-04-26 Doug Evans <xdje42@gmail.com>
8016
8017 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8018
7ae1a6a6
PA
80192014-04-25 Pedro Alves <palves@redhat.com>
8020
8021 PR server/16255
8022 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8023 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8024 and newline from built string.
8025 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8026 (linux_ptrace_attach_fail_reason): ... this.
8027 * linux-nat.c (linux_nat_attach): Adjust to use
8028 linux_ptrace_attach_fail_reason.
8029
4082afcc
PA
80302014-04-25 Pedro Alves <palves@redhat.com>
8031
8032 * remote.c (struct remote_state): Remove multi_process_aware,
8033 non_stop_aware, cond_tracepoints, cond_breakpoints,
8034 breakpoint_commands, fast_tracepoints, static_tracepoints,
8035 install_in_trace, disconnected_tracing,
8036 enable_disable_tracepoints, string_tracing, and
8037 augmented_libraries_svr4_read fields.
8038 (remote_multi_process_p): Move further below in the file.
8039 (struct packet_config): Add comments.
8040 (update_packet_config): Delete function.
8041 (show_packet_config_cmd): Use packet_config_support.
8042 (add_packet_config_cmd): Use NULL as set callback.
8043 (packet_ok): "set remote foo-packet"-style commands no longer
8044 change config->supported -- adjust.
8045 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8046 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8047 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8048 (PACKET_QNonStop, PACKET_multiprocess_feature)
8049 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8050 (PACKET_DisconnectedTracing_feature)
8051 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8052 (set_remote_protocol_packet_cmd): Delete function.
8053 (packet_config_support, packet_support): New functions.
8054 (set_remote_protocol_Z_packet_cmd): Don't call
8055 update_packet_config.
8056 (remote_query_attached, remote_pass_signals)
8057 (remote_program_signals, remote_threads_info)
8058 (remote_threads_extra_info, remote_start_remote): Use
8059 packet_support.
8060 (remote_start_remote): Use packet_config_support and
8061 packet_support.
8062 (init_all_packet_configs): Set all packets to unknown support,
8063 instead of calling update_packet_config.
8064 (remote_check_symbols): Use packet_support.
8065 (remote_supported_packet): Unconditionally set the packet config's
8066 support status.
8067 (remote_multi_process_feature, remote_non_stop_feature)
8068 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8069 (remote_breakpoint_commands_feature)
8070 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8071 (remote_install_in_trace_feature)
8072 (remote_disconnected_tracing_feature)
8073 (remote_enable_disable_tracepoint_feature)
8074 (remote_string_tracing_feature)
8075 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8076 (remote_protocol_features): Adjust to use remote_supported_packet
8077 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8078 "ConditionalTracepoints", "ConditionalBreakpoints",
8079 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8080 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8081 "EnableDisableTracepoints", and "tracenz".
8082 (remote_query_supported): Use packet_support.
8083 (remote_open_1): Adjust.
8084 (extended_remote_attach_1): Use packet_support. Switch on the
8085 result of packet_ok instead of checking whether the packet ended
8086 up disabled.
8087 (remote_vcont_resume): Use packet_support.
8088 (remote_resume, remote_stop_ns, fetch_register_using_p)
8089 (remote_prepare_to_store, store_register_using_P)
8090 (check_binary_download, remote_write_bytes): Use packet_support.
8091 (remote_vkill): Use packet_support. Switch on the result of
8092 packet_ok instead of checking whether the packet ended up
8093 disabled.
8094 (extended_remote_supports_disable_randomization): Use
8095 packet_support.
8096 (extended_remote_run): Switch on the result of packet_ok instead
8097 of checking whether the packet ended up disabled.
8098 (remote_insert_breakpoint, remote_remove_breakpoint)
8099 (remote_insert_watchpoint, remote_remove_watchpoint)
8100 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8101 packet_support.
8102 (remote_search_memory): Use packet_config_support.
8103 (remote_get_thread_local_address, remote_get_tib_address)
8104 (remote_hostio_send_command, remote_can_execute_reverse): Use
8105 packet_support.
8106 (remote_supports_cond_tracepoints)
8107 (remote_supports_cond_breakpoints)
8108 (remote_supports_fast_tracepoints)
8109 (remote_supports_static_tracepoints)
8110 (remote_supports_install_in_trace)
8111 (remote_supports_enable_disable_tracepoint)
8112 (remote_supports_string_tracing)
8113 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8114 the packet config says the feature is enabled or disabled.
8115 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8116 (remote_get_trace_status): Use packet_support.
8117 (remote_set_disconnected_tracing): Adjust to check whether the
8118 feature is enabled with packet_support.
8119 (remote_set_trace_buffer_size, remote_use_agent)
8120 (remote_can_use_agent, remote_supports_btrace): Use
8121 packet_support.
8122 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8123 Use packet_config_support.
8124 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8125 the packet config says the feature is enabled or disabled.
8126 (set_range_stepping): Use packet_support.
8127
bdb52a22
TT
81282014-04-25 Tom Tromey <tromey@redhat.com>
8129
8130 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8131 argument.
8132
e9475ead
SA
81332014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8134
8135 * NEWS: Mention support for C99 variable length arrays.
8136
82eacd52
JB
81372014-04-24 Joel Brobecker <brobecker@adacore.com>
8138
8139 * ada-lang.c (standard_exc): Expand introductory comment.
8140
01f9f808
MS
81412014-04-24 Michael Sturm <michael.sturm@mintel.com>
8142 Walfred Tedeschi <walfred.tedeschi@intel.com>
8143
8144 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8145 AVX512 registers.
8146 (amd64_linux_read_description): Add code to handle AVX512 xstate
8147 mask and return respective tdesc.
8148 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8149 and features/i386/x32-avx512-linux.c.
8150 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8151 (amd64_linux_core_read_description): Add code to handle AVX512
8152 xstate mask and return respective tdesc.
8153 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8154 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8155 calculation.
8156 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8157 (tdesc_amd64_avx512_linux): New prototype.
8158 (tdesc_x32_avx512_linux): Likewise.
8159 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8160 features/i386/x32-avx512.c.
8161 (amd64_ymm_avx512_names): New register names for pseudo
8162 registers YMM16-31.
8163 (amd64_ymmh_avx512_names): New register names for raw registers
8164 YMMH16-31.
8165 (amd64_k_names): New register names for K registers.
8166 (amd64_zmmh_names): New register names for ZMM raw registers.
8167 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8168 (amd64_xmm_avx512_names): New register names for XMM16-31
8169 registers.
8170 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8171 registers.
8172 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8173 if feature is present.
8174 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8175 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8176 (AMD64_NUM_REGS): Adjust to new number of registers.
8177 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8178 registers supplied via XSTATE by AVX512 registers.
8179 (i386_linux_read_description): Add case for AVX512.
8180 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8181 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8182 (i386_linux_core_read_description): Add case for AVX512.
8183 (i386_linux_init_abi): Install supported register note section
8184 for AVX512.
8185 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8186 AVX512.
8187 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8188 registers to be number of zmm7h + 1.
8189 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8190 * i386-tdep.c: Include features/i386/i386-avx512.c.
8191 (i386_zmm_names): Add ZMM pseudo register names array.
8192 (i386_zmmh_names): Add ZMM raw register names array.
8193 (i386_k_names): Add K raw register names array.
8194 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8195 registers. AVX512 has 16 more ZMM registers than there are YMM
8196 registers.
8197 (i386_zmmh_regnum_p): Add function to look up register number of
8198 ZMM raw registers.
8199 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8200 (i386_k_regnum_p): Likewise for K raw registers.
8201 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8202 registers added by AVX512.
8203 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8204 registers added by AVX512.
8205 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8206 added by AVX512.
8207 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8208 (i386_pseudo_register_name): Add ZMM pseudo registers.
8209 (i386_zmm_type): Construct and return vector registers type for ZMM
8210 registers.
8211 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8212 ZMM0-31 pseudo registers and K registers.
8213 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8214 and YMM16-31 registers from register cache.
8215 (i386_pseudo_register_write): Add code to write K, ZMM and
8216 YMM16-31 registers.
8217 (i386_register_reggroup_p): Add code to include/exclude AVX512
8218 registers in/from respective register groups.
8219 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8220 registers if feature is present in xcr0.
8221 (i386_gdbarch_init): Add code to initialize AVX512 feature
8222 variables in tdep structure, wire in pseudo registers and call
8223 initialize_tdesc_i386_avx512.
8224 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8225 variables.
8226 (i386_regnum): Add AVX512 registers.
8227 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8228 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8229 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8230 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8231 512 bits wide.
8232 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8233 (i386_ymm_avx512_regnum_p): Likewise.
8234 (i386_k_regnum_p): Likewise.
8235 (i386_zmm_regnum_p): Likewise.
8236 (i386_zmmh_regnum_p): Likewise.
8237 * i387-tdep.c : Update year in copyright notice.
8238 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8239 XSAVE buffer.
8240 (XSAVE_YMM_AVX512_ADDR): New macro.
8241 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8242 XSAVE buffer.
8243 (XSAVE_XMM_AVX512_ADDR): New macro.
8244 (xsave_avx512_k_offset): New table for K register offsets in
8245 XSAVE buffer.
8246 (XSAVE_AVX512_K_ADDR): New macro.
8247 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8248 in XSAVE buffer.
8249 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8250 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8251 buffer.
8252 (i387_collect_xsave): Add code to collect AVX512 registers from
8253 XSAVE buffer.
8254 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8255 of XMM16-31 registers.
8256 (I387_NUM_K_REGS): New define for number of K registers.
8257 (I387_K0_REGNUM): New define for K0 register number.
8258 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8259 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8260 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8261 registers.
8262 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8263 (I387_XMM16_REGNUM): New define for XMM16 register number.
8264 (I387_YMM0_REGNUM): New define for YMM0 register number.
8265 (I387_KEND_REGNUM): New define for last K register number.
8266 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8267 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8268 number.
8269 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8270 number.
8271 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8272 size.
8273 * features/Makefile: Add AVX512 related files.
8274 * features/i386/32bit-avx512.xml: New file.
8275 * features/i386/64bit-avx512.xml: Likewise.
8276 * features/i386/amd64-avx512-linux.c: Likewise.
8277 * features/i386/amd64-avx512-linux.xml: Likewise.
8278 * features/i386/amd64-avx512.c: Likewise.
8279 * features/i386/amd64-avx512.xml: Likewise.
8280 * features/i386/i386-avx512-linux.c: Likewise.
8281 * features/i386/i386-avx512-linux.xml: Likewise.
8282 * features/i386/i386-avx512.c: Likewise.
8283 * features/i386/i386-avx512.xml: Likewise.
8284 * features/i386/x32-avx512-linux.c: Likewise.
8285 * features/i386/x32-avx512-linux.xml: Likewise.
8286 * features/i386/x32-avx512.c: Likewise.
8287 * features/i386/x32-avx512.xml: Likewise.
8288 * regformats/i386/amd64-avx512-linux.dat: New file.
8289 * regformats/i386/amd64-avx512.dat: Likewise.
8290 * regformats/i386/i386-avx512-linux.dat: Likewise.
8291 * regformats/i386/i386-avx512.dat: Likewise.
8292 * regformats/i386/x32-avx512-linux.dat: Likewise.
8293 * regformats/i386/x32-avx512.dat: Likewise.
8294 * NEWS: Add note about new support for AVX512.
8295
8296
08351840
PA
82972014-04-23 Pedro Alves <palves@redhat.com>
8298
8299 * breakpoint.c (insert_bp_location): Tolerate errors if the
8300 breakpoint is set in a user-loaded objfile.
8301 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8302 location is marked shlib_disabled. If the breakpoint is set in a
8303 user-loaded objfile is a GDB-side memory breakpoint, validate it
8304 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8305 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8306 flag.
8307 * mem-break.c (memory_validate_breakpoint): New function.
8308 * objfiles.c (userloaded_objfile_contains_address_p): New
8309 function.
8310 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8311 * target.h (memory_validate_breakpoint): New declaration.
8312
076855f9
PA
83132014-04-23 Pedro Alves <palves@redhat.com>
8314
8315 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8316 the breakpoint is set in a shared library, only suppress
8317 errors for software breakpoints, not hardware breakpoints.
8318
483805cf
PA
83192014-04-22 Pedro Alves <palves@redhat.com>
8320
8321 * infrun.c (schedlock_applies): New function, factored out from
8322 find_thread_needs_step_over.
8323 (find_thread_needs_step_over): Use it.
8324 (switch_back_to_stepped_thread): Always clear trap_expected if the
8325 step over is finished. Return early if scheduler locking applies.
8326 Look for the stepping thread and a potential step-over thread with
8327 a single loop.
8328 (currently_stepping_or_nexting_callback): Delete.
8329
a75fef0e
NC
83302014-04-22 Nick Clifton <nickc@redhat.com>
8331
8332 * NEWS: Mention that ARM sim now supports tracing.
8333
48b6e87e
YQ
83342014-04-22 Yao Qi <yao@codesourcery.com>
8335
8336 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8337 to ...
8338 * tracefile.c (tracefile_fetch_registers): ... it. New
8339 function.
8340 * tracefile.h (tracefile_fetch_registers): Declare.
8341 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8342 tracefile_fetch_registers.
8343
17617f2d
EZ
83442014-04-19 Eli Zaretskii <eliz@gnu.org>
8345
8346 PR gdb/14018
8347 * windows-nat.c (thread_rec): Don't display a warning when
8348 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8349 fails for any reason, set th->suspended to -1, so that we don't
8350 try to resume such a thread. Also, don't return NULL in these
8351 cases, to avoid completely ruin the session due to "PC register is
8352 not available" error.
8353 (do_windows_fetch_inferior_registers): Check errors in
8354 GetThreadContext call.
8355 (windows_continue): Accept an additional argument KILLED; if not
8356 zero, ignore errors in the SetThreadContext call, since the
8357 inferior was killed and is shutting down.
8358 (windows_resume, get_windows_debug_event)
8359 (windows_create_inferior, windows_mourn_inferior)
8360 (windows_kill_inferior): All callers of windows_continue changed
8361 to adjust to its new calling sequence.
8362
5723a6fd
YQ
83632014-04-19 Yao Qi <yao@codesourcery.com>
8364
8365 * ctf.c (ctf_open): Call post_create_inferior.
8366
614d5099
YQ
83672014-04-19 Yao Qi <yao@codesourcery.com>
8368
8369 * ctf.c (handle_id): New static variable.
8370 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8371 value. Get the declaration of event "register" and get length
8372 of field "contents".
8373
dac3e710
YQ
83742014-04-19 Yao Qi <yao@codesourcery.com>
8375
8376 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8377
2bca57ba
SC
83782014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8379
8380 * valops.c (oload_method_static): Remove unnecessary argument
8381 METHOD. Update all callers.
8382
51d48146
PA
83832014-04-18 Pedro alves <palves@redhat.com>
8384 Tom Tromey <tromey@redhat.com>
8385
8386 PR backtrace/15558
8387 * frame.c (get_prev_frame_1): Rename to ...
8388 (get_prev_frame_always): ... this, and make extern. Adjust.
8389 (skip_artificial_frames): Use get_prev_frame_always.
8390 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8391 (get_frame_unwind_stop_reason): Adjust to rename.
8392 * frame.h (get_prev_frame_always): Declare.
8393 * inline-frame.c: Include frame.h.
8394 (inline_frame_this_id): Use get_prev_frame_always.
8395
1bdad2e0
TG
83962014-04-18 Tristan Gingold <gingold@adacore.com>
8397
8398 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8399 code by using bfd_mach_o_get_base_address.
8400
7ce16bd4
UW
84012014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8402
8403 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8404 (spu_ax_pseudo_register_collect): New function.
8405 (spu_ax_pseudo_register_push_stack): Likewise.
8406 (spu_dwarf_reg_to_regnum): Likewise.
8407 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8408
2ed3c037
UW
84092014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8410
8411 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8412 Replace FRAME argument with FRAME_ID.
8413 * gdbarch.c, gdbarch.h: Regenerate.
8414 * findvar.c (default_value_from_register): Add GDBARCH argument;
8415 replace FRAME by FRAME_ID. No longer call get_frame_id.
8416 (value_from_register): Update call to gdbarch_value_from_register.
8417 * value.h (default_value_from_register): Update prototype.
8418 * s390-linux-tdep.c (s390_value_from_register): Update interface
8419 and call to default_value_from_register.
8420 * spu-tdep.c (spu_value_from_register): Likewise.
8421
8422 * findvar.c (address_from_register): Remove TYPE argument.
8423 Do not call value_from_register; use gdbarch_value_from_register
8424 with null_frame_id instead.
8425 * value.h (address_from_register): Update prototype.
8426 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8427 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8428 address_from_register interface change.
8429
71e50e83
YQ
84302014-04-17 Yao Qi <yao@codesourcery.com>
8431
8432 * gdbtypes.h: Update comments to link to types and macros'
8433 definitions.
8434
7a23c549
SC
84352014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8436
8437 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8438
22869d73
KS
84392014-04-16 Keith Seitz <keiths@redhat.com>
8440
8441 PR gdb/15827
8442 * dwarf2read.c (skip_one_die): Check that all relative-offset
8443 sibling DIEs fall within range of the current reader's buffer.
8444 (read_partial_die): Likewise.
8445
c4f87ca6
KS
84462014-04-16 Keith Seitz <keiths@redhat.com>
8447
8448 PR c++/16597
8449 * cp-namespace.c (lookup_symbol_file): If the type name of
8450 `this' is NULL, return immediately.
8451
b50c8614
KS
84522014-04-14 Keith Seitz <keiths@redhat.com>
8453
8454 PR c++/16253
8455 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8456 from symbol_matches_domain in symtab.c. All local callers
8457 of symbol_matches_domain updated.
8458 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8459 search STRUCT_DOMAIN.
8460 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8461 independently. standard_lookup will do that automatically.
8462 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8463 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8464 (cp_lookup_symbol_in_namespace): Likewise.
8465 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8466 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8467 may return a STRUCT_DOMAIN match.
8468 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8469 * cp-support.c: Include language.h.
8470 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8471 VAR_DOMAIN.
8472 * psymtab.c (match_partial_symbol): Compare the requested
8473 domain with the symbol's domain directly.
8474 (lookup_partial_symbol): Likewise.
8475 * symtab.c (lookup_symbol_in_language): Explain when/why
8476 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8477 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8478 appropriate languages.
8479 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8480 and moved to ada-lang.c
8481 (lookup_block_symbol): Explain that this function only returns
8482 symbol matching the requested DOMAIN.
8483 Compare the requested domain with the symbol's domain directly.
8484 (iterate_over_symbols): Compare the requested domain with the
8485 symbol's domain directly.
8486 * symtab.h (symbol_matches_domain): Remove.
8487
3d567982
TT
84882014-04-14 Tom Tromey <tromey@redhat.com>
8489
8490 PR c++/15246:
8491 * c-exp.y (type_aggregate_p): New function.
8492 (qualified_name, classify_inner_name): Use it.
8493 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8494 and TYPE_TARGET_TYPE of an enum type.
8495 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8496 an enum type.
8497 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8498 handle TYPE_DECLARED_CLASS.
8499 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8500 types.
8501 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8502 * valops.c (enum_constant_from_type): New function.
8503 (value_aggregate_elt): Use it.
8504 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8505 TYPE_CODE_ENUM.
8506
c848d642
TT
85072014-04-14 Tom Tromey <tromey@redhat.com>
8508
8509 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8510 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8511 const.
8512 * value.h (value_aggregate_elt): Update.
8513
0626fc76
TT
85142014-04-14 Tom Tromey <tromey@redhat.com>
8515
8516 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8517
5ecaaa66
SA
85182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8519
8520 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8521 (evaluate_subexp_standard): Pass noside argument.
8522 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8523 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8524 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8525 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8526 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8527
1612e0c0
SA
85282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8529
8530 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8531 points to a constant blob.
8532
c451ebe5
SA
85332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8534
8535 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8536 property and store it as the high bound and flag the range accordingly.
8537 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8538 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8539 * gdbtypes.h (enum range_flags): New enum.
8540 (struct range_bounds): Add flags member.
8541
1d42e4c4
SA
85422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8543
8544 * c-typeprint.c (c_type_print_varspec_suffix): Added
8545 check for not yet resolved high bound. If unresolved, print
8546 "variable length" string to the console instead of random
8547 length.
8548
9f1f738a
SA
85492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8550
8551 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8552 value.
8553 (ada_template_to_fixed_record_type_1): Likewise.
8554 (ada_to_fixed_type_1): Likewise.
8555 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8556 (cp_print_value): Likewise.
8557 * d-valprint.c (dynamic_array_type): Likewise.
8558 * findvar.c (address_of_variable): Likewise.
8559 * jv-valprint.c (java_value_print): Likewise.
8560 * valops.c (value_ind): Likewise.
8561 * value.c (coerce_ref): Likewise.
8562
3c8452d4
SA
85632014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8564
8565 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8566 value and retrieve the dynamic type size.
8567
4ad88275
SA
85682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8569
8570 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8571 passed to sizeof is dynamic evaluate the argument to compute the length.
8572
80180f79
SA
85732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8574 Joel Brobecker <brobecker@adacore.com>
8575
8576 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8577 (dwarf2_evaluate_property): New function.
8578 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8579 * dwarf2read.c (attr_to_dynamic_prop): New function.
8580 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8581 attribute.
8582 * gdbtypes.c: Include dwarf2loc.h.
8583 (is_dynamic_type): New function.
8584 (resolve_dynamic_type): New function.
8585 (resolve_dynamic_bounds): New function.
8586 (get_type_length): New function.
8587 (check_typedef): Use get_type_length to compute type length.
8588 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8589 (TYPE_LOW_BOUND_KIND): New macro.
8590 (is_dynamic_type): New function prototype.
8591 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8592 to resolve dynamic properties of the type. Update comment.
8593 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8594
a1556843
RH
85952014-04-14 Richard Henderson <rth@redhat.com>
8596
8597 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8598
0be03e84
DE
85992014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8600 Doug Evans <xdje42@gmail.com>
8601
8602 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8603 dereference TYPE_CODE_REF values.
8604
6b662e19
JB
86052014-04-11 Joel Brobecker <brobecker@adacore.com>
8606
8607 Revert the following changes due to regressions:
8608
8609 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8610 (dwarf2_evaluate_property): New function.
8611 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8612 * dwarf2read.c (attr_to_dynamic_prop): New function.
8613 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8614 attribute.
8615 * gdbtypes.c: Include dwarf2loc.h.
8616 (is_dynamic_type): New function.
8617 (resolve_dynamic_type): New function.
8618 (resolve_dynamic_bounds): New function.
8619 (get_type_length): New function.
8620 (check_typedef): Use get_type_length to compute type length.
8621 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8622 (TYPE_LOW_BOUND_KIND): New macro.
8623 (is_dynamic_type): New function prototype.
8624 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8625 to resolve dynamic properties of the type. Update comment.
8626 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8627
8628 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8629 passed to sizeof is dynamic evaluate the argument to compute the length.
8630
8631 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8632 value and retrieve the dynamic type size.
8633
8634 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8635 (ada_template_to_fixed_record_type_1): Likewise.
8636 (ada_to_fixed_type_1): Likewise.
8637 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8638 (cp_print_value): Likewise.
8639 * d-valprint.c (dynamic_array_type): Likewise.
8640 * eval.c (evaluate_subexp_with_coercion): Likewise.
8641 * findvar.c (address_of_variable): Likewise.
8642 * jv-valprint.c (java_value_print): Likewise.
8643 * valops.c (value_ind): Likewise.
8644 * value.c (coerce_ref): Likewise.
8645
8646 * c-typeprint.c (c_type_print_varspec_suffix): Added
8647 check for not yet resolved high bound. If unresolved, print
8648 "variable length" string to the console instead of random
8649 length.
8650
8651 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8652 property and store it as the high bound and flag the range accordingly.
8653 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8654 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8655 * gdbtypes.h (enum range_flags): New enum.
8656 (struct range_bounds): Add flags member.
8657
8658 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8659 points to a constant blob.
8660
8661 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8662 (evaluate_subexp_standard): Pass noside argument.
8663 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8664 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8665 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8666 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8667 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8668
245a5f0b
KS
86692014-04-11 Keith Seitz <keiths@redhat.com>
8670
8671 PR c++/16675
8672 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8673 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8674 reference types.
8675
3bce8237
SA
86762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8677
8678 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8679 (evaluate_subexp_standard): Pass noside argument.
8680 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8681 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8682 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8683 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8684 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8685
92b09522
SA
86862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8687
8688 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8689 points to a constant blob.
8690
e1969afb
SA
86912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8692
8693 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8694 property and store it as the high bound and flag the range accordingly.
8695 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8696 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8697 * gdbtypes.h (enum range_flags): New enum.
8698 (struct range_bounds): Add flags member.
8699
b86138fb
SA
87002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8701
8702 * c-typeprint.c (c_type_print_varspec_suffix): Added
8703 check for not yet resolved high bound. If unresolved, print
8704 "variable length" string to the console instead of random
8705 length.
8706
bcd629a4
SA
87072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8708
8709 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8710 (ada_template_to_fixed_record_type_1): Likewise.
8711 (ada_to_fixed_type_1): Likewise.
8712 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8713 (cp_print_value): Likewise.
8714 * d-valprint.c (dynamic_array_type): Likewise.
8715 * eval.c (evaluate_subexp_with_coercion): Likewise.
8716 * findvar.c (address_of_variable): Likewise.
8717 * jv-valprint.c (java_value_print): Likewise.
8718 * valops.c (value_ind): Likewise.
8719 * value.c (coerce_ref): Likewise.
8720
04b19544
SA
87212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8722
8723 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8724 value and retrieve the dynamic type size.
8725
26cb189f
SA
87262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8727
8728 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8729 passed to sizeof is dynamic evaluate the argument to compute the length.
8730
37c1ab67
SA
87312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8732
8733 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8734 (dwarf2_evaluate_property): New function.
8735 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8736 * dwarf2read.c (attr_to_dynamic_prop): New function.
8737 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8738 attribute.
8739 * gdbtypes.c: Include dwarf2loc.h.
8740 (is_dynamic_type): New function.
8741 (resolve_dynamic_type): New function.
8742 (resolve_dynamic_bounds): New function.
8743 (get_type_length): New function.
8744 (check_typedef): Use get_type_length to compute type length.
8745 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8746 (TYPE_LOW_BOUND_KIND): New macro.
8747 (is_dynamic_type): New function prototype.
8748 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8749 to resolve dynamic properties of the type. Update comment.
8750 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8751
729efb13
SA
87522014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8753
8754 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8755 declaring high/low bounds and change uses accordingly. Call
8756 create_range_type instead of create_static_range_type.
8757 * gdbtypes.c (create_range_type): New function.
8758 (create_range_type): Convert bounds into struct bound_prop and pass
8759 them to create_range_type.
8760 * gdbtypes.h (struct bound_prop): New struct.
8761 (create_range_type): New function prototype.
8762 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8763 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8764 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8765 part of the bound.
8766 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8767
0c9c3474
SA
87682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8769
8770 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8771 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8772 * ada-lang.c: All uses of create_range_type updated.
8773 * coffread.c: All uses of create_range_type updated.
8774 * dwarf2read.c: All uses of create_range_type updated.
8775 * f-exp.y: All uses of create_range_type updated.
8776 * m2-valprint.c: All uses of create_range_type updated.
8777 * mdebugread.c: All uses of create_range_type updated.
8778 * stabsread.c: All uses of create_range_type updated.
8779 * valops.c: All uses of create_range_type updated.
8780 * valprint.c: All uses of create_range_type updated.
8781
9d497a19
PA
87822014-04-10 Pedro Alves <palves@redhat.com>
8783
8784 * breakpoint.c (single_step_breakpoints)
8785 (single_step_gdbarch): Move up in the file.
8786 (one_breakpoint_xfer_memory): New function, factored out from ...
8787 (breakpoint_xfer_memory): ... here. Also process single-step
8788 breakpoints.
8789
15a9128a
TG
87902014-04-09 Tristan Gingold <gingold@adacore.com>
8791
8792 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8793 comments.
8794 (darwin_decode_exception_message): Free port only after use.
8795
9c97a070
PL
87962014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8797
8798 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8799 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8800 when setting the size of call_length.
8801
7af389b8
SC
88022014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8803
8804 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8805 dereference TYPE_CODE_REF values.
8806
86ad98c3
JB
88072014-04-07 Joel Brobecker <brobecker@adacore.com>
8808
8809 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8810 end of warning message.
8811
b0aeadb3
DE
88122014-04-03 Doug Evans <dje@google.com>
8813
8814 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8815 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8816
5979d6b6
AM
88172014-04-02 Alan Modra <amodra@gmail.com>
8818
8819 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8820 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8821 (struct symbol_file_add_from_memory_args): Add size field.
8822 (find_vdso_size): New function.
8823 (add_vsyscall_page): Attempt to find vdso size.
8824
0d60c288
DE
88252014-04-01 Doug Evans <dje@google.com>
8826
8827 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8828
a41f2563
TG
88292014-04-01 Tristan Gingold <gingold@adacore.com>
8830
8831 * darwin-nat.c (darwin_encode_reply): Add prototype.
8832 (darwin_decode_exception_message): Reply to unknown inferiors.
8833 (darwin_decode_message): Handle message by id. Ignore message
8834 to unknown inferior.
8835 (darwin_wait): Discard unknown messages, add debug trace.
8836
11a865c8
DE
88372014-03-31 Doug Evans <dje@google.com>
8838
8839 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8840 comp_dir_string.
8841
770e7fc7
DE
88422014-03-31 Doug Evans <dje@google.com>
8843
8844 New option "set print symbol-loading".
8845 * NEWS: Mention it.
8846 * solib.c (solib_read_symbols): Only print symbol loading messages
8847 if requested.
8848 (solib_add): If symbol loading is in "brief" mode, notify user
8849 symbols are being loaded.
8850 (reload_shared_libraries_1): Ditto.
8851 * symfile.c (print_symbol_loading_off): New static global.
8852 (print_symbol_loading_brief): New static global.
8853 (print_symbol_loading_full): New static global.
8854 (print_symbol_loading_enums): New static global.
8855 (print_symbol_loading): New static global.
8856 (print_symbol_loading_p): New function.
8857 (symbol_file_add_with_addrs): Only print symbol loading messages
8858 if requested.
8859 (_initialize_symfile): Register "print symbol-loading" set/show
8860 command.
8861 * symfile.h (print_symbol_loading_p): Declare.
8862
c32c64b7
DE
88632014-03-30 Doug Evans <xdje42@gmail.com>
8864
8865 * infrun.c (set_last_target_status): New function.
8866 (handle_inferior_event): Call it.
8867
7c0bc051
DE
88682014-03-30 Doug Evans <xdje42@gmail.com>
8869
8870 * inferior.h (enum stop_kind): Improve comment.
8871
8776cfe9
JB
88722014-03-28 Joel Brobecker <brobecker@adacore.com>
8873
8874 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8875 a reference, strip the reference layer before calling
8876 the lang_ops value_has_mutated callback.
8877
410a0ff2
SDJ
88782014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8879
8880 Remove some globals from our parser.
8881 * language.c (unk_lang_parser): Add "struct parser_state"
8882 argument.
8883 * language.h (struct language_defn) <la_parser>: Likewise.
8884 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8885 (initialize_expout): Add "struct parser_state" argument.
8886 Rewrite function to use the parser state.
8887 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8888 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8889 write_exp_elt_longcst, write_exp_elt_dblcst,
8890 write_exp_elt_decfloatcst, write_exp_elt_type,
8891 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8892 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8893 write_dollar_variable): Likewise.
8894 (parse_exp_in_context_1): Use parser state.
8895 (insert_type_address_space): Add "struct parser_state" argument.
8896 Use parser state.
8897 (increase_expout_size): New function.
8898 * parser-defs.h: Forward declare "struct language_defn" and
8899 "struct parser_state".
8900 (expout, expout_size, expout_ptr): Remove extern declarations.
8901 (parse_gdbarch, parse_language): Rewrite macro declarations to
8902 accept the parser state.
8903 (struct parser_state): New struct.
8904 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8905 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8906 write_exp_elt_decfloatcst, write_exp_elt_type,
8907 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8908 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8909 write_exp_msymbol, write_dollar_variable,
8910 mark_struct_expression, insert_type_address_space): Add "struct
8911 parser_state" argument.
8912 (increase_expout_size): New function.
8913 * utils.c (do_clear_parser_state): New function.
8914 (make_cleanup_clear_parser_state): Likewise.
8915 * utils.h (make_cleanup_clear_parser_state): New function
8916 prototype.
8917 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8918 Update calls to write_exp* in order to pass the parser state.
8919 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8920 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8921 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8922 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8923 * stap-probe.c (stap_parse_register_operand): Likewise.
8924 (stap_parse_single_operand): Likewise.
8925 (stap_parse_argument_1): Likewise.
8926 (stap_parse_argument): Use parser state.
8927 * stap-probe.h: Include "parser-defs.h".
8928 (struct stap_parse_info) <pstate>: New field.
8929 * c-exp.y (parse_type): Rewrite to use parser state.
8930 (yyparse): Redefine to c_parse_internal.
8931 (pstate): New global variable.
8932 (parse_number): Add "struct parser_state" argument.
8933 (write_destructor_name): Likewise.
8934 (type_exp): Update calls to write_exp* and similars in order to
8935 use parser state.
8936 (exp1, exp, variable, qualified_name, space_identifier,
8937 typename, typebase): Likewise.
8938 (write_destructor_name, parse_number, lex_one_token,
8939 classify_name, classify_inner_name, c_parse): Add "struct
8940 parser_state" argument. Update function to use parser state.
8941 * c-lang.h: Forward declare "struct parser_state".
8942 (c_parse): Add "struct parser_state" argument.
8943 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8944 (yyparse): Redefine macro to ada_parse_internal.
8945 (pstate): New variable.
8946 (write_int, write_object_renaming, write_var_or_type,
8947 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8948 type_int, type_long, type_long_long, type_float, type_double,
8949 type_long_double, type_char, type_boolean, type_system_address):
8950 Add "struct parser_state" argument.
8951 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8952 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8953 var_or_type, aggregate, aggregate_component_list,
8954 positional_list, others, component_group,
8955 component_associations): Update calls to write_exp* and similar
8956 functions in order to use parser state.
8957 (ada_parse, write_var_from_sym, write_int,
8958 write_exp_op_with_string, write_object_renaming,
8959 find_primitive_type, write_selectors, write_ambiguous_var,
8960 write_var_or_type, write_name_assoc, type_int, type_long,
8961 type_long_long, type_float, type_double, type_long_double,
8962 type_char, type_boolean, type_system_address): Add "struct
8963 parser_state" argument. Adjust function to use parser state.
8964 * ada-lang.c (parse): Likewise.
8965 * ada-lang.h: Forward declare "struct parser_state".
8966 (ada_parse): Add "struct parser_state" argument.
8967 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8968 calls to both functions.
8969 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8970 parser state.
8971 (yyparse): Redefine macro to f_parse_internal.
8972 (pstate): New variable.
8973 (parse_number): Add "struct parser_state" argument.
8974 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8975 and similars in order to use parser state.
8976 (parse_number): Adjust code to use parser state.
8977 (yylex): Likewise.
8978 (f_parse): New function.
8979 * f-lang.h: Forward declare "struct parser_state".
8980 (f_parse): Add "struct parser_state" argument.
8981 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8982 parser state.
8983 (yyparse): Redefine macro for java_parse_internal.
8984 (pstate): New variable.
8985 (push_expression_name, push_expression_name, insert_exp): Add
8986 "struct parser_state" argument.
8987 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8988 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8989 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8990 PostIncrementExpression, PostDecrementExpression,
8991 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8992 UnaryExpressionNotPlusMinus, CastExpression,
8993 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8994 RelationalExpression, EqualityExpression, AndExpression,
8995 ExclusiveOrExpression, InclusiveOrExpression,
8996 ConditionalAndExpression, ConditionalOrExpression,
8997 ConditionalExpression, Assignment, LeftHandSide): Update
8998 calls to write_exp* and similars in order to use parser state.
8999 (parse_number): Ajust code to use parser state.
9000 (yylex): Likewise.
9001 (java_parse): New function.
9002 (push_variable): Add "struct parser_state" argument. Adjust
9003 code to user parser state.
9004 (push_fieldnames, push_qualified_expression_name,
9005 push_expression_name, insert_exp): Likewise.
9006 * jv-lang.h: Forward declare "struct parser_state".
9007 (java_parse): Add "struct parser_state" argument.
9008 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9009 parser state.
9010 (yyparse): Redefine macro to m2_parse_internal.
9011 (pstate): New variable.
9012 (type_exp, exp, fblock, variable, type): Update calls to
9013 write_exp* and similars to use parser state.
9014 (yylex): Likewise.
9015 (m2_parse): New function.
9016 * m2-lang.h: Forward declare "struct parser_state".
9017 (m2_parse): Add "struct parser_state" argument.
9018 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9019 * objc-lang.h: Forward declare "struct parser_state".
9020 (end_msglist): Add "struct parser_state" argument.
9021 * p-exp.y (parse_type): Rewrite macro to use parser state.
9022 (yyparse): Redefine macro to pascal_parse_internal.
9023 (pstate): New variable.
9024 (parse_number): Add "struct parser_state" argument.
9025 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9026 write_exp* and similars in order to use parser state.
9027 (parse_number, yylex): Adjust code to use parser state.
9028 (pascal_parse): New function.
9029 * p-lang.h: Forward declare "struct parser_state".
9030 (pascal_parse): Add "struct parser_state" argument.
9031 * go-exp.y (parse_type): Rewrite macro to use parser state.
9032 (yyparse): Redefine macro to go_parse_internal.
9033 (pstate): New variable.
9034 (parse_number): Add "struct parser_state" argument.
9035 (type_exp, exp1, exp, variable, type): Update calls to
9036 write_exp* and similars in order to use parser state.
9037 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9038 to use parser state.
9039 (go_parse): Likewise.
9040 * go-lang.h: Forward declare "struct parser_state".
9041 (go_parse): Add "struct parser_state" argument.
9042
342587c4
DE
90432014-03-27 Doug Evans <dje@google.com>
9044
9045 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9046
33e80786
DE
90472014-03-27 Doug Evans <dje@google.com>
9048
9049 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9050 Remove argument abbrev_section. All callers updated.
9051
1dbab08b
DE
90522014-03-27 Doug Evans <dje@google.com>
9053
9054 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9055 addr_base, ranges_base.
9056
318d3177
KS
90572014-03-26 Keith Seitz <keiths@redhat.com>
9058
9059 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9060 types, not VAR_DOMAIN.
9061
1e54db15
SL
90622014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9063
9064 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9065 "ra" registers.
9066 * features/nios2-linux.c: Regenerated.
9067 * features/nios2.c: Regenerated.
9068
d3839ede
PA
90692014-03-25 Pedro Alves <palves@redhat.com>
9070
9071 * cli/cli-script.c (script_from_file): Force the interpreter to
9072 sync mode.
9073
7588d2ec
PL
90742014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9075
9076 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9077 small stack allocation.
9078
a6290449
TG
90792014-03-24 Tristan Gingold <gingold@adacore.com>
9080
9081 * darwin-nat.c (exc_server): Remove unused prototype.
9082 (darwin_dump_message): Correctly display data on x86_64.
9083 (darwin_encode_reply): Fix style.
9084 Add comments and fix indentation.
9085
31ae9d24 90862014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9087
9088 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9089
6339bfc4
DE
90902014-03-22 Doug Evans <xdje42@gmail.com>
9091
9092 * infcmd.c: Whitespace fixes.
9093 (interrupt_command): Merge two function comments into one.
9094
0a07590b
DE
90952014-03-22 Doug Evans <xdje42@gmail.com>
9096
9097 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9098 All uses updated.
9099
b55fbac4
YQ
91002014-03-22 Yao Qi <yao@codesourcery.com>
9101
9102 * remote.c (target_read_live_memory): Remove.
9103 (memory_xfer_live_readonly_partial): Rename it to
9104 remote_xfer_live_readonly_partial. Remove argument 'object'.
9105 All callers updated. Call remote_read_bytes_1
9106 instead of target_read_live_memory.
9107 * tracepoint.c (set_traceframe_number): Remove.
9108 (make_cleanup_restore_traceframe_number): Likewise .
9109 * tracepoint.h (set_traceframe_number): Remove declaration.
9110 (make_cleanup_restore_traceframe_number): Likewise.
9111
9217e74e
YQ
91122014-03-22 Yao Qi <yao@codesourcery.com>
9113
9114 * remote.c (remote_read_bytes): Move code on reading from the
9115 remote stub to ...
9116 (remote_read_bytes_1): ... here. New function.
9117
8acf9577
YQ
91182014-03-22 Yao Qi <yao@codesourcery.com>
9119
9120 * ctf.c (ctf_xfer_partial): Check the return value of
9121 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9122 return TARGET_XFER_UNAVAILABLE.
9123 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9124 * target.c (target_read_live_memory): Move it to remote.c.
9125 (memory_xfer_live_readonly_partial): Likewise.
9126 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9127 * remote.c (target_read_live_memory): Moved from target.c.
9128 (memory_xfer_live_readonly_partial): Likewise.
9129 (remote_read_bytes): Factored out from
9130 memory_xfer_partial_1.
9131
feef67ab
DE
91322014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9133
9134 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9135 NULL pointer.
9136
b65dc60b
PA
91372014-03-21 Pedro Alves <palves@redhat.com>
9138
9139 * infrun.c (normal_stop): Extend comment.
9140
b4ab256d
HZ
91412014-03-21 Hui Zhu <hui@codesourcery.com>
9142 Pedro Alves <palves@redhat.com>
9143
9144 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9145 static buffer.
9146 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9147 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9148 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9149
deba7593
MR
91502014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9151
9152 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9153 `z' formatted output modifier.
9154
1bff71c3
SDJ
91552014-03-20 Tom Tromey <tromey@redhat.com>
9156 Sergio Durigan Junior <sergiodj@redhat.com>
9157
9158 * probe.c (parse_probes): Turn assert into an ordinary error.
9159 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9160 exceptions when parsing probes. Rearrange the code for clarity.
9161
90e28950
TT
91622014-03-20 Tom Tromey <tromey@redhat.com>
9163
9164 PR gdb/14135
9165 * top.c (execute_command): Only dispatch events if the command
9166 started the target.
9167
beb460e8
PA
91682014-03-20 Tom Tromey <tromey@redhat.com>
9169
9170 PR cli/15718
9171 * infcall.c: Include event-top.h.
9172 (run_inferior_call): Call async_disable_stdin if needed.
9173
99619bea
PA
91742014-03-20 Pedro Alves <palves@redhat.com>
9175
9176 * infrun.c (prepare_to_proceed): Delete.
9177 (thread_still_needs_step_over): New function.
9178 (find_thread_needs_step_over): New function.
9179 (proceed): If the current thread needs a step-over, set its
9180 steping_over_breakpoint flag. Adjust to use
9181 find_thread_needs_step_over instead of prepare_to_proceed.
9182 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9183 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9184 breakpoint.
9185 (switch_back_to_stepped_thread): Step over breakpoints of all
9186 threads not the stepping thread, before switching back to the
9187 stepping thread.
9188
2adfaa28
PA
91892014-03-20 Pedro Alves <palves@redhat.com>
9190
9191 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9192 extern.
9193 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9194 * infrun.c (saved_singlestep_ptid)
9195 (stepping_past_singlestep_breakpoint): Delete.
9196 (resume): Remove stepping_past_singlestep_breakpoint handling.
9197 (proceed): Store the prev_pc of the stepping thread too.
9198 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9199 singlestep_pc.
9200 (enum infwait_states): Delete infwait_thread_hop_state.
9201 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9202 field.
9203 (handle_inferior_event): Adjust.
9204 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9205 handling and the thread-hop code. Before removing single-step
9206 breakpoints, check whether the thread hit a single-step breakpoint
9207 of another thread. If it did, the trap is not a random signal.
9208 (switch_back_to_stepped_thread): If the event thread hit a
9209 single-step breakpoint, unblock it before switching to the
9210 stepping thread. Handle the case of the stepped thread having
9211 advanced already.
9212 (keep_going): Handle the case of the current thread moving past a
9213 single-step breakpoint.
9214
31e77af2
PA
92152014-03-20 Pedro Alves <palves@redhat.com>
9216
9217 PR breakpoints/7143
9218 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9219 are being stepped over.
9220 (breakpoint_address_match): Make extern.
9221 * breakpoint.h (breakpoint_address_match): New declaration.
9222 * inferior.h (stepping_past_instruction_at): New declaration.
9223 * infrun.c (struct step_over_info): New type.
9224 (step_over_info): New global.
9225 (set_step_over_info, clear_step_over_info)
9226 (stepping_past_instruction_at): New functions.
9227 (handle_inferior_event): Clear the step-over info when
9228 trap_expected is cleared.
9229 (resume): Remove now stale comment.
9230 (clear_proceed_status): Clear step-over info.
9231 (proceed): Adjust step-over handling to set or clear the step-over
9232 info instead of removing all breakpoints.
9233 (handle_signal_stop): When setting up a thread-hop, don't remove
9234 breakpoints here.
9235 (stop_stepping): Clear step-over info.
9236 (keep_going): Adjust step-over handling to set or clear step-over
9237 info and then always inserting breakpoints, instead of removing
9238 all breakpoints when stepping over one.
9239
b9f437de
PA
92402014-03-20 Pedro Alves <palves@redhat.com>
9241
9242 * infrun.c (previous_inferior_ptid): Adjust comment.
9243 (deferred_step_ptid): Delete.
9244 (infrun_thread_ptid_changed, prepare_to_proceed)
9245 (init_wait_for_inferior): Adjust.
9246 (handle_signal_stop): Delete deferred_step_ptid handling.
9247
06c868a8
JK
92482014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9249
9250 PR gdb/15358
9251 * defs.h (sync_quit_force_run): New declaration.
9252 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9253 * event-top.c (async_sigterm_handler): New declaration.
9254 (async_sigterm_token): New variable.
9255 (async_init_signals): Create also async_sigterm_token.
9256 (async_sigterm_handler): New function.
9257 (sync_quit_force_run): New variable.
9258 (handle_sigterm): Replace quit_force call by other calls.
9259 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9260
dea80df0
MR
92612014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9262
9263 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9264 offset into SPE pseudo registers.
9265
0c7e1a46
PA
92662014-03-18 Pedro Alves <palves@redhat.com>
9267
9268 PR gdb/13860
9269 * inferior.h (print_stop_event): Declare.
9270 * infrun.c (print_stop_event): New, factored out from ...
9271 (normal_stop): ... this.
9272 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9273 of bpstat_print/print_stack_frame.
9274
9c1fcd01
TT
92752014-03-17 Tom Tromey <tromey@redhat.com>
9276
9277 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9278
11aa919a
PMR
92792014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9280
9281 * ada-lang.c (decode_constrained_packed_array): Perform a
9282 minimal coercion for reference with coerce_ref instead of
9283 ada_coerce_ref.
9284
d4ccb5e0
TG
92852014-03-17 Tristan Gingold <gingold@adacore.com>
9286
9287 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9288 (darwin_solib_create_inferior_hook): Emit a warning if version
9289 is unhandled.
9290
49840f2a
UW
92912014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9292
9293 * python/py-value.c (get_field_flag): Cast flag_name argument to
9294 PyObject_GetAttrString to support Python 2.4.
9295
ed4123e5
JK
92962014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9297
9298 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9299 (Global Maintainers): Remove Jan Kratochvil.
9300
d6b64346
PA
93012014-03-14 Pedro Alves <palves@redhat.com>
9302
9303 * inferior.h (terminal_ours_for_output): Rename to ...
9304 (child_terminal_ours_for_output): ... this.
9305 (terminal_save_ours): Rename to ...
9306 (child_terminal_save_ours): ... this.
9307 (terminal_ours): Rename to ...
9308 (child_terminal_ours): ... this.
9309 (terminal_inferior): Rename to ...
9310 (child_terminal_inferior): ... this.
9311 (terminal_init_inferior): Rename to ...
9312 (child_terminal_init_inferior): ... this.
9313 (terminal_init_inferior_with_pgrp): Rename to ...
9314 (child_terminal_init_inferior_with_pgrp): ... this.
9315 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9316 (child_terminal_init_with_pgrp): ... this.
9317 (terminal_save_ours): Rename to ...
9318 (child_terminal_save_ours): ... this.
9319 (terminal_init_inferior): Rename to ...
9320 (child_terminal_init): ... this. Adjust.
9321 (terminal_inferior): Rename to ...
9322 (child_terminal_inferior): ... this.
9323 (terminal_ours_for_output): Rename to ...
9324 (child_terminal_ours_for_output): ... this. Adjust.
9325 (terminal_ours): Rename to ...
9326 (child_terminal_ours): ... this.
9327 (terminal_ours_1): Rename to ...
9328 (child_terminal_ours_1): ... this. Adjust.
9329 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9330 * windows-nat.c (do_initial_windows_stuff): Adjust.
9331 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9332 (gnu_terminal_init): ... this. Adjust.
9333 (gnu_target): Adjust.
9334 * inf-child.c (inf_child_target): Adjust.
9335
5a1e8c7a
DE
93362014-03-13 Doug Evans <xdje42@gmail.com>
9337
9338 PR guile/16612
9339 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9340 new eq?-hashtab.
9341
350e1a76
DE
93422014-03-13 Doug Evans <xdje42@gmail.com>
9343
9344 * value.c (record_latest_value): Call release_value_or_incref
9345 instead of release_value.
9346
a69900ae
PA
93472014-03-13 Pedro Alves <palves@redhat.com>
9348
9349 * procfs.c (procfs_target): Don't override to_shortname,
9350 to_longname or to_doc.
9351
5db9f0bd
PA
93522014-03-13 Pedro Alves <palves@redhat.com>
9353
9354 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9355 Unix in user visible strings.
9356
5e3a2c38
SS
93572014-03-12 Stan Shebs <stan@codesourcery.com>
9358
9359 * gdbtypes.h: Annotate comments for Doxygen, add a page
9360 block comment with some general info.
9361
8bc2fe48
PA
93622014-03-12 Pedro Alves <palves@redhat.com>
9363
9364 * infcmd.c (prepare_execution_command): New function, factored out
9365 from several execution commands.
9366 (run_command_1, continue_command, step_1, jump_command)
9367 (signal_command, until_command, advance_command, finish_command)
9368 (attach_command): Use prepare_execution_command.
9369
638c5f49
OJ
93702014-03-12 Omair Javaid <omair.javaid@linaro.org>
9371
9372 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9373 (MAX_BPTS): Define.
9374 (MAX_WPTS): Define.
9375 (struct arm_linux_thread_points): Removed.
9376 (struct arm_linux_process_info): New.
9377 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9378 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9379 (arm_linux_find_breakpoints_by_tid): Removed.
9380 (struct arch_lwp_info): New.
9381 (arm_linux_find_process_pid): New functions.
9382 (arm_linux_add_process): New functions.
9383 (arm_linux_process_info_get): New functions.
9384 (arm_linux_forget_process): New function.
9385 (arm_linux_get_debug_reg_state): New function.
9386 (struct update_registers_data): New.
9387 (update_registers_callback): New function.
9388 (arm_linux_insert_hw_breakpoint1): Updated.
9389 (arm_linux_remove_hw_breakpoint1): Updated.
9390 (arm_linux_insert_hw_breakpoint): Updated.
9391 (arm_linux_remove_hw_breakpoint): Updated.
9392 (arm_linux_insert_watchpoint): Updated.
9393 (arm_linux_remove_watchpoint): Updated.
9394 (arm_linux_new_thread): Updated.
9395 (arm_linux_prepare_to_resume): New function.
9396 (arm_linux_new_fork): New function.
9397 (_initialize_arm_linux_nat): Updated.
9398
6d03af93
PA
93992014-03-12 Pedro Alves <palves@redhat.com>
9400
9401 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9402
b3ccfe11
TT
94032014-03-12 Tom Tromey <tromey@redhat.com>
9404
9405 * inf-child.c (return_zero): New function.
9406 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9407 * aix-thread.c (aix_thread_inferior_created): New function.
9408 (aix_thread_attach): Remove.
9409 (init_aix_thread_ops): Don't set to_attach.
9410 (_initialize_aix_thread): Register inferior_created observer.
9411 * corelow.c (init_core_ops): Don't set to_attach or
9412 to_create_inferior.
9413 * exec.c (init_exec_ops): Don't set to_attach or
9414 to_create_inferior.
9415 * infcmd.c (run_command_1): Use find_run_target. Make direct
9416 target calls.
9417 (attach_command): Use find_attach_target. Make direct target
9418 calls.
9419 * record-btrace.c (init_record_btrace_ops): Don't set
9420 to_create_inferior.
9421 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9422 Remove.
9423 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9424 set to_create_inferior.
9425 * target.c (complete_target_initialization): Add assertion.
9426 (target_create_inferior): Remove.
9427 (find_default_attach, find_default_create_inferior): Remove.
9428 (find_attach_target, find_run_target): New functions.
9429 (find_default_is_async_p, find_default_can_async_p)
9430 (target_supports_non_stop, target_attach): Remove.
9431 (init_dummy_target): Don't set to_create_inferior or
9432 to_supports_non_stop.
9433 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9434 TARGET_DEFAULT_FUNC.
9435 <to_create_inferior>: Add comment.
9436 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9437 TARGET_DEFAULT_RETURN.
9438 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9439 (find_attach_target, find_run_target): Declare.
9440 (target_create_inferior): Remove.
9441 (target_has_execution_1): Update comment.
9442 (target_supports_non_stop): Remove.
9443 * target-delegates.c: Rebuild.
9444
91f83b02
PA
94452014-03-12 Pedro Alves <palves@redhat.com>
9446
9447 * inf-child.h: Update comment to not mention Unix.
9448
f1aea813
PA
94492014-03-12 Pedro Alves <palves@redhat.com>
9450
9451 * inf-child.c: Update top comment to not mention Unix. Add
9452 generic comment describing how this target is meant to be used.
9453 (inf_child_post_attach, inf_child_post_startup_inferior)
9454 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9455 Unix in comment.
9456
ee8e9165
PA
94572014-03-12 Pedro Alves <palves@redhat.com>
9458
9459 * nto-procfs.c: Include inf-child.h.
9460 (procfs_ops): Delete global.
9461 (procfs_can_run): Delete method.
9462 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9463 target pointer instead of referencing procfs_ops.
9464 (procfs_prepare_to_store): Delete.
9465 (init_procfs_ops): Delete function.
9466 (procfs_target): New function, based on init_procfs_ops, but
9467 inherit inf_child_target.
9468 (_initialize_procfs): Use procfs_target.
9469
51a9c8c5
PA
94702014-03-12 Pedro Alves <palves@redhat.com>
9471
9472 * windows-nat.c: Include inf-child.h.
9473 (windows_ops): Delete global.
9474 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9475 methods.
9476 (init_windows_ops): Delete function.
9477 (windows_target): New function, based on init_windows_ops, but
9478 inherit inf_child_target.
9479 (_initialize_windows_nat): Use windows_target. Install x86
9480 specific target methods here.
9481
c1966e26
DE
94822014-03-10 Doug Evans <xdje42@gmail.com>
9483
9484 * guile/guile.c (call_initialize_gdb_module): New function.
9485 (initialize_guile): Replace call to scm_init_guile with call to
9486 scm_with_guile.
9487
023db19c
JB
94882014-03-10 Joel Brobecker <brobecker@adacore.com>
9489
9490 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9491 in call to TYPE_CODE macro.
9492
5ec18f2b
JG
94932014-03-10 Jerome Guitton <guitton@adacore.com>
9494
8668be63
JB
9495 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9496 Resolve tagged types to full view.
5ec18f2b 9497
7d03f2eb
HZ
94982014-03-10 Hui Zhu <hui@codesourcery.com>
9499
9500 * target.h (target_insert_breakpoint): Remove "hardware" from its
9501 comments.
9502
c5164cbc
DE
95032014-03-07 Doug Evans <dje@google.com>
9504
9505 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9506
c4a3fee2
DE
95072014-03-07 Doug Evans <dje@google.com>
9508
9509 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9510 Remove unused local comp_dir_attr. Assert exactly one of
9511 stub_comp_unit_die, stub_comp_dir is non-NULL.
9512
3156469c
JB
95132014-03-07 Joel Brobecker <brobecker@adacore.com>
9514
9515 * target.h (complete_target_initialization, add_target):
9516 Add comment.
9517
c1a7b7c6
PA
95182014-03-07 Pedro Alves <palves@redhat.com>
9519
9520 * go32-nat.c: Include inf-child.h.
9521 (go32_ops): Delete global.
9522 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9523 Delete methods.
9524 (go32_create_inferior): Push the passed in target pointer instead
9525 of referencing go32_ops.
9526 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9527 (go32_target): New function, based on init_go32_ops, but inherit
9528 inf_child_target.
9529 (_initialize_go32_nat): Use go32_target. Move parts of
9530 init_go32_ops here.
9531
d3c1a85f
JB
95322014-03-06 Joel Brobecker <brobecker@adacore.com>
9533
9534 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9535 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9536 SYMBOL_VALUE_ADDRESS.
9537 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9538
5fa1d40e
YQ
95392014-03-06 Yao Qi <yao@codesourcery.com>
9540
9541 * breakpoint.c (get_tracepoint_by_number): Remove argument
9542 optional_p. All callers updated. Adjust comments. Update
9543 output message.
9544 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9545
0c13193f
YQ
95462014-03-06 Yao Qi <yao@codesourcery.com>
9547
9548 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9549 early if get_number returns zero. Use 'p' instead of 'args'.
9550
2217da06
YQ
95512014-03-06 Yao Qi <yao@codesourcery.com>
9552
9553 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9554 message.
9555
cc3da688
YQ
95562014-03-06 Yao Qi <yao@codesourcery.com>
9557
9558 PR breakpoints/16508
9559 * tracepoint.c (check_trace_running): New function.
9560 (trace_find_command): Move code to check_trace_running and
9561 call check_trace_running.
9562 (trace_find_pc_command): Likewise.
9563 (trace_find_tracepoint_command): Likewise.
9564 (trace_find_line_command): Likewise.
9565 (trace_find_range_command): Likewise.
9566 * tracepoint.h (check_trace_running): Likewise.
9567 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9568
6a5f844b
YQ
95692014-03-06 Yao Qi <yao@codesourcery.com>
9570
9571 * target.h (struct target_ops) <to_traceframe_info>: Use
9572 TARGET_DEFAULT_NORETURN (tcomplain ()).
9573 * target-delegates.c: Regenerated.
9574
0f26cec1
PA
95752014-03-05 Pedro Alves <palves@redhat.com>
9576
9577 PR gdb/16575
9578 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9579 void. Update comment.
9580 (dcache_xfer_memory): Delete.
9581 (dcache_read_memory_partial): New, based on the read bits of
9582 dcache_xfer_memory.
9583 (dcache_update): Add status parameter. Use ULONGEST for len, and
9584 adjust. Discard cache lines if the reason for the update was
9585 error.
9586 * dcache.h (dcache_xfer_memory): Delete declaration.
9587 (dcache_read_memory_partial): New declaration.
9588 (dcache_update): Update prototype.
9589 * target.c (raw_memory_xfer_partial): Update the dcache here.
9590 (memory_xfer_partial_1): Don't handle dcache writes here.
9591
b2b255bd
MF
95922014-03-05 Mike Frysinger <vapier@gentoo.org>
9593
9594 * remote-sim.c (gdbsim_load): Add const to prog.
9595
5d9cf8a4
TT
95962014-03-03 Tom Tromey <tromey@redhat.com>
9597
9598 * elfread.c (probe_key): Change to bfd_data.
9599 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9600 now per-BFD, not per-objfile.
9601 * stap-probe.c (stap_probe_destroy): Update comment.
9602 (handle_stap_probe): Allocate on the per-BFD obstack.
9603
729662a5
TT
96042014-03-03 Tom Tromey <tromey@redhat.com>
9605
9606 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9607 * breakpoint.c (create_longjmp_master_breakpoint): Use
9608 get_probe_address.
9609 (add_location_to_breakpoint, bkpt_probe_insert_location)
9610 (bkpt_probe_remove_location): Update.
9611 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9612 * elfread.c (elf_symfile_relocate_probe): Remove.
9613 (elf_probe_fns): Update.
9614 (insert_exception_resume_breakpoint): Change type of "probe"
9615 parameter to bound_probe.
9616 (check_exception_resume): Update.
9617 * objfiles.c (objfile_relocate1): Don't relocate probes.
9618 * probe.c (bound_probe_s): New typedef.
9619 (parse_probes): Use get_probe_address. Set sal's objfile.
9620 (find_probe_by_pc): Return a bound_probe.
9621 (collect_probes): Return a VEC(bound_probe_s).
9622 (compare_probes): Update.
9623 (gen_ui_out_table_header_info): Change type of "probes"
9624 parameter. Update.
9625 (info_probes_for_ops): Update.
9626 (get_probe_address): New function.
9627 (probe_safe_evaluate_at_pc): Update.
9628 * probe.h (struct probe_ops) <get_probe_address>: New field.
9629 <set_semaphore, clear_semaphore>: Add objfile parameter.
9630 (struct probe) <objfile>: Remove field.
9631 <arch>: New field.
9632 <address>: Update comment.
9633 (struct bound_probe): New.
9634 (find_probe_by_pc): Return a bound_probe.
9635 (get_probe_address): Declare.
9636 * solib-svr4.c (struct probe_and_action) <address>: New field.
9637 (hash_probe_and_action, equal_probe_and_action): Update.
9638 (register_solib_event_probe): Add address parameter.
9639 (solib_event_probe_at): Update.
9640 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9641 get_probe_address.
9642 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9643 (stap_get_probe_address): New function.
9644 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9645 (compile_probe_arg): Update.
9646 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9647 address.
9648 (handle_stap_probe): Don't relocate the probe.
9649 (stap_relocate): Remove.
9650 (stap_gen_info_probes_table_values): Update.
9651 (stap_probe_ops): Remove stap_relocate.
9652 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9653 (debug_sym_probe_fns): Update.
9654 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9655 * symtab.c (init_sal): Use memset.
9656 * symtab.h (struct symtab_and_line) <objfile>: New field.
9657 * tracepoint.c (start_tracing, stop_tracing): Update.
9658
ff887920
TT
96592014-03-03 Tom Tromey <tromey@redhat.com>
9660
9661 * probe.h (parse_probes, find_probe_by_pc)
9662 (find_probes_in_objfile): Fix comments.
9663
f0407826
DE
96642014-03-02 Doug Evans <xdje42@gmail.com>
9665
9666 * infrun.c (handle_signal_stop): Replace test for
9667 TARGET_WAITKIND_STOPPED with an assert.
9668
35e6a711
DE
96692014-03-02 Doug Evans <xdje42@gmail.com>
9670
9671 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9672
667f9d0b
DE
96732014-03-02 Doug Evans <xdje42@gmail.com>
9674
9675 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9676
dc92ace0
MK
96772014-03-01 Mark Kettenis <kettenis@gnu.org>
9678
9679 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9680
a900370f
MK
96812014-03-01 Mark Kettenis <kettenis@gnu.org>
9682
9683 * i386obsd-nat.c: Include "obsd-nat.h".
9684 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9685 add_target.
9686 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9687
b72a7981
MK
96882014-03-01 Mark Kettenis <kettenis@gnu.org>
9689
9690 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9691
96c70aba
MK
96922014-03-01 Mark Kettenis <kettenis@gnu.org>
9693
9694 * mips64obsd-nat.c: Include "obsd-nath".
9695 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9696 add_target
9697 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9698
874a80af
MK
96992014-03-01 Mark Kettenis <kettenis@gnu.org>
9700
8fd408f1
MK
9701 * amd64obsd-nat.c: Include "obsd-nat,h.
9702 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9703 add_target.
874a80af
MK
9704 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9705
9cf95373
SC
97062014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9707
9708 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9709 (find_overload_match): Update call to find_oload_champ.
9710 (find_oload_champ_namespace_loop): Likewise
9711
863e4da4
MK
97122014-02-28 Mark Kettenis <kettenis@gnu.org>
9713
025cac40
MK
9714 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9715
1ed586ce
MK
9716 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9717 * config/sparc/obsd64.mh: New file.
9718 * sparc64obsd-nat.c: New file.
9719
863e4da4
MK
9720 * obsd-nat.h: New file.
9721 * obsd-nat.c: New file.
9722 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9723 (ALLDEPFILES): Add obsd-nat.c.
9724
89de4da4
TT
97252014-02-28 Tom Tromey <tromey@redhat.com>
9726
9727 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9728 * cli-out.h (cli_ui_out_impl): Now const.
9729 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9730 * ui-out.c (struct ui_out) <impl>: Now const.
9731 (default_ui_out_impl): Now const.
9732 (ui_out_new): Make 'impl' parameter const.
9733 * ui-out.h (ui_out_new): Update.
9734
c725e7b6
MK
97352014-02-27 Mark Kettenis <kettenis@gnu.org>
9736
9737 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9738
670b46b3
MK
97392014-02-27 Mark Kettenis <kettenis@gnu.org>
9740
9741 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9742
c91550fc
JK
97432014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9744
9745 Additional PR 8882 fix.
9746 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9747
2fa0369e
PA
97482014-02-27 Pedro Alves <palves@redhat.com>
9749
9750 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9751 isn't set.
9752
d632a097
PA
97532014-02-27 Pedro Alves <palves@redhat.com>
9754
9755 PR 12702
9756 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9757 * nat/linux-waitpid.c: Include string.h.
9758 (status_to_str): Moved here and made extern.
9759 * nat/linux-waitpid.h (status_to_str): New declaration.
9760
2ebd5a35
HZ
97612014-02-27 Hui Zhu <hui@codesourcery.com>
9762
9763 PR 12702
9764 * infrun.c (ptid_match): Move ...
9765 * common/ptid.c (ptid_match): ... here.
9766 * inferior.h (ptid_match): Move ...
9767 * common/ptid.h (ptid_match): ... here.
9768
3cdd631f
MK
97692014-02-27 Mark Kettenis <kettenis@gnu.org>
9770
9771 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9772 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9773 gdb_target_obs.
9774
bee30a64
MK
97752014-02-27 Mark Kettenis <kettenis@gnu.org>
9776
9777 * obsd-tdep.c (obsd_auxv_parse): New function.
9778 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9779
9780 * gdbarch.sh (auxv_parse): New.
9781 * gdbarch.h: Regenerated.
9782 * gdbarch.c: Regenerated.
9783 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9784
7a5a839f
LC
97852014-02-26 Ludovic Courtès <ludo@gnu.org>
9786
9787 * guile/scm-value.c (gdbscm_history_append_x): New function.
9788 (value_functions): Add it.
9789
31aa7e4e
JB
97902014-02-27 Joel Brobecker <brobecker@adacore.com>
9791
9792 * dwarf2read.c (attr_value_as_address): New function.
9793 (dwarf2_find_base_address, read_call_site_scope): Use
9794 attr_value_as_address in place of DW_ADDR.
9795 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9796 the low and high addresses. Slight rework of the handling
9797 of the high pc being a constant form, and limit it to
9798 DWARF verson 4 or higher.
9799 (dwarf2_record_block_ranges): Likewise.
9800 (read_partial_die): Likewise.
9801 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9802
9b333ba3
TT
98032014-02-26 Tom Tromey <tromey@redhat.com>
9804
9805 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9806
5f6cac40
TT
98072014-02-26 Tom Tromey <tromey@redhat.com>
9808
9809 * elfread.c (elf_read_minimal_symbols): Return early if
9810 minimal symbols have already been read. Add "ei" parameter.
9811 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9812 * minsyms.c (prim_record_minimal_symbol_full): Update.
9813 * objfiles.h (struct objstats) <n_minsyms>: Move...
9814 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9815 * symmisc.c (print_objfile_statistics): Update.
9816
2750ef27
TT
98172014-02-26 Tom Tromey <tromey@redhat.com>
9818
9819 * elfread.c (elf_read_minimal_symbols): New function, from
9820 elf_symfile_read.
9821 (elf_symfile_read): Call it.
9822
34643a32
TT
98232014-02-26 Tom Tromey <tromey@redhat.com>
9824
9825 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9826 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9827 (lookup_minimal_symbol_solib_trampoline)
9828 (lookup_minimal_symbol_by_pc_section_1)
9829 (lookup_minimal_symbol_and_objfile): Update.
9830 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9831 Don't allocate a minimal symbol if minsyms have already been read.
9832 (build_minimal_symbol_hash_tables): Update.
9833 (install_minimal_symbols): Do nothing if minsyms already read.
9834 Use the per-BFD obstack.
9835 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9836 * objfiles.c (allocate_objfile): Call
9837 terminate_minimal_symbol_table later.
9838 (have_minimal_symbols): Update.
9839 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9840 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9841 Move from struct objfile.
9842 <minsyms_read>: New field.
9843 (struct objfile) <msymbols, minimal_symbol_count,
9844 msymbol_hash, msymbol_demangled_hash>: Move.
9845 (ALL_OBJFILE_MSYMBOLS): Update.
9846 * symfile.c (read_symbols): Set minsyms_read.
9847 (reread_symbols): Update.
9848 * symmisc.c (dump_objfile, dump_msymbols): Update.
9849
2273f0ac
TT
98502014-02-26 Tom Tromey <tromey@redhat.com>
9851
9852 * minsyms.c (msymbols_sort): Remove.
9853 * minsyms.h (msymbols_sort): Remove.
9854 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9855 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9856 * elfread.c (elf_symtab_read): Don't add section offsets.
9857 * xcoffread.c (record_minimal_symbol): Don't add section offset
9858 to minimal symbol address.
9859 * somread.c (text_offset, data_offset): Remove.
9860 (som_symtab_read): Don't add section offsets to minimal symbol
9861 addresses.
9862 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9863 Don't add section offsets to minimal symbols.
9864 * coffread.c (coff_symtab_read): Don't add section offsets
9865 to minimal symbol addresses.
9866 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9867 to minimal symbol addresses.
9868 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9869 section offset to minimal symbol addresses.
9870 * mdebugread.c (parse_partial_symbols): Don't add section
9871 offset to minimal symbol addresses.
9872 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9873 offset to minimal symbol addresses.
9874
77e371c0
TT
98752014-02-26 Tom Tromey <tromey@redhat.com>
9876
9877 * ada-lang.c (ada_main_name): Update.
9878 (ada_add_standard_exceptions): Update.
9879 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9880 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9881 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9882 * auxv.c (ld_so_xfer_auxv): Update.
9883 * avr-tdep.c (avr_scan_prologue): Update.
9884 * ax-gdb.c (gen_var_ref): Update.
9885 * blockframe.c (get_pc_function_start)
9886 (find_pc_partial_function_gnu_ifunc): Update.
9887 * breakpoint.c (create_overlay_event_breakpoint)
9888 (create_longjmp_master_breakpoint)
9889 (create_std_terminate_master_breakpoint)
9890 (create_exception_master_breakpoint): Update.
9891 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9892 * c-valprint.c (c_val_print): Update.
9893 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9894 * common/agent.c (agent_look_up_symbols): Update.
9895 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9896 * dwarf2loc.c (call_site_to_target_addr): Update.
9897 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9898 * elfread.c (elf_gnu_ifunc_record_cache)
9899 (elf_gnu_ifunc_resolve_by_got): Update.
9900 * findvar.c (default_read_var_value): Update.
9901 * frame.c (inside_main_func): Update.
9902 * frv-tdep.c (frv_frame_this_id): Update.
9903 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9904 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9905 Update.
9906 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9907 (hppa_hpux_find_dummy_bpaddr): Update.
9908 * hppa-tdep.c (hppa_symbol_address): Update.
9909 * infcmd.c (until_next_command): Update.
9910 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9911 Update.
9912 * linespec.c (minsym_found, add_minsym): Update.
9913 * linux-nat.c (get_signo): Update.
9914 * linux-thread-db.c (inferior_has_bug): Update.
9915 * m32c-tdep.c (m32c_return_value)
9916 (m32c_m16c_address_to_pointer): Update.
9917 * m32r-tdep.c (m32r_frame_this_id): Update.
9918 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9919 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9920 * maint.c (maintenance_translate_address): Update.
9921 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9922 (frob_address): New function.
9923 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9924 frob_address. Rename parameter to "pc_in".
9925 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9926 addresses.
9927 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9928 Update.
9929 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9930 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9931 * objc-lang.c (find_objc_msgsend): Update.
9932 * objfiles.c (objfile_relocate1): Update.
9933 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9934 * p-valprint.c (pascal_val_print): Update.
9935 * parse.c (write_exp_msymbol): Update.
9936 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9937 (ppc_elfv2_skip_entrypoint): Update.
9938 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9939 * printcmd.c (build_address_symbolic, msym_info)
9940 (address_info): Update.
9941 * proc-service.c (ps_pglobal_lookup): Update.
9942 * psymtab.c (find_pc_sect_psymtab_closer)
9943 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9944 Change msymbol parameter to bound_minimal_symbol.
9945 * ravenscar-thread.c (get_running_thread_id): Update.
9946 * remote.c (remote_check_symbols): Update.
9947 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9948 address.
9949 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9950 * solib-dsbt.c (lm_base): Update.
9951 * solib-frv.c (lm_base, main_got): Update.
9952 * solib-irix.c (locate_base): Update.
9953 * solib-som.c (som_solib_create_inferior_hook)
9954 (link_map_start): Update.
9955 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9956 * solib-svr4.c (elf_locate_base, enable_break): Update.
9957 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9958 (flush_ea_cache): Update.
9959 * stabsread.c (define_symbol, scan_file_globals): Update.
9960 * stack.c (find_frame_funname): Update.
9961 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9962 (debug_qf_find_pc_sect_symtab): Update.
9963 * symfile.c (simple_read_overlay_table)
9964 (simple_overlay_update): Update.
9965 * symfile.h (struct quick_symbol_functions)
9966 <find_pc_sect_symtab>: Change type of msymbol to
9967 bound_minimal_symbol.
9968 * symmisc.c (dump_msymbols): Update.
9969 * symtab.c (find_pc_sect_symtab_via_partial)
9970 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9971 (search_symbols, print_msymbol_info): Update.
9972 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9973 (MSYMBOL_VALUE_ADDRESS): Redefine.
9974 (BMSYMBOL_VALUE_ADDRESS): New macro.
9975 * tracepoint.c (scope_info): Update.
9976 * tui/tui-disasm.c (tui_find_disassembly_address)
9977 (tui_get_begin_asm_address): Update.
9978 * valops.c (find_function_in_inferior): Update.
9979 * value.c (value_static_field, value_fn_field): Update.
9980
3b7344d5
TT
99812014-02-26 Tom Tromey <tromey@redhat.com>
9982
9983 * ada-lang.c (ada_update_initial_language): Update.
9984 (ada_main_name, ada_has_this_exception_support): Update.
9985 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9986 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9987 * arm-tdep.c (arm_skip_stub): Update.
9988 * auxv.c (ld_so_xfer_auxv): Update.
9989 * avr-tdep.c (avr_scan_prologue): Update.
9990 * ax-gdb.c (gen_var_ref): Update.
9991 * breakpoint.c (struct breakpoint_objfile_data)
9992 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9993 type to bound_minimal_symbol.
9994 (create_overlay_event_breakpoint)
9995 (create_longjmp_master_breakpoint)
9996 (create_std_terminate_master_breakpoint)
9997 (create_exception_master_breakpoint): Update.
9998 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9999 * c-exp.y (classify_name): Update.
10000 * coffread.c (coff_symfile_read): Update.
10001 * common/agent.c (agent_look_up_symbols): Update.
10002 * d-lang.c (d_main_name): Update.
10003 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10004 * dec-thread.c (enable_dec_thread): Update.
10005 * dwarf2loc.c (call_site_to_target_addr): Update.
10006 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10007 * eval.c (evaluate_subexp_standard): Update.
10008 * findvar.c (struct minsym_lookup_data) <result>: Change type
10009 to bound_minimal_symbol.
10010 <objfile>: Remove.
10011 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10012 * frame.c (inside_main_func): Update.
10013 * frv-tdep.c (frv_frame_this_id): Update.
10014 * gcore.c (call_target_sbrk): Update.
10015 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10016 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10017 Update.
10018 * go-lang.c (go_main_name): Update.
10019 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10020 (hppa_hpux_find_import_stub_for_addr): Update.
10021 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10022 Update. Change return type.
10023 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10024 type.
10025 * jit.c (jit_breakpoint_re_set_internal): Update.
10026 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10027 Update.
10028 * linux-nat.c (get_signo): Update.
10029 * linux-thread-db.c (inferior_has_bug): Update
10030 * m32c-tdep.c (m32c_return_value)
10031 (m32c_m16c_address_to_pointer): Update.
10032 * m32r-tdep.c (m32r_frame_this_id): Update.
10033 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10034 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10035 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10036 lookup_minimal_symbol. Change return type.
10037 (lookup_minimal_symbol): Remove.
10038 (lookup_bound_minimal_symbol): Update.
10039 (lookup_minimal_symbol_text): Change return type.
10040 (lookup_minimal_symbol_solib_trampoline): Change return type.
10041 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10042 (lookup_minimal_symbol_solib_trampoline): Change return type.
10043 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10044 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10045 (value_nsstring, find_imps): Update.
10046 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10047 * p-lang.c (pascal_main_name): Update.
10048 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10049 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10050 * proc-service.c (ps_pglobal_lookup): Update.
10051 * ravenscar-thread.c (get_running_thread_msymbol): Change
10052 return type.
10053 (has_ravenscar_runtime, get_running_thread_id): Update.
10054 * remote.c (remote_check_symbols): Update.
10055 * sol-thread.c (ps_pglobal_lookup): Update.
10056 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10057 * solib-dsbt.c (lm_base): Update.
10058 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10059 Update.
10060 * solib-irix.c (locate_base): Update.
10061 * solib-som.c (som_solib_create_inferior_hook)
10062 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10063 Update.
10064 * solib-spu.c (spu_enable_break): Update.
10065 * solib-svr4.c (elf_locate_base, enable_break): Update.
10066 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10067 (flush_ea_cache): Update.
10068 * stabsread.c (define_symbol): Update.
10069 * symfile.c (simple_read_overlay_table): Update.
10070 * symtab.c (find_pc_sect_line): Update.
10071 * tracepoint.c (scope_info): Update.
10072 * tui-disasm.c (tui_get_begin_asm_address): Update.
10073 * value.c (value_static_field): Update.
10074
40c1a007
TT
100752014-02-26 Tom Tromey <tromey@redhat.com>
10076
10077 * minsyms.c (prim_record_minimal_symbol_full): Use
10078 SET_MSYMBOL_VALUE_ADDRESS.
10079 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10080 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10081 SET_MSYMBOL_VALUE_ADDRESS.
10082 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10083 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10084
efd66ac6
TT
100852014-02-26 Tom Tromey <tromey@redhat.com>
10086
10087 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10088 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10089 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10090 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10091 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10092 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10093 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10094 * ada-lang.c (ada_main_name): Update.
10095 (ada_lookup_simple_minsym): Update.
10096 (ada_make_symbol_completion_list): Update.
10097 (ada_add_standard_exceptions): Update.
10098 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10099 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10100 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10101 * arm-tdep.c (skip_prologue_function): Update.
10102 (arm_skip_stack_protector, arm_skip_stub): Update.
10103 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10104 (arm_wince_skip_main_prologue): Update.
10105 * auxv.c (ld_so_xfer_auxv): Update.
10106 * avr-tdep.c (avr_scan_prologue): Update.
10107 * ax-gdb.c (gen_var_ref): Update.
10108 * block.c (call_site_for_pc): Update.
10109 * blockframe.c (get_pc_function_start): Update.
10110 (find_pc_partial_function_gnu_ifunc): Update.
10111 * breakpoint.c (create_overlay_event_breakpoint): Update.
10112 (create_longjmp_master_breakpoint): Update.
10113 (create_std_terminate_master_breakpoint): Update.
10114 (create_exception_master_breakpoint): Update.
10115 (resolve_sal_pc): Update.
10116 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10117 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10118 Update.
10119 * c-valprint.c (c_val_print): Update.
10120 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10121 * coffread.c (coff_symfile_read): Update.
10122 * common/agent.c (agent_look_up_symbols): Update.
10123 * dbxread.c (find_stab_function_addr): Update.
10124 (end_psymtab): Update.
10125 * dwarf2loc.c (call_site_to_target_addr): Update.
10126 (func_verify_no_selftailcall): Update.
10127 (tailcall_dump): Update.
10128 (call_site_find_chain_1): Update.
10129 (dwarf_expr_reg_to_entry_parameter): Update.
10130 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10131 (elf_gnu_ifunc_resolve_by_got): Update.
10132 * f-valprint.c (info_common_command): Update.
10133 * findvar.c (read_var_value): Update.
10134 * frame.c (get_prev_frame_1): Update.
10135 (inside_main_func): Update.
10136 * frv-tdep.c (frv_skip_main_prologue): Update.
10137 (frv_frame_this_id): Update.
10138 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10139 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10140 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10141 (gnuv3_skip_trampoline): Update.
10142 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10143 (hppa64_hpux_in_solib_call_trampoline): Update.
10144 (hppa_hpux_skip_trampoline_code): Update.
10145 (hppa64_hpux_search_dummy_call_sequence): Update.
10146 (hppa_hpux_find_import_stub_for_addr): Update.
10147 (hppa_hpux_find_dummy_bpaddr): Update.
10148 * hppa-tdep.c (hppa_symbol_address)
10149 (hppa_lookup_stub_minimal_symbol): Update.
10150 * i386-tdep.c (i386_skip_main_prologue): Update.
10151 (i386_pe_skip_trampoline_code): Update.
10152 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10153 * infcall.c (get_function_name): Update.
10154 * infcmd.c (until_next_command): Update.
10155 * jit.c (jit_breakpoint_re_set_internal): Update.
10156 (jit_inferior_init): Update.
10157 * linespec.c (minsym_found): Update.
10158 (add_minsym): Update.
10159 * linux-fork.c (info_checkpoints_command): Update.
10160 * linux-nat.c (get_signo): Update.
10161 * linux-thread-db.c (inferior_has_bug): Update.
10162 * m32c-tdep.c (m32c_return_value): Update.
10163 (m32c_m16c_address_to_pointer): Update.
10164 (m32c_m16c_pointer_to_address): Update.
10165 * m32r-tdep.c (m32r_frame_this_id): Update.
10166 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10167 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10168 * maint.c (maintenance_translate_address): Update.
10169 * minsyms.c (add_minsym_to_hash_table): Update.
10170 (add_minsym_to_demangled_hash_table): Update.
10171 (msymbol_objfile): Update.
10172 (lookup_minimal_symbol): Update.
10173 (iterate_over_minimal_symbols): Update.
10174 (lookup_minimal_symbol_text): Update.
10175 (lookup_minimal_symbol_by_pc_name): Update.
10176 (lookup_minimal_symbol_solib_trampoline): Update.
10177 (lookup_minimal_symbol_by_pc_section_1): Update.
10178 (lookup_minimal_symbol_and_objfile): Update.
10179 (prim_record_minimal_symbol_full): Update.
10180 (compare_minimal_symbols): Update.
10181 (compact_minimal_symbols): Update.
10182 (build_minimal_symbol_hash_tables): Update.
10183 (install_minimal_symbols): Update.
10184 (terminate_minimal_symbol_table): Update.
10185 (find_solib_trampoline_target): Update.
10186 (minimal_symbol_upper_bound): Update.
10187 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10188 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10189 (mips_skip_pic_trampoline_code): Update.
10190 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10191 * objc-lang.c (selectors_info): Update.
10192 (classes_info): Update.
10193 (find_methods): Update.
10194 (find_imps): Update.
10195 (find_objc_msgsend): Update.
10196 * objfiles.c (objfile_relocate1): Update.
10197 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10198 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10199 * p-valprint.c (pascal_val_print): Update.
10200 * parse.c (write_exp_msymbol): Update.
10201 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10202 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10203 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10204 * printcmd.c (build_address_symbolic): Update.
10205 (sym_info): Update.
10206 (address_info): Update.
10207 * proc-service.c (ps_pglobal_lookup): Update.
10208 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10209 (find_pc_sect_psymtab): Update.
10210 * python/py-framefilter.c (py_print_frame): Update.
10211 * ravenscar-thread.c (get_running_thread_id): Update.
10212 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10213 Update.
10214 * remote.c (remote_check_symbols): Update.
10215 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10216 (rs6000_skip_trampoline_code): Update.
10217 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10218 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10219 * solib-dsbt.c (lm_base): Update.
10220 * solib-frv.c (lm_base): Update.
10221 (main_got): Update.
10222 * solib-irix.c (locate_base): Update.
10223 * solib-som.c (som_solib_create_inferior_hook): Update.
10224 (som_solib_desire_dynamic_linker_symbols): Update.
10225 (link_map_start): Update.
10226 * solib-spu.c (spu_enable_break): Update.
10227 (ocl_enable_break): Update.
10228 * solib-svr4.c (elf_locate_base): Update.
10229 (enable_break): Update.
10230 * spu-tdep.c (spu_get_overlay_table): Update.
10231 (spu_catch_start): Update.
10232 (flush_ea_cache): Update.
10233 * stabsread.c (define_symbol): Update.
10234 (scan_file_globals): Update.
10235 * stack.c (find_frame_funname): Update.
10236 (frame_info): Update.
10237 * symfile.c (simple_read_overlay_table): Update.
10238 (simple_overlay_update): Update.
10239 * symmisc.c (dump_msymbols): Update.
10240 * symtab.c (fixup_section): Update.
10241 (find_pc_sect_line): Update.
10242 (skip_prologue_sal): Update.
10243 (search_symbols): Update.
10244 (print_msymbol_info): Update.
10245 (rbreak_command): Update.
10246 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10247 (completion_list_objc_symbol): Update.
10248 (default_make_symbol_completion_list_break_on): Update.
10249 * tracepoint.c (scope_info): Update.
10250 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10251 (tui_get_begin_asm_address): Update.
10252 * valops.c (find_function_in_inferior): Update.
10253 * value.c (value_static_field): Update.
10254 (value_fn_field): Update.
10255
50e65b17
TT
102562014-02-26 Tom Tromey <tromey@redhat.com>
10257
10258 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10259 bound minimal symbols. Move code that knows about minsym
10260 table layout...
10261 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10262 function.
10263 * minsyms.h (minimal_symbol_upper_bound): Declare.
10264 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10265 minimal_symbol_upper_bound.
10266
1b588015
JB
102672014-02-27 Joel Brobecker <brobecker@adacore.com>
10268
10269 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10270 Use the type's name if its basic type does not have a tag.
10271
dbb9c2b1
JB
102722014-02-27 Joel Brobecker <brobecker@adacore.com>
10273
10274 * dwarf2read.c (read_subrange_type): Add comment.
10275
55426c9d
JB
102762014-02-27 Joel Brobecker <brobecker@adacore.com>
10277
10278 * dwarf2read.c (update_enumeration_type_from_children): New
10279 function, mostly extracted from process_structure_scope.
10280 (read_enumeration_type): Call update_enumeration_type_from_children.
10281 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10282 and flag_flag_enum fields.
10283
f2fce0ca
PA
102842014-02-26 Pedro Alves <palves@redhat.com>
10285
10286 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10287 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10288 to_xfer_partial method.
10289
7a44e40e
PA
102902014-02-26 Pedro Alves <palves@redhat.com>
10291
10292 * target.c (complete_target_initialization): Don't install
10293 default_xfer_partial as to_xfer_partial hook.
10294 (nomemory): Delete.
10295 (update_current_target): Don't INHERIT nor de_fault
10296 deprecated_xfer_memory. Delete de_fault macro.
10297 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10298 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10299 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10300 field.
10301
bd265cd0
PA
103022014-02-26 Pedro Alves <palves@redhat.com>
10303
10304 * go32-nat.c (my_write_child): New function.
10305 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10306 (go32_xfer_partial): New function.
10307 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10308 Instead install a to_xfer_partial hook.
10309
9d46c4e5
PA
103102014-02-26 Pedro Alves <palves@redhat.com>
10311
10312 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10313 to_xfer_partial helper. Rewrite.
10314 (procfs_xfer_partial): New function.
10315 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10316 Install a to_xfer_partial hook.
10317
a1583b1f
PA
103182014-02-26 Pedro Alves <palves@redhat.com>
10319
10320 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10321 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10322 (m32r_xfer_partial): New function.
10323 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10324 Install a to_xfer_partial hook.
10325
6df1b29f
PA
103262014-02-26 Pedro Alves <palves@redhat.com>
10327
10328 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10329 helper.
10330 (mips_xfer_partial): New function.
10331 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10332 hook. Install a to_xfer_partial hook.
10333
dc53a7ad
JB
103342014-02-26 Joel Brobecker <brobecker@adacore.com>
10335
10336 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10337 * gdbtypes.c (create_array_type_with_stride): New function,
10338 renaming create_array_type, but with an added parameter
10339 called "bit_stride".
10340 (create_array_type): Re-implement using
10341 create_array_type_with_stride.
10342 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10343 and DW_AT_bit_stride attributes.
10344
12ab52e9
PA
103452014-02-26 Pedro Alves <palves@redhat.com>
10346
10347 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10348 task-specific breakpoints.
10349
d16461ae
PA
103502014-02-25 Pedro Alves <palves@redhat.com>
10351
10352 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10353 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10354
a8b16220
SS
103552014-02-25 Stan Shebs <stan@codesourcery.com>
10356
10357 * defs.h: Annotate comments for Doxygen.
10358
b9e795ee
TT
103592014-02-25 Tom Tromey <tromey@redhat.com>
10360
10361 * target.h (target_ignore): Don't declare.
10362 * target.c (target_ignore): Remove.
10363
849c862e
JK
103642014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10365
10366 PR gdb/16626
10367 * auto-load.c (auto_load_objfile_script_1): Change filename to
10368 debugfile.
10369
475109d8
JB
103702014-02-25 Joel Brobecker <brobecker@adacore.com>
10371
10372 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10373 documentation. Adjust prototype to match the target_ops
10374 to_xfer_partial method. Adjust implementation accordingly.
10375
e186c3bd
HZ
103762014-02-25 Hui Zhu <hui@codesourcery.com>
10377
10378 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10379 to_traceframe_info.
10380
6d451942
KB
103812014-02-25 Kevin Buettner <kevinb@redhat.com>
10382
041ab8b4 10383 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10384 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10385 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10386 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10387 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10388 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10389 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10390 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10391 New constants.
10392 (rl78_register_type): Use a data pointer type for SP and
10393 new pseudo registers mentioned above. Use a 16 bit integer
10394 type for all other register pairs.
10395 (rl78_register_name, rl78_g10_register_name): Update for
10396 new pseudo registers.
10397 (rl78_pseudo_register_read): Likewise.
10398 (rl78_pseudo_register_write): Likewise.
10399 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10400 to the newly added pseudo registers.
10401
eddf0bae
DE
104022014-02-24 Doug Evans <dje@google.com>
10403
10404 * value.c (record_latest_value): Fix comment.
10405 * printcmd.c (print_command_1): Remove code to handle -1 return from
10406 record_latest_value.
10407
e96027e0
PA
104082014-02-24 Pedro Alves <palves@redhat.com>
10409
10410 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10411 deprecated_xfer_memory hook.
10412 (procfs_xfer_partial): Call procfs_xfer_memory instead
10413 of the deprecated_xfer_memory target hook.
10414 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10415 helper.
10416
0837c976
YZ
104172014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10418
10419 * windows-nat.c (windows_xfer_shared_libraries): Return
10420 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10421 requested object is TARGET_OBJECT_LIBRARIES.
10422
bc113b4e
YQ
104232014-02-24 Yao Qi <yao@codesourcery.com>
10424
10425 * target.h (enum target_xfer_status)
10426 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10427 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10428 explicitly. New.
10429 * corefile.c (memory_error_message): User updated.
10430 * exec.c (section_table_read_available_memory): Likewise.
10431 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10432 * target.c (target_xfer_status_to_string): Likewise.
10433 (raw_memory_xfer_partial): Likewise.
10434 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10435 * valops.c (read_value_memory): Likewise.
10436 * exec.h: Update comments.
10437
01cb8804
YQ
104382014-02-24 Yao Qi <yao@codesourcery.com>
10439
10440 * target.c (target_xfer_status_to_string): Rename argument err
10441 to status.
10442 * target.h (target_xfer_status_to_string): Update declaration.
10443 Replace target_xfer_error_to_string with
10444 target_xfer_status_to_string in comment.
10445
93063aa6
YQ
104462014-02-24 Yao Qi <yao@codesourcery.com>
10447
10448 * mips-linux-nat.c (super_close): Update its type.
10449 (mips_linux_close): Pass 'self' to super_close.
10450
5c328c05
YQ
104512014-02-24 Yao Qi <yao@codesourcery.com>
10452
10453 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10454 * corefile.c (read_memory): Adjusted.
10455 * target.c (target_write_with_progress): Adjusted.
10456
f73023dd
YQ
104572014-02-23 Yao Qi <yao@codesourcery.com>
10458
10459 Revert two patches:
10460
10461 2013-10-25 Yao Qi <yao@codesourcery.com>
10462
10463 * remote.c (remote_traceframe_info): Return early if
10464 traceframe is not selected.
10465
10466 2013-07-19 Yao Qi <yao@codesourcery.com>
10467
10468 * target.c (update_current_target): Change the default action
10469 of 'to_traceframe_info' from tcomplain to return_zero.
10470 * target.h (struct target_ops) <to_traceframe_info>: Add more
10471 comments.
10472
5a2eb0ef
YQ
104732014-02-23 Yao Qi <yao@codesourcery.com>
10474
10475 * valops.c (read_value_memory): Rewrite it. Call
10476 target_xfer_partial in a loop.
10477 * exec.h (section_table_available_memory): Remove declaration.
10478 Move comments to ...
10479 * exec.c (section_table_available_memory): ... here. Make it
10480 static.
10481
1ee79381
YQ
104822014-02-23 Yao Qi <yao@codesourcery.com>
10483
10484 * exec.c (section_table_read_available_memory): New function.
10485 * exec.h (section_table_read_available_memory): Declare.
10486 * ctf.c (ctf_xfer_partial): Call
10487 section_table_read_available_memory.
10488 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10489
1ca49d37
YQ
104902014-02-23 Yao Qi <yao@codesourcery.com>
10491
10492 * ctf.c (ctf_xfer_partial): Move code to ...
10493 * exec.c (exec_read_partial_read_only): ... it. New function.
10494 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10495 * tracefile.c: Include "exec.h".
10496 * exec.h (exec_read_partial_read_only): Declare.
10497
a283690e
YQ
104982014-02-23 Yao Qi <yao@codesourcery.com>
10499
10500 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10501 (tfile_has_memory): Remove.
10502 (init_tfile_ops): Don't set fields to_has_all_memory and
10503 to_has_memory of tfile_ops.
10504 * tracefile.c (tracefile_has_all_memory): New function.
10505 (tracefile_has_memory): New function.
10506 (init_tracefile_ops): Initialize fields to_has_all_memory and
10507 to_has_memory of 'ops'.
10508
12e03cd0
YQ
105092014-02-23 Yao Qi <yao@codesourcery.com>
10510
10511 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10512 (ctf_thread_alive, ctf_get_trace_status): Remove.
10513 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10514 init_tracefile_ops.
10515 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10516 (tfile_has_stack, tfile_has_registers): Remove.
10517 (tfile_thread_alive): Remove.
10518 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10519 init_tracefile_ops.
10520 * tracefile.c (tracefile_has_stack): New function.
10521 (tracefile_has_registers): New function.
10522 (tracefile_thread_alive): New function.
10523 (tracefile_get_trace_status): New function.
10524 (init_tracefile_ops): New function.
10525 * tracefile.h (init_tracefile_ops): Declare.
10526
11395323
YQ
105272014-02-23 Yao Qi <yao@codesourcery.com>
10528
10529 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10530 (O_LARGEFILE): Likewise.
10531 (tfile_ops): Likewise.
10532 (TRACE_HEADER_SIZE): Likewise.
10533 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10534 (cur_data_size): Likewise.
10535 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10536 (tfile_close, tfile_files_info): Likewise.
10537 (tfile_get_trace_status): Likewise.
10538 (tfile_get_tracepoint_status): Likewise.
10539 (tfile_get_traceframe_address): Likewise.
10540 (tfile_trace_find, match_blocktype): Likewise.
10541 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10542 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10543 (tfile_get_trace_state_variable_value): Likewise.
10544 (tfile_has_all_memory, tfile_has_memory): Likewise.
10545 (tfile_has_stack, tfile_has_registers): Likewise.
10546 (tfile_thread_alive, build_traceframe_info): Likewise.
10547 (tfile_traceframe_info, init_tfile_ops): Likewise.
10548 (_initialize_tracepoint): Don't call init_tfile_ops
10549 and add_target_with_completer.
10550 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10551 exec.h, completer.h and filenames.h.
10552 (_initialize_tracefile_tfile): New function.
10553
7951c4eb
YQ
105542014-02-23 Yao Qi <yao@codesourcery.com>
10555
10556 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10557 tracefile-tfile.o.
10558 (HFILES_NO_SRCDIR): Add tracefile.h.
10559 * ctf.c: Include "tracefile.h".
10560 * tracefile.h: New file.
10561 * tracefile.c: New file
10562 * tracefile-tfile.c: New file.
10563 * tracepoint.c: Include "tracefile.h".
10564 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10565 (stop_reason_names): Add const.
10566 (trace_file_writer_xfree): Move it to tracefile.c.
10567 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10568 (trace_save_ctf): Likewise.
10569 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10570 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10571 (tfile_write_header, tfile_write_regblock_type): Likewise.
10572 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10573 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10574 (tfile_write_raw_data, tfile_end): Likewise.
10575 (tfile_trace_file_writer_new): Likewise.
10576 (free_uploaded_tp): Make it extern.
10577 (free_uploaded_tsv): Make it extern.
10578 (_initialize_tracepoint): Move code to register command 'tsave'
10579 to tracefile.c.
10580 * tracepoint.h (stop_reason_names): Declare.
10581 (struct trace_frame_write_ops): Move it to tracefile.h.
10582 (struct trace_file_write_ops): Likewise.
10583 (struct trace_file_writer): Likewise.
10584 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10585
184cd072
JK
105862014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10587
10588 PR gdb/16594
10589 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10590 process name.
10591 (get_cores_used_by_process): New parameter num_cores, use it.
10592 (linux_xfer_osdata_processes): Pass num_cores to it.
10593 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10594 process name.
10595
c63528fc
AK
105962014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10597
10598 * target.c (memory_xfer_partial): Fix length arg in call to
10599 breakpoint_xfer_memory.
10600
d7b30f67
SDJ
106012014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10602
10603 PR tdep/16397
10604 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10605 number comes after the + or - signs. Adjust length of register
10606 name to be extracted.
10607
8838afaf
TT
106082014-02-20 Tom Tromey <tromey@redhat.com>
10609
10610 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10611 (ada_varobj_ops): Mark "extern".
10612
05227d14
TT
106132014-02-20 Tom Tromey <tromey@redhat.com>
10614
10615 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10616
1254eefc
DE
106172014-02-20 Doug Evans <xdje42@gmail.com>
10618
10619 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10620 All callers updated.
10621 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10622 All callers updated.
10623 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10624 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10625
adde2bff
DE
106262014-02-20 lin zuojian <manjian2006@gmail.com>
10627 Joel Brobecker <brobecker@adacore.com>
10628 Doug Evans <xdje42@gmail.com>
10629
10630 PR symtab/16581
10631 * dwarf2read.c (struct die_info): New member in_process.
10632 (reset_die_in_process): New function.
10633 (process_die): Set it at the start, reset when returning.
10634 (inherit_abstract_dies): Only call process_die if origin_child_die
10635 not already being processed.
10636
3be75f87
JB
106372014-02-20 Joel Brobecker <brobecker@adacore.com>
10638
10639 * windows-nat.c (handle_unload_dll): Add function documentation.
10640 (do_initial_windows_stuff): Add comment explaining why we wait
10641 until after inferior initialization has finished before
10642 processing all DLLs.
10643
47f7ffdb
JB
106442014-02-20 Joel Brobecker <brobecker@adacore.com>
10645
10646 * windows-nat.c (get_module_name): Delete.
10647 (windows_get_exec_module_filename): New function, mostly
10648 inspired from get_module_name.
10649 (windows_pid_to_exec_file): Replace call to get_module_name
10650 by call to windows_get_exec_module_filename.
10651
1cd9feab
JB
106522014-02-20 Joel Brobecker <brobecker@adacore.com>
10653
10654 * windows-nat.c (handle_load_dll): Rewrite this function's
10655 introductory comment. Remove code using get_module_name
10656 to get the DLL's name.
10657
ea39ad35
JB
106582014-02-20 Joel Brobecker <brobecker@adacore.com>
10659
10660 * windows-nat.c (get_windows_debug_event): Ignore
10661 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10662 if windows_initialization_done == 0.
10663 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10664 Adjust implementation to always load all DLLs.
10665 (do_initial_windows_stuff): Replace call to
10666 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10667
95060284
JB
106682014-02-20 Joel Brobecker <brobecker@adacore.com>
10669
10670 * windows-nat.c (_initialize_windows_nat): Deprecate the
10671 "dll-symbols" command. Turn the "add-shared-symbol-files"
10672 and "assf" aliases into commands, and deprecate them as well.
10673 * NEWS: Add entry explaining that "dll-symbols" and its two
10674 aliases are now deprecated.
10675
8d4fdb12
JB
106762014-02-20 Joel Brobecker <brobecker@adacore.com>
10677
10678 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10679 new-line in debug string. Remove trailing spaces.
10680
1b281443
SS
106812014-02-19 Stan Shebs <stan@codesourcery.com>
10682
10683 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10684
f7bd0f78
SC
106852014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10686
10687 * NEWS: Add entry for the new feature
10688 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10689 and class values.
10690
399ebc3d
SS
106912014-02-19 Stan Shebs <stan@codesourcery.com>
10692
10693 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10694
c658158d
PA
106952014-02-19 Pedro Alves <palves@redhat.com>
10696
10697 * common/ptid.h (struct ptid): Mention that process_stratum
10698 targets should prefer ptid.lwp.
10699
ba348170
PA
107002014-02-19 Pedro Alves <palves@redhat.com>
10701
10702 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10703 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10704 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10705 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10706 store remote thread ids rather than ptid.tid.
10707 (_initialize_remote): Adjust.
10708
ac01945b
TT
107092014-02-19 Tom Tromey <tromey@redhat.com>
10710
10711 * target.c (target_get_unwinder): Rewrite.
10712 (target_get_tailcall_unwinder): Rewrite.
10713 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10714 (record_btrace_to_get_tailcall_unwinder): New function.
10715 (init_record_btrace_ops): Update.
10716 * target.h (struct target_ops) <to_get_unwinder,
10717 to_get_tailcall_unwinder>: Now function pointers. Use
10718 TARGET_DEFAULT_RETURN.
10719
8476dc92
TT
107202014-02-19 Tom Tromey <tromey@redhat.com>
10721
10722 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10723 argument.
10724 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10725
c0eca49f
TT
107262014-02-19 Tom Tromey <tromey@redhat.com>
10727
10728 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10729 directly.
10730 * target-delegates.c: Rebuild.
10731 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10732 TARGET_DEFAULT_FUNC.
10733 * target.c (default_target_decr_pc_after_break): Rename from
10734 forward_target_decr_pc_after_break. Simplify.
10735 (target_decr_pc_after_break): Rely on delegation.
10736
596b6b39
TT
107372014-02-19 Tom Tromey <tromey@redhat.com>
10738
10739 * target.c (update_current_target): Do not INHERIT to_doc or
10740 to_magic. Do not de_fault to_open or to_close.
10741
b427c1bc
TT
107422014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * gcore.h (objfile_find_memory_regions): Declare.
10745 * gcore.c (objfile_find_memory_regions): No longer static. Add
10746 "self" argument.
10747 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10748 * exec.c: Include gcore.h.
10749 (exec_set_find_memory_regions): Remove.
10750 (exec_find_memory_regions): Remove.
10751 (exec_do_find_memory_regions): Remove.
10752 (init_exec_ops): Update.
10753 * defs.h (exec_set_find_memory_regions): Remove.
10754
9b144037
TT
107552014-02-19 Tom Tromey <tromey@redhat.com>
10756
10757 * target-delegates.c: Rebuild.
10758 * target.h (struct target_ops) <to_extra_thread_info,
10759 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10760 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10761 not 0, in TARGET_DEFAULT_RETURN.
10762
555bbdeb
TT
107632014-02-19 Tom Tromey <tromey@redhat.com>
10764
10765 * target.c (complete_target_initialization): Remove casts. Use
10766 return_zero_has_execution.
10767 (return_zero): Add "ignore" argument.
10768 (return_zero_has_execution): New function.
10769 (init_dummy_target): Remove casts. Use
10770 return_zero_has_execution.
10771
be4ddd36
TT
107722014-02-19 Tom Tromey <tromey@redhat.com>
10773
10774 * target.c (update_current_target): Update comments. Do not
10775 INHERIT to_stratum.
10776
2117c711
TT
107772014-02-19 Tom Tromey <tromey@redhat.com>
10778
10779 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10780 needed.
10781 * corelow.c (core_read_description): Delegate when needed.
10782 * remote.c (remote_read_description): Delegate when needed.
10783 * target-delegates.c: Rebuild.
10784 * target.c (target_read_description): Rewrite.
10785 * target.h (struct target_ops) <to_read_description>: Update
10786 comment. Use TARGET_DEFAULT_RETURN.
10787
e88ef65c
TT
107882014-02-19 Tom Tromey <tromey@redhat.com>
10789
10790 * target-delegates.c: Rebuild.
10791 * target.c (update_current_target): Don't inherit or default
10792 to_can_run.
10793 (find_default_run_target): Check against delegate_can_run.
10794 * target.h (struct target_ops) <to_can_run>: Use
10795 TARGET_DEFAULT_RETURN.
10796
86a0854a
TT
107972014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * target-delegates.c: Rebuild.
10800 * target.c (target_disconnect): Unconditionally delegate.
10801 * target.h (struct target_ops) <to_disconnect>: Use
10802 TARGET_DEFAULT_NORETURN.
10803
ee97f592
TT
108042014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * record.c (record_stop): Unconditionally delegate.
10807 * target-delegates.c: Rebuild.
10808 * target.c (target_stop_recording): Unconditionally delegate.
10809 * target.h (struct target_ops) <to_stop_recording>: Use
10810 TARGET_DEFAULT_IGNORE.
10811
6dc7fcf4
TT
108122014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target-delegates.c: Rebuild.
10815 * target.c (target_enable_btrace): Unconditionally delegate.
10816 * target.h (struct target_ops) <to_enable_btrace>: Use
10817 TARGET_DEFAULT_NORETURN.
10818
eb5b20d4
TT
108192014-02-19 Tom Tromey <tromey@redhat.com>
10820
10821 * target-delegates.c: Rebuild.
10822 * target.c (target_read_btrace): Unconditionally delegate.
10823 * target.h (struct target_ops) <to_read_btrace>: Use
10824 TARGET_DEFAULT_NORETURN.
10825
9ace480d
TT
108262014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target-delegates.c: Rebuild.
10829 * target.c (target_teardown_btrace): Unconditionally delegate.
10830 * target.h (struct target_ops) <to_teardown_btrace>: Use
10831 TARGET_DEFAULT_NORETURN.
10832
8dc292d3
TT
108332014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target-delegates.c: Rebuild.
10836 * target.c (target_disable_btrace): Unconditionally delegate.
10837 * target.h (struct target_ops) <to_disable_btrace>: Use
10838 TARGET_DEFAULT_NORETURN.
10839
58a5184e
TT
108402014-02-19 Tom Tromey <tromey@redhat.com>
10841
10842 * target-delegates.c: Rebuild.
10843 * target.c (default_search_memory): New function.
10844 (simple_search_memory): Update comment.
10845 (target_search_memory): Unconditionally delegate.
10846 * target.h (struct target_ops) <to_search_memory>: Use
10847 TARGET_DEFAULT_FUNC.
10848
8de71aab
TT
108492014-02-19 Tom Tromey <tromey@redhat.com>
10850
10851 * auxv.c (default_auxv_parse): No longer static.
10852 (target_auxv_parse): Unconditionally delegate.
10853 * auxv.h (default_auxv_parse): Declare.
10854 * target-delegates.c: Rebuild.
10855 * target.c: Include auxv.h.
10856 * target.h (struct target_ops) <to_auxv_parse>: Use
10857 TARGET_DEFAULT_FUNC.
10858
6b2c5a57
TT
108592014-02-19 Tom Tromey <tromey@redhat.com>
10860
10861 * target-delegates.c: Rebuild.
10862 * target.c (target_memory_map): Unconditionally delegate.
10863 * target.h (struct target_ops) <to_memory_map>: Use
10864 TARGET_DEFAULT_RETURN.
10865
cbffc065
TT
108662014-02-19 Tom Tromey <tromey@redhat.com>
10867
10868 * target-delegates.c: Rebuild.
10869 * target.c (target_thread_alive): Unconditionally delegate.
10870 * target.h (struct target_ops) <to_thread_alive>: Use
10871 TARGET_DEFAULT_RETURN.
10872
f09e2107
TT
108732014-02-19 Tom Tromey <tromey@redhat.com>
10874
10875 * target-delegates.c: Rebuild.
10876 * target.c (target_save_record): Unconditionally delegate.
10877 * target.h (struct target_ops) <to_save_record>: Use
10878 TARGET_DEFAULT_NORETURN.
10879
07366925
TT
108802014-02-19 Tom Tromey <tromey@redhat.com>
10881
10882 * target-delegates.c: Rebuild.
10883 * target.c (target_delete_record): Unconditionally delegate.
10884 * target.h (struct target_ops) <to_delete_record>: Use
10885 TARGET_DEFAULT_NORETURN.
10886
dd2e9d25
TT
108872014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * target-delegates.c: Rebuild.
10890 * target.c (target_record_is_replaying): Unconditionally
10891 delegate.
10892 * target.h (struct target_ops) <to_record_is_replaying>: Use
10893 TARGET_DEFAULT_RETURN.
10894
671e76cc
TT
108952014-02-19 Tom Tromey <tromey@redhat.com>
10896
10897 * target-delegates.c: Rebuild.
10898 * target.c (target_goto_record_begin): Unconditionally delegate.
10899 * target.h (struct target_ops) <to_goto_record_begin>: Use
10900 TARGET_DEFAULT_NORETURN.
10901
e9179bb3
TT
109022014-02-19 Tom Tromey <tromey@redhat.com>
10903
10904 * target-delegates.c: Rebuild.
10905 * target.c (target_goto_record_end): Unconditionally delegate.
10906 * target.h (struct target_ops) <to_goto_record_end>: Use
10907 TARGET_DEFAULT_NORETURN.
10908
05969c84
TT
109092014-02-19 Tom Tromey <tromey@redhat.com>
10910
10911 * target-delegates.c: Rebuild.
10912 * target.c (target_goto_record): Unconditionally delegate.
10913 * target.h (struct target_ops) <to_goto_record>: Use
10914 TARGET_DEFAULT_NORETURN.
10915
3679abfa
TT
109162014-02-19 Tom Tromey <tromey@redhat.com>
10917
10918 * target-delegates.c: Rebuild.
10919 * target.c (target_insn_history): Unconditionally delegate.
10920 * target.h (struct target_ops) <to_insn_history>: Use
10921 TARGET_DEFAULT_NORETURN.
10922
8444ab58
TT
109232014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * target-delegates.c: Rebuild.
10926 * target.c (target_insn_history_from): Unconditionally delegate.
10927 * target.h (struct target_ops) <to_insn_history_from>: Use
10928 TARGET_DEFAULT_NORETURN.
10929
c29302cc
TT
109302014-02-19 Tom Tromey <tromey@redhat.com>
10931
10932 * target-delegates.c: Rebuild.
10933 * target.c (target_insn_history_range): Unconditionally delegate.
10934 * target.h (struct target_ops) <to_insn_history_range>: Use
10935 TARGET_DEFAULT_NORETURN.
10936
170049d4
TT
109372014-02-19 Tom Tromey <tromey@redhat.com>
10938
10939 * target-delegates.c: Rebuild.
10940 * target.c (target_call_history): Unconditionally delegate.
10941 * target.h (struct target_ops) <to_call_history>: Use
10942 TARGET_DEFAULT_NORETURN.
10943
16fc27d6
TT
109442014-02-19 Tom Tromey <tromey@redhat.com>
10945
10946 * target-delegates.c: Rebuild.
10947 * target.c (target_call_history_from): Unconditionally delegate.
10948 * target.h (struct target_ops) <to_call_history_from>: Use
10949 TARGET_DEFAULT_NORETURN.
10950
115d9817
TT
109512014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target-delegates.c: Rebuild.
10954 * target.c (target_call_history_range): Unconditionally delegate.
10955 * target.h (struct target_ops) <to_call_history_range>: Use
10956 TARGET_DEFAULT_NORETURN.
10957
eb276a6b
TT
109582014-02-19 Tom Tromey <tromey@redhat.com>
10959
10960 * target-delegates.c: Rebuild.
10961 * target.c (target_verify_memory): Unconditionally delegate.
10962 * target.h (struct target_ops) <to_verify_memory>: Use
10963 TARGET_DEFAULT_NORETURN.
10964
9e538d0d
TT
109652014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * target-delegates.c: Rebuild.
10968 * target.c (target_core_of_thread): Unconditionally delegate.
10969 * target.h (struct target_ops) <to_core_of_thread>: Use
10970 TARGET_DEFAULT_RETURN.
10971
f6fb2925
TT
109722014-02-19 Tom Tromey <tromey@redhat.com>
10973
10974 * target-delegates.c: Rebuild.
10975 * target.c (target_flash_done): Unconditionally delegate.
10976 * target.h (struct target_ops) <to_flash_done>: Use
10977 TARGET_DEFAULT_NORETURN.
10978
e8a6c6ac
TT
109792014-02-19 Tom Tromey <tromey@redhat.com>
10980
10981 * target-delegates.c: Rebuild.
10982 * target.c (target_flash_erase): Unconditionally delegate.
10983 * target.h (struct target_ops) <to_flash_erase>: Use
10984 TARGET_DEFAULT_NORETURN.
10985
7e35c012
TT
109862014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target-delegates.c: Rebuild.
10989 * target.c (target_get_section_table): Unconditionally delegate.
10990 * target.h (struct target_ops) <to_get_section_table>: Use
10991 TARGET_DEFAULT_RETURN.
10992
770234d3
TT
109932014-02-19 Tom Tromey <tromey@redhat.com>
10994
10995 * target-delegates.c: Rebuild.
10996 * target.c (target_pid_to_str): Unconditionally delegate.
10997 (init_dummy_target): Don't initialize to_pid_to_str.
10998 (default_pid_to_str): Rename from dummy_pid_to_str.
10999 * target.h (struct target_ops) <to_pid_to_str>: Use
11000 TARGET_DEFAULT_FUNC.
11001
09b0dc2b
TT
110022014-02-19 Tom Tromey <tromey@redhat.com>
11003
11004 * target-delegates.c: Rebuild.
11005 * target.c (target_find_new_threads): Unconditionally delegate.
11006 * target.h (struct target_ops) <to_find_new_threads>: Use
11007 TARGET_DEFAULT_RETURN.
11008
7d4f8efa
TT
110092014-02-19 Tom Tromey <tromey@redhat.com>
11010
11011 * target-delegates.c: Rebuild.
11012 * target.c (target_program_signals): Unconditionally delegate.
11013 * target.h (struct target_ops) <to_program_signals>: Use
11014 TARGET_DEFAULT_IGNORE.
11015
035cad7f
TT
110162014-02-19 Tom Tromey <tromey@redhat.com>
11017
11018 * target-delegates.c: Rebuild.
11019 * target.c (target_pass_signals): Unconditionally delegate.
11020 * target.h (struct target_ops) <to_pass_signals>: Use
11021 TARGET_DEFAULT_IGNORE.
11022
8d657035
TT
110232014-02-19 Tom Tromey <tromey@redhat.com>
11024
11025 * target-delegates.c: Rebuild.
11026 * target.c (default_mourn_inferior): New function.
11027 (target_mourn_inferior): Unconditionally delegate.
11028 * target.h (struct target_ops) <to_mourn_inferior>: Use
11029 TARGET_DEFAULT_FUNC.
11030
098dba18
TT
110312014-02-19 Tom Tromey <tromey@redhat.com>
11032
11033 * target-delegates.c: Rebuild.
11034 * target.c (default_follow_fork): New function.
11035 (target_follow_fork): Unconditionally delegate.
11036 * target.h (struct target_ops) <to_follow_fork>: Use
11037 TARGET_DEFAULT_FUNC.
11038
423a4807
TT
110392014-02-19 Tom Tromey <tromey@redhat.com>
11040
11041 * target-delegates.c: Rebuild.
11042 * target.c (target_kill): Unconditionally delegate.
11043 * target.h (struct target_ops) <to_kill>: Use
11044 TARGET_DEFAULT_NORETURN.
11045
6c7e5e5c
TT
110462014-02-19 Tom Tromey <tromey@redhat.com>
11047
11048 * target-delegates.c: Rebuild.
11049 * target.c (target_masked_watch_num_registers): Unconditionally
11050 delegate.
11051 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11052 Use TARGET_DEFAULT_RETURN.
11053
8b1c364c
TT
110542014-02-19 Tom Tromey <tromey@redhat.com>
11055
11056 * target-delegates.c: Rebuild.
11057 * target.c (target_remove_mask_watchpoint): Unconditionally
11058 delegate.
11059 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11060 TARGET_DEFAULT_RETURN.
11061
cd4ae029
TT
110622014-02-19 Tom Tromey <tromey@redhat.com>
11063
11064 * target-delegates.c: Rebuild.
11065 * target.c (target_insert_mask_watchpoint): Unconditionally
11066 delegate.
11067 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11068 TARGET_DEFAULT_RETURN.
11069
a134316b
TT
110702014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target-delegates.c: Rebuild.
11073 * target.c (target_ranged_break_num_registers): Unconditionally
11074 delegate.
11075 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11076 Use TARGET_DEFAULT_RETURN.
11077
ad5989bd
TT
110782014-02-19 Tom Tromey <tromey@redhat.com>
11079
11080 * target-delegates.c: Rebuild.
11081 * target.c (target_fetch_registers): Unconditionally delegate.
11082 * target.h (struct target_ops) <to_fetch_registers>: Use
11083 TARGET_DEFAULT_NORETURN.
11084
46ee7e8d
TT
110852014-02-19 Tom Tromey <tromey@redhat.com>
11086
11087 * target-delegates.c: Rebuild.
11088 * target.c (update_current_target): Don't inherit or default
11089 to_stop.
11090 * target.h (struct target_ops) <to_stop>: Use
11091 TARGET_DEFAULT_IGNORE.
11092
843f59ed
TT
110932014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * target-delegates.c: Rebuild.
11096 * target.c (update_current_target): Don't inherit or default
11097 to_can_run_breakpoint_commands.
11098 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11099 Use TARGET_DEFAULT_RETURN.
11100
ccfde2a0
TT
111012014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * target-delegates.c: Rebuild.
11104 * target.c (update_current_target): Don't inherit or default
11105 to_supports_evaluation_of_breakpoint_conditions.
11106 * target.h (struct target_ops)
11107 <to_supports_evaluation_of_breakpoint_conditions>: Use
11108 TARGET_DEFAULT_RETURN.
11109
0de91722
TT
111102014-02-19 Tom Tromey <tromey@redhat.com>
11111
11112 * target-delegates.c: Rebuild.
11113 * target.c (update_current_target): Don't inherit or default
11114 to_augmented_libraries_svr4_read.
11115 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11116 Use TARGET_DEFAULT_RETURN.
11117
9a7d8b48
TT
111182014-02-19 Tom Tromey <tromey@redhat.com>
11119
11120 * target-delegates.c: Rebuild.
11121 * target.c (update_current_target): Don't inherit or default
11122 to_can_use_agent.
11123 * target.h (struct target_ops) <to_can_use_agent>: Use
11124 TARGET_DEFAULT_RETURN.
11125
d9db5b21
TT
111262014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target-delegates.c: Rebuild.
11129 * target.c (update_current_target): Don't inherit or default
11130 to_use_agent.
11131 * target.h (struct target_ops) <to_use_agent>: Use
11132 TARGET_DEFAULT_NORETURN.
11133
92155eeb
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_traceframe_info.
11139 (return_null): Remove.
11140 * target.h (struct target_ops) <to_traceframe_info>: Use
11141 TARGET_DEFAULT_RETURN.
11142
d6522a22
TT
111432014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * target-delegates.c: Rebuild.
11146 * target.c (update_current_target): Don't inherit or default
11147 to_static_tracepoint_markers_by_strid.
11148 * target.h (struct target_ops)
11149 <to_static_tracepoint_markers_by_strid>: Use
11150 TARGET_DEFAULT_NORETURN.
11151
4c3e4425
TT
111522014-02-19 Tom Tromey <tromey@redhat.com>
11153
11154 * target-delegates.c: Rebuild.
11155 * target.c (update_current_target): Don't inherit or default
11156 to_static_tracepoint_marker_at.
11157 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11158 Use TARGET_DEFAULT_RETURN.
11159
dcd6917f
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target-delegates.c: Rebuild.
11163 * target.c (update_current_target): Don't inherit or default
11164 to_set_permissions.
11165 * target.h (struct target_ops) <to_set_permissions>: Use
11166 TARGET_DEFAULT_IGNORE.
11167
22bcceee
TT
111682014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * target-delegates.c: Rebuild.
11171 * target.c (update_current_target): Don't inherit or default
11172 to_get_tib_address.
11173 * target.h (struct target_ops) <to_get_tib_address>: Use
11174 TARGET_DEFAULT_NORETURN.
11175
8586ccaa
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_set_trace_notes.
11181 * target.h (struct target_ops) <to_set_trace_notes>: Use
11182 TARGET_DEFAULT_RETURN.
11183
91df8d1d
TT
111842014-02-19 Tom Tromey <tromey@redhat.com>
11185
11186 * target-delegates.c: Rebuild.
11187 * target.c (update_current_target): Don't initialize
11188 to_set_trace_buffer_size.
11189 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11190 TARGET_DEFAULT_IGNORE.
11191
8d526939
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_set_circular_trace_buffer.
11197 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11198 TARGET_DEFAULT_IGNORE.
11199
0bcfeddf
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_disconnected_tracing.
11205 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11206 TARGET_DEFAULT_IGNORE.
11207
9249843f
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target-delegates.c: Rebuild.
11211 * target.c (update_current_target): Don't inherit or default
11212 to_get_min_fast_tracepoint_insn_len.
11213 (return_minus_one): Remove.
11214 * target.h (struct target_ops)
11215 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11216
ace92e7d
TT
112172014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target-delegates.c: Rebuild.
11220 * target.c (update_current_target): Don't inherit or default
11221 to_get_raw_trace_data.
11222 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11223 TARGET_DEFAULT_NORETURN.
11224
08120467
TT
112252014-02-19 Tom Tromey <tromey@redhat.com>
11226
11227 * target-delegates.c: Rebuild.
11228 * target.c (update_current_target): Don't inherit or default
11229 to_upload_trace_state_variables.
11230 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11231 Use TARGET_DEFAULT_RETURN.
11232
1e949b00
TT
112332014-02-19 Tom Tromey <tromey@redhat.com>
11234
11235 * target-delegates.c: Rebuild.
11236 * target.c (update_current_target): Don't inherit or default
11237 to_upload_tracepoints.
11238 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11239 TARGET_DEFAULT_RETURN.
11240
a2e6c147
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_save_trace_data.
11246 * target.h (struct target_ops) <to_save_trace_data>: Use
11247 TARGET_DEFAULT_NORETURN.
11248
959bcd0b
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_get_trace_state_variable_value.
11254 * target.h (struct target_ops)
11255 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11256
afc94e66
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_trace_find.
11262 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11263
e51c07ea
TT
112642014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target-delegates.c: Rebuild.
11267 * target.c (update_current_target): Don't inherit or default
11268 to_trace_stop.
11269 * target.h (struct target_ops) <to_trace_stop>: Use
11270 TARGET_DEFAULT_NORETURN.
11271
6fea14cd
TT
112722014-02-19 Tom Tromey <tromey@redhat.com>
11273
11274 * target-delegates.c: Rebuild.
11275 * target.c (update_current_target): Don't inherit or default
11276 to_get_tracepoint_status.
11277 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11278 TARGET_DEFAULT_NORETURN.
11279
4072d4ff
TT
112802014-02-19 Tom Tromey <tromey@redhat.com>
11281
11282 * target-delegates.c: Rebuild.
11283 * target.c (update_current_target): Don't inherit or default
11284 to_get_trace_status.
11285 * target.h (struct target_ops) <to_get_trace_status>: Use
11286 TARGET_DEFAULT_RETURN.
11287
25da2e80
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_start.
11293 * target.h (struct target_ops) <to_trace_start>: Use
11294 TARGET_DEFAULT_NORETURN.
11295
86dd181d
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_trace_set_readonly_regions.
11301 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11302 Use TARGET_DEFAULT_NORETURN.
11303
05c41993
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_disable_tracepoint.
11309 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11310 TARGET_DEFAULT_NORETURN.
11311
151f70f1
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_enable_tracepoint.
11317 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11318 TARGET_DEFAULT_NORETURN.
11319
94eb98b9
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_download_trace_state_variable.
11325 * target.h (struct target_ops) <to_download_trace_state_variable>:
11326 Use TARGET_DEFAULT_NORETURN.
11327
719acc4a
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_can_download_tracepoint.
11333 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11334 TARGET_DEFAULT_RETURN.
11335
9a980a22
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_download_tracepoint.
11341 * target.h (struct target_ops) <to_download_tracepoint>: Use
11342 TARGET_DEFAULT_NORETURN.
11343
5536135b
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_trace_init.
11349 * target.h (struct target_ops) <to_trace_init>: Use
11350 TARGET_DEFAULT_RETURN.
11351
9409d39e
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_supports_string_tracing.
11357 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11358 TARGET_DEFAULT_RETURN.
11359
aab1b22d
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_supports_enable_disable_tracepoint.
11365 * target.h (struct target_ops)
11366 <to_supports_enable_disable_tracepoint>: Use
11367 TARGET_DEFAULT_RETURN.
11368
a7304748
TT
113692014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * target-delegates.c: Rebuild.
11372 * target.c (update_current_target): Don't inherit or default
11373 to_supports_multi_process.
11374 * target.h (struct target_ops) <to_supports_multi_process>: Use
11375 TARGET_DEFAULT_RETURN.
11376
4229b31d
TT
113772014-02-19 Tom Tromey <tromey@redhat.com>
11378
11379 * target-delegates.c: Rebuild.
11380 * target.c (update_current_target): Don't inherit or default
11381 to_get_ada_task_ptid.
11382 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11383 TARGET_DEFAULT_FUNC.
11384
43eba180
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target-delegates.c: Rebuild.
11388 * target.c (update_current_target): Don't inherit or default
11389 to_thread_architecture.
11390 * target.h (struct target_ops) <to_thread_architecture>: Use
11391 TARGET_DEFAULT_FUNC.
11392
fe31bf5b
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_execution_direction.
11398 * target.h (struct target_ops) <to_execution_direction>: Use
11399 TARGET_DEFAULT_FUNC.
11400
53e1cfc7
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_can_execute_reverse.
11406 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11407 TARGET_DEFAULT_RETURN.
11408 (target_can_execute_reverse): Unconditionally delegate.
11409
9bb9d61d
TT
114102014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target-delegates.c: Rebuild.
11413 * target.c (update_current_target): Don't inherit or default
11414 to_goto_bookmark.
11415 (dummy_goto_bookmark): Remove.
11416 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11417 * target.h (struct target_ops) <to_goto_bookmark>: Use
11418 TARGET_DEFAULT_NORETURN.
11419
3dbafbbb
TT
114202014-02-19 Tom Tromey <tromey@redhat.com>
11421
11422 * target-delegates.c: Rebuild.
11423 * target.c (update_current_target): Don't inherit or default
11424 to_get_bookmark.
11425 (dummy_get_bookmark): Remove.
11426 (init_dummy_target): Don't inherit or default to_get_bookmark.
11427 * target.h (struct target_ops) <to_get_bookmark>: Use
11428 TARGET_DEFAULT_NORETURN
11429
16f796b1
TT
114302014-02-19 Tom Tromey <tromey@redhat.com>
11431
11432 * target-delegates.c: Rebuild.
11433 * target.c (update_current_target): Don't inherit or default
11434 to_make_corefile_notes.
11435 (init_dummy_target): Don't initialize to_make_corefile_notes.
11436 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11437 TARGET_DEFAULT_FUNC.
11438
0b5a2719
TT
114392014-02-19 Tom Tromey <tromey@redhat.com>
11440
11441 * target-delegates.c: Rebuild.
11442 * target.c (update_current_target): Don't inherit or default
11443 to_find_memory_regions.
11444 (init_dummy_target): Don't initialize to_find_memory_regions.
11445 * target.h (struct target_ops) <to_find_memory_regions>: Use
11446 TARGET_DEFAULT_FUNC.
11447
d9cb0195
TT
114482014-02-19 Tom Tromey <tromey@redhat.com>
11449
11450 * target-delegates.c: Rebuild.
11451 * target.c (update_current_target): Don't inherit or default
11452 to_log_command.
11453 * target.h (struct target_ops) <to_log_command>: Use
11454 TARGET_DEFAULT_IGNORE.
11455 (target_log_command): Unconditionally delegate.
11456
830ca330
TT
114572014-02-19 Tom Tromey <tromey@redhat.com>
11458
11459 * target-delegates.c: Rebuild.
11460 * target.c (update_current_target): Don't inherit or default
11461 to_pid_to_exec_file.
11462 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11463 TARGET_DEFAULT_RETURN.
11464
825828fc
TT
114652014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 * target-delegates.c: Rebuild.
11468 * target.c (update_current_target): Don't inherit or default
11469 to_thread_name.
11470 (target_thread_name): Unconditionally delegate.
11471 * target.h (struct target_ops) <to_thread_name>: Use
11472 TARGET_DEFAULT_RETURN.
11473
4a7e6dda
TT
114742014-02-19 Tom Tromey <tromey@redhat.com>
11475
11476 * target-delegates.c: Rebuild.
11477 * target.c (update_current_target): Don't inherit or default
11478 to_extra_thread_info.
11479 * target.h (struct target_ops) <to_extra_thread_info>: Use
11480 TARGET_DEFAULT_RETURN.
11481
0db88c1d
TT
114822014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * target-delegates.c: Rebuild.
11485 * target.c (update_current_target): Don't inherit or default
11486 to_has_exited.
11487 * target.h (struct target_ops) <to_has_exited>: Use
11488 TARGET_DEFAULT_RETURN..
11489
6a9fa051
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target-delegates.c: Rebuild.
11493 * target.c (update_current_target): Don't inherit or default
11494 to_set_syscall_catchpoint.
11495 (return_one): Remove.
11496 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11497 TARGET_DEFAULT_RETURN.
11498
62f64d7a
TT
114992014-02-19 Tom Tromey <tromey@redhat.com>
11500
11501 * target-delegates.c: Rebuild.
11502 * target.c (update_current_target): Don't inherit or default
11503 to_insert_exec_catchpoint.
11504 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11505 TARGET_DEFAULT_RETURN.
11506
cda0f38c
TT
115072014-01-08 Tom Tromey <tromey@redhat.com>
11508
11509 * target-delegates.c: Rebuild.
11510 * target.c (update_current_target): Don't inherit or default
11511 to_insert_exec_catchpoint.
11512 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11513 TARGET_DEFAULT_RETURN.
11514
95c3375e
TT
115152014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target-delegates.c: Rebuild.
11518 * target.c (update_current_target): Don't inherit or default
11519 to_remove_vfork_catchpoint.
11520 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11521 TARGET_DEFAULT_RETURN.
11522
7e18a8dc
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_vfork_catchpoint.
11528 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11529 TARGET_DEFAULT_RETURN.
11530
e1a21fb7
TT
115312014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * target-delegates.c: Rebuild.
11534 * target.c (update_current_target): Don't inherit or default
11535 to_remove_fork_catchpoint.
11536 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11537 TARGET_DEFAULT_RETURN.
11538
5958ebeb
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_insert_fork_catchpoint.
11544 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11545 TARGET_DEFAULT_RETURN.
11546
340ba4bf
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_post_startup_inferior.
11552 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11553 TARGET_DEFAULT_IGNORE.
11554
7634da87
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_load.
11560 * target.h (struct target_ops) <to_load>: Use
11561 TARGET_DEFAULT_NORETURN.
11562
e19e919f
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_terminal_info.
11568 * target.h (struct target_ops) <to_terminal_info>: Use
11569 TARGET_DEFAULT_FUNC.
11570
c6ea8f79
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_terminal_save_ours.
11576 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11577 TARGET_DEFAULT_IGNORE.
11578
e4a733f1
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_terminal_ours.
11584 * target.h (struct target_ops) <to_terminal_ours>: Use
11585 TARGET_DEFAULT_IGNORE.
11586
74fcbef9
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_ours_for_output.
11592 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11593 TARGET_DEFAULT_IGNORE.
11594
ddeaacc9
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_inferior.
11600 * target.h (struct target_ops) <to_terminal_inferior>: Use
11601 TARGET_DEFAULT_IGNORE.
11602
0343661d
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_init.
11608 * target.h (struct target_ops) <to_terminal_init>: Use
11609 TARGET_DEFAULT_IGNORE.
11610
77cdffe9
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_can_accel_watchpoint_condition.
11616 * target.h (struct target_ops)
11617 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11618
d03655e4
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_region_ok_for_hw_watchpoint.
11624 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11625 Use TARGET_DEFAULT_FUNC.
11626
65f160a9
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_watchpoint_addr_within_range.
11632 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11633 Use TARGET_DEFAULT_FUNC.
11634
61dd109f
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_remove_watchpoint.
11640 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11641 TARGET_DEFAULT_NORETURN.
11642
016facd4
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_insert_watchpoint.
11648 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11649 TARGET_DEFAULT_RETURN.
11650
418dabac
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_remove_hw_breakpoint.
11656 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11657 TARGET_DEFAULT_RETURN.
11658
61b371f9
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_insert_hw_breakpoint.
11664 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11665 TARGET_DEFAULT_RETURN.
11666
52b51d06
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_can_use_hw_breakpoint.
11672 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11673 TARGET_DEFAULT_RETURN.
11674
f86e59b2
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_files_info.
11680 * target.h (struct target_ops) <to_files_info>: Use
11681 TARGET_DEFAULT_IGNORE.
11682
6c628163
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_store.
11688 * target.h (struct target_ops) <to_store>: Use
11689 TARGET_DEFAULT_NORETURN.
11690
bebd3233
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_post_attach.
11696 * target.h (struct target_ops) <to_post_attach>: Use
11697 TARGET_DEFAULT_IGNORE.
11698
a53f3625
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_rcmd.
11704 (default_rcmd): New function.
11705 (do_monitor_command): Unconditionally delegate.
11706 * target.h (struct target_ops) <to_rmcd>: Use
11707 TARGET_DEFAULT_FUNC.
11708
e9a29200
TT
117092014-02-19 Tom Tromey <tromey@redhat.com>
11710
11711 * target-delegates.c: Rebuild.
11712 * target.c (init_dummy_target): Don't initialize to_attach.
11713 (target_attach): Unconditionally delegate.
11714 * target.h (struct target_ops) <to_attach>: Use
11715 TARGET_DEFAULT_FUNC.
11716
09da0d0a
TT
117172014-02-19 Tom Tromey <tromey@redhat.com>
11718
11719 * target-delegates.c: Rebuild.
11720 * target.c (target_detach): Unconditionally delegate.
11721 (init_dummy_target): Don't initialize to_detach.
11722 * target.h (struct target_ops) <to_detach>: Use
11723 TARGET_DEFAULT_IGNORE.
11724
5436ff03
TT
117252014-02-19 Tom Tromey <tromey@redhat.com>
11726
11727 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11728 Add argument.
11729 (target_augmented_libraries_svr4_read): Add argument.
11730 * target.c (update_current_target): Update.
11731 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11732 argument.
11733
f0d960ea
TT
117342014-02-19 Tom Tromey <tromey@redhat.com>
11735
11736 * target.h (struct target_ops) <to_call_history_range>: Add
11737 argument.
11738 * target.c (target_call_history_range): Add argument.
11739 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11740 argument.
11741 (record_btrace_call_history_from): Update.
11742
ec0aea04
TT
117432014-02-19 Tom Tromey <tromey@redhat.com>
11744
11745 * target.h (struct target_ops) <to_call_history_from>: Add
11746 argument.
11747 * target.c (target_call_history_from): Add argument.
11748 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11749 argument.
11750
5df2fcba
TT
117512014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * target.h (struct target_ops) <to_call_history>: Add argument.
11754 * target.c (target_call_history): Add argument.
11755 * record-btrace.c (record_btrace_call_history): Add 'self'
11756 argument.
11757
4e99c6b7
TT
117582014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target.h (struct target_ops) <to_insn_history_range>: Add
11761 argument.
11762 * target.c (target_insn_history_range): Add argument.
11763 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11764 argument.
11765 (record_btrace_insn_history_from): Update.
11766
9abc3ff3
TT
117672014-02-19 Tom Tromey <tromey@redhat.com>
11768
11769 * target.h (struct target_ops) <to_insn_history_from>: Add
11770 argument.
11771 * target.c (target_insn_history_from): Add argument.
11772 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11773 argument.
11774
7a6c5609
TT
117752014-02-19 Tom Tromey <tromey@redhat.com>
11776
11777 * target.h (struct target_ops) <to_insn_history>: Add argument.
11778 * target.c (target_insn_history): Add argument.
11779 * record-btrace.c (record_btrace_insn_history): Add 'self'
11780 argument.
11781
606183ac
TT
117822014-02-19 Tom Tromey <tromey@redhat.com>
11783
11784 * target.h (struct target_ops) <to_goto_record>: Add argument.
11785 * target.c (target_goto_record): Add argument.
11786 * record-full.c (record_full_goto): Add 'self' argument.
11787 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11788
307a1b91
TT
117892014-02-19 Tom Tromey <tromey@redhat.com>
11790
11791 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11792 * target.c (target_goto_record_end): Add argument.
11793 * record-full.c (record_full_goto_end): Add 'self' argument.
11794 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11795
08475817
TT
117962014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target.h (struct target_ops) <to_goto_record_begin>: Add
11799 argument.
11800 * target.c (target_goto_record_begin): Add argument.
11801 * record-full.c (record_full_goto_begin): Add 'self' argument.
11802 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11803 argument.
11804
1c63c994
TT
118052014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * target.h (struct target_ops) <to_record_is_replaying>: Add
11808 argument.
11809 * target.c (target_record_is_replaying): Add argument.
11810 * record-full.c (record_full_is_replaying): Add 'self' argument.
11811 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11812 argument.
11813 (record_btrace_xfer_partial, record_btrace_store_registers)
11814 (record_btrace_prepare_to_store, record_btrace_resume)
11815 (record_btrace_wait, record_btrace_decr_pc_after_break)
11816 (record_btrace_find_new_threads, record_btrace_thread_alive):
11817 Update.
11818
d1b55219
TT
118192014-02-19 Tom Tromey <tromey@redhat.com>
11820
11821 * target.h (struct target_ops) <to_delete_record>: Add argument.
11822 * target.c (target_delete_record): Add argument.
11823 * record-full.c (record_full_delete): Add 'self' argument.
11824
1390f529
TT
118252014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target.h (struct target_ops) <to_save_record>: Add argument.
11828 * target.c (target_save_record): Add argument.
11829 * record-full.c (record_full_save): Add 'self' argument.
11830 (record_full_save): Add 'self' argument.
11831
630d6a4a
TT
118322014-02-19 Tom Tromey <tromey@redhat.com>
11833
11834 * target.h (struct target_ops) <to_info_record>: Add argument.
11835 * target.c (target_info_record): Add argument.
11836 * record.c (info_record_command): Add argument.
11837 * record-full.c (record_full_info): Add 'self' argument.
11838 * record-btrace.c (record_btrace_info): Add 'self' argument.
11839
c6cd7c02
TT
118402014-02-19 Tom Tromey <tromey@redhat.com>
11841
11842 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11843 * target.c (target_stop_recording): Add argument.
11844 * record.c (record_stop): Add argument.
11845 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11846 argument.
11847
39c49f83
TT
118482014-02-19 Tom Tromey <tromey@redhat.com>
11849
11850 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11851 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11852 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11853 argument.
11854 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11855 (_initialize_amd64_linux_nat): Use it.
11856 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11857 (_initialize_i386_linux_nat): Use it.
11858
1777056d
TT
118592014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11862 * target.c (target_teardown_btrace): Add argument.
11863 * remote.c (remote_teardown_btrace): Add 'self' argument.
11864 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11865 argument.
11866 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11867 argument.
11868
25e95349
TT
118692014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11872 * target.c (target_disable_btrace): Add argument.
11873 * remote.c (remote_disable_btrace): Add 'self' argument.
11874 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11875 argument.
11876 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11877 argument.
11878
e3c49f88
TT
118792014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11882 * target.c (target_enable_btrace): Add argument.
11883 * remote.c (remote_enable_btrace): Add 'self' argument.
11884 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11885 argument.
11886 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11887 argument.
11888
fe38f897
TT
118892014-02-19 Tom Tromey <tromey@redhat.com>
11890
11891 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11892 (target_can_use_agent): Add argument.
11893 * target.c (update_current_target): Update.
11894 * remote.c (remote_can_use_agent): Add 'self' argument.
11895 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11896
2c152180
TT
118972014-02-19 Tom Tromey <tromey@redhat.com>
11898
11899 * target.h (struct target_ops) <to_use_agent>: Add argument.
11900 (target_use_agent): Add argument.
11901 * target.c (update_current_target): Update.
11902 * remote.c (remote_use_agent): Add 'self' argument.
11903 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11904
a893e81f
TT
119052014-02-19 Tom Tromey <tromey@redhat.com>
11906
11907 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11908 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11909 (target_traceframe_info): Add argument.
11910 * target.c (update_current_target): Update.
11911 * remote.c (remote_traceframe_info): Add 'self' argument.
11912 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11913
c686c57f
TT
119142014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target.h (target_static_tracepoint_markers_by_strid): Add
11917 argument.
11918 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11919 'self' argument.
11920 * target.c (update_current_target): Update.
11921 * remote.c (struct target_ops)
11922 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11923 * linux-nat.c (struct target_ops)
11924 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11925
61fc905d
TT
119262014-02-19 Tom Tromey <tromey@redhat.com>
11927
11928 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11929 Add argument.
11930 (target_static_tracepoint_marker_at): Add argument.
11931 * target.c (update_current_target): Update.
11932 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11933 argument.
11934
c378d69d
TT
119352014-02-19 Tom Tromey <tromey@redhat.com>
11936
11937 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11938 (target_set_permissions): Add argument.
11939 * target.c (update_current_target): Update.
11940 * remote.c (remote_set_permissions): Add 'self' argument.
11941 (remote_start_remote): Update.
11942
bd7ae0f5
TT
119432014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11946 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11947 (target_get_tib_address): Add argument.
11948 * target.c (update_current_target): Update.
11949 * remote.c (remote_get_tib_address): Add 'self' argument.
11950
d9e68a2c
TT
119512014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11954 (target_set_trace_notes): Add argument.
11955 * target.c (update_current_target): Update.
11956 * remote.c (remote_set_trace_notes): Add 'self' argument.
11957
4da384be
TT
119582014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11961 argument.
11962 (target_set_trace_buffer_size): Add argument.
11963 * target.c (update_current_target): Update.
11964 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11965
736d5b1f
TT
119662014-02-19 Tom Tromey <tromey@redhat.com>
11967
11968 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11969 argument.
11970 (target_set_circular_trace_buffer): Add argument.
11971 * target.c (update_current_target): Update.
11972 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11973 argument.
11974
37b25738
TT
119752014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11978 argument.
11979 (target_set_disconnected_tracing): Add argument.
11980 * target.c (update_current_target): Update.
11981 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11982
0e67620a
TT
119832014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target.h (struct target_ops)
11986 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11987 (target_get_min_fast_tracepoint_insn_len): Add argument.
11988 * target.c (update_current_target): Update.
11989 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11990 argument.
11991
88ee6f45
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11995 argument.
11996 (target_get_raw_trace_data): Add argument.
11997 * target.c (update_current_target): Update.
11998 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11999
181e3713
TT
120002014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12003 Add argument.
12004 (target_upload_trace_state_variables): Add argument.
12005 * target.c (update_current_target): Update.
12006 * remote.c (remote_upload_trace_state_variables): Add 'self'
12007 argument.
12008 (remote_start_remote): Update.
12009
ab6617cc
TT
120102014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12013 argument.
12014 (target_upload_tracepoints): Add argument.
12015 * target.c (update_current_target): Update.
12016 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12017 (remote_start_remote): Update.
12018
dc3decaf
TT
120192014-02-19 Tom Tromey <tromey@redhat.com>
12020
12021 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12022 (target_save_trace_data): Add argument.
12023 * target.c (update_current_target): Update.
12024 * remote.c (remote_save_trace_data): Add 'self' argument.
12025
4011015b
TT
120262014-02-19 Tom Tromey <tromey@redhat.com>
12027
12028 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12029 argument.
12030 * target.h (struct target_ops)
12031 <to_get_trace_state_variable_value>: Add argument.
12032 (target_get_trace_state_variable_value): Add argument.
12033 * target.c (update_current_target): Update.
12034 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12035 argument.
12036 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12037
bd4c6793
TT
120382014-02-19 Tom Tromey <tromey@redhat.com>
12039
12040 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12041 * target.h (struct target_ops) <to_trace_find>: Add argument.
12042 (target_trace_find): Add argument.
12043 * target.c (update_current_target): Update.
12044 * remote.c (remote_trace_find): Add 'self' argument.
12045 * ctf.c (ctf_trace_find): Add 'self' argument.
12046
74499f1b
TT
120472014-02-19 Tom Tromey <tromey@redhat.com>
12048
12049 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12050 (target_trace_stop): Add argument.
12051 * target.c (update_current_target): Update.
12052 * remote.c (remote_trace_stop): Add 'self' argument.
12053
db90e85c
TT
120542014-02-19 Tom Tromey <tromey@redhat.com>
12055
12056 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12057 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12058 argument.
12059 (target_get_tracepoint_status): Add argument.
12060 * target.c (update_current_target): Update.
12061 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12062
8bd200f1
TT
120632014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12066 * target.h (struct target_ops) <to_get_trace_status>: Add
12067 argument.
12068 (target_get_trace_status): Add argument.
12069 * target.c (update_current_target): Update.
12070 * remote.c (remote_get_trace_status): Add 'self' argument.
12071 (remote_start_remote, remote_can_download_tracepoint): Update.
12072 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12073
e2d1aae3
TT
120742014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target.h (struct target_ops) <to_trace_start>: Add argument.
12077 (target_trace_start): Add argument.
12078 * target.c (update_current_target): Update.
12079 * remote.c (remote_trace_start): Add 'self' argument.
12080
583f9a86
TT
120812014-02-19 Tom Tromey <tromey@redhat.com>
12082
12083 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12084 Add argument.
12085 (target_trace_set_readonly_regions): Add argument.
12086 * target.c (update_current_target): Update.
12087 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12088 argument.
12089
780b049c
TT
120902014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12093 argument.
12094 (target_disable_tracepoint): Add argument.
12095 * target.c (update_current_target): Update.
12096 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12097
46670d57
TT
120982014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12101 argument.
12102 (target_enable_tracepoint): Add argument.
12103 * target.c (update_current_target): Update.
12104 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12105
559d2b81
TT
121062014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target.h (struct target_ops) <to_download_trace_state_variable>:
12109 Add argument.
12110 (target_download_trace_state_variable): Add argument.
12111 * target.c (update_current_target): Update.
12112 * remote.c (remote_download_trace_state_variable): Add 'self'
12113 argument.
12114
a52a8357
TT
121152014-02-19 Tom Tromey <tromey@redhat.com>
12116
12117 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12118 argument.
12119 (target_can_download_tracepoint): Add argument.
12120 * target.c (update_current_target): Update.
12121 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12122
548f7808
TT
121232014-02-19 Tom Tromey <tromey@redhat.com>
12124
12125 * target.h (struct target_ops) <to_download_tracepoint>: Add
12126 argument.
12127 (target_download_tracepoint): Add argument.
12128 * target.c (update_current_target): Update.
12129 * remote.c (remote_download_tracepoint): Add 'self' argument.
12130
ecae04e1
TT
121312014-02-19 Tom Tromey <tromey@redhat.com>
12132
12133 * target.h (struct target_ops) <to_trace_init>: Add argument.
12134 (target_trace_init): Add argument.
12135 * target.c (update_current_target): Update.
12136 * remote.c (remote_trace_init): Add 'self' argument.
12137
fab5aa7c
TT
121382014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12141 * target.c (target_fileio_readlink): Add argument.
12142 * remote.c (remote_hostio_readlink): Add 'self' argument.
12143 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12144
dbbca37d
TT
121452014-02-19 Tom Tromey <tromey@redhat.com>
12146
12147 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12148 * target.c (target_fileio_unlink): Add argument.
12149 * remote.c (remote_hostio_unlink): Add 'self' argument.
12150 (remote_file_delete): Update.
12151 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12152
df39ea25
TT
121532014-02-19 Tom Tromey <tromey@redhat.com>
12154
12155 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12156 * target.c (target_fileio_close): Add argument.
12157 * remote.c (remote_hostio_close): Add 'self' argument.
12158 (remote_hostio_close_cleanup): Update.
12159 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12160 Update.
12161 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12162
a3be983c
TT
121632014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12166 * target.c (target_fileio_pread): Add argument.
12167 * remote.c (remote_hostio_pread): Add 'self' argument.
12168 (remote_bfd_iovec_pread, remote_file_get): Update.
12169 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12170
0d866f62
TT
121712014-02-19 Tom Tromey <tromey@redhat.com>
12172
12173 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12174 * target.c (target_fileio_pwrite): Add argument.
12175 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12176 (remote_file_put): Update.
12177 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12178
cd897586
TT
121792014-02-19 Tom Tromey <tromey@redhat.com>
12180
12181 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12182 * target.c (target_fileio_open): Add argument.
12183 * remote.c (remote_hostio_open): Add 'self' argument.
12184 (remote_bfd_iovec_open): Add 'self' argument.
12185 (remote_file_put): Add 'self' argument.
12186 (remote_file_get): Add 'self' argument.
12187 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12188
78eff0ec
TT
121892014-02-19 Tom Tromey <tromey@redhat.com>
12190
12191 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12192 Add argument.
12193 (target_can_run_breakpoint_commands): Add argument.
12194 * target.c (update_current_target): Update.
12195 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12196 argument.
12197 (remote_insert_breakpoint): Add 'self' argument.
12198 (remote_insert_hw_breakpoint): Add 'self' argument.
12199 (remote_can_run_breakpoint_commands): Add 'self' argument.
12200
efcc2da7
TT
122012014-02-19 Tom Tromey <tromey@redhat.com>
12202
12203 * target.h (struct target_ops)
12204 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12205 (target_supports_evaluation_of_breakpoint_conditions): Add
12206 argument.
12207 * target.c (update_current_target): Update.
12208 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12209 argument.
12210 (remote_insert_breakpoint): Add 'self' argument.
12211 (remote_insert_hw_breakpoint): Add 'self' argument.
12212 (remote_supports_cond_breakpoints): Add 'self' argument.
12213
6de37a3a
TT
122142014-02-19 Tom Tromey <tromey@redhat.com>
12215
12216 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12217 argument.
12218 (target_supports_string_tracing): Add argument.
12219 * target.c (update_current_target): Update.
12220 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12221
2bfc0540
TT
122222014-02-19 Tom Tromey <tromey@redhat.com>
12223
12224 * target.h (struct target_ops)
12225 <to_supports_disable_randomization>: Add argument.
12226 * target.c (find_default_supports_disable_randomization): Add
12227 argument.
12228 (target_supports_disable_randomization): Add argument.
12229 (find_default_supports_disable_randomization): Add 'self'
12230 argument.
12231 * remote.c (extended_remote_supports_disable_randomization): Add
12232 'self' argument.
12233 (remote_supports_disable_randomization): Add 'self' argument.
12234 (extended_remote_create_inferior): Update.
12235 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12236 'self' argument.
12237
7d178d6a
TT
122382014-02-19 Tom Tromey <tromey@redhat.com>
12239
12240 * target.h (struct target_ops)
12241 <to_supports_enable_disable_tracepoint>: Add argument.
12242 (target_supports_enable_disable_tracepoint): Add argument.
12243 * target.c (update_current_target): Update.
12244 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12245 argument.
12246
86ce2668
TT
122472014-02-19 Tom Tromey <tromey@redhat.com>
12248
12249 * target.h (struct target_ops) <to_supports_multi_process>: Add
12250 argument.
12251 (target_supports_multi_process): Add argument.
12252 * target.c (update_current_target): Update.
12253 * remote.c (remote_supports_multi_process): Add 'self' argument.
12254 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12255 argument.
12256 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12257 argument.
12258
4c612759
TT
122592014-02-19 Tom Tromey <tromey@redhat.com>
12260
12261 * target.h (struct target_ops) <to_execution_direction>: Add
12262 argument.
12263 (target_execution_direction): Add argument.
12264 * target.c (default_execution_direction): Add 'self' argument.
12265 * record-full.c (record_full_execution_direction): Add 'self'
12266 argument.
12267
19db3e69
TT
122682014-02-19 Tom Tromey <tromey@redhat.com>
12269
12270 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12271 argument.
12272 (target_can_execute_reverse): Add argument.
12273 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12274 * record-full.c (record_full_can_execute_reverse): Add 'self'
12275 argument.
12276 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12277 argument.
12278
1e6b91a4
TT
122792014-02-19 Tom Tromey <tromey@redhat.com>
12280
12281 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12282 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12283 argument.
12284 (target_get_ada_task_ptid): Add argument.
12285 * target.c (update_current_target): Update.
12286 (default_get_ada_task_ptid): Add 'self' argument.
12287 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12288 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12289 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12290 argument.
12291 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12292 argument.
12293 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12294 argument.
12295 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12296 argument.
12297 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12298 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12299 argument.
12300
3c80fb48
TT
123012014-02-19 Tom Tromey <tromey@redhat.com>
12302
12303 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12304 (target_goto_bookmark): Add argument.
12305 * target.c (dummy_goto_bookmark): Add 'self' argument.
12306 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12307
dd0e2830
TT
123082014-02-19 Tom Tromey <tromey@redhat.com>
12309
12310 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12311 (target_get_bookmark): Add argument.
12312 * target.c (dummy_get_bookmark): Add 'self' argument.
12313 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12314
fc6691b2
TT
123152014-02-19 Tom Tromey <tromey@redhat.com>
12316
12317 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12318 argument.
12319 (target_make_corefile_notes): Add argument.
12320 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12321 * procfs.c (procfs_make_note_section): Add 'self' argument.
12322 (procfs_make_note_section): Add 'self' argument.
12323 (procfs_make_note_section): Add 'self' argument.
12324 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12325 argument.
12326 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12327 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12328 * exec.c (exec_make_note_section): Add 'self' argument.
12329 (exec_make_note_section): Add 'self' argument.
12330
2e73927c
TT
123312014-02-19 Tom Tromey <tromey@redhat.com>
12332
12333 * target.h (struct target_ops) <to_find_memory_regions>: Add
12334 argument.
12335 (target_find_memory_regions): Add argument.
12336 * target.c (dummy_find_memory_regions): Add 'self' argument.
12337 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12338 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12339 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12340 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12341 * exec. (exec_do_find_memory_regions): New global.
12342 (exec_set_find_memory_regions): Rewrite.
12343 (exec_find_memory_regions): New function.
12344 (init_exec_ops): Use exec_find_memory_regions.
12345
2a9a2795
TT
123462014-02-19 Tom Tromey <tromey@redhat.com>
12347
12348 * target.h (struct target_ops) <to_supports_non_stop>: Add
12349 argument.
12350 * target.c (find_default_supports_non_stop): Add argument.
12351 (target_supports_non_stop): Add argument.
12352 (find_default_supports_non_stop): Add 'self' argument.
12353 * remote.c (remote_supports_non_stop): Add 'self' argument.
12354 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12355
4ab76ea3
TT
123562014-02-19 Tom Tromey <tromey@redhat.com>
12357
12358 * target.h (struct target_ops) <to_log_command>: Add argument.
12359 (target_log_command): Add argument.
12360 * serial.h (serial_log_command): Add 'self' argument.
12361 * serial.c (serial_log_command): Add 'self' argument.
12362
8dd27370
TT
123632014-02-19 Tom Tromey <tromey@redhat.com>
12364
12365 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12366 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12367 argument.
12368 (target_pid_to_exec_file): Add argument.
12369 * target.c (debug_to_pid_to_exec_file): Add argument.
12370 (update_current_target): Update.
12371 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12372 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12373 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12374 (linux_handle_extended_wait): Update.
12375 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12376 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12377 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12378 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12379
1aac633b
TT
123802014-02-19 Tom Tromey <tromey@redhat.com>
12381
12382 * target.h (struct target_ops) <to_rcmd>: Add argument.
12383 (target_rcmd): Add argument.
12384 * target.c (debug_to_rcmd): Add argument.
12385 (update_current_target, do_monitor_command): Update.
12386 * remote.c (remote_rcmd): Add 'self' argument.
12387 * monitor.c (monitor_rcmd): Add 'self' argument.
12388
1eab8a48
TT
123892014-02-19 Tom Tromey <tromey@redhat.com>
12390
12391 * windows-nat.c (windows_stop): Add 'self' argument.
12392 * target.h (struct target_ops) <to_stop>: Add argument.
12393 * target.c (target_stop): Add argument.
12394 (debug_to_stop): Add argument.
12395 (update_current_target): Update.
12396 * remote.c (remote_stop): Add 'self' argument.
12397 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12398 (gdbsim_cntrl_c): Update.
12399 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12400 * procfs.c (procfs_stop): Add 'self' argument.
12401 * nto-procfs.c (procfs_stop): Add 'self' argument.
12402 * monitor.c (monitor_stop): Add 'self' argument.
12403 (monitor_open): Update.
12404 * linux-nat.c (linux_nat_stop): Add argument.
12405 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12406 * gnu-nat.c (gnu_stop): Add 'self' argument.
12407 * darwin-nat.c (darwin_stop): Add 'self' argument.
12408
503a628d
TT
124092014-02-19 Tom Tromey <tromey@redhat.com>
12410
12411 * target.h (struct target_ops) <to_thread_name>: Add argument.
12412 * target.c (target_thread_name): Add argument.
12413 (update_current_target): Update.
12414 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12415
c15906d8
TT
124162014-02-19 Tom Tromey <tromey@redhat.com>
12417
12418 * target.h (struct target_ops) <to_extra_thread_info>: Add
12419 argument.
12420 (target_extra_thread_info): Add argument.
12421 * target.c (update_current_target): Update.
12422 * remote.c (remote_threads_extra_info): Add 'self' argument.
12423 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12424 argument.
12425 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12426 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12427 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12428 argument.
12429 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12430 argument.
12431 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12432 argument.
12433 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12434 argument.
12435
daf5e9b6
TT
124362014-02-19 Tom Tromey <tromey@redhat.com>
12437
12438 * target.h (struct target_ops) <to_program_signals>: Add argument.
12439 * target.c (target_program_signals): Add argument.
12440 * remote.c (remote_program_signals): Add 'self' argument.
12441
94bedb42
TT
124422014-02-19 Tom Tromey <tromey@redhat.com>
12443
12444 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12445 * target.c (target_pass_signals): Add argument.
12446 * remote.c (remote_pass_signals): Add 'self' argument.
12447 (remote_start_remote): Update.
12448 * procfs.c (procfs_pass_signals): Add 'self' argument.
12449 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12450 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12451 (linux_nat_create_inferior, linux_nat_attach): Update.
12452
da82bd6b
TT
124532014-02-19 Tom Tromey <tromey@redhat.com>
12454
12455 * windows-nat.c (windows_can_run): Add 'self' argument.
12456 * target.h (struct target_ops) <to_can_run>: Add argument.
12457 (target_can_run): Add argument.
12458 * target.c (debug_to_can_run): Add argument.
12459 (update_current_target): Update.
12460 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12461 * inf-child.c (inf_child_can_run): Add 'self' argument.
12462 * go32-nat.c (go32_can_run): Add 'self' argument.
12463
d796e1d6
TT
124642014-02-19 Tom Tromey <tromey@redhat.com>
12465
12466 * target.h (struct target_ops) <to_has_exited>: Add argument.
12467 (target_has_exited): Add argument.
12468 * target.c (debug_to_has_exited): Add argument.
12469 (update_current_target): Update.
12470
ff214e67
TT
124712014-02-19 Tom Tromey <tromey@redhat.com>
12472
12473 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12474 argument.
12475 (target_set_syscall_catchpoint): Add argument.
12476 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12477 argument.
12478 * target.c (update_current_target): Update.
12479
758e29d2
TT
124802014-02-19 Tom Tromey <tromey@redhat.com>
12481
12482 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12483 argument.
12484 (target_remove_exec_catchpoint): Add argument.
12485 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12486 (update_current_target): Update.
12487 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12488 argument.
12489
ba025e51
TT
124902014-02-19 Tom Tromey <tromey@redhat.com>
12491
12492 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12493 argument.
12494 (target_insert_exec_catchpoint): Add argument.
12495 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12496 (update_current_target): Update.
12497 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12498 argument.
12499
e98cf0cd
TT
125002014-02-19 Tom Tromey <tromey@redhat.com>
12501
12502 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12503 argument.
12504 (target_remove_vfork_catchpoint): Add argument.
12505 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12506 (update_current_target): Update.
12507 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12508 argument.
12509
3ecc7da0
TT
125102014-02-19 Tom Tromey <tromey@redhat.com>
12511
12512 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12513 argument.
12514 (target_insert_vfork_catchpoint): Add argument.
12515 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12516 (update_current_target): Update.
12517 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12518 argument.
12519
973fc227
TT
125202014-02-19 Tom Tromey <tromey@redhat.com>
12521
12522 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12523 argument.
12524 (target_remove_fork_catchpoint): Add argument.
12525 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12526 (update_current_target): Update.
12527 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12528 argument.
12529
a863b201
TT
125302014-02-19 Tom Tromey <tromey@redhat.com>
12531
12532 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12533 argument.
12534 (target_insert_fork_catchpoint): Add argument.
12535 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12536 (update_current_target): Update.
12537 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12538 argument.
12539
2e97a79e
TT
125402014-02-19 Tom Tromey <tromey@redhat.com>
12541
12542 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12543 argument.
12544 (target_post_startup_inferior): Add argument.
12545 * target.c (debug_to_post_startup_inferior): Add argument.
12546 (update_current_target): Update.
12547 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12548 argument.
12549 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12550 argument.
12551 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12552 argument.
12553 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12554 argument.
12555 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12556 'self' argument.
12557 (super_post_startup_inferior): Likewise.
12558 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12559 'self' argument.
12560 (super_post_startup_inferior): Likewise.
12561 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12562 Add 'self' argument.
12563 (super_post_startup_inferior): Likewise.
12564
71a9f134
TT
125652014-02-19 Tom Tromey <tromey@redhat.com>
12566
12567 * target.h (struct target_ops) <to_load>: Add argument.
12568 * target.c (target_load): Add argument.
12569 (debug_to_load): Add argument.
12570 (update_current_target): Update.
12571 * remote.c (remote_load): Add 'self' argument.
12572 * remote-sim.c (gdbsim_load): Add 'self' argument.
12573 * remote-mips.c (mips_load): Add 'self' argument.
12574 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12575 * monitor.c (monitor_load): Add 'self' argument.
12576 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12577
0a4f40a2
TT
125782014-02-19 Tom Tromey <tromey@redhat.com>
12579
12580 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12581 (target_terminal_info): Add argument.
12582 * target.c (debug_to_terminal_info): Add argument.
12583 (default_terminal_info): Likewise.
12584 * inflow.c (child_terminal_info): Add 'self' argument.
12585 * inferior.h (child_terminal_info): Add 'self' argument.
12586 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12587
ae3bd431
TT
125882014-02-19 Tom Tromey <tromey@redhat.com>
12589
12590 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12591 argument.
12592 (target_terminal_save_ours): Add argument.
12593 * target.c (debug_to_terminal_save_ours): Add argument.
12594 (update_current_target): Update.
12595 * inflow.c (terminal_save_ours): Add 'self' argument.
12596 * inferior.h (terminal_save_ours): Add 'self' argument.
12597
e3594fd1
TT
125982014-02-19 Tom Tromey <tromey@redhat.com>
12599
12600 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12601 (target_terminal_ours): Add argument.
12602 * target.c (debug_to_terminal_ours): Add argument.
12603 (update_current_target): Update.
12604 * remote.c (remote_terminal_ours): Add 'self' argument.
12605 (remote_close): Update.
12606 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12607 * inflow.c (terminal_ours): Add 'self' argument.
12608 * inferior.h (terminal_ours): Add 'self' argument.
12609 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12610
2e1e1a19
TT
126112014-02-19 Pedro Alves <palves@redhat.com>
12612 Tom Tromey <tromey@redhat.com>
12613
12614 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12615 argument.
12616 (target_terminal_ours_for_output): Add argument.
12617 * target.c (debug_to_terminal_ours_for_output): Add argument.
12618 (update_current_target): Update.
12619 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12620 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12621 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12622
d2f640d4
TT
126232014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * target.h (struct target_ops) <to_terminal_inferior>: Add
12626 argument.
12627 * target.c (target_terminal_inferior): Add argument.
12628 (update_current_target): Update.
12629 * remote.c (remote_terminal_inferior): Add 'self' argument.
12630 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12631 * inflow.c (terminal_inferior): Add 'self' argument.
12632 * inferior.h (terminal_inferior): Add 'self' argument.
12633 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12634 (go32_terminal_inferior): Add 'self' argument.
12635
c42bf286
TT
126362014-02-19 Tom Tromey <tromey@redhat.com>
12637
12638 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12639 (target_terminal_init): Add argument.
12640 * target.c (debug_to_terminal_init): Add argument.
12641 (update_current_target): Update.
12642 * inflow.c (terminal_init_inferior): Add 'self' argument.
12643 * inferior.h (terminal_init_inferior): Add 'self' argument.
12644 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12645 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12646
c3a5ff89
TT
126472014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target.h (struct target_ops)
12650 <to_can_accel_watchpoint_condition>: Add argument.
12651 (target_can_accel_watchpoint_condition): Add argument.
12652 * target.c (debug_to_can_accel_watchpoint_condition): Add
12653 argument.
12654 (update_current_target): Update.
12655 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12656 'self' argument.
12657
31568a15
TT
126582014-02-19 Tom Tromey <tromey@redhat.com>
12659
12660 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12661 Add argument.
12662 (target_region_ok_for_hw_watchpoint): Add argument.
12663 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12664 (default_region_ok_for_hw_watchpoint): Add argument.
12665 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12666 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12667 argument.
12668 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12669 argument.
12670 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12671 argument.
12672 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12673 'self' argument.
12674 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12675 'self' argument.
12676 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12677 'self' argument.
12678 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12679 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12680 'self' argument.
12681 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12682 Add 'self' argument.
12683
7bb99c53
TT
126842014-02-19 Tom Tromey <tromey@redhat.com>
12685
12686 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12687 argument.
12688 (target_insert_watchpoint): Add argument.
12689 * target.c (debug_to_insert_watchpoint): Add argument.
12690 (update_current_target): Update.
12691 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12692 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12693 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12694 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12695 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12696 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12697 argument.
12698 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12699 (procfs_insert_hw_watchpoint): Add 'self' argument.
12700 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12701 argument.
12702 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12703 argument.
12704 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12705 argument.
12706 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12707 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12708 argument.
12709 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12710 'self' argument.
12711
11b5219a
TT
127122014-02-19 Tom Tromey <tromey@redhat.com>
12713
12714 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12715 argument.
12716 (target_remove_watchpoint): Add argument.
12717 * target.c (debug_to_remove_watchpoint): Add argument.
12718 (update_current_target): Update.
12719 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12720 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12721 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12722 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12723 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12724 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12725 argument.
12726 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12727 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12728 argument.
12729 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12730 argument.
12731 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12732 argument.
12733 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12734 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12735 argument.
12736 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12737 'self' argument.
12738
a64dc96c
TT
127392014-02-19 Tom Tromey <tromey@redhat.com>
12740
12741 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12742 argument.
12743 (target_remove_hw_breakpoint): Add argument.
12744 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12745 (update_current_target): Update.
12746 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12747 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12748 argument.
12749 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12750 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12751 argument.
12752 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12753 'self' argument.
12754
23a26771
TT
127552014-02-19 Tom Tromey <tromey@redhat.com>
12756
12757 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12758 argument.
12759 (target_insert_hw_breakpoint): Add argument.
12760 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12761 (update_current_target): Update.
12762 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12763 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12764 argument.
12765 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12766 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12767 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12768 argument.
12769 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12770 'self' argument.
12771
5461485a
TT
127722014-02-19 Tom Tromey <tromey@redhat.com>
12773
12774 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12775 argument.
12776 (target_can_use_hardware_watchpoint): Add argument.
12777 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12778 (update_current_target): Update.
12779 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12780 argument.
12781 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12782 argument.
12783 * remote.c (remote_check_watch_resources): Add 'self' argument.
12784 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12785 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12786 argument.
12787 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12788 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12789 argument.
12790 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12791 argument.
12792 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12793 argument.
12794 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12795 argument.
12796 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12797 argument.
12798 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12799 argument.
12800 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12801 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12802 argument.
12803 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12804 'self' argument.
12805
f045800c
TT
128062014-02-19 Tom Tromey <tromey@redhat.com>
12807
12808 * target.h (struct target_ops) <to_post_attach>: Add argument.
12809 (target_post_attach): Add argument.
12810 * target.c (debug_to_post_attach): Add argument.
12811 (update_current_target): Update.
12812 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12813 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12814 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12815 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12816 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12817
de90e03d
TT
128182014-02-19 Tom Tromey <tromey@redhat.com>
12819
12820 * windows-nat.c (windows_close): Add 'self' argument.
12821 * tracepoint.c (tfile_close): Add 'self' argument.
12822 * target.h (struct target_ops) <to_close>: Add argument.
12823 * target.c (target_close): Add argument.
12824 (update_current_target): Update.
12825 * remote.c (remote_close): Add 'self' argument.
12826 * remote-sim.c (gdbsim_close): Add 'self' argument.
12827 * remote-mips.c (mips_close): Add 'self' argument.
12828 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12829 * record-full.c (record_full_close): Add 'self' argument.
12830 * record-btrace.c (record_btrace_close): Add 'self' argument.
12831 * monitor.h (monitor_close): Add 'self' argument.
12832 * monitor.c (monitor_close): Add 'self' argument.
12833 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12834 * linux-nat.c (linux_nat_close): Add argument.
12835 * go32-nat.c (go32_close): Add 'self' argument.
12836 * exec.c (exec_close_1): Add 'self' argument.
12837 * ctf.c (ctf_close): Add 'self' argument.
12838 * corelow.c (core_close): Add 'self' argument.
12839 (core_close_cleanup): Update.
12840 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12841 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12842
9dd130a0
TT
128432014-02-19 Tom Tromey <tromey@redhat.com>
12844
12845 * remote.c (remote_load): New function.
12846 (init_remote_ops): Use it.
12847
46917d26
TT
128482014-02-19 Tom Tromey <tromey@redhat.com>
12849
12850 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12851 argument.
12852 * common/linux-btrace.h (linux_supports_btrace): Update.
12853 * remote.c (remote_supports_btrace): Add "self" argument.
12854 * target-delegates.c: Rebuild.
12855 * target.c (target_supports_btrace): Remove.
12856 * target.h (struct target_ops) <to_supports_btrace>: Add
12857 target_ops argument.
12858 (target_supports_btrace): New define.
12859
6b84065d
TT
128602014-02-19 Tom Tromey <tromey@redhat.com>
12861
12862 * record-full.c (record_full_beneath_to_resume_ops)
12863 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12864 (record_full_beneath_to_wait)
12865 (record_full_beneath_to_store_registers_ops)
12866 (record_full_beneath_to_store_registers)
12867 (record_full_beneath_to_xfer_partial_ops)
12868 (record_full_beneath_to_xfer_partial)
12869 (record_full_beneath_to_insert_breakpoint_ops)
12870 (record_full_beneath_to_insert_breakpoint)
12871 (record_full_beneath_to_remove_breakpoint_ops)
12872 (record_full_beneath_to_remove_breakpoint)
12873 (record_full_beneath_to_stopped_by_watchpoint)
12874 (record_full_beneath_to_stopped_data_address)
12875 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12876 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12877 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12878 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12879 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12880 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12881 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12882 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12883 (record_full_resume, record_full_wait_1)
12884 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12885 (record_full_store_registers, record_full_xfer_partial)
12886 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12887 (record_full_async, record_full_core_xfer_partial): Use target
12888 delegation.
12889 * target-delegates.c: Rebuild.
12890 * target.c (current_xfer_partial): Remove.
12891 (update_current_target): Do not INHERIT or de_fault
12892 to_insert_breakpoint, to_remove_breakpoint,
12893 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12894 to_is_async_p, to_async. Do not set to_xfer_partial field.
12895 (default_xfer_partial): Simplify.
12896 (current_xfer_partial): Remove.
12897 (target_wait, target_resume): Simplify.
12898 (find_default_can_async_p, find_default_is_async_p): Update.
12899 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12900 to_xfer_partial, to_stopped_by_watchpoint,
12901 to_stopped_data_address.
12902 (target_store_registers): Simplify.
12903 (forward_target_remove_breakpoint)
12904 (forward_target_insert_breakpoint): Remove.
12905 (target_remove_breakpoint, target_insert_breakpoint)
12906 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12907 * target.h (struct target_ops) <to_resume, to_wait,
12908 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12909 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12910 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12911 markup.
12912 (forward_target_remove_breakpoint)
12913 (forward_target_insert_breakpoint): Remove.
12914 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12915 directly.
12916 (record_btrace_insert_breakpoint): Delegate directly.
12917
1101cb7b
TT
129182014-02-19 Tom Tromey <tromey@redhat.com>
12919
12920 PR build/7701:
12921 * target-delegates.c: New file.
12922 * target.c: Include target-delegates.c.
12923 (init_dummy_target): Call install_dummy_methods.
12924 (complete_target_initialization): Call install_delegators.
12925 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12926 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12927 * make-target-delegates: New file.
12928
8b06beed
TT
129292014-02-19 Tom Tromey <tromey@redhat.com>
12930
12931 * record.c (find_record_target): Use find_target_at.
12932 * target.c (find_target_at): New function.
12933 * target.h (find_target_at): Declare.
12934
6a109b6b
TT
129352014-02-19 Tom Tromey <tromey@redhat.com>
12936
12937 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12938 Add 'ops' argument.
12939 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12940 'ops' argument.
12941 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12942 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12943 'ops' argument.
12944 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12945 argument.
12946 * linux-nat.c (save_sigtrap): Update.
12947 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12948 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12949 (linux_nat_close): Update.
12950 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12951 argument.
12952 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12953 argument.
12954 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12955 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12956 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12957 (tmp_to_async): Add 'ops' argument.
12958 (record_full_stopped_by_watchpoint, record_full_async)
12959 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12960 argument.
12961 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12962 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12963 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12964 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12965 (remote_is_async_p, remote_async): Add 'ops' argument.
12966 (remote_stopped_data_address): Update.
12967 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12968 * target.c (update_current_target)
12969 (find_default_can_async_p, find_default_is_async_p): Update.
12970 (init_dummy_target): Update.
12971 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12972 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12973 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12974 (target_can_async_p, target_is_async_p, target_async)
12975 (target_stopped_by_watchpoint): Update.
12976
e095146b
YQ
129772014-02-19 Yao Qi <yao@codesourcery.com>
12978
12979 PR gdb/16220
12980 * gdbarch.sh: Remove startup_gdbarch.
12981 * gdbarch.c: Regenerated.
12982 * gdbarch.h: Likewise.
12983
bc3c6b36
KB
129842014-02-17 Kevin Buettner <kevinb@redhat.com>
12985
12986 * rl78-tdep.c (rl78_g10_register_name): New function.
12987 (rl78_return_value): Add g10 support.
12988 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12989 g10.
12990
98dc0167 129912014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12992
12993 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12994 (SUBDIR_GUILE_SRCS): Ditto.
12995 (scm-gsmob.o): Ditto.
12996
842c05cd
YQ
129972014-02-17 Yao Qi <yao@codesourcery.com>
12998
12999 * gnu-nat.c (ILL_RPC): Declare defined function.
13000
25c0bd04
YQ
130012014-02-17 Yao Qi <yao@codesourcery.com>
13002
13003 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13004 mach_msg_type_number_t.
13005 (gnu_write_inferior): Likewise.
13006
a9a758e3
YQ
130072014-02-17 Yao Qi <yao@codesourcery.com>
13008
13009 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13010 in format string.
13011 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13012 (inf_validate_procs, inf_signal): Likewise.
13013 (S_exception_raise_request): Likewise.
13014 (do_mach_notify_dead_name): Likewise.
13015 (steal_exc_port): Likewise.
13016 (gnu_read_inferior): Change 'copy_count''s type to
13017 mach_msg_type_number_t.
13018 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13019 format string.
13020
bae8023e
TS
130212014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13022
c82f56d9
TS
13023 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13024 flag. Adjust all users; in particular...
13025 (gnu_wait): ..., don't decrement its value in here...
13026 (gnu_create_inferior): ..., and instead set the flag in here,
13027 around the startup_inferior call, and call that one with
13028 START_INFERIOR_TRAPS_EXPECTED.
13029
3398af6a
TS
13030 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13031 (ILL_RPC): ... new macro.
13032 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13033 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13034 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13035 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13036 functions with ILL_RPC macro.
13037 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13038 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13039 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13040 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13041 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13042 (S_proc_getlogin_reply, S_proc_getsid_reply)
13043 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13044 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13045 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13046 (S_proc_getnports_reply, S_proc_is_important_reply)
13047 (S_proc_get_code_reply): New stub functions, generated with
13048 ILL_RPC macro.
13049
d47642c9
TS
13050 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13051 collected the type check structures.
13052
bae8023e
TS
13053 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13054
8a55ffb0
DE
130552014-02-14 Doug Evans <dje@google.com>
13056
13057 * target.c (target_write_partial): Fix result type.
13058
c2853f3d
JM
130592014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13060
13061 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13062 the proper offsets to access fpregset_t.
13063
ac61d2db
SA
130642014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13065
13066 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13067 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13068 * h8300-tdep.c (setmachinelist): Remove global.
13069 * hppa-tdep.c (hppa_sigtramp): Remove global.
13070 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13071 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13072 * ravenscar-thread.c (update_target_observer): Remove global.
13073 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13074
9d2d0b8b
TT
130752014-02-12 Tom Tromey <tromey@redhat.com>
13076
13077 * common/rsp-low.c: Update comments.
13078 * common/rsp-low.h: Update comments.
13079
a7191e8b
TT
130802014-02-12 Tom Tromey <tromey@redhat.com>
13081
13082 * common/rsp-low.c (convert_ascii_to_int): Remove.
13083 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13084
ff0e980e
TT
130852014-02-12 Tom Tromey <tromey@redhat.com>
13086
13087 * common/rsp-low.h (unhexify): Don't declare.
13088 * common/rsp-low.c (unhexify): Remove.
13089
e9371aff
TT
130902014-02-12 Tom Tromey <tromey@redhat.com>
13091
13092 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13093 * common/rsp-low.c (convert_int_to_ascii): Remove.
13094
971dc0b8
TT
130952014-02-12 Tom Tromey <tromey@redhat.com>
13096
13097 * common/rsp-low.h (hexify): Don't declare.
13098 * common/rsp-low.c (hexify): Remove.
13099
0a822afb
TT
131002014-02-12 Tom Tromey <tromey@redhat.com>
13101
13102 * common/rsp-low.c (hexify): Never take strlen of argument.
13103
9f1b45b0
TT
131042014-02-12 Tom Tromey <tromey@redhat.com>
13105
13106 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13107 * remote.c (extended_remote_run, remote_rcmd)
13108 (remote_download_trace_state_variable, remote_save_trace_data)
13109 (remote_set_trace_notes): Update.
13110 * tracepoint.c (encode_source_string, tfile_write_status)
13111 (tfile_write_uploaded_tsv): Update.
13112
9c3d6531
TT
131132014-02-12 Tom Tromey <tromey@redhat.com>
13114
13115 * tracepoint.c: Include rsp-low.h.
13116 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13117 * remote.c: Include rsp-low.h.
13118 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13119 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13120 (remote_unescape_input): Move to common/rsp-low.c.
13121 * common/rsp-low.h: New file.
13122 * common/rsp-low.c: New file.
13123 * Makefile.in (SFILES): Add common/rsp-low.c.
13124 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13125 (COMMON_OBS): Add rsp-low.o.
13126 (rsp-low.o): New target.
13127
01fd3ea5
TT
131282014-02-12 Tom Tromey <tromey@redhat.com>
13129
13130 * utils.h: Include print-utils.h.
13131 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13132 (int_string, core_addr_to_string, core_addr_to_string_nz)
13133 (hex_string, hex_string_custom): Don't declare.
13134 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13135 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13136 (hex_string_custom, int_string, core_addr_to_string)
13137 (core_addr_to_string_nz, host_address_to_string): Move to
13138 common/print-utils.c.
13139 * common/print-utils.h: New file.
13140 * common/print-utils.c: New file
13141 * Makefile.in (SFILES): Add common/print-utils.c.
13142 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13143 (COMMON_OBS): Add print-utils.o.
13144 (print-utils.o): New target.
13145
9fb50108
TT
131462014-02-12 Tom Tromey <tromey@redhat.com>
13147
13148 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13149
0548b5db
MK
131502014-02-12 Mark Kettenis <kettenis@gnu.org>
13151
13152 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13153
493443a4
MK
131542014-02-12 Mark Kettenis <kettenis@gnu.org>
13155
13156 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13157 if a PT_IO ptrace request returns sucessfully but indicates that 0
13158 bytes were transferred.
13159
706d0883
PA
131602014-02-12 Pedro Alves <palves@redhat.com>
13161 Kevin Buettner <kevinb@redhat.com>
13162
13163 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13164 TYPE_INSTANCE_FLAG_CODE_SPACE.
13165
5caa2f0b
PA
131662014-02-12 Pedro Alves <palves@redhat.com>
13167
13168 * h8300-tdep.c (pseudo_from_raw_register)
13169 (raw_from_pseudo_register): New functions.
13170 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13171 them.
13172
76fd5f74
PA
131732014-02-12 Pedro Alves <palves@redhat.com>
13174
13175 * h8300-tdep.c (h8300_register_sim_regno): New function.
13176 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13177 gdbarch_register_sim_regno hook.
13178
8f008406
SA
131792014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13180
13181 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13182
195abc10
SA
131832014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13184
13185 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13186
93ffa5b9
MK
131872014-02-12 Mark Kettenis <kettenis@gnu.org>
13188
13189 * obsd-tdep.h (obsd_init_abi): New prototype.
13190 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13191 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13192 (obsd_init_abi): New functions.
13193 * i386obsd-tdep.c: Include "obsd-tdep.h".
13194 (i386obsd_init_abi): Call obsd_init_abi.
13195 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13196 (amd64obsd_init_abi): Call obsd_init_abi.
13197 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13198 obsd-tdep.c to gdb_target_obs.
13199
49caec94
JM
132002014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13201
13202 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13203 double float arguments to 16-byte in the argument slots.
13204
e1402065
DE
132052014-02-11 Doug Evans <xdje42@gmail.com>
13206
13207 * configure.ac: Don't crash if pkg-config is not found and guile
13208 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13209 in guile checks.
13210 * configure: Regenerate.
13211
edcc890f
YQ
132122014-02-11 Yao Qi <yao@codesourcery.com>
13213
13214 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13215 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13216 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13217 * gnu-nat.c (gnu_xfer_memory): Likewise.
13218 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13219 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13220 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13221 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13222
9b409511
YQ
132232014-02-11 Yao Qi <yao@codesourcery.com>
13224
13225 * target.h (enum target_xfer_error): Rename to ...
13226 (enum target_xfer_status): ... it. New. All users updated.
13227 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13228 New.
13229 (TARGET_XFER_STATUS_ERROR_P): New macro.
13230 (target_xfer_error_to_string): Remove declaration.
13231 (target_xfer_status_to_string): Declare.
13232 (target_xfer_partial_ftype): Adjust it.
13233 (struct target_ops) <to_xfer_partial>: Return
13234 target_xfer_status. Add argument xfered_len. Update
13235 comments.
13236 * target.c (target_xfer_error_to_string): Rename to ...
13237 (target_xfer_status_to_string): ... it. New. All callers
13238 updated.
13239 (target_read_live_memory): Likewise. Call target_xfer_partial
13240 instead of target_read.
13241 (memory_xfer_live_readonly_partial): Return
13242 target_xfer_status. Add argument xfered_len.
13243 (raw_memory_xfer_partial): Likewise.
13244 (memory_xfer_partial_1): Likewise.
13245 (memory_xfer_partial): Likewise.
13246 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13247 properly. Update debug message.
13248 (default_xfer_partial, current_xfer_partial): Likewise.
13249 (target_write_partial): Likewise.
13250 (target_read_partial): Likewise. All callers updated.
13251 (read_whatever_is_readable): Likewise.
13252 (target_write_with_progress): Likewise.
13253 (target_read_alloc_1): Likewise.
13254
13255 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13256 * auxv.c (procfs_xfer_auxv): Likewise.
13257 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13258 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13259 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13260 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13261 * corefile.c (read_memory): Adjust.
13262 * corelow.c (core_xfer_partial): Likewise.
13263 * ctf.c (ctf_xfer_partial): Likewise.
13264 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13265 updated.
13266 (darwin_xfer_partial): Likewise.
13267 * exec.c (section_table_xfer_memory_partial): Likewise. All
13268 callers updated.
13269 (exec_xfer_partial): Likewise.
13270 * exec.h (section_table_xfer_memory_partial): Update
13271 declaration.
13272 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13273 negative.
13274 (gnu_xfer_partial): Likewise.
13275 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13276 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13277 (ia64_hpux_xfer_solib_got): Likewise.
13278 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13279 type of 'partial_len' to ULONGEST.
13280 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13281 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13282 (linux_nat_xfer_partial): Likewise.
13283 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13284 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13285 * monitor.c (monitor_xfer_memory): Likewise.
13286 (monitor_xfer_partial): Likewise.
13287 * procfs.c (procfs_xfer_partial): Likewise.
13288 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13289 * record-full.c (record_full_xfer_partial): Likewise.
13290 (record_full_core_xfer_partial): Likewise.
13291 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13292 (gdbsim_xfer_partial): Likewise.
13293 * remote.c (remote_write_bytes_aux): Likewise. All callers
13294 updated.
13295 (remote_write_bytes, remote_read_bytes): Likewise. All
13296 callers updated.
13297 (remote_flash_erase): Likewise. All callers updated.
13298 (remote_write_qxfer): Likewise. All callers updated.
13299 (remote_read_qxfer): Likewise. All callers updated.
13300 (remote_xfer_partial): Likewise.
13301 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13302 (rs6000_xfer_shared_libraries): Likewise.
13303 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13304 (sol_thread_xfer_partial): Likewise.
13305 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13306 (sparc_xfer_partial): Likewise.
13307 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13308 updated.
13309 (spu_xfer_partial): Likewise.
13310 * spu-multiarch.c (spu_xfer_partial): Likewise.
13311 * tracepoint.c (tfile_xfer_partial): Likewise.
13312 * windows-nat.c (windows_xfer_memory): Likewise.
13313 (windows_xfer_shared_libraries): Likewise.
13314 (windows_xfer_partial): Likewise.
13315 * valprint.c: Replace 'target_xfer_error' with
13316 'target_xfer_status' in comments.
13317
a8e63083
JB
133182014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13319
13320 Checked in by Joel Brobecker <brobecker@adacore.com>.
13321 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13322
e86b67d3
JB
133232014-02-11 Joel Brobecker <brobecker@adacore.com>
13324
13325 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13326 function parameters.
13327
4b7d1f7f
WN
133282014-02-10 Will Newton <will.newton@linaro.org>
13329
13330 * elfread.c (elf_rel_plt_read): Look for a .got section if
13331 looking up .got.plt fails.
13332 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13333 on address passed to elf_gnu_ifunc_record_cache.
13334 (elf_gnu_ifunc_resolve_addr): Likewise.
13335 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13336
961842b2
JM
133372014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13338
13339 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13340 (X_RETTURN): New macro.
13341 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13342
13343 * sparc64-tdep.c (sparc64_init_abi): Hook
13344 sparc_in_function_epilogue_p.
13345
3f03e7b1
GB
133462014-02-10 Gary Benson <gbenson@redhat.com>
13347
13348 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13349 Rename name_matcher to symbol_matcher.
13350
96f861ef
GB
133512014-02-10 Gary Benson <gbenson@redhat.com>
13352
13353 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13354 Use expand_symtabs_file_matcher_ftype and
13355 expand_symtabs_symbol_matcher_ftype.
13356
ee01b665
JB
133572014-02-10 Joel Brobecker <brobecker@adacore.com>
13358
13359 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13360 (struct ada_symbol_cache): New.
13361 (ada_free_symbol_cache): Forward declare.
13362 (struct ada_pspace_data): New.
13363 (ada_pspace_data_handle): New static global.
13364 (get_ada_pspace_data, ada_pspace_data_cleanup)
13365 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13366 (cache_space, cache): Delete, now folded inside struct
13367 ada_pspace_data.
13368 (ada_get_symbol_cache): New function.
13369 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13370 implementation.
13371 (_initialize_ada_language): Remove initialization of cache_space.
13372 Move call to observer_attach_inferior_exit up, grouping it
13373 with the other observer registrations inside this function.
13374 Rename command to be more general. Add call to
13375 register_program_space_data_with_cleanup.
13376
143adbbf
JB
133772014-02-10 Joel Brobecker <brobecker@adacore.com>
13378
13379 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13380 ada_new_objfile_observer.
13381 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13382 (_initialize_tasks): Update uses of ada_new_objfile_observer
13383 and ada_tasks_normal_stop_observer.
13384
aa4fb036
JB
133852014-02-10 Joel Brobecker <brobecker@adacore.com>
13386
13387 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13388 returned by the 'Length attribute to integer.
13389
9dee8cc6
JB
133902014-02-10 Joel Brobecker <brobecker@adacore.com>
13391
13392 * ada-lang.c (_initialize_ada_language): Initialize
13393 cache_space obstack.
13394
3d9434b5
JB
133952014-02-10 Joel Brobecker <brobecker@adacore.com>
13396
13397 * ada-lang.c (HASH_SIZE): New macro.
13398 (struct cache_entry): New type.
13399 (cache_space, cache): New static globals.
13400 (ada_clear_symbol_cache, find_entry): New functions.
13401 (lookup_cached_symbol, cache_symbol): Implement.
13402 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13403 (_initialize_ada_language): Attach ada_new_objfile_observer
13404 and ada_free_objfile_observer.
13405
f0c5f9b2
JB
134062014-02-10 Joel Brobecker <brobecker@adacore.com>
13407
13408 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13409 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13410 struct block * parameter.
13411 (ada_lookup_symbol_list_worker): Constify local variable "block".
13412 Remove cast which is no longer necessary.
13413
ed3ef339
DE
134142014-02-10 Doug Evans <xdje42@gmail.com>
13415
13416 Add Guile as an extension language.
13417 * NEWS: Mention Guile scripting.
13418 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13419 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13420 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13421 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13422 (CLIBS): Add GUILE_LIBS.
13423 (install-guile): New rule.
13424 (guile.o): New rule.
13425 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13426 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13427 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13428 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13429 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13430 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13431 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13432 * configure.ac: New option --with-guile.
13433 * configure: Regenerate.
13434 * config.in: Regenerate.
13435 * auto-load.c: Remove #include "python/python.h". Add #include
13436 "gdb/section-scripts.h".
13437 (source_section_scripts): Handle Guile scripts.
13438 (_initialize_auto_load): Add name of Guile objfile script to
13439 scripts-directory help text.
13440 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13441 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13442 (struct breakpoint): New member scm_bp_object.
13443 * defs.h (enum command_control_type): New value guile_control.
13444 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13445 "extension.h".
13446 (show_user): Update comment.
13447 (_initialize_cli_cmds): Update help text for "show user". Update help
13448 text for max-user-call-depth.
13449 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13450 "extension.h".
13451 (multi_line_command_p): Add guile_control.
13452 (print_command_lines): Handle guile_control.
13453 (execute_control_command, recurse_read_control_structure): Ditto.
13454 (process_next_line): Recognize "guile" commands.
13455 * disasm.c (gdb_disassemble_info): Make non-static.
13456 * disasm.h: #include "dis-asm.h".
13457 (struct gdbarch): Add forward decl.
13458 (gdb_disassemble_info): Declare.
13459 * extension.c: #include "guile/guile.h".
13460 (extension_languages): Add guile.
13461 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13462 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13463 * gdbtypes.c (get_unsigned_type_max): New function.
13464 (get_signed_type_minmax): New function.
13465 * gdbtypes.h (get_unsigned_type_max): Declare.
13466 (get_signed_type_minmax): Declare.
13467 * guile/README: New file.
13468 * guile/guile-internal.h: New file.
13469 * guile/guile.c: New file.
13470 * guile/guile.h: New file.
13471 * guile/scm-arch.c: New file.
13472 * guile/scm-auto-load.c: New file.
13473 * guile/scm-block.c: New file.
13474 * guile/scm-breakpoint.c: New file.
13475 * guile/scm-disasm.c: New file.
13476 * guile/scm-exception.c: New file.
13477 * guile/scm-frame.c: New file.
13478 * guile/scm-gsmob.c: New file.
13479 * guile/scm-iterator.c: New file.
13480 * guile/scm-lazy-string.c: New file.
13481 * guile/scm-math.c: New file.
13482 * guile/scm-objfile.c: New file.
13483 * guile/scm-ports.c: New file.
13484 * guile/scm-pretty-print.c: New file.
13485 * guile/scm-safe-call.c: New file.
13486 * guile/scm-string.c: New file.
13487 * guile/scm-symbol.c: New file.
13488 * guile/scm-symtab.c: New file.
13489 * guile/scm-type.c: New file.
13490 * guile/scm-utils.c: New file.
13491 * guile/scm-value.c: New file.
13492 * guile/lib/gdb.scm: New file.
13493 * guile/lib/gdb/boot.scm: New file.
13494 * guile/lib/gdb/experimental.scm: New file.
13495 * guile/lib/gdb/init.scm: New file.
13496 * guile/lib/gdb/iterator.scm: New file.
13497 * guile/lib/gdb/printing.scm: New file.
13498 * guile/lib/gdb/types.scm: New file.
13499 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13500 (VPATH): Add $(GUILE_SRCDIR).
13501 (GUILE_DIR): New variable.
13502 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13503 (all): Add stamp-guile dependency.
13504 (stamp-guile): New rule.
13505 (clean-guile, install-guile, uninstall-guile): New rules.
13506 (install-only): Add install-guile dependency.
13507 (uninstall): Add uninstall-guile dependency.
13508 (clean): Add clean-guile dependency.
13509
ac020ec5
DE
135102014-02-09 Doug Evans <xdje42@gmail.com>
13511
13512 Revert this patch (which I approved, mea culpa).
13513
13514 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13515
13516 * Makefile.in (all-lib): Remove.
13517 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13518
2a081c59
JK
135192014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13520
13521 Fix Python stack corruption.
13522 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13523 gdb_py_longest.
13524
0a6bd22d
MK
135252014-02-08 Mark Kettenis <kettenis@gnu.org>
13526
13527 * Makefile.in (all-lib): Remove.
13528 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13529
1a860409
DE
135302014-02-07 Doug Evans <dje@google.com>
13531
13532 * extension-priv.h (extension_language_script_ops): Add comment.
13533 (extension_language_ops): Add comment.
caf5a491 13534 (active_ext_lang_state): Fix typo in comment.
1a860409 13535
d137e6dc
PA
135362014-02-07 Pedro Alves <palves@redhat.com>
13537
0dcb32c3 13538 PR breakpoints/16292
d137e6dc
PA
13539 * infrun.c (handle_signal_stop) <signal arrives while stepping
13540 over a breakpoint>: Switch back to the stepping thread.
13541
ce6d0892
YQ
135422014-02-07 Yao Qi <yao@codesourcery.com>
13543
13544 * target.c (target_xfer_partial): Return zero if LEN is zero.
13545
2ed4b548
YQ
135462014-02-07 Yao Qi <yao@codesourcery.com>
13547
13548 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13549 (ld_so_xfer_auxv): Likewise.
13550 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13551 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13552 * corelow.c (core_xfer_partial): Likewise.
13553 * ctf.c (ctf_xfer_partial): Likewise.
13554 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13555 (darwin_xfer_partial): Likewise.
13556 * exec.c (exec_xfer_partial): Likewise.
13557 * gnu-nat.c (gnu_xfer_partial): Likewise.
13558 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13559 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13560 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13561 * linux-nat.c (linux_xfer_siginfo): Likewise.
13562 (linux_proc_xfer_spu): Likewise.
13563 * procfs.c (procfs_xfer_partial): Likewise.
13564 * record-full.c (record_full_xfer_partial): Likewise.
13565 (record_full_core_xfer_partial): Likewise.
13566 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13567 * remote.c (remote_write_qxfer): Likewise.
13568 (remote_write_qxfer, remote_read_qxfer): Likewise.
13569 (remote_xfer_partial): Likewise.
13570 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13571 (rs6000_xfer_shared_libraries): Likewise.
13572 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13573 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13574 (spu_xfer_partial): Likewise.
13575 * target.c (memory_xfer_partial_1): Likewise.
13576 * tracepoint.c (tfile_xfer_partial): Likewise.
13577 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13578 (windows_xfer_partial): Likewise.
13579
c09f20e4
YQ
135802014-02-07 Yao Qi <yao@codesourcery.com>
13581
13582 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13583 comments.
13584 (core_xfer_shared_libraries_aix): Likewise.
13585 * gdbarch.c, gdbarch.h: Regenerated.
13586 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13587 ULONGEST. Change 'len_avail' type to ULONGEST.
13588 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13589 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13590 declaration.
13591 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13592
8635b3bf
YQ
135932014-02-07 Yao Qi <yao@codesourcery.com>
13594
13595 * corefile.c (memory_error): Get 'exception' from ERR and pass
13596 'exception' to throw_error.
13597
6dddc817
DE
135982014-02-06 Doug Evans <xdje42@gmail.com>
13599
13600 * configure.ac (libpython checking): Remove all but python.o from
13601 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13602 * configure: Regenerate.
13603
13604 * Makefile.in (SFILES): Add extension.c.
13605 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13606 (COMMON_OBS): Add extension.o.
13607 * extension.h: New file.
13608 * extension-priv.h: New file.
13609 * extension.c: New file.
13610
13611 * python/python-internal.h: #include "extension.h".
13612 (gdbpy_auto_load_enabled): Declare.
13613 (gdbpy_apply_val_pretty_printer): Declare.
13614 (gdbpy_apply_frame_filter): Declare.
13615 (gdbpy_preserve_values): Declare.
13616 (gdbpy_breakpoint_cond_says_stop): Declare.
13617 (gdbpy_breakpoint_has_cond): Declare.
13618 (void source_python_script_for_objfile): Delete.
13619 * python/python.c: #include "extension-priv.h".
13620 Delete inclusion of "observer.h".
13621 (extension_language_python): Moved here and renamed from
13622 script_language_python in py-auto-load.c.
13623 Redefined to be of type extension_language_defn.
13624 (python_extension_script_ops): New global.
13625 (python_extension_ops): New global.
13626 (struct python_env): New member previous_active.
13627 (restore_python_env): Call restore_active_ext_lang.
13628 (ensure_python_env): Call set_active_ext_lang.
13629 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13630 New arg extlang.
13631 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13632 New arg extlang.
13633 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13634 New arg extlang.
13635 (gdbpy_eval_from_control_command): Renamed from
13636 eval_python_from_control_command, made static. New arg extlang.
13637 (gdbpy_source_script) Renamed from source_python_script, made static.
13638 New arg extlang.
13639 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13640 result to int. New arg extlang.
13641 (gdbpy_source_objfile_script): Renamed from
13642 source_python_script_for_objfile, made static. New arg extlang.
13643 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13644 static. New args extlang, extlang_printers. Change result type to
13645 "void".
13646 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13647 static. New arg extlang. Rename arg printers to extlang_printers
13648 and change type to ext_lang_type_printers *.
13649 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13650 static. Replace argument arg with extlang, extlang_printers.
13651 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13652 (!HAVE_PYTHON, source_python_script): Delete.
13653 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13654 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13655 (!HAVE_PYTHON, start_type_printers): Delete.
13656 (!HAVE_PYTHON, apply_type_printers): Delete.
13657 (!HAVE_PYTHON, free_type_printers): Delete.
13658 (_initialize_python): Delete call to observer_attach_before_prompt.
13659 (finalize_python): Set/restore active extension language.
13660 (gdbpy_finish_initialization) Renamed from
13661 finish_python_initialization, made static. New arg extlang.
13662 (gdbpy_initialized): New function.
13663 * python/python.h: #include "extension.h". Delete #include
13664 "value.h", "mi/mi-cmds.h".
13665 (extension_language_python): Declare.
13666 (GDBPY_AUTO_FILE_NAME): Delete.
13667 (enum py_bt_status): Moved to extension.h and renamed to
13668 ext_lang_bt_status.
13669 (enum frame_filter_flags): Moved to extension.h.
13670 (enum py_frame_args): Moved to extension.h and renamed to
13671 ext_lang_frame_args.
13672 (finish_python_initialization): Delete.
13673 (eval_python_from_control_command): Delete.
13674 (source_python_script): Delete.
13675 (apply_val_pretty_printer): Delete.
13676 (apply_frame_filter): Delete.
13677 (preserve_python_values): Delete.
13678 (gdbpy_script_language_defn): Delete.
13679 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13680 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13681
13682 * auto-load.c: #include "extension.h".
13683 (GDB_AUTO_FILE_NAME): Delete.
13684 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13685 (script_language_gdb): Delete, moved to extension.c and renamed to
13686 extension_language_gdb.
13687 (source_gdb_script_for_objfile): Delete.
13688 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13689 (loaded_script): Change type of language member to
13690 struct extension_language_defn *.
13691 (init_loaded_scripts_info): Initialize
13692 unsupported_script_warning_printed.
13693 (maybe_add_script): Make static. Change type of language arg to
13694 struct extension_language_defn *.
13695 (clear_section_scripts): Reset unsupported_script_warning_printed.
13696 (auto_load_objfile_script_1): Rewrite to use extension language API.
13697 (auto_load_objfile_script): Make public. Remove support-compiled-in
13698 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13699 (source_section_scripts): Rewrite to use extension language API.
13700 (load_auto_scripts_for_objfile): Rewrite to use
13701 auto_load_scripts_for_objfile.
13702 (collect_matching_scripts_data): Change type of language member to
13703 struct extension_language_defn *.
13704 (auto_load_info_scripts): Change type of language arg to
13705 struct extension_language_defn *.
13706 (unsupported_script_warning_print): New function.
13707 (script_not_found_warning_print): Make static.
13708 (_initialize_auto_load): Rewrite construction of scripts-directory
13709 help.
13710 * auto-load.h (struct objfile): Add forward decl.
13711 (struct script_language): Delete.
13712 (struct auto_load_pspace_info): Add forward decl.
13713 (struct extension_language_defn): Add forward decl.
13714 (maybe_add_script): Delete.
13715 (auto_load_objfile_script): Declare.
13716 (script_not_found_warning_print): Delete.
13717 (auto_load_info_scripts): Update prototype.
13718 (auto_load_gdb_scripts_enabled): Declare.
13719 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13720 auto_load_python_scripts_enabled and made public.
13721 (script_language_python): Delete, moved to python.c.
13722 (gdbpy_script_language_defn): Delete.
13723 (info_auto_load_python_scripts): Update to use
13724 extension_language_python.
13725
13726 * breakpoint.c (condition_command): Replace call to
13727 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13728 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13729 with call to breakpoint_ext_lang_cond_says_stop.
13730 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13731 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13732 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13733 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13734 New arg slang.
13735 (local_setattro): Print name of extension language with existing
13736 stop condition.
13737
13738 * valprint.c (val_print, value_print): Update to call
13739 apply_ext_lang_val_pretty_printer.
13740 * cp-valprint.c (cp_print_value): Update call to
13741 apply_ext_lang_val_pretty_printer.
13742 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13743 (gdbpy_apply_val_pretty_printer): Renamed from
13744 apply_val_pretty_printer. New arg extlang.
13745 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13746
13747 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13748 extension language API.
13749 * cli/cli-script.c (execute_control_command): Update to call
13750 eval_ext_lang_from_control_command.
13751
13752 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13753 enum ext_lang_bt_status values. Update call to
13754 apply_ext_lang_frame_filter.
13755 (mi_cmd_stack_list_locals): Ditto.
13756 (mi_cmd_stack_list_args): Ditto.
13757 (mi_cmd_stack_list_variables): Ditto.
13758 * mi/mi-main.c: Delete #include "python/python-internal.h".
13759 Add #include "extension.h".
13760 (mi_cmd_list_features): Replace reference to python internal variable
13761 gdb_python_initialized with call to ext_lang_initialized_p.
13762
13763 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13764 Update to use enum ext_lang_frame_args. Update to call
13765 apply_ext_lang_frame_filter.
13766 * python/py-framefilter.c (extract_sym): Update to use enum
13767 ext_lang_bt_status.
13768 (extract_value, py_print_type, py_print_value): Ditto.
13769 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13770 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13771 (py_print_frame): Ditto.
13772 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13773 New arg extlang. Update to use enum ext_lang_bt_status.
13774
13775 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13776 finish_python_initialization. Replace with call to
13777 finish_ext_lang_initialization.
13778
13779 * typeprint.c (do_free_global_table): Update to call
13780 free_ext_lang_type_printers.
13781 (create_global_typedef_table): Update to call
13782 start_ext_lang_type_printers.
13783 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13784 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13785 (type_print_options): Change type of global_printers from "void *"
13786 to "struct ext_lang_type_printers *".
13787
13788 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13789 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13790 (gdbpy_preserve_values): Renamed from preserve_python_values.
13791 New arg extlang.
13792 (!HAVE_PYTHON, preserve_python_values): Delete.
13793
13794 * utils.c (quit_flag): Delete, moved to extension.c.
13795 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13796 extension.c.
13797
13798 * eval.c: Delete #include "python/python.h".
13799 * main.c: Delete #include "python/python.h".
13800
13801 * defs.h: Update comment.
13802
6af79985
JB
138032014-02-06 Joel Brobecker <brobecker@adacore.com>
13804
13805 GDB 7.7 released.
13806
12c5175d
MK
138072014-02-05 Mark Kettenis <kettenis@gnu.org>
13808
13809 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13810 defined.
13811
8dc5b319
YQ
138122014-02-05 Yao Qi <yao@codesourcery.com>
13813
13814 * remote.c (remote_pass_signals): Remove local 'buf' and use
13815 rs->buf.
13816 (remote_program_signals): Likewise.
13817
de7b2893
YQ
138182014-02-05 Yao Qi <yao@codesourcery.com>
13819
13820 * ctf.c: Include "inferior.h" and "gdbthread.h".
13821 (CTF_PID): A new macro.
13822 (ctf_open): Call inferior_appeared and add_thread_silent.
13823 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13824 (ctf_thread_alive): New function.
13825 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13826
66d032ac
YQ
138272014-02-05 Yao Qi <yao@codesourcery.com>
13828
13829 Revert this patch:
13830
13831 2013-05-24 Yao Qi <yao@codesourcery.com>
13832
13833 * tracepoint.c (TFILE_PID): Remove.
13834 (tfile_open): Don't add thread and inferior.
13835 (tfile_close): Don't set 'inferior_ptid'. Don't call
13836 exit_inferior_silent.
13837 (tfile_thread_alive): Remove.
13838 (init_tfile_ops): Don't set field 'to_thread_alive' of
13839 tfile_ops.
13840
f4ccffad
CE
138412014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13842
13843 * remote.c (remote_start_remote): Call remote_check_symbols even
13844 if only symbol-file (not file) has been given.
13845
591a12a1
UW
138462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13847
13848 * gdbarch.sh (skip_entrypoint): New callback.
13849 * gdbarch.c, gdbarch.h: Regenerate.
13850 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13851 * infrun.c (fill_in_stop_func): Likewise.
13852 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13853 (ppc_elfv2_elf_make_msymbol_special): New function.
13854 (ppc_elfv2_skip_entrypoint): Likewise.
13855 (ppc_linux_init_abi): Install them for ELFv2.
13856
cc0e89c5
UW
138572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13858
13859 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13860 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13861 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13862 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13863 structures returned in GPRs.
13864
52f548e4
UW
138652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13866
13867 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13868 offset to the stack parameter list for the ELFv2 ABI.
13869
d4094b6a
UW
138702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13871
13872 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13873 set_gdbarch_convert_from_func_ptr_addr and
13874 set_gdbarch_elf_make_msymbol_special for ELFv1.
13875 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13876 function descriptors on ELFv1.
13877 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13878 set up r12 at function entry.
13879
cd453cd0
UW
138802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13881
13882 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13883 (struct gdbarch_tdep): New member elf_abi.
13884
13885 * rs6000-tdep.c: Include "elf/ppc64.h".
13886 (rs6000_gdbarch_init): Detect ELF ABI version.
13887
0ff3e01f
UW
138882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13889
13890 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13891 within a register pair holding a DFP 128-bit value on little-endian.
13892 (ppc64_sysv_abi_return_value_base): Likewise.
13893 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13894 (dfp_pseudo_register_write): Likewise.
13895
5b757e5d
UW
138962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13897
13898 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13899 offset on little-endian when passing _Decimal32.
13900 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13901
084ee545
UW
139022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13903
13904 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13905 of the overlapped FP register within the VSX register on little-
13906 endian platforms.
13907 (efpr_pseudo_register_write): Likewise.
13908
d63167af
UW
139092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13910
13911 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13912 offset on little-endian when passing small structures.
13913
e765b44c
UW
139142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13915
13916 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13917 (struct ppc64_sysv_argpos): New data structure.
13918 (ppc64_sysv_abi_push_float): Remove.
13919 (ppc64_sysv_abi_push_val): New function.
13920 (ppc64_sysv_abi_push_integer): Likewise.
13921 (ppc64_sysv_abi_push_freg): Likewise.
13922 (ppc64_sysv_abi_push_vreg): Likewise.
13923 (ppc64_sysv_abi_push_param): Likewise.
13924 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13925 (ppc64_sysv_abi_return_value_base): New function.
13926 (ppc64_sysv_abi_return_value): Refactor to use it.
13927
36c24d95
UW
139282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13929
13930 * NEWS: Document new target powerpc64le-*-linux*.
13931
26fd9228
MK
139322014-02-04 Mark Kettenis <kettenis@gnu.org>
13933
13934 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13935 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13936 core dumps.
13937 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13938 register set used in ELF core dumps. Add floating-point register set.
13939
c5bb7362
KB
139402014-02-03 Kevin Buettner <kevinb@redhat.com>
13941
74228e77 13942 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13943 dwarf2_to_gdb[] table using symbolic constants. Adjust
13944 penultimate entry from number representing the PC register
13945 to symbolic constant representing the MDR register. Add
13946 constant for the PC register to the end of the table.
13947
af09351e
MK
139482014-02-03 Mark Kettenis <kettenis@gnu.org>
13949
13950 * bsd-kvm.c: Include <sys/param.h>
13951
8507e05d
MK
139522014-02-03 Mark Kettenis <kettenis@gnu.org>
13953
13954 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13955
ae56bfb8
JB
139562014-01-31 Joel Brobecker <brobecker@adacore.com>
13957
13958 * ada-lang.h (clear_ada_sym_cache): Delete.
13959
718ee4dc
UW
139602014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13961
13962 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13963
401e27fd
JM
139642014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13965
13966 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13967 the sigreturn register save area only if the syscall is
13968 sigreturn.
13969
a7c88acd
JB
139702014-01-29 Joel Brobecker <brobecker@adacore.com>
13971
13972 * valops.c (value_slice): Minor reformatting.
13973
fa0079ea
UW
139742014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13975
13976 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13977
c6044dd1
JB
139782014-01-28 Joel Brobecker <brobecker@adacore.com>
13979
13980 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13981 New static globals.
13982 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13983 (ada_ignore_descriptive_types_p): New static global.
13984 (find_parallel_type_by_descriptive_type): Return immediately
13985 if ada_ignore_descriptive_types_p is set.
13986 (_initialize_ada_language): Register new commands "maintenance
13987 set ada", "maintenance show ada", "maintenance set ada
13988 ignore-descriptive-types" and "maintenance show ada
13989 ignore-descriptive-types".
13990 * NEWS: Add entry for new "maint ada set/show
13991 ignore-descriptive-types" commands.
13992
568e808b
MM
139932014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13994
13995 * record-btrace.c (record_btrace_close): Call btrace_teardown
13996 for all threads.
13997
467d141b
JB
139982014-01-27 Joel Brobecker <brobecker@adacore.com>
13999
14000 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14001 "ui-out.h".
14002
fb151210
JB
140032014-01-27 Joel Brobecker <brobecker@adacore.com>
14004
14005 * ada-typeprint (type_is_full_subrange_of_target_type):
14006 New function.
14007 (print_range): Add parameter bounds_prefered_p. If not set,
14008 try printing range types using the name of their base type.
14009 (print_range_type): Add parameter bounds_prefered_p.
14010 Use it in call to print_range.
14011 (print_array_type, ada_print_type): Update calls to print_range
14012 and print_range_type.
14013
aba02109
JB
140142014-01-27 Joel Brobecker <brobecker@adacore.com>
14015
14016 * ada-typeprint.c (print_array_type, print_choices, print_range)
14017 (print_range_bound, print_dynamic_range_bound, print_range_type):
14018 Remove declaration.
14019
e62e21fd
JB
140202014-01-27 Joel Brobecker <brobecker@adacore.com>
14021
14022 * ada-typeprint.c (print_range): Add missing empty line
14023 after local declaration.
14024
859cf5d1
JB
140252014-01-27 Joel Brobecker <brobecker@adacore.com>
14026
14027 * ada-valprint.c (print_optional_low_bound): Get index_type's
14028 target type for as long as it is a TYPE_CODE_RANGE.
14029
25790f6f
JB
140302014-01-27 Joel Brobecker <brobecker@adacore.com>
14031
14032 * procfs.c (procfs_make_note_section): Remove assertion and
14033 associated comment.
14034
6b6aa828
YQ
140352014-01-24 Yao Qi <yao@codesourcery.com>
14036
14037 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14038 * corelow.c (get_core_siginfo): Likewise.
14039
5d6df423
YQ
140402014-01-24 Yao Qi <yao@codesourcery.com>
14041
14042 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14043 ULONGEST. Don't check 'len' is negative.
14044 (remote_write_bytes): Change type of 'len' to ULONGEST.
14045
83b645b8
TT
140462014-01-23 Tom Tromey <tromey@redhat.com>
14047
14048 PR python/16485:
14049 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14050 Handle exception from frame.block.
14051 (FrameVars.fetch_frame_locals): Likewise.
14052
0740f8d8
TT
140532014-01-23 Tom Tromey <tromey@redhat.com>
14054
14055 PR python/16487:
14056 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14057 on a NULL pointer. Move "goto error" to correct place.
14058
21909fa1
TT
140592014-01-23 Tom Tromey <tromey@redhat.com>
14060
14061 PR python/16491:
14062 * python/py-framefilter.c (apply_frame_filter): Call
14063 ensure_python_env after computing gdbarch.
14064
17fde6d0
YQ
140652014-01-23 Yao Qi <yao@codesourcery.com>
14066
14067 * target.c (raw_memory_xfer_partial): Change argument type
14068 from void * to gdb_byte *.
14069 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14070
87ce2a04
DE
140712014-01-22 Doug Evans <dje@google.com>
14072
14073 New gdbserver option --debug-format=timestamp.
14074 * NEWS: Mention it.
14075
237b092b
AA
140762014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14077
14078 * syscalls/s390x-linux.xml: New file.
14079 * syscalls/s390-linux.xml: New file.
14080 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14081 (XML_SYSCALL_FILENAME_S390X): Likewise.
14082 (op_svc): New enum value for SVC opcode.
14083 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14084 (s390_linux_get_syscall_number): New function.
14085 (s390_gdbarch_init): Register '*get_syscall_number' and the
14086 syscall xml file name.
14087 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14088 "s390-linux.xml" and "s390x-linux.xml".
14089 * NEWS: Announce new feature.
14090
54bff650
BS
140912014-01-22 Baruch Siach <baruch@tkos.co.il>
14092
14093 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14094
14e361d7
PA
140952014-01-22 Pedro Alves <palves@redhat.com>
14096
14097 * xtensa-config.c: Include defs.h.
14098
46bbb3ed
JB
140992014-01-22 Joel Brobecker <brobecker@adacore.com>
14100
14101 * common/common-utils.h: Add "ARI:" comment beside __func__
14102 reference.
14103
3a80edfc
JB
141042014-01-22 Joel Brobecker <brobecker@adacore.com>
14105
14106 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14107 documentation a bit.
14108
4869db5e
RM
141092014-01-21 Roland McGrath <mcgrathr@google.com>
14110
14111 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14112 * configure: Regenerate.
14113 * aclocal.m4: Regenerate.
14114 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14115 New substituted variables.
14116 (install-strip): New target.
14117 (INSTALL_SCRIPT): New substituted variable.
14118 (FLAGS_TO_PASS): Add it.
14119 (install-only): Use $(INSTALL_SCRIPT) rather than
14120 $(INSTALL_PROGRAM) for gcore.
14121
9ea4267d
TT
141222014-01-20 Tom Tromey <tromey@redhat.com>
14123
14124 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14125 together.
14126
1f2bdf09
TT
141272014-01-20 Tom Tromey <tromey@redhat.com>
14128
14129 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14130 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14131 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14132 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14133 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14134 (struct cmd_list_element) <flags>: Remove.
14135 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14136 doc_allocated>: New fields.
14137 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14138 bitfields.
14139 * maint.c (maintenance_do_deprecate): Update.
14140 * top.c (execute_command): Update.
14141
e671835b
BS
141422014-01-20 Baruch Siach <baruch@tkos.co.il>
14143
14144 * xtensa-linux-nat.c: Include asm/ptrace.h.
14145
50367cd2
IB
141462014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14147
14148 * Makefile.in (SFILES): Add d-support.c.
14149 (COMMON_OBS): Add d-support.o.
14150 * d-lang.h (d_parse_symbol): Add comment, now defined in
14151 d-support.c.
14152 * d-lang.c (parse_call_convention)
14153 (parse_attributes, parse_function_types)
14154 (parse_function_args, parse_type, parse_identifier)
14155 (call_convention_p, d_parse_symbol): Move functions to ...
14156 * d-support.c: ... New file.
14157
ec9f644a
IB
141582014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14159
14160 * d-lang.h (d_parse_symbol): Add declaration.
14161 * d-lang.c (extract_identifiers)
14162 (extract_type_info): Remove functions.
14163 (parse_call_convention, parse_attributes)
14164 (parse_function_types, parse_function_args)
14165 (parse_type, parse_identifier, call_convention_p)
14166 (d_parse_symbol): New functions.
14167 (d_demangle): Use d_parse_symbol to demangle D symbols.
14168
94b1b47e
IB
141692014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14170
14171 * d-lang.h (struct builtin_d_type): New data type.
14172 (builtin_d_type): Add declaration.
14173 * d-lang.c (d_language_arch_info, build_d_types)
14174 (builtin_d_type): New functions.
14175 (enum d_primitive_types): New data type.
14176 (d_language_defn): Change c_language_arch_info to
14177 d_language_arch_info.
14178 (d_type_data): New static variable.
14179 (_initialize_d_language): Initialize d_type_data.
14180
63778547
IB
141812014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14182
14183 * d-lang.h (d_main_name): Add declaration.
14184 * d-lang.c (d_main_name): New function.
14185 * symtab.c (find_main_name): Add call to d_main_name.
14186
3271ba66
IB
141872014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14188
14189 * d-lang.c (d_language_defn): Change macro_expansion_c to
14190 macro_expansion_no.
14191
d36b3012
IB
141922014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14193
14194 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14195
c90a6fb7
SDJ
141962014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14197
14198 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14199 gdb_exception" declaration.
14200 * remote.c (getpkt_or_notif_sane): Likewise.
14201
749234e5
DE
142022014-01-17 Doug Evans <dje@google.com>
14203
14204 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14205 function, contents of dirnames_to_char_ptr_vec_append moved here.
14206 (delim_string_to_char_ptr_vec): New function.
14207 (dirnames_to_char_ptr_vec_append): Rewrite.
14208 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14209
df049a58
DE
142102014-01-17 Doug Evans <dje@google.com>
14211
14212 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14213 and moved here ...
14214 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14215 #include "common-utils.h".
14216 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14217 * common/vec.h (VEC_ASSERT_PASS): Update.
14218 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14219 (MACH_CHECK_ERROR): Update.
14220
69f97648
SM
142212014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14222
14223 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14224 comments.
14225 * gdbarch.h: Regenerate.
14226
98b1cfdc
TT
142272014-01-16 Tom Tromey <tromey@redhat.com>
14228
14229 * value.c (struct value) <regnum>: Move earlier.
14230
77a19445
TT
142312014-01-16 Tom Tromey <tromey@redhat.com>
14232
14233 * remote.c (extended_remote_create_inferior): Rename from
14234 extended_remote_create_inferior_1. Add "ops" argument. Remove
14235 old implementation.
14236
62261490
PA
142372014-01-16 Pedro Alves <palves@redhat.com>
14238
14239 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14240 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14241 the backchain.
14242
4d65956b
DE
142432014-01-16 Doug Evans <dje@google.com>
14244
14245 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14246
52834460
MM
142472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14248
14249 * btrace.h (btrace_thread_flag): New.
14250 (struct btrace_thread_info) <flags>: New.
14251 * record-btrace.c (record_btrace_resume_thread)
14252 (record_btrace_find_thread_to_move, btrace_step_no_history)
14253 (btrace_step_stopped, record_btrace_start_replaying)
14254 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14255 (record_btrace_find_resume_thread): New.
14256 (record_btrace_resume, record_btrace_wait): Extend.
14257 (record_btrace_can_execute_reverse): New.
14258 (record_btrace_open): Fail in non-stop mode.
14259 (record_btrace_set_replay): Split into this, ...
14260 (record_btrace_stop_replaying): ... this, ...
14261 (record_btrace_clear_histories): ... and this.
14262 (init_record_btrace_ops): Init to_can_execute_reverse.
14263 * NEWS: Announce it.
14264
118e6252
MM
142652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14266
14267 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14268 (forward_target_decr_pc_after_break)
14269 (target_decr_pc_after_break): New.
14270 * target.c (forward_target_decr_pc_after_break)
14271 (target_decr_pc_after_break): New.
14272 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14273 instead of gdbarch_decr_pc_after_break.
14274 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14275 instead of gdbarch_decr_pc_after_break.
14276 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14277 instead of gdbarch_decr_pc_after_break.
14278 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14279 instead of gdbarch_decr_pc_after_break.
14280 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14281 instead of gdbarch_decr_pc_after_break.
14282 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14283 instead of gdbarch_decr_pc_after_break.
14284
6e07b1d2
MM
142852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14286
14287 * btrace.c: Include regcache.h.
14288 (btrace_add_pc): New.
14289 (btrace_enable): Call btrace_add_pc.
14290 (btrace_is_empty): New.
14291 * btrace.h (btrace_is_empty): New.
14292 * record-btrace.c (require_btrace, record_btrace_info): Call
14293 btrace_is_empty.
14294
969c39fb
MM
142952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14296
14297 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14298 Support delta reads.
14299 (linux_disable_btrace): Change return type.
14300 * common/linux-btrace.h (linux_read_btrace): Change parameters
14301 and return type to allow error reporting. Update users.
14302 (linux_disable_btrace): Change return type. Update users.
14303 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14304 New.
14305 (btrace_error): New.
14306 (btrace_block) <begin>: Comment on BEGIN == 0.
14307 * btrace.c (btrace_compute_ftrace): Start from the end of
14308 the current trace.
14309 (btrace_stitch_trace, btrace_clear_history): New.
14310 (btrace_fetch): Read delta trace, return if replaying.
14311 (btrace_clear): Move clear history code to btrace_clear_history.
14312 (parse_xml_btrace): Throw an error if parsing failed.
14313 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14314 and return type to allow error reporting.
14315 (target_read_btrace): Change parameters and return type to allow
14316 error reporting.
14317 * target.c (target_read_btrace): Update.
14318 * remote.c (remote_read_btrace): Support delta reads. Pass
14319 errors on.
14320 * NEWS: Announce it.
14321
0b722aec
MM
143222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14323
14324 * record.h (record_btrace_frame_unwind)
14325 (record_btrace_tailcall_frame_unwind): New declarations.
14326 * dwarf2-frame: Include record.h
14327 (dwarf2_frame_cfa): Throw an error for btrace frames.
14328 * record-btrace.c: Include hashtab.h.
14329 (btrace_get_bfun_name): New.
14330 (btrace_call_history): Call btrace_get_bfun_name.
14331 (struct btrace_frame_cache): New.
14332 (bfcache): New.
14333 (bfcache_hash, bfcache_eq, bfcache_new): New.
14334 (btrace_get_frame_function): New.
14335 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14336 (record_btrace_frame_this_id): Compute own id.
14337 (record_btrace_frame_prev_register): Provide PC, throw_error
14338 for all other registers.
14339 (record_btrace_frame_sniffer): Detect btrace frames.
14340 (record_btrace_tailcall_frame_sniffer): New.
14341 (record_btrace_frame_dealloc_cache): New.
14342 (record_btrace_frame_unwind): Add new functions.
14343 (record_btrace_tailcall_frame_unwind): New.
14344 (_initialize_record_btrace): Allocate cache.
14345 * btrace.c (btrace_clear): Call reinit_frame_cache.
14346 * NEWS: Announce it.
14347
066ce621
MM
143482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14349
14350 * record-btrace.c (record_btrace_set_replay)
14351 (record_btrace_goto_begin, record_btrace_goto_end)
14352 (record_btrace_goto): New.
14353 (init_record_btrace_ops): Initialize them.
14354 * NEWS: Announce it.
14355
e2887aa3
MM
143562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14357
14358 * record-btrace.c (record_btrace_find_new_threads)
14359 (record_btrace_thread_alive): New.
14360 (init_record_btrace_ops): Initialize to_find_new_threads and
14361 to_thread_alive.
14362
b2f4cfde
MM
143632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14364
14365 * record-btrace.c (record_btrace_resume): New.
14366 (record_btrace_wait): New.
14367 (init_record_btrace_ops): Initialize to_wait and to_resume.
14368
633785ff
MM
143692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14370
14371 * record-btrace.c (record_btrace_xfer_partial)
14372 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14373 (record_btrace_allow_memory_access): New.
14374 (init_record_btrace_ops): Initialize new methods.
14375 * target.c (raw_memory_xfer_partial): Bail out if target reports
14376 that this memory is not available.
14377
3db08215
MM
143782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14379
14380 * target.h (target_ops) <to_insert_breakpoint>
14381 <to_remove_breakpoint>: Add target_ops parameter.
14382 (forward_target_insert_breakpoint): New.
14383 (forward_target_remove_breakpoint): New.
14384 (memory_remove_breakpoint, memory_insert_breakpoint):
14385 Add target_ops parameter.
14386 * target.c (target_insert_breakpoint): Split into this and ...
14387 (forward_target_insert_breakpoint): ... this.
14388 (target_remove_breakpoint): Split into this and ...
14389 (forward_target_remove_breakpoint): ... this.
14390 (debug_to_insert_breakpoint): Add target_ops parameter.
14391 Call forward_target_insert_breakpoint.
14392 (debug_to_remove_breakpoint): Add target_ops parameter.
14393 Call forward_target_remove_breakpoint.
14394 (update_current_target): Do not inherit or default to_insert_breakpoint
14395 and to_remove_breakpoint.
14396 * corelow.c (ignore): Add target_ops parameter.
14397 * exec.c (ignore): Add target_ops parameter.
14398 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14399 Add target_ops parameter.
14400 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14401 Add target_ops parameter.
14402 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14403 Add target_ops parameter.
14404 * record-full.c (record_full_beneath_to_insert_breakpoint)
14405 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14406 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14407 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14408 (record_full_core_remove_breakpoint): Add target_ops parameter.
14409 Update users.
14410 (record_full_beneath_to_insert_breakpoint_ops)
14411 (record_full_beneath_to_remove_breakpoint_ops)
14412 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14413 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14414 tmp_to_remove_breakpoint_ops,
14415 record_full_beneath_to_insert_breakpoint_ops, and
14416 record_full_beneath_to_remove_breakpoint_ops.
14417 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14418 (m32r_remove_breakpoint): Add target_ops parameter.
14419 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14420 Add target_ops parameter.
14421 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14422 Add target_ops parameter.
14423
cecac1ab
MM
144242014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14425 Markus Metzger <markus.t.metzger@intel.com>
14426
14427 * record-btrace.c: Include frame-unwind.h.
14428 (record_btrace_frame_unwind_stop_reason)
14429 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14430 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14431 New.
14432 (init_record_btrace_ops): Install it.
14433
824344ca
MM
144342014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14435
14436 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14437 get_prev_frame_1.
14438
32261e52
MM
144392014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14440
14441 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14442 earlier.
14443
ea001bdc
MM
144442014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14445
14446 * frame-unwind.c: Include target.h.
14447 (frame_unwind_try_unwinder): New function with code from ...
14448 (frame_unwind_find_by_frame): ... here. New variable
14449 unwinder_from_target, call also target_get_unwinder)
14450 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14451 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14452 * target.h (struct target_ops): New fields to_get_unwinder and
14453 to_get_tailcall_unwinder.
14454 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14455
1f3ef581
MM
144562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14457
14458 * record-btrace.c (record_btrace_fetch_registers)
14459 (record_btrace_store_registers)
14460 (record_btrace_to_prepare_to_store): New.
14461 (init_record_btrace_ops): Add the above.
14462
f32dbf8c
MM
144632014-01-16 Tom Tromey <tromey@redhat.com>
14464
14465 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14466 * target.h (struct target_ops) <to_prepare_to_store>: Add
14467 argument.
14468 (target_prepare_to_store): Add argument.
14469 * target.c (debug_to_prepare_to_store): Add argument.
14470 (update_current_target): Update.
14471 * remote.c (remote_prepare_to_store): Add 'self' argument.
14472 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14473 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14474 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14475 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14476 argument.
14477 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14478 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14479 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14480 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14481 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14482
07bbe694
MM
144832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14484
14485 * btrace.h (replay) <replay>: New.
14486 (btrace_is_replaying): New.
14487 * btrace.c (btrace_clear): Free replay iterator.
14488 (btrace_is_replaying): New.
14489 * record-btrace.c (record_btrace_is_replaying): New.
14490 (record_btrace_info): Print insn number if replaying.
14491 (record_btrace_insn_history): Start at replay position.
14492 (record_btrace_call_history): Start at replay position.
14493 (init_record_btrace_ops): Init to_record_is_replaying.
14494
0688d04e
MM
144952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14496
14497 * record-btrace.c (record_btrace_insn_history_range): Include
14498 end.
14499 (record_btrace_insn_history_from): Adjust range.
14500 (record_btrace_call_history_range): Include
14501 end.
14502 (record_btrace_call_history_from): Adjust range.
14503 * NEWS: Announce changes.
14504
8710b709
MM
145052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14506
14507 * record.h (enum record_print_flag)
14508 <record_print_indent_calls>: New.
14509 * record.c (get_call_history_modifiers): Recognize /c modifier.
14510 (_initialize_record): Document /c modifier.
14511 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14512 Reorder fields. Optionally indent the function name. Update
14513 all users.
14514 * NEWS: Announce changes.
14515
d0fa7535
MM
145162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14517
14518 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14519
5de9129b
MM
145202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14521
14522 * btrace.c (ftrace_new_function): Start counting at one.
14523 * record-btrace.c (record_btrace_info): Adjust number of calls
14524 and insns.
14525 * NEWS: Announce it.
14526
7acbe133
MM
145272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14528
14529 * record-btrace.c (btrace_call_history_insn_range): Print
14530 insn range as [begin, end].
14531
23a7fe75
MM
145322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14533
14534 * btrace.h (struct btrace_func_link): New.
14535 (enum btrace_function_flag): New.
14536 (struct btrace_inst): Rename to ...
14537 (struct btrace_insn): ...this. Update all users.
14538 (struct btrace_func) <ibegin, iend>: Remove.
14539 (struct btrace_func_link): New.
14540 (struct btrace_func): Rename to ...
14541 (struct btrace_function): ...this. Update all users.
14542 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14543 (number, level, flags>: New.
14544 (struct btrace_insn_iterator): Rename to ...
14545 (struct btrace_insn_history): ...this.
14546 Update all users.
14547 (struct btrace_insn_iterator, btrace_call_iterator): New.
14548 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14549 (struct btrace_target_info) <begin, end, level>
14550 <insn_history, call_history>: New.
14551 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14552 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14553 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14554 (btrace_call_number, btrace_call_begin, btrace_call_end)
14555 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14556 (btrace_find_function_by_number, btrace_set_insn_history)
14557 (btrace_set_call_history): New.
14558 * btrace.c (btrace_init_insn_iterator)
14559 (btrace_init_func_iterator, compute_itrace): Remove.
14560 (ftrace_print_function_name, ftrace_print_filename)
14561 (ftrace_skip_file): Change
14562 parameter to const.
14563 (ftrace_init_func): Remove.
14564 (ftrace_debug): Use new btrace_function fields.
14565 (ftrace_function_switched): Also consider gaining and
14566 losing symbol information).
14567 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14568 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14569 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14570 New.
14571 (ftrace_new_function): Move. Remove debug print.
14572 (ftrace_update_lines, ftrace_update_insns): New.
14573 (ftrace_update_function): Check for call, ret, and jump.
14574 (compute_ftrace): Renamed to ...
14575 (btrace_compute_ftrace): ...this. Rewritten to compute call
14576 stack.
14577 (btrace_fetch, btrace_clear): Updated.
14578 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14579 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14580 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14581 (btrace_call_number, btrace_call_begin, btrace_call_end)
14582 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14583 (btrace_find_function_by_number, btrace_set_insn_history)
14584 (btrace_set_call_history): New.
14585 * record-btrace.c (require_btrace): Use new btrace thread
14586 info fields.
14587 (record_btrace_info, btrace_insn_history)
14588 (record_btrace_insn_history, record_btrace_insn_history_range):
14589 Use new btrace thread info fields and new iterator.
14590 (btrace_func_history_src_line): Rename to ...
14591 (btrace_call_history_src_line): ...this. Use new btrace
14592 thread info fields.
14593 (btrace_func_history): Rename to ...
14594 (btrace_call_history): ...this. Use new btrace thread info
14595 fields and new iterator.
14596 (record_btrace_call_history, record_btrace_call_history_range):
14597 Use new btrace thread info fields and new iterator.
14598
8372a7cb
MM
145992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14600
14601 * frame.h (frame_id_build_unavailable_stack_special): New.
14602 * frame.c (frame_id_build_unavailable_stack_special): New.
14603
c2170eef
MM
146042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14605
14606 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14607 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14608 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14609 to gdbarch.
14610 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14611 (i386_insn_is_jump, i386_jmp_p): New.
14612 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14613 insn_is_jump to gdbarch.
14614 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14615 * gdbarch.h: Regenerated.
14616 * gdbarch.c: Regenerated.
14617 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14618 (default_insn_is_jump): New.
14619 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14620 (default_insn_is_jump): New.
14621
864089d2
MM
146222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14623
14624 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14625 Change to ...
14626 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14627 (btrace_read_type) <btrace_read_new>: Change to ...
14628 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14629
ed9edfb5
MM
146302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14631
14632 * common/linux-btrace.c (linux_read_btrace): Free trace from
14633 previous iteration.
14634
fbcbc3fd
DE
146352014-01-15 Doug Evans <dje@google.com>
14636
14637 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14638 uint32_t.
14639
3d548a53
TT
146402014-01-15 Tom Tromey <tromey@redhat.com>
14641
14642 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14643 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14644 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14645 (set_objfile_main_name): New function.
14646 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14647 language_of_main>: New fields.
14648 (set_objfile_main_name): Declare.
14649 * symtab.c (find_main_name): Loop over objfiles to find the main
14650 name and language.
14651 (set_main_name): Now static.
14652 (get_main_info): Add comment.
14653 * symtab.h (set_main_name): Don't declare.
14654
32ac0d11
TT
146552014-01-15 Tom Tromey <tromey@redhat.com>
14656
14657 * symtab.c (main_progspace_key): New global.
14658 (struct main_info): New.
14659 (name_of_main, language_of_main): Remove.
14660 (get_main_info, main_info_cleanup): New function.
14661 (set_main_name, main_name, main_language): Use get_main_info.
14662 (_initialize_symtab): Initialize main_progspace_key.
14663
9e6c82ad
TT
146642014-01-15 Tom Tromey <tromey@redhat.com>
14665
14666 * dbxread.c (process_one_symbol): Update.
14667 * dwarf2read.c (read_partial_die): Update.
14668 * symfile.c (set_initial_language): Call main_language.
14669 * symtab.c (language_of_main): Now static.
14670 (set_main_name): Add 'lang' parameter.
14671 (find_main_name): Update.
14672 (main_language): New function.
14673 (symtab_observer_executable_changed): Update.
14674 * symtab.h (set_main_name): Update.
14675 (language_of_main): Remove.
14676 (main_language): Declare.
14677
6ef55de7
TT
146782014-01-15 Tom Tromey <tromey@redhat.com>
14679
14680 * symfile.c (init_entry_point_info): Use new "initialized" field.
14681 Update.
14682 * objfiles.h (struct entry_point) <initialized>: New field.
14683 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14684 (struct objfile) <ei>: ...here. Remove.
14685 * objfiles.c (entry_point_address_query): Update.
14686
53eddfa6
TT
146872014-01-15 Tom Tromey <tromey@redhat.com>
14688
14689 * objfiles.c (entry_point_address_query): Relocate entry point
14690 address.
14691 (objfile_relocate1): Do not relocate entry point address.
14692 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14693 <the_bfd_section_index>: New field.
14694 * symfile.c (init_entry_point_info): Find the entry point's
14695 section.
14696
d56e56aa
TT
146972014-01-15 Tom Tromey <tromey@redhat.com>
14698
14699 * solib-frv.c (enable_break): Use entry_point_address_query.
14700
33a97bbe
OJ
147012014-01-15 Omair Javaid <omair.javaid@linaro.org>
14702
14703 * NEWS: Add note on improved process record-replay on
14704 arm*-linux* targets.
14705
c6ec2b30
OJ
147062014-01-15 Omair Javaid <omair.javaid@linaro.org>
14707
14708 * arm-tdep.c (enum arm_record_result): New enum.
14709 (arm_record_unsupported_insn): New function.
14710 (arm_record_coproc_data_proc): Removed.
14711 (thumb2_record_ld_st_multiple): New function.
14712 (thumb2_record_ld_st_dual_ex_tbb): New function.
14713 (thumb2_record_data_proc_sreg_mimm): New function.
14714 (thumb2_record_ps_dest_generic): New function.
14715 (thumb2_record_branch_misc_cntrl): New function.
14716 (thumb2_record_str_single_data): New function.
14717 (thumb2_record_ld_mem_hints): New function.
14718 (thumb2_record_ld_word): New function.
14719 (thumb2_record_lmul_lmla_div): New function.
14720 (thumb2_record_decode_insn_handler): New function.
14721 (decode_insn): Add thumb32 instruction handlers.
14722
97dfe206
OJ
147232014-01-15 Omair Javaid <omair.javaid@linaro.org>
14724
14725 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14726 (struct arm_linux_record_tdep): Declare.
14727 (arm_canonicalize_syscall): New function.
14728 (arm_all_but_pc_registers_record): New function.
14729 (arm_linux_syscall_record): New function.
14730 (arm_linux_init_abi): Add syscall recording constructs.
14731 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14732 decoding. (arm_record_coproc_data_proc): Update arm syscall
14733 decoding.
14734 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14735 <arm_syscall_record>: New field.
14736 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14737 gdb_target_obs.
14738
9904a494
OJ
147392014-01-15 Omair Javaid <omair.javaid@linaro.org>
14740
14741 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14742 register for push instruction recording.
14743
f969241e
OJ
147442014-01-15 Omair Javaid <omair.javaid@linaro.org>
14745
14746 * arm-tdep.c (thumb_record_misc): Update to correct logical
14747 error while recording ldm, ldmia and pop instructions.
14748
bfbbec00
OJ
147492014-01-15 Omair Javaid <omair.javaid@linaro.org>
14750
14751 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14752
e40adcc9
PA
147532014-01-15 Pedro Alves <palves@redhat.com>
14754
14755 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14756 (go32_resume, go32_fetch_registers, store_register)
14757 (go32_store_registers, go32_prepare_to_store)
14758 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14759 (go32_create_inferior, go32_can_run, go32_terminal_init)
14760 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14761 declarations.
14762
b0a16e66
TT
147632014-01-15 Tom Tromey <tromey@redhat.com>
14764
14765 * target.h (async_callback_ftype): New typedef.
14766 (struct target_ops) <to_async>: Use it.
14767
bf7105a4
JB
147682014-01-15 Joel Brobecker <brobecker@adacore.com>
14769
14770 * python/py-value.c (get_field_type): Remove unnecessary curly
14771 braces for single-statement if block.
14772
a8f35c2e
JB
147732014-01-15 Joel Brobecker <brobecker@adacore.com>
14774
14775 * python/py-type.c (convert_field): Add missing empty line
14776 after declarations.
14777
bb4142cf
DE
147782014-01-14 Doug Evans <dje@google.com>
14779
14780 * symfile.h (expand_symtabs_matching): Renamed from
14781 expand_partial_symbol_names. Update prototype.
14782 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14783 * symfile.c (expand_symtabs_matching): Renamed from
14784 expand_partial_symbol_names. New args file_matcher, kind.
14785 Rename arg fun to symbol_matcher.
14786 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14787 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14788 ada_expand_partial_symbol_name.
14789 (ada_make_symbol_completion_list): Update to call
14790 expand_symtabs_matching.
14791 (ada_add_global_exceptions): Call expand_symtabs_matching.
14792 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14793 call map_symbol_filenames.
14794 * symtab.c (sources_info): Update to call map_symbol_filenames.
14795 (search_symbols): Call expand_symtabs_matching.
14796 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14797 (default_make_symbol_completion_list_break_on): Update to call
14798 expand_symtabs_matching.
14799 (make_source_files_completion_list): Update to call
14800 map_symbol_filenames.
14801
206f2a57
DE
148022014-01-14 Doug Evans <dje@google.com>
14803
14804 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14805 (expand_symtabs_symbol_matcher_ftype): New typedef.
14806 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14807 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14808 * symfile.c (expand_partial_symbol_names): Update to use
14809 expand_symtabs_symbol_matcher_ftype.
14810 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14811 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14812 Arg name_matcher renamed to symbol_matcher.
14813 * psymtab.c (recursively_search_psymtabs): Update to use
14814 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14815 sym_matcher.
14816 (expand_symtabs_matching_via_partial): Update to use
14817 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14818 Arg name_matcher renamed to symbol_matcher.
14819
540c2971
DE
148202014-01-14 Doug Evans <dje@google.com>
14821
14822 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14823 (map_partial_symbol_filenames): Ditto.
14824 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14825 (map_partial_symbol_filenames): Ditto.
14826 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14827 (map_partial_symbol_filenames): Ditto.
14828 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14829 (map_partial_symbol_filenames): Ditto.
14830 * symtab.c: Delete #include "psymtab.h".
14831
8213266a
PA
148322014-01-14 Pedro Alves <palves@redhat.com>
14833 Tom Tromey <tromey@redhat.com>
14834
14835 * infrun.c (use_displaced_stepping): Use find_record_target
14836 instead of RECORD_IS_USED.
14837 (adjust_pc_after_break): Use record_full_is_used instead of
14838 RECORD_IS_USED.
14839 * record-btrace.c (record_btrace_open): Call record_preopen
14840 instead of checking RECORD_IS_USED.
14841 * record-full.c (record_full_shortname)
14842 (record_full_core_shortname): New globals.
14843 (record_full_is_used): New function.
14844 (find_full_open): Call record_preopen instead of checking
14845 RECORD_IS_USED.
14846 (init_record_full_ops): Set the target's shortname to
14847 record_full_shortname.
14848 (init_record_full_core_ops): Set the target's shortname to
14849 record_full_core_shortname.
14850 * record-full.h (record_full_is_used): Declare.
14851 * record.c (find_record_target): Make extern.
14852 (record_preopen): New function.
14853 * record.h (RECORD_IS_USED): Delete macro.
14854 (find_record_target, record_preopen): Declare functions.
14855
7ec1862d
YQ
148562014-01-14 Yao Qi <yao@codesourcery.com>
14857
14858 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14859 'len''s type to ULONGEST.
14860 (core_xfer_shared_libraries_aix): Likewise.
14861 * gdbarch.c, gdbarch.h: Regenerated.
14862 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14863 Change type of 'len' to ULONGEST.
14864 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14865 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14866
dea80a27
YQ
148672014-01-14 Yao Qi <yao@codesourcery.com>
14868
14869 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14870 type of 'len' to ULONGEST.
14871 (linux_xfer_osdata_processgroups): Likewise.
14872 (linux_xfer_osdata_threads): Likewise.
14873 (linux_xfer_osdata_fds): Likewise.
14874 (linux_xfer_osdata_isockets): Likewise.
14875 (linux_xfer_osdata_shm): Likewise.
14876 (linux_xfer_osdata_sem): Likewise.
14877 (linux_xfer_osdata_msg): Likewise.
14878 (linux_common_xfer_osdata): Likewise.
14879 (struct osdata_type) <getter>: Likewise.
14880 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14881 the declaration.
14882
b55e14c7
YQ
148832014-01-14 Yao Qi <yao@codesourcery.com>
14884
14885 * target.h (target_xfer_partial_ftype): Update.
14886 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14887 ULONGEST.
14888 * aix-thread.c (aix_thread_xfer_partial): Change type of
14889 argument 'len' to ULONGEST.
14890 * auxv.c (procfs_xfer_auxv): Likewise.
14891 (ld_so_xfer_auxv): Likewise.
14892 (memory_xfer_auxv): Likewise.
14893 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14894 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14895 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14896 * corelow.c (core_xfer_partial): Likewise.
14897 * ctf.c (ctf_xfer_partial): Likewise.
14898 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14899 '%u'.
14900 (darwin_read_dyld_info): Likewise.
14901 (darwin_xfer_partial): Likewise.
14902 * exec.c (section_table_xfer_memory_partial): Likewise.
14903 (exec_xfer_partial): Likewise.
14904 * exec.h (section_table_xfer_memory_partial): Update
14905 declaration.
14906 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14907 instead of plongest.
14908 (gnu_xfer_partial): Likewise.
14909 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14910 (ia64_hpux_xfer_solib_got): Likewise.
14911 (ia64_hpux_xfer_partial): Likewise.
14912 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14913 * inf-ptrace.c (inf_ptrace_xfer_partial):
14914 * inf-ttrace.c (inf_ttrace_xfer_partial):
14915 * linux-nat.c (linux_xfer_siginfo): Likewise.
14916 (linux_nat_xfer_partial): Likewise.
14917 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14918 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14919 * monitor.c (monitor_xfer_memory): Likewise.
14920 (monitor_xfer_partial): Likewise.
14921 * procfs.c (procfs_xfer_partial): Likewise.
14922 * record-full.c (record_full_xfer_partial): Likewise.
14923 (record_full_core_xfer_partial): Likewise.
14924 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14925 instead of plongest.
14926 (gdbsim_xfer_partial): Likewise.
14927 * remote.c (remote_xfer_partial): Likewise.
14928 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14929 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14930 declaration.
14931 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14932 (rs6000_xfer_shared_libraries): Likewise.
14933 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14934 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14935 (sparc_xfer_partial): Likewise.
14936 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14937 (spu_xfer_partial): Likewise.
14938 * spu-multiarch.c (spu_xfer_partial): Likewise.
14939 * target.c (target_read_live_memory): Likewise.
14940 (memory_xfer_live_readonly_partial): Likewise.
14941 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14942 (target_xfer_partial, default_xfer_partial): Likewise.
14943 (current_xfer_partial): Likewise.
14944 * tracepoint.c (tfile_xfer_partial): Likewise.
14945 * windows-nat.c (windows_xfer_memory): Likewise. Call
14946 pulongest instead of plongest.
14947 (windows_xfer_partial): Likewise.
14948 (windows_xfer_shared_libraries): Likewise.
14949
05804640
YQ
149502014-01-14 Yao Qi <yao@codesourcery.com>
14951
14952 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14953 target_xfer_partial_ftype.
14954
b5b08fb4
SC
149552014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14956
14957 PR python/15464
14958 PR python/16113
14959 * valops.c (value_struct_elt_bitpos): New function
14960 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14961 object to 'None' if the field name is an empty string ("").
14962 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14963 attribute to look for a field when 'name' is 'None'.
14964 (get_field_type): New function
14965
13aaf454
DE
149662014-01-13 Doug Evans <dje@google.com>
14967
14968 PR symtab/16426
14969 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14970 (try_open_dwop_file): Ditto.
14971 * gdb_bfd.c: #include "vec.h".
14972 (bfdp): New typedef.
14973 (struct gdb_bfd_data): New member included_bfds.
14974 (gdb_bfd_unref): Unref all included bfds.
14975 (gdb_bfd_record_inclusion): New function.
14976 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14977
c2cec97c
TT
149782014-01-13 Tom Tromey <tromey@redhat.com>
14979
14980 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14981
78e5999d
TT
149822014-01-13 Tom Tromey <tromey@redhat.com>
14983
14984 * defs.h (use_windows): Remove.
14985 * gdb.c (main): Update.
14986 * main.c (captured_main, gdb_main): Update.
14987 * main.h (struct captured_main_args) <use_windows>: Remove.
14988 * top.c (use_windows): Remove.
14989
f2052bbe
TT
149902014-01-13 Tom Tromey <tromey@redhat.com>
14991
14992 * defs.h (deprecated_flush_hook): Remove.
14993
fde4f8ed
JK
149942014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14995
14996 PR threads/16216
14997 * linux-thread-db.c (try_thread_db_load): Add parameter
14998 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14999 (try_thread_db_load_from_pdir_1): Move it there from here.
15000 (try_thread_db_load_from_sdir): Update caller.
15001 (try_thread_db_load_from_dir): Move it there from here.
15002
bdf61915
PP
150032014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15004
15005 * regformats/regdat.sh: Always rewrite the register file.
15006
f71e1a8d
PA
150072014-01-13 Pedro Alves <palves@redhat.com>
15008
15009 * Makefile.in (CHECK_HEADERS): New variable.
15010 (check-headers:): New rule.
15011
42c85435
TT
150122014-01-13 Tom Tromey <tromey@redhat.com>
15013
15014 * cli/cli-setshow.c (do_set_command): Update.
15015 * defs.h (deprecated_set_hook): Remove.
15016 * top.c (deprecated_set_hook): Remove.
15017
f8de5129
PA
150182014-01-13 Pedro Alves <palves@redhat.com>
15019
15020 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15021 the tracepoint if the PC is a pseudo-register.
15022
fc270c35
TT
150232014-01-13 Tom Tromey <tromey@redhat.com>
15024
15025 * defs.h (XCALLOC): Remove.
15026 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15027 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15028 * dwarf2loc.c (allocate_piece_closure): Likewise.
15029 * elfread.c (elf_symfile_segments): Likewise.
15030 (elf_symfile_segments): Likewise.
15031 * gdbtypes.c (copy_type_recursive): Likewise.
15032 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15033 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15034 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15035 XCALLOC.
15036 * mt-tdep.c (mt_gdbarch_init): Likewise.
15037 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15038 XCALLOC.
15039 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15040 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15041 * registry.c (registry_alloc_data): Likewise.
15042 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15043 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15044 * serial.c (serial_fdopen_ops): Likewise.
15045 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15046 XCALLOC.
15047 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15048 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15049 not XCALLOC.
15050
70ba0933
TT
150512014-01-13 Tom Tromey <tromey@redhat.com>
15052
15053 * defs.h (XMALLOC): Remove.
15054 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15055 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15056 * cli-out.c (struct ui_out *): Likewise.
15057 * cli/cli-dump.c (add_dump_command): Likewise.
15058 (add_dump_command): Likewise.
15059 * complaints.c (get_complaints): Likewise.
15060 (find_complaint): Likewise.
15061 * dwarf2-frame.c (execute_cfa_program): Likewise.
15062 * dwarf2read.c (abbrev_table_read_table): Likewise.
15063 * gdbarch.sh: Likewise.
15064 * gdbarch.c: Rebuild.
15065 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15066 * interps.c (interp_new): Likewise.
15067 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15068 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15069 * mi/mi-console.c (mi_console_file_new): Likewise.
15070 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15071 * mi/mi-out.c (mi_out_new): Likewise.
15072 * mi/mi-parse.c (mi_parse): Likewise.
15073 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15074 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15075 * observer.c (xalloc_observer_list_node): Likewise.
15076 * regcache.c (regcache_xmalloc_1): Likewise.
15077 * reggroups.c (reggroup_new): Likewise.
15078 (_initialize_reggroup): Likewise.
15079 * registry.c (register_data_with_cleanup): Likewise.
15080 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15081 * ser-base.c (serial_ttystate): Likewise.
15082 * ser-mingw.c (make_pipe_state): Likewise.
15083 * ser-pipe.c (pipe_open): Likewise.
15084 * serial.c (serial_open): Likewise.
15085 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15086 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15087 (tui_alloc_win_info): Likewise.
15088 (tui_add_content_elements): Likewise.
15089 * tui/tui-file.c (tui_file_new): Likewise.
15090 * tui/tui-out.c (tui_out_new): Likewise.
15091 * ui-file.c (mem_file_new): Likewise.
15092 * ui-out.c (push_level): Likewise.
15093 (make_cleanup_ui_out_end): Likewise.
15094 (append_header_to_list): Likewise.
15095 (ui_out_new): Likewise.
15096 * user-regs.c (user_reg_add_builtin): Likewise.
15097
41bf6aca
TT
150982014-01-13 Tom Tromey <tromey@redhat.com>
15099
15100 * defs.h (XZALLOC): Remove.
15101 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15102 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15103 (get_ada_tasks_inferior_data): Likewise.
15104 * auto-load.c (get_auto_load_pspace_data): Likewise.
15105 * auxv.c (get_auxv_inferior_data): Likewise.
15106 * bfd-target.c (target_bfd_reopen): Likewise.
15107 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15108 (deprecated_insert_raw_breakpoint): Likewise.
15109 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15110 * corelow.c (core_open): Likewise.
15111 * darwin-nat.c (darwin_check_new_threads): Likewise.
15112 (darwin_attach_pid): Likewise.
15113 * dummy-frame.c (dummy_frame_push): Likewise.
15114 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15115 * dwarf2loc.c (allocate_piece_closure): Likewise.
15116 * elfread.c (elf_symfile_segments): Likewise.
15117 * eval.c (ptrmath_type_p): Likewise.
15118 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15119 * gdbtypes.c (alloc_type_arch): Likewise.
15120 (alloc_type_instance): Likewise.
15121 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15122 * inf-child.c (inf_child_can_use_agent): Likewise.
15123 * inflow.c (get_inflow_inferior_data): Likewise.
15124 * infrun.c (save_infcall_suspend_state): Likewise.
15125 * jit.c (jit_reader_load): Likewise.
15126 (get_jit_objfile_data): Likewise.
15127 (get_jit_program_space_data): Likewise.
15128 (jit_object_open_impl): Likewise.
15129 (jit_symtab_open_impl): Likewise.
15130 (jit_block_open_impl): Likewise.
15131 (jit_frame_sniffer): Likewise.
15132 * linux-fork.c (add_fork): Likewise.
15133 * maint.c (make_command_stats_cleanup): Likewise.
15134 * objfiles.c (get_objfile_pspace_data): Likewise.
15135 * opencl-lang.c (struct lval_closure): Likewise.
15136 * osdata.c (osdata_start_osdata): Likewise.
15137 * progspace.c (new_address_space): Likewise.
15138 (add_program_space): Likewise.
15139 * remote-sim.c (get_sim_inferior_data): Likewise.
15140 * sh-tdep.c (sh_gdbarch_init): Likewise.
15141 * skip.c (Ignore): Likewise.
15142 (skip_delete_command): Likewise.
15143 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15144 (library_list_start_library): Likewise.
15145 (solib_aix_current_sos): Likewise.
15146 * solib-darwin.c (get_darwin_info): Likewise.
15147 (darwin_current_sos): Likewise.
15148 * solib-dsbt.c (get_dsbt_info): Likewise.
15149 * solib-ia64-hpux.c (new_so_list): Likewise.
15150 (ia64_hpux_get_solib_linkage_addr): Likewise.
15151 * solib-spu.c (append_ocl_sos): Likewise.
15152 (spu_current_sos): Likewise.
15153 * solib-svr4.c (get_svr4_info): Likewise.
15154 (svr4_keep_data_in_core): Likewise.
15155 (library_list_start_library): Likewise.
15156 (svr4_default_sos): Likewise.
15157 (svr4_read_so_list): Likewise.
15158 * solib-target.c (library_list_start_library): Likewise.
15159 (solib_target_current_sos): Likewise.
15160 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15161 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15162 * symfile.c (default_symfile_segments): Likewise.
15163 * target-descriptions.c (tdesc_data_init): Likewise.
15164 (tdesc_create_reg): Likewise.
15165 (struct tdesc_type *): Likewise.
15166 (tdesc_create_vector): Likewise.
15167 (tdesc_set_struct_size): Likewise.
15168 (struct tdesc_type *): Likewise.
15169 (tdesc_free_feature): Likewise.
15170 (tdesc_create_feature): Likewise.
15171 * windows-nat.c (windows_add_thread): Likewise.
15172 (windows_make_so): Likewise.
15173 * xml-support.c (gdb_xml_body_text): Likewise.
15174 (gdb_xml_create_parser_and_cleanup): Likewise.
15175 (xml_process_xincludes): Likewise.
15176 * xml-syscall.c (allocate_syscalls_info): Likewise.
15177 (syscall_create_syscall_desc): Likewise.
15178
5acfdbae
SDJ
151792014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15180
15181 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15182 function, with code from i386_stap_parse_special_token.
15183 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15184 (i386_stap_parse_special_token): Move code to the two functions
15185 above; simplify it.
15186
0000e5cc
PA
151872014-01-09 Pedro Alves <palves@redhat.com>
15188 Hui Zhu <hui@codesourcery.com>
15189
15190 PR gdb/16101
15191 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15192 bp_err_string. Don't mark the location shlib_disabled if the
15193 error thrown wasn't a generic or memory error. Catch errors
15194 thrown while inserting breakpoints in overlayed code. Output
15195 error message of software breakpoints.
15196 * remote.c (remote_insert_breakpoint): If this breakpoint has
15197 target-side commands but this stub doesn't support Z0 packets,
15198 throw NOT_SUPPORTED_ERROR error.
15199 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15200 * target.h (target_insert_breakpoint): Extend comment.
15201 (target_insert_hw_breakpoint): Add comment.
15202
b7ea362b
PA
152032014-01-08 Pedro Alves <palves@redhat.com>
15204
15205 * remote.c (remote_add_thread): Add threads silently if starting
15206 up.
15207 (remote_notice_new_inferior): If in all-stop, and starting up,
15208 don't call notice_new_inferior.
15209 (get_current_thread): New function, factored out from ...
15210 (add_current_inferior_and_thread): ... this. Adjust.
15211 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15212 found any thread, then select the remote's current thread as GDB's
15213 current thread too.
15214
b7bba001
JB
152152014-01-08 Joel Brobecker <brobecker@adacore.com>
15216
15217 * NEWS: Create a new section for the next release branch.
15218 Rename the section of the current branch, now that it has
15219 been cut.
15220
16dfbded
JB
152212014-01-08 Joel Brobecker <brobecker@adacore.com>
15222
15223 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15224 * version.in: Bump version to 7.7.50.DATE-cvs.
15225
22c90ac1
YQ
152262014-01-08 Yao Qi <yao@codesourcery.com>
15227
15228 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15229 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15230 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15231
d64ad97c
YQ
152322014-01-08 Yao Qi <yao@codesourcery.com>
15233
15234 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15235 return value of bfd_get_filename to symbol_file_add_from_bfd.
15236
f93ba80c
PM
152372014-01-08 Pierre Muller <muller@sourceware.org>
15238
15239 Fix PR16201.
15240 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15241 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15242 to prim_record_mininal_symbol_and_info.
15243 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15244 in call to prim_record_minimal_symbol_and_info.
15245 (read_pe_exported_syms): Set index field of section_data.
15246
a4d9ba85
AP
152472014-01-07 Andrew Pinski <apinski@cavium.com>
15248
15249 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15250 * features/aarch64.c: Regenerate.
15251
1b67eb02
AS
152522014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15253
15254 * target.c (return_null): Define.
15255 (update_current_target): Use it instead of return_zero for
15256 functions that return a pointer.
15257
5e3f4fab
EBM
152582014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15259
15260 * source.c (add_path): Fix check for duplicated paths in the previously
15261 included paths.
15262
e2616788
HK
152632014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15264
15265 * ada-lang.c: Remove duplicated include statements.
15266 * alphabsd-nat.c: Ditto.
15267 * amd64-darwin-tdep.c: Ditto.
15268 * amd64fbsd-nat.c: Ditto.
15269 * auto-load.c: Ditto.
15270 * ax-gdb.c: Ditto.
15271 * breakpoint.c: Ditto.
15272 * dbxread.c: Ditto.
15273 * fork-child.c: Ditto.
15274 * gdb_usleep.c: Ditto.
15275 * i386-darwin-tdep.c: Ditto.
15276 * i386fbsd-nat.c: Ditto.
15277 * infcmd.c: Ditto.
15278 * inferior.c: Ditto.
15279 * jv-lang.c: Ditto.
15280 * linux-nat.c: Ditto.
15281 * linux-tdep.c: Ditto.
15282 * m68kbsd-nat.c: Ditto.
15283 * m68klinux-nat.c: Ditto.
15284 * microblaze-tdep.c: Ditto.
15285 * mips-linux-tdep.c: Ditto.
15286 * mn10300-tdep.c: Ditto.
15287 * nto-tdep.c: Ditto.
15288 * opencl-lang.c: Ditto.
15289 * osdata.c: Ditto.
15290 * printcmd.c: Ditto.
15291 * regcache.c: Ditto.
15292 * remote-m32r-sdi.c: Ditto.
15293 * remote.c: Ditto.
15294 * symfile.c: Ditto.
15295 * symtab.c: Ditto.
15296 * tilegx-linux-nat.c: Ditto.
15297 * tilegx-tdep.c: Ditto.
15298 * tracepoint.c: Ditto.
15299 * valops.c: Ditto.
15300 * vaxbsd-nat.c: Ditto.
15301 * windows-nat.c: Ditto.
15302 * xtensa-tdep.c: Ditto.
15303
bd1f7788
YQ
153042014-01-07 Yao Qi <yao@codesourcery.com>
15305
15306 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15307
79301218
JB
153082014-01-07 Yao Qi <yao@codesourcery.com>
15309 Joel Brobecker <brobecker@adacore.com>
15310
15311 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15312 (pdc_write_regs): Likewise.
15313 (fetch_regs_kernel_thread): Likewise.
15314 (store_regs_kernel_thread): Likewise.
15315
153162014-01-07 Joel Brobecker <brobecker@adacore.com>
15317
15318 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15319 tagged type objects to their actual type.
15320
8e355c5d
JB
153212014-01-07 Joel Brobecker <brobecker@adacore.com>
15322
15323 * ada-valprint.c (print_field_values): Add "language" parameter.
15324 Update calls to print_field_values and print_variant_part.
15325 Pass new parameter "language" in call to val_print instead
15326 of "current_language". Replace call to ada_val_print by call
15327 to val_print.
15328 (print_variant_part): Add "language" parameter.
15329 (ada_val_print_struct_union): Update call to print_field_values.
15330
4fbf5aa5
JB
153312014-01-07 Joel Brobecker <brobecker@adacore.com>
15332
15333 * ada-valprint.c (ui_memcpy): Delete.
15334 (ada_print_floating): Update documentation. Add empty line
15335 between between function documentation and implementation.
15336 Delete variable "buffer". Use ui_file_xstrdup in place of
15337 ui_file_put. Minor adjustments following this change.
15338
71855601
JB
153392014-01-07 Joel Brobecker <brobecker@adacore.com>
15340
15341 * ada-valprint.c (ada_val_print_string): New function,
15342 extracted from ada_val_print_array.
15343 (ada_val_print_array): Replace extracted code by call
15344 to ada_val_print_string followed by a return. Move
15345 "else" branch to the function's top block.
15346
4eb27a30
JB
153472014-01-07 Joel Brobecker <brobecker@adacore.com>
15348
15349 * ada-valprint.c (ada_val_print_array): Move implementation
15350 down. Rename parameter "offset" and "val" into "offset_aligned"
15351 and "original_value" respectively. Add parameter "offset".
15352
34b27950
JB
153532014-01-07 Joel Brobecker <brobecker@adacore.com>
15354
15355 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15356 re-organizing the code. Change the "???" message printed
15357 when target type is a TYPE_CODE_UNDEF into
15358 "<ref to undefined type>".
15359
079e4591
JB
153602014-01-07 Joel Brobecker <brobecker@adacore.com>
15361
15362 * ada-valprint.c (print_record): Delete, implementation inlined...
15363 (ada_val_print_struct_union): ... here. Remove call to
15364 ada_check_typedef in inlined implementation.
15365
8004dfd1
JB
153662014-01-07 Joel Brobecker <brobecker@adacore.com>
15367
15368 * ada-valprint.c (ada_val_print_gnat_array): New function,
15369 extracted from ada_val_print_1;
15370 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15371 (ada_val_print_flt, ada_val_print_struct_union)
15372 (ada_val_print_ref): Likewise.
15373 (ada_val_print_1): Delete variables i and elttype.
15374 Replace extracted-out code by call to corresponding
15375 new functions.
15376
760a2db0
JB
153772014-01-07 Joel Brobecker <brobecker@adacore.com>
15378
15379 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15380
3a92c861
JB
153812014-01-07 Joel Brobecker <brobecker@adacore.com>
15382
15383 * ada-valprint.c (ada_val_print_1): Replace calls to
15384 ada_val_print_1 by calls to val_print.
15385
cd1630f9
JB
153862014-01-07 Joel Brobecker <brobecker@adacore.com>
15387
15388 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15389 Update calls to self accordingly. Replace calls to c_val_print
15390 by calls to val_print.
15391
bdf779a0
JB
153922014-01-07 Joel Brobecker <brobecker@adacore.com>
15393
15394 * ada-valprint.c (print_record): Delete declaration.
15395 (adjust_type_signedness, ada_val_print_1): Likewise.
15396 (ada_val_print): Move function implementation down.
15397 (print_variant_part, print_field_values, print_record):
15398 Move function implementation up.
15399
c0d48811
JB
154002014-01-07 Joel Brobecker <brobecker@adacore.com>
15401
15402 * python/py-type.c (typy_get_name): New function.
15403 (type_object_getset): Add entry for attribute "name".
15404 * NEWS: Add entry mentioning this new attribute.
15405
c26e9cbb
YQ
154062014-01-07 Yao Qi <yao@codesourcery.com>
15407
15408 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15409 statement.
15410
0cc6f43d
YQ
154112014-01-07 Yao Qi <yao@codesourcery.com>
15412
15413 * gnu-nat.c (info_port_rights): Add qualifier const to
15414 argument args.
15415
eec03155
YQ
154162014-01-07 Yao Qi <yao@codesourcery.com>
15417
15418 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15419
f04a82ef
YQ
154202014-01-07 Yao Qi <yao@codesourcery.com>
15421
15422 * gnu-nat.c (make_inf) Update declaration.
15423 (make_inf): Make it static.
15424 (inf_set_traced): Likewise.
15425 (inf_port_to_thread, inf_task_died_status): Likewise.
15426
d57dda0a
YQ
154272014-01-07 Yao Qi <yao@codesourcery.com>
15428
15429 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15430
3aa8c969
YQ
154312014-01-07 Yao Qi <yao@codesourcery.com>
15432
15433 * gnu-nat.c (_initialize_gnu_nat): Declare.
15434
94123b4f
YQ
154352014-01-07 Yao Qi <yao@codesourcery.com>
15436
15437 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15438 'enum bfd_endian'.
15439 (struct gdbarch_info) <byte_order>: Change type to
15440 'enum bfd_endian'.
15441 <byte_order_for_code>: Likewise.
15442 * gdbarch.c, gdbarch.h: Regenerated.
15443
dc81d70a
TT
154442014-01-06 Sasha Smundak <asmundak@google.com>
15445
15446 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15447
cc2f3c35
TT
154482014-01-06 Tom Tromey <tromey@redhat.com>
15449
15450 * doublest.c (convert_doublest_to_floatformat): Use const, not
15451 CONST.
15452 * somread.c (som_symtab_read): Likewise.
15453
adcf2eed
HZ
154542014-01-07 Hui Zhu <hui@codesourcery.com>
15455
15456 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15457 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15458 (gdb_bfd_fopen): Ditto.
15459 (gdb_bfd_openr): Ditto.
15460 (gdb_bfd_openw): Ditto.
15461 (gdb_bfd_openr_iovec): Ditto.
15462 (gdb_bfd_fdopenr): Ditto.
15463 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15464 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15465 with xstrdup.
15466 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15467 with xstrdup.
15468 * symfile-mem.c (symbol_file_add_from_memory): Removed
15469 gdb_bfd_stash_filename.
15470
50722198
DE
154712014-01-03 Doug Evans <dje@google.com>
15472
15473 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15474 output.
15475
2fa4b862
JB
154762014-01-01 Joel Brobecker <brobecker@adacore.com>
15477
15478 Update year range in copyright notice of all files.
15479
28498c42
JB
154802014-01-01 Joel Brobecker <brobecker@adacore.com>
15481
15482 * top.c (print_gdb_version): Set copyright year to 2014.
15483
7b6e1046
JB
154842014-01-01 Joel Brobecker <brobecker@adacore.com>
15485
15486 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15487
df96af55 15488For older changes see ChangeLog-2013.
c906108c
SS
15489\f
15490Local Variables:
15491mode: change-log
15492left-margin: 8
15493fill-column: 74
15494version-control: never
57da7796 15495coding: utf-8
c906108c 15496End:
This page took 2.418921 seconds and 4 git commands to generate.