[AArch64] Cortex-A53 Erratum 835769 -- sort maps
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a441dfbc
ST
12014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
2
3 Pushed by Joel Brobecker <brobecker@adacore.com>
4 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
5 elements pi_len by the size of the elements before calling
6 vm_deallocate.
7 (inf_validate_task_sc): Likewise, and properly deallocate the
8 noise array.
9
4c9e8482
DE
102014-11-23 Doug Evans <xdje42@gmail.com>
11
12 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
13 number and name if present. All callers updated.
14 (dump_fn_fieldlists): Fix indentation of args.
15
15ee0bbd
PP
162014-11-23 Patrick Palka <patrick@parcs.ath.cx>
17
18 * MAINTAINERS (Write After Approval): Add myself.
19
e8af5d7a
JB
202014-11-23 Joel Brobecker <brobecker@adacore.com>
21
22 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
23 to a bp_call_dummy breakpoint type.
24
a344fc09
PP
252014-11-23 Patrick Palka <patrick@parcs.ath.cx>
26
27 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
28 registering the signal handler.
29
d64e57fa
PP
302014-11-23 Patrick Palka <patrick@parcs.ath.cx>
31
32 * event-top.h (call_stdin_event_handler_again_p): Declare.
33 * event-top.c (call_stdin_event_handler_again_p): Define.
34 (stdin_event_handler): Use it.
35 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
36 handler again if there is pending input following a
37 start sequence.
38
6f9d33d8
PP
392014-11-23 Patrick Palka <patrick@parcs.ath.cx>
40
41 Pushed by Joel Brobecker <brobecker@adacore.com>
42 * linux-fork.c (checkpoint_command): Print index of new
43 checkpoint in response message.
44
88db67ef
YQ
452014-11-23 Yao Qi <yao@codesourcery.com>
46
47 * valprint.c (read_string): Move local variables 'found_nul',
48 'chunksize' and 'limit' to inner scope. Update comments.
49
01465b56
DE
502014-11-22 Doug Evans <xdje42@gmail.com>
51
52 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
53 function comment.
54 (search_symbols): Fix comments and whitespace.
55
07a1c2c3
DE
562014-11-22 Doug Evans <xdje42@gmail.com>
57
58 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
59
b2a919a8
DE
602014-11-21 Doug Evans <dje@google.com>
61
62 * psymtab.c (psymtab_search_name): Fix whitespace.
63
278289d5
YQ
642014-11-21 Yao Qi <yao@codesourcery.com>
65
66 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
67 errno.
68 * gnulib/import/Makefile.am: Re-generated.
69 * gnulib/import/Makefile.in: Likewise.
70 * gnulib/import/m4/gnulib-cache.m4: Likewise.
71
e01e2baa
YQ
722014-11-21 Yao Qi <yao@codesourcery.com>
73
74 * gdb_wchar.h: Include wchar.h and wctype.h.
75 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
76 include wchar.h and wctype.h.
77 Don't check HAVE_WCHAR_H.
78
f0c00af8
YQ
792014-11-21 Yao Qi <yao@codesourcery.com>
80
81 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
82 and wctype-h.
83 * gnulib/import/Makefile.am: Re-generated.
84 * gnulib/import/Makefile.in: Likewise.
85 * gnulib/import/m4/gnulib-cache.m4: Likewise.
86
0cae13bb
YQ
872014-11-21 Yao Qi <yao@codesourcery.com>
88
89 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
90 memchr.
91 * gnulib/import/Makefile.am: Re-generated.
92 * gnulib/import/Makefile.in: Likewise.
93 * gnulib/import/m4/gnulib-cache.m4: Likewise.
94
9c232dda
YQ
952014-11-21 Yao Qi <yao@codesourcery.com>
96
97 * common/common-defs.h: Include alloca.h
98 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
99 * configure: Re-generated.
100 * defs.h: Remove code handling alloca.
101 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
102 or not.
103
00d7f58f
YQ
1042014-11-21 Yao Qi <yao@codesourcery.com>
105
106 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
107 alloca.
108 * gnulib/import/Makefile.am: Re-generated.
109 * gnulib/import/Makefile.in: Likewise..
110 * gnulib/import/m4/gnulib-cache.m4: Likewise.
111
6068ad5d
YQ
1122014-11-21 Yao Qi <yao@codesourcery.com>
113
114 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
115 alphabetical order.
116
45e44d27
JB
1172014-11-21 Joel Brobecker <brobecker@adacore.com>
118
119 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
120 flag_unsigned if HIGH_BOUND is constant and negative.
121
7e7cbeb3
SDJ
1222014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
123
124 PR breakpoints/10737
125 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
126 modifier from "struct gdbarch" when compiling without Expat (XML)
127 support.
128 (get_syscall_by_number): Likewise.
129 (get_syscall_by_name): Likewise.
130 (get_syscall_names): Likewise.
131
458c8db8
SDJ
1322014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
133
134 PR breakpoints/10737
135 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
136 set_xml_syscall_file_name to provide gdbarch.
137 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
138 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
139 * breakpoint.c (print_it_catch_syscall): Adjust call to
140 get_syscall_by_number to provide gdbarch.
141 (print_one_catch_syscall): Likewise.
142 (print_mention_catch_syscall): Likewise.
143 (print_recreate_catch_syscall): Likewise.
144 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
145 and get_syscall_by_name to provide gdbarch.
146 (catch_syscall_completer): Adjust call to get_syscall_names to
147 provide gdbarch.
148 * gdbarch.c: Regenerate.
149 * gdbarch.h: Likewise.
150 * gdbarch.sh: Forward declare "struct syscalls_info".
151 (xml_syscall_file): New variable.
152 (syscalls_info): Likewise.
153 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
154 set_xml_syscall_file_name to provide gdbarch.
155 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
156 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
157 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
158 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
159 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
160 * xml-syscall.c: Include gdbarch.h.
161 (set_xml_syscall_file_name): Accept gdbarch parameter.
162 (get_syscall_by_number): Likewise.
163 (get_syscall_by_name): Likewise.
164 (get_syscall_names): Likewise.
165 (my_gdb_datadir): Delete global variable.
166 (struct syscalls_info) <my_gdb_datadir>: New variable.
167 (struct syscalls_info) <sysinfo>: Rename variable to
168 "syscalls_info".
169 (sysinfo): Delete global variable.
170 (have_initialized_sysinfo): Likewise.
171 (xml_syscall_file): Likewise.
172 (sysinfo_free_syscalls_desc): Rename to...
173 (syscalls_info_free_syscalls_desc): ... this.
174 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
175 code to the new layout of "struct syscalls_info".
176 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
177 "syscalls_info".
178 (syscall_create_syscall_desc): Likewise.
179 (syscall_start_syscall): Likewise.
180 (syscall_parse_xml): Likewise.
181 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
182 (init_sysinfo): Rename to...
183 (init_syscalls_info): ...this. Add gdbarch as a parameter.
184 Adjust function to deal with gdbarch.
185 (xml_get_syscall_number): Delete parameter sysinfo. Accept
186 gdbarch as a parameter. Adjust code.
187 (xml_get_syscall_name): Likewise.
188 (xml_list_of_syscalls): Likewise.
189 (set_xml_syscall_file_name): Accept gdbarch as parameter.
190 (get_syscall_by_number): Likewise.
191 (get_syscall_by_name): Likewise.
192 (get_syscall_names): Likewise.
193 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
194 (get_syscall_by_number): Likewise.
195 (get_syscall_by_name): Likewise.
196 (get_syscall_names): Likewise.
197
43f3e411
DE
1982014-11-20 Doug Evans <xdje42@gmail.com>
199
200 Split struct symtab into two: struct symtab and compunit_symtab.
201 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
202 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
203 to "struct compunit_symtab *". All callers updated.
204 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
205 "struct symtab *" argument to "struct compunit_symtab *".
206 All callers updated.
207 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
208 result to "struct compunit_symtab *". All callers updated.
209 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
210 Change result to "struct compunit_symtab *". All callers updated.
211 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
212 hange type to "struct compunit_symtab *". All uses updated.
213 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
214 Change type to "struct compunit_symtab *". All uses updated.
215 * buildsym.c (struct buildsym_compunit): New struct.
216 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
217 (buildsym_compunit): New static global.
218 (finish_block_internal): Update to fetch objfile from
219 buildsym_compunit.
220 (make_blockvector): Delete objfile argument.
221 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
222 debugformat, producer.
223 (start_buildsym_compunit): New function.
224 (free_buildsym_compunit): Renamed from free_subfiles_list.
225 All callers updated.
226 (patch_subfile_names): Rewrite to use buildsym_compunit.
227 (get_compunit_symtab): New function.
228 (get_macro_table): Delete argument comp_dir. All callers updated.
229 (start_symtab): Change result to "struct compunit_symtab *".
230 All callers updated. Create the subfile of the main source file.
231 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
232 (reset_symtab_globals): Update.
233 (end_symtab_get_static_block): Update to use buildsym_compunit.
234 (end_symtab_without_blockvector): Rewrite.
235 (end_symtab_with_blockvector): Change result to
236 "struct compunit_symtab *". All callers updated.
237 Update to use buildsym_compunit. Don't set symtab->dirname,
238 instead set it in the compunit.
239 Explicitly make sure main symtab is first in its list.
240 Set debugformat, producer, blockvector, block_line_section, and
241 macrotable in the compunit.
242 (end_symtab_from_static_block): Change result to
243 "struct compunit_symtab *". All callers updated.
244 (end_symtab, end_expandable_symtab): Ditto.
245 (set_missing_symtab): Change symtab argument to
246 "struct compunit_symtab *". All callers updated.
247 (augment_type_symtab): Ditto.
248 (record_debugformat): Update to use buildsym_compunit.
249 (record_producer): Update to use buildsym_compunit.
250 * buildsym.h (struct subfile) <dirname>: Delete.
251 <producer, debugformat>: Delete.
252 <buildsym_compunit>: New member.
253 (get_compunit_symtab): Declare.
254 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
255 from primary_symtab. Change type to "struct compunit_symtab *".
256 All uses updated.
257 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
258 All callers updated.
259 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
260 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
261 symtab. Change type to "struct compunit_symtab *". All uses updated.
262 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
263 All callers updated.
264 (dw2_find_last_source_symtab): Ditto.
265 (dw2_lookup_symbol): Ditto.
266 (recursively_find_pc_sect_compunit_symtab): Renamed from
267 recursively_find_pc_sect_symtab. Change result to
268 "struct compunit_symtab *". All callers updated.
269 (dw2_find_pc_sect_compunit_symtab): Renamed from
270 dw2_find_pc_sect_symtab. Change result to
271 "struct compunit_symtab *". All callers updated.
272 (get_compunit_symtab): Renamed from get_symtab. Change result to
273 "struct compunit_symtab *". All callers updated.
274 (recursively_compute_inclusions): Change type of immediate_parent
275 argument to "struct compunit_symtab *". All callers updated.
276 (compute_compunit_symtab_includes): Renamed from
277 compute_symtab_includes. All callers updated. Rewrite to compute
278 includes of compunit_symtabs and not symtabs.
279 (process_full_comp_unit): Update to work with struct compunit_symtab.
280 (process_full_type_unit): Ditto.
281 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
282 (dwarf_decode_lines): Remove special case handling of main subfile.
283 (macro_start_file): Delete argument comp_dir. All callers updated.
284 (dwarf_decode_macro_bytes): Ditto.
285 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
286 use struct compunit_symtab.
287 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
288 * jit.c (finalize_symtab): Build compunit_symtab.
289 * jv-lang.c (get_java_class_symtab): Change result to
290 "struct compunit_symtab *". All callers updated.
291 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
292 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
293 comp_dir. Change type to "struct compunit_symtab *".
294 All uses updated.
295 (new_macro_table): Change comp_dir argument to cust,
296 "struct compunit_symtab *". All callers updated.
297 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
298 nr_primary_symtabs. All uses updated.
299 (count_symtabs_and_blocks): Update to handle compunits.
300 (report_command_stats): Update output, "primary symtabs" renamed to
301 "compunits".
302 * mdebugread.c (new_symtab): Change result to
303 "struct compunit_symtab *". All callers updated.
304 (parse_procedure): Change type of search_symtab argument to
305 "struct compunit_symtab *". All callers updated.
306 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
307 separate loop.
308 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
309 symtabs. Change type to "struct compunit_symtab *". All uses updated.
310 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
311 All uses updated.
312 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
313 All uses updated.
314 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
315 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
316 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
317 symtab. Change type to "struct compunit_symtab *". All uses updated.
318 * psymtab.c (psymtab_to_symtab): Change result type to
319 "struct compunit_symtab *". All callers updated.
320 (find_pc_sect_compunit_symtab_from_partial): Renamed from
321 find_pc_sect_symtab_from_partial. Change result type to
322 "struct compunit_symtab *". All callers updated.
323 (lookup_symbol_aux_psymtabs): Change result type to
324 "struct compunit_symtab *". All callers updated.
325 (find_last_source_symtab_from_partial): Ditto.
326 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
327 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
328 and macro_table from compunit.
329 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
330 type to "struct compunit_symtab *". All callers updated.
331 (debug_qf_lookup_symbol): Ditto.
332 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
333 debug_qf_find_pc_sect_symtab, change result type to
334 "struct compunit_symtab *". All callers updated.
335 * symfile.c (allocate_symtab): Delete objfile argument.
336 New argument cust.
337 (allocate_compunit_symtab): New function.
338 (add_compunit_symtab_to_objfile): New function.
339 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
340 Change result type to "struct compunit_symtab *". All uses updated.
341 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
342 Change result type to "struct compunit_symtab *". All uses updated.
343 * symmisc.c (print_objfile_statistics): Compute blockvector count in
344 separate loop.
345 (dump_symtab_1): Update test for primary source symtab.
346 (maintenance_info_symtabs): Update to handle compunit symtabs.
347 (maintenance_check_symtabs): Ditto.
348 * symtab.c (set_primary_symtab): Delete.
349 (compunit_primary_filetab): New function.
350 (compunit_language): New function.
351 (iterate_over_some_symtabs): Change type of arguments "first",
352 "after_last" to "struct compunit_symtab *". All callers updated.
353 Update to loop over symtabs in each compunit.
354 (error_in_psymtab_expansion): Rename symtab argument to cust,
355 and change type to "struct compunit_symtab *". All callers updated.
356 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
357 Change result type to "struct compunit_symtab *". All callers updated.
358 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
359 Change result type to "struct compunit_symtab *". All callers updated.
360 (find_pc_sect_line): Only loop over symtabs within selected compunit
361 instead of all symtabs in the objfile.
362 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
363 <compunit_symtab> New member.
364 <block_line_section>: Moved to compunit_symtab.
365 <locations_valid>: Ditto.
366 <epilogue_unwind_valid>: Ditto.
367 <macro_table>: Ditto.
368 <dirname>: Ditto.
369 <debugformat>: Ditto.
370 <producer>: Ditto.
371 <objfile>: Ditto.
372 <call_site_htab>: Ditto.
373 <includes>: Ditto.
374 <user>: Ditto.
375 <primary>: Delete
376 (SYMTAB_COMPUNIT): New macro.
377 (SYMTAB_BLOCKVECTOR): Update definition.
378 (SYMTAB_OBJFILE): Update definition.
379 (SYMTAB_DIRNAME): Update definition.
380 (struct compunit_symtab): New type. Common members among all source
381 symtabs within a compilation unit moved here. All uses updated.
382 (COMPUNIT_OBJFILE): New macro.
383 (COMPUNIT_FILETABS): New macro.
384 (COMPUNIT_DEBUGFORMAT): New macro.
385 (COMPUNIT_PRODUCER): New macro.
386 (COMPUNIT_DIRNAME): New macro.
387 (COMPUNIT_BLOCKVECTOR): New macro.
388 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
389 (COMPUNIT_LOCATIONS_VALID): New macro.
390 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
391 (COMPUNIT_CALL_SITE_HTAB): New macro.
392 (COMPUNIT_MACRO_TABLE): New macro.
393 (ALL_COMPUNIT_FILETABS): New macro.
394 (compunit_symtab_ptr): New typedef.
395 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
396
005e2509
JB
3972014-11-20 Joel Brobecker <brobecker@adacore.com>
398
399 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
400 if the TYPE_CODE of range_type's base type does not match
401 the TYPE_CODE of encoding_type's base type.
402
2b0f535a
JB
4032014-11-19 Joel Brobecker <brobecker@adacore.com>
404
405 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
406 it starts with '<'.
407
8908fca5
JB
4082014-11-19 Joel Brobecker <brobecker@adacore.com>
409
410 * ada-lang.c (ada_is_redundant_range_encoding): New function.
411 (ada_is_redundant_index_type_desc): New function.
412 (to_fixed_array_type): Ignore parallel XA type if redundant.
413
4a46959e
JB
4142014-11-19 Joel Brobecker <brobecker@adacore.com>
415
416 * ada-lang.c (constrained_packed_array_type): Set the length
417 of the return array as if both bounds where zero if that
418 returned array's index type is dynamic.
419
2acf986b
YQ
4202014-11-19 Yao Qi <yao@codesourcery.com>
421
422 * config/i386/go32.mh (CC): Remove.
423
439247b6
DE
4242014-11-18 Doug Evans <xdje42@gmail.com>
425
426 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
427 updated.
428
4d663531
DE
4292014-11-18 Doug Evans <xdje42@gmail.com>
430
431 * buildsym.c (buildsym_objfile): New static global.
432 (buildsym_comp_dir): New static global.
433 (finish_block_internal): Delete arg objfile. All callers updated.
434 (finish_block): Delete arg objfile. All callers updated.
435 (start_subfile): Delete arg dirname. All callers updated.
436 (patch_subfile_names): Update buildsym_comp_dir.
437 (get_macro_table): Delete arg objfile. All callers updated.
438 (start_symtab): New arg objfile. All callers updated.
439 Rename arg dirname to comp_dir.
440 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
441 (end_symtab_get_static_block): Delete arg objfile. All callers
442 updated.
443 (end_symtab_without_blockvector): Ditto.
444 (end_symtab_with_blockvector): Ditto.
445 (end_symtab_from_static_block): Ditto.
446 (end_symtab): Ditto.
447 (end_expandable_symtab): Ditto.
448 (augment_type_symtab): Ditto.
449 * coffread.c (coff_start_symtab): New arg objfile. All callers
450 updated.
451
8435453b
DE
4522014-11-18 Doug Evans <xdje42@gmail.com>
453
454 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
455 updated.
456
ee6f8984
DE
4572014-11-18 Doug Evans <xdje42@gmail.com>
458
459 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
460 symtab.dirname updated to use it.
461
eb822aa6
DE
4622014-11-18 Doug Evans <xdje42@gmail.com>
463
464 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
465 symtab.objfile updated to use it.
466
98387a29
DE
4672014-11-18 Doug Evans <xdje42@gmail.com>
468
469 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
470
aff08958
DE
4712014-11-18 Doug Evans <xdje42@gmail.com>
472
473 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
474 SYMBOL_OBJFILE.
475 * findvar.c (default_read_var_value): Ditto.
476 * jv-lang.c (add_class_symtab_symbol): Ditto.
477 * parse.c (operator_check_standard): Ditto.
478 * printcmd.c (address_info): Ditto.
479 * symtab.c (fixup_symbol_section): Ditto.
480 (skip_prologue_sal): Ditto.
481 * tracepoint.c (scope_info): Ditto.
482 * valops.c (find_function_in_inferior): Ditto.
483 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
484 * python/py-symbol.c (set_symbol): Ditto.
485
7bab9b58
DE
4862014-11-18 Doug Evans <xdje42@gmail.com>
487
488 * buildsym.c (main_subfile): New static global.
489 (free_subfiles_list): New function.
490 (start_symtab): Set main_subfile.
491 (restart_symtab): Replace init of subfiles, current_subfile with
492 call to free_subfiles_list.
493 (watch_main_source_file_lossage): Use main_subfile.
494 (reset_symtab_globals): Replace init of current_subfile with call
495 to free_subfiles_list.
496 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
497 functions, split out from ...
498 (end_symtab_from_static_block): ... here. Rewrite to call them.
499
f194fefb
DE
5002014-11-18 Doug Evans <xdje42@gmail.com>
501
502 The result of symtab expansion is always a primary symtab.
503 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
504 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
505 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
506 (psymtab_to_symtab): Add comment and assert.
507 (map_matching_symbols_psymtab): Remove unnecessary test for
508 non-primary symtab.
509
34248c3a
DE
5102014-11-15 Doug Evans <xdje42@gmail.com>
511
512 PR symtab/17559
513 * symtab.c (find_pc_line_symtab): New function.
514 * symtab.h (find_pc_line_symtab): Declare.
515 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
516 find_pc_symtab.
517 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
518 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
519 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
520 * tui/tui-win.c (make_visible_with_new_height): Ditto.
521 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
522 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
523
2097ae25
DE
5242014-11-15 Doug Evans <xdje42@gmail.com>
525
526 * symtab.c (expand_symtab_containing_pc): Renamed from
527 find_pc_sect_symtab_via_partial. All callers updated.
528
1ada499f
YQ
5292014-11-15 Yao Qi <yao@codesourcery.com>
530
531 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
532
355e2102
JB
5332014-11-14 Joel Brobecker <brobecker@adacore.com>
534
535 * common/common-defs.h: Move <stdarg.h> #include ahead of
536 <stdio.h> #include.
537
83030110
PA
5382014-11-14 Pedro Alves <palves@redhat.com>
539
540 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
541 [!PHONY_ICONV] (gdb_iconv): New function.
542 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
543
a8719064
DE
5442014-11-13 Doug Evans <dje@google.com>
545
546 PR symtab/17591
547 * dwarf2read.c (find_slot_in_mapped_hash): Handle
548 "(anonymous namespace)".
549
60f7655a
DE
5502014-11-13 Doug Evans <dje@google.com>
551
552 * dwarf2read.c (update_enumeration_type_from_children): Avoid
553 infinite loop.
554
5784b3ca
JK
5552014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
556
557 * NEWS (maint set target-async): Fix typo.
558
6218dc4b
PA
5592014-11-12 Pedro Alves <palves@redhat.com>
560
561 * infrun.c (enum infwait_states, infwait_state): Delete.
562
af48d08f
PA
5632014-11-12 Pedro Alves <palves@redhat.com>
564
565 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
566 Rewrite stepping over a permanent breakpoint.
567 (thread_still_needs_step_over, proceed): Don't set
568 stepping_over_breakpoint for permanent breakpoints.
569 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
570 single-step breakpoints out of the target on hardware step
571 targets.
572 (process_event_stop_test): If stepping a permanent breakpoint
573 doesn't hit the step-resume breakpoint, delete the step-resume
574 breakpoint.
575 (switch_back_to_stepped_thread): Also check if the stepped thread
576 has advanced already on hardware step targets.
577 (currently_stepping): Return true if the thread stepped a
578 breakpoint.
579
1a853c52
PA
5802014-11-12 Pedro Alves <palves@redhat.com>
581
582 Mark locations as permanent, not the whole breakpoint.
583 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
584 (mark_breakpoints_out): Don't mark permanent breakpoints as
585 uninserted.
586 (breakpoint_init_inferior): Use mark_breakpoints_out.
587 (breakpoint_here_p): Adjust.
588 (bpstat_stop_status, describe_other_breakpoints): Remove handling
589 of permanent breakpoints.
590 (make_breakpoint_permanent): Mark each location as permanent,
591 instead of marking the breakpoint.
592 (add_location_to_breakpoint): If the location is permanent, mark
593 it as such, and as inserted.
594 (init_breakpoint_sal): Don't make the breakpoint permanent here.
595 (bp_location_compare, update_global_location_list): Adjust.
596 (update_breakpoint_locations): Don't make the breakpoint permanent
597 here.
598 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
599 breakpoints.
600 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
601 (struct bp_location) <permanent>: New field.
602 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
603 reference to bp_permanent.
604
ae9bb220
PA
6052014-11-12 Pedro Alves <palves@redhat.com>
606
607 * arch-utils.c (default_skip_permanent_breakpoint): New function.
608 * arch-utils.h (default_skip_permanent_breakpoint): New
609 declaration.
610 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
611 Install default_skip_permanent_breakpoint as default method.
612 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
613 (i386_gdbarch_init): Don't install it.
614 * infrun.c (resume): Assume there's always a
615 gdbarch_skip_permanent_breakpoint implementation.
616 * gdbarch.h, gdbarch.c: Regenerate.
617
015de688
DC
6182014-11-11 Daniel Colascione <dancol@dancol.org>
619
620 Warn about cross-PID-namespace debugging.
621 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
622 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
623 * linux-thread-db.c (check_pid_namespace_match): New function.
624 (thread_db_inferior_created): Call it.
625
26a84859
DE
6262014-11-10 Doug Evans <xdje42@gmail.com>
627
628 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
629 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
630
712a2e6d
DE
6312014-11-10 Doug Evans <xdje42@gmail.com>
632
633 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
634
af3768e9
DE
6352014-11-10 Doug Evans <xdje42@gmail.com>
636
637 PR symtab/17564
638 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
639 (lookup_static_symbol): Move definition to new location and rewrite.
640 (lookup_symbol_in_objfile): New function.
641 (lookup_symbol_global_iterator_cb): Call it.
642
b1f28d99
UW
6432014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
644
645 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
646
b7a084be
PA
6472014-11-07 Pedro Alves <palves@redhat.com>
648
649 * infrun.c (process_event_stop_test) <subroutine check>: Don't
650 check if we did a "nexti" inside a prologue.
651 * symtab.c (in_prologue): Delete function.
652 * symtab.h (in_prologue): Delete declaration.
653
67be31e5
DE
6542014-11-06 Doug Evans <xdje42@gmail.com>
655
656 * symtab.h (lookup_global_symbol): Improve function comment.
657
08724ab7
DE
6582014-11-06 Doug Evans <xdje42@gmail.com>
659
660 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
661 All callers updated.
662 * symtab.h (lookup_global_symbol): Update decl.
663 (lookup_static_symbol): Move decl to better location.
664
d9060ba6
DE
6652014-11-06 Doug Evans <xdje42@gmail.com>
666
667 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
668
74016e12
DE
6692014-11-06 Doug Evans <xdje42@gmail.com>
670
671 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
672 All callers updated.
673 (lookup_symbol_in_all_objfiles): Renamed from
674 lookup_symbol_aux_symtabs. All callers updated.
675 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
676 All callers updated.
677 (lookup_symbol_in_objfile_symtabs): Renamed from
678 lookup_symbol_aux_objfile. All callers updated.
679
d1a2d36d
DE
6802014-11-06 Doug Evans <xdje42@gmail.com>
681
682 * symtab.c (lookup_symbol_in_block): Renamed from
683 lookup_symbol_aux_block. All callers updated.
684
24d864bb
DE
6852014-11-06 Doug Evans <xdje42@gmail.com>
686
687 * symtab.c (lookup_static_symbol): Renamed from
688 lookup_static_symbol_aux. All callers updated.
689 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
690 All callers updated.
691
358d6ab3
DE
6922014-11-06 Doug Evans <xdje42@gmail.com>
693
694 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
695 * block.c (block_lookup_symbol): Use it.
696 * cp-support.c (make_symbol_overload_list_block): Use it.
697 * symtab.c (iterate_over_symbols): Use it.
698
16b2eaa1
DE
6992014-11-06 Doug Evans <xdje42@gmail.com>
700
701 * symtab.c (lookup_block_symbol): Moved to ...
702 * block.c (block_lookup_symbol): ... here and renamed.
703 All callers updated.
704 * block.h (block_lookup_symbol): Declare.
705 * symtab.h (lookup_block_symbol): Delete.
706
2dd2cd1c
DE
7072014-11-06 Doug Evans <xdje42@gmail.com>
708
709 * ada-lang.c (ada_make_symbol_completion_list): Use
710 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
711 * symtab.c (lookup_objfile_from_block): Ditto.
712
d4c58915
DE
7132014-11-06 Doug Evans <xdje42@gmail.com>
714
715 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
716 TYPE_CODE_STRUCT.
717
9c1877ea
DE
7182014-11-06 Doug Evans <xdje42@gmail.com>
719
720 * objfiles.c (get_objfile_arch): Constify.
721 * objfiles.h (get_objfile_arch): Update prototype.
722 * solib.c (solib_global_lookup): Fetch arch from objfile,
723 not target_gdbarch.
724
426a4079
SL
7252014-11-06 Sandra Loosemore <sandra@codesourcery.com>
726
727 * nios2-tdep.c (wild_insn): Delete.
728 (profiler_insn, irqentry_insn): Delete.
729 (nios2_match_sequence): Delete.
730 (nios2_analyze_prologue): Update comments. Remove matching
731 of obsolete profiler_insn and irqentry_insn sequences.
732
ee11262d
AM
7332014-11-05 Alan Modra <amodra@gmail.com>
734
735 * charset.c (convert_between_encodings): Shrink obstack using
736 obstack_blank_fast.
737 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
738 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
739 to char* before doing pointer arithmetic.
ee11262d 740
c87e6d00
SM
7412014-11-04 Simon Marchi <simon.marchi@ericsson.com>
742
743 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
744
441ef17f
PA
7452014-11-04 Pedro Alves <palves@redhat.com>
746
747 * breakpoint.c (breakpoint_thread_match): Delete function.
748 * breakpoint.h (breakpoint_thread_match): Delete declaration.
749
e0f52461
SC
7502014-11-03 Siva Chandra Reddy <sivachandra@google.com>
751
752 PR c++/17494
753 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
754 the method args also under EVAL_SKIP when evaluating method
755 calls under EVAL_SKIP.
756
a0b4d890
YQ
7572014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
758
759 * dwarf2loc.c (read_pieced_value): Do big endian
760 processing only if gdb_regnum is not -1.
761 (write_pieced_value): Ditto.
762
7632014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
764
765 * arm-linux-tdep.c (arm_linux_init_abi): Use
766 info.byte_order_for_code to choose endianity of breakpoint
767 instructions snippets.
768
7692014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
770
771 * arm-tdep.c (extract_arm_insn): Use
772 gdbarch_byte_order_for_code to read arm instruction.
773
e82149ff
DE
7742014-11-02 Doug Evans <xdje42@gmail.com>
775
776 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
777
d7ee84f1
DE
7782014-11-02 Doug Evans <xdje42@gmail.com>
779
780 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
781 main_subfile before returning.
782
4f072d17
DE
7832014-10-31 Doug Evans <xdje42@gmail.com>
784
785 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
786 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
787
8301c89e
DE
7882014-10-31 Doug Evans <xdje42@gmail.com>
789
790 * valops.c (value_cast_pointers): Fix whitespace.
791 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
792 Ditto.
793
02be9a71
DE
7942014-10-30 Doug Evans <dje@google.com>
795
796 * NEWS: Mention ability add attributes to gdb.Objfile and
797 gdb.Progspace objects.
798 * python/py-objfile.c (objfile_object): New member dict.
799 (objfpy_dealloc): Py_XDECREF dict.
800 (objfpy_initialize): Initialize dict.
801 (objfile_getset): Add __dict__.
802 (objfile_object_type): Set tp_dictoffset member.
803 * python/py-progspace.c (progspace_object): New member dict.
804 (pspy_dealloc): Py_XDECREF dict.
805 (pspy_initialize): Initialize dict.
806 (pspace_getset): Add __dict__.
807 (pspace_object_type): Set tp_dictoffset member.
808
6427bef6
YQ
8092014-10-30 Yao Qi <yao@codesourcery.com>
810
811 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
812 replace '\\' with '\\\\'.
813
f60325be
JB
8142014-10-29 Joel Brobecker <brobecker@adacore.com>
815
816 GDB 7.8.1 released.
817
ab917dfb
PA
8182014-10-29 Pedro Alves <palves@redhat.com>
819
820 PR gdb/17408
821 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
822 instead of assuming a thread with a stepping range is always
823 stepping.
824
d3d4baed
PA
8252014-10-29 Pedro Alves <palves@redhat.com>
826
827 PR python/17372
828 * event-top.c (change_line_handler): Call
829 gdb_rl_callback_handler_remove instead of
830 rl_callback_handler_remove.
831 (callback_handler_installed): New global.
832 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
833 (gdb_rl_callback_handler_reinstall): New functions.
834 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
835 gdb_rl_callback_handler_install instead of
836 rl_callback_handler_remove and rl_callback_handler_install.
837 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
838 instead of rl_callback_handler_remove.
839 * event-top.h (gdb_rl_callback_handler_remove)
840 (gdb_rl_callback_handler_install)
841 (gdb_rl_callback_handler_reinstall): New declarations.
842 * infrun.c (reinstall_readline_callback_handler_cleanup): New
843 cleanup function.
844 (fetch_inferior_event): Install it.
845 * top.c (gdb_readline_wrapper_line) Call
846 gdb_rl_callback_handler_remove instead of
847 rl_callback_handler_remove.
848 (gdb_readline_wrapper_cleanup): Don't call
849 rl_callback_handler_install.
850
6e5d7f39
PA
8512014-10-29 Pedro Alves <palves@redhat.com>
852
853 * event-top.c (command_line_handler): Clear the first byte of
854 linebuffer, when it is first allocated.
855
551cb6a5
PA
8562014-10-29 Pedro Alves <palves@redhat.com>
857
858 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
859 TRY_CATCH.
860
1e1e619b
PA
8612014-10-29 Pedro Alves <palves@redhat.com>
862
863 PR tui/16138
864 PR tui/17519
865 * tui/tui-interp.c (tui_is_toplevel): Delete global.
866 (tui_allowed_p): Delete function.
867 * tui/tui.c: Include "interps.h".
868 (tui_enable): Don't use tui_allowed_p. Error out here with
869 detailed error messages if the TUI is the top level interpreter,
870 or if output is not a terminal. Use newterm instead of initscr,
871 and error out if initializing the terminal fails. Also error out if
872 the terminal doesn't support cursor addressing.
873 * tui/tui.h (tui_allowed_p): Delete declaration.
874
6041179a
JB
8752014-10-29 Joel Brobecker <brobecker@adacore.com>
876
877 * arm-tdep.c (arm_skip_stack_protector): Return early if
878 address loaded by first "ldr" instruction does not have
879 a corresponding minimal symbol. Update comment.
880
6ae274b7
YQ
8812014-10-29 Yao Qi <yao@codesourcery.com>
882
883 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
884 loaded address correctly of ldr instruction.
885
7f5ef605
PA
8862014-10-28 Pedro Alves <palves@redhat.com>
887
888 PR gdb/12623
889 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
890 field.
891 * infrun.c (resume) <stepping breakpoint instruction>: Set the
892 thread's stepped_breakpoint field. Skip if reverse debugging.
893 Add comment.
894 (init_thread_stepping_state, handle_signal_stop): Clear the
895 thread's stepped_breakpoint field.
896
7d1a114c
PA
8972014-10-27 Pedro Alves <palves@redhat.com>
898
899 * remote.c (remote_thread_alive): New, factored out from ...
900 (remote_thread_alive): ... this.
901 (remote_update_thread_list): Bail out before deleting threads if
902 the target returned an empty list, and, the current thread has a
903 magic/fake ptid.
904
e5f8a7cc
PA
9052014-10-27 Pedro Alves <palves@redhat.com>
906
907 * infrun.c (handle_signal_stop): Also skip handlers when a random
908 signal arrives while handling a "stepi" or a "nexti". Set the
909 thread's 'step_after_step_resume_breakpoint' flag.
910
71e396f9
LM
9112014-10-27 Luis Machado <lgustavo@codesourcery.com>
912
913 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
914 (arm_record_ld_st_imm_offset): Reimplement to cover all
915 load/store cases for ARM opcode 010.
916 (arm_record_ld_st_multiple): Reimplement to cover all
917 load/store cases for ARM opcode 100.
918
3aee438b
DE
9192014-10-26 Doug Evans <xdje42@gmail.com>
920
921 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
922
f88cb4b6
DE
9232014-10-26 Doug Evans <xdje42@gmail.com>
924
925 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
926 parameter "kind" to "block_index".
927 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
928 "block_index".
929 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
930
a023a30f
DE
9312014-10-26 Doug Evans <xdje42@gmail.com>
932
933 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
934
4c35218e
DE
9352014-10-26 Doug Evans <xdje42@gmail.com>
936
937 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
938 obstack_alloc.
939
f08e8df3
DE
9402014-10-26 Doug Evans <xdje42@gmail.com>
941
942 * parser-defs.h (block_found): Move decl from here ...
943 * symtab.h (block_found): ... to here.
944
cf901d3b
DE
9452014-10-26 Doug Evans <xdje42@gmail.com>
946
947 * symtab.h (struct field_of_this_result): Fix typo in comment.
948 (lookup_symbol_in_language): Move function comment here.
949 (lookup_symbol): Improve function comment.
950 (basic_lookup_symbol_nonlocal): Ditto.
951 (lookup_symbol_static, lookup_symbol_global): Ditto.
952 (lookup_symbol_aux_block): Ditto.
953 (lookup_language_this): Add function comment.
954 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
955 function comment.
956 (lookup_block_symbol): Improve function comment.
957 (lookup_struct): Fix capitalization in function comment.
958 (lookup_transparent_type): Add function comment.
959 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
960 Improve function comment.
961 (lookup_objfile_from_block): Add function comment.
962 * symtab.c (lookup_symbol_in_language): Update function comment.
963 (lookup_symbol, lookup_language_this): Ditto.
964 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
965 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
966 (basic_lookup_symbol_nonlocal): Ditto.
967 (lookup_symbol_static, lookup_symbol_global): Ditto.
968 (lookup_transparent_type, lookup_block_symbol): Ditto.
969
ff6c39cf
DE
9702014-10-25 Doug Evans <xdje42@gmail.com>
971
972 * symtab.c (types_info): Delete forward decl.
973 (functions_info, variables_info, sources_info): Ditto.
974 (_initialize_symtab): Rewrite forward decl to use
975 initialize_file_ftype.
976
ec201f0c
DE
9772014-10-25 Doug Evans <xdje42@gmail.com>
978
979 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
980
ca040673
DE
9812014-10-25 Doug Evans <xdje42@gmail.com>
982
983 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
984 of local var child_die.
985
6f259a23
DB
9862014-10-24 Don Breazeal <donb@codesourcery.com>
987
988 * infrun.c (follow_fork_inferior): Update fork message printing
989 to use target_terminal_ours_for_output instead of
990 target_terminal_ours, to use _() for all format strings, to print
991 "vfork" instead of "fork" for vforks, and to add a detach message.
992 (handle_vfork_child_exec_or_exit): Update message printing to use
993 target_terminal_ours_for_output instead of target_terminal_ours, to
994 use _() for all format strings, and to fix some formatting.
995
09dd9a69
PA
9962014-10-24 Pedro Alves <palves@redhat.com>
997
998 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
999 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1000 * config/vax/vax.mh: Delete.
1001 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1002 obsolete configurations section.
1003 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1004 * vax-nat.c: Delete file.
1005
5ab806de
PA
10062014-10-24 Pedro Alves <palves@redhat.com>
1007
1008 * NEWS (Removed targets): Add OS/arch column.
1009
3433cfa5
SC
10102014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1011
1012 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1013 on the arg type of a constructor only if it is of reference type.
1014
96ba4233
SL
10152014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1016
1017 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1018 accessors and constants from nios2 opcodes update.
1019 (nios2_get_next_pc): Likewise.
1020
28153fd3
DE
10212014-10-19 Doug Evans <xdje42@gmail.com>
1022
1023 * gdbthread.h (set_running): Fix comment.
1024 (set_executing, finish_thread_state): Fix comment.
1025
fc9b8e47
DE
10262014-10-18 Doug Evans <xdje42@gmail.com>
1027
1028 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1029
4ffbba72
DE
10302014-10-17 Doug Evans <dje@google.com>
1031
1032 * NEWS: Mention new event gdb.clear_objfiles.
1033 * python/py-event.h (emit_clear_objfiles_event): Clear
1034 * python/py-events.h (events_object): New member clear_objfiles.
1035 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1036 event.
1037 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1038 emit clear_objfiles event.
1039 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1040 function.
1041 (emit_clear_objfiles_event): New function.
1042 (clear_objfiles): New event.
1043 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1044 Declare.
1045 * python/python.c (_initialize_python): Call
1046 gdbpy_initialize_clear_objfiles_event.
1047
d096d8c1
DE
10482014-10-17 Doug Evans <dje@google.com>
1049
1050 * NEWS: Mention new gdb.Objfile.progspace attribute.
1051 * python/py-objfile.c (objfpy_get_progspace): New function.
1052 (objfile_getset): New entry for "progspace".
1053
6c4486e6
PA
10542014-10-17 Pedro Alves <palves@redhat.com>
1055
1056 PR gdb/17471
1057 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1058 returns a copy of the input.
1059 (run_command_1, continue_command, step_1, jump_command)
1060 (signal_command, until_command, advance_command, finish_command)
1061 (attach_command): Adjust and install a cleanup to free the
1062 stripped args.
1063
0ff33695
PA
10642014-10-17 Pedro Alves <palves@redhat.com>
1065
1066 PR gdb/17300
1067 * infcmd.c (continue_1): If continuing all threads in the
1068 foreground, make sure the inferior's terminal settings are put in
1069 effect.
1070
6fdebc3d
PA
10712014-10-17 Pedro Alves <palves@redhat.com>
1072
1073 PR gdb/17472
1074 * annotate.c (annotate_breakpoints_invalid): Use
1075 target_terminal_our_for_output instead of target_terminal_ours.
1076 Give back the terminal to the target.
1077 (annotate_frames_invalid): Likewise.
1078
5842f62a
PA
10792014-10-17 Pedro Alves <palves@redhat.com>
1080
1081 * target.c (enum terminal_state): New enum.
1082 (terminal_state): New global.
1083 (target_terminal_init): New function.
1084 (target_terminal_inferior): Skip if inferior already owns the
1085 terminal.
1086 (target_terminal_ours, target_terminal_ours_for_output): New
1087 functions.
1088 * target.h (target_terminal_init): Convert to function prototype.
1089 (target_terminal_ours_for_output): Convert to function prototype
1090 and tweak comment.
1091 (target_terminal_ours): Convert to function prototype and tweak
1092 comment.
1093 * windows-nat.c (do_initial_windows_stuff): Call
1094 target_terminal_init instead of child_terminal_init_with_pgrp.
1095
32a8097b
PA
10962014-10-17 Pedro Alves <palves@redhat.com>
1097
1098 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1099 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1100 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1101 solib-osf.c.
1102 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1103 * ada-lang.h [__alpha__ && __osf__]
1104 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1105 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1106 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1107 GDB_OSABI_OSF1.
1108 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1109 files.
1110 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1111 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1112 * configure: Regenerate.
1113 * configure.ac: Remove references to osf.
1114 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1115 section. Remove all other references to osf.
1116 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1117 Remove all other references to osf.
1118 * dec-thread.c: Delete file.
1119 * defs.h (GDB_OSABI_OSF1): Delete.
1120 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1121 defined.
1122 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1123 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1124 Delete code.
1125 (unconditionally_kill_inferior)
1126 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1127 * solib-osf.c: Delete file.
1128
80134cf5
PA
11292014-10-17 Pedro Alves <palves@redhat.com>
1130
1131 * remote.c (clear_threads_listing_context): Move higher up, out of
1132 the HAVE_LIBEXPAT guard.
1133
89c7137f
TG
11342014-10-16 Tristan Gingold <gingold@adacore.com>
1135
1136 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1137 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1138 on amd64.
1139
44ee4a52
PA
11402014-10-15 Pedro Alves <palves@redhat.com>
1141
1142 * dec-thread.c (dec_thread_count_gdb_threads)
1143 (dec_thread_add_gdb_thread): Delete.
1144 (dec_thread_update_thread_list): Delete.
1145 (dec_thread_find_new_threads): Rename to ...
1146 (dec_thread_update_thread_list): ... this. Delete GDB-size
1147 threads that are no longer found in dec_thread_list.
1148 (resync_thread_list): Delete.
1149 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1150 resync_thread_list.
1151
ab970af1
PA
11522014-10-15 Pedro Alves <palves@redhat.com>
1153
1154 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1155 * remote.c (remote_update_thread_list): Skip calling prune_threads
1156 if any thread listing method is supported, and instead walk over
1157 the set of remote threads listed, deleting those that are not
1158 found in GDB's thread list.
1159
e8032dde
PA
11602014-10-15 Pedro Alves <palves@redhat.com>
1161
1162 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1163 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1164 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1165 (bsd_uthread_target): Adjust.
1166 * corelow.c (core_open): Adjust.
1167 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1168 (dec_thread_update_thread_list): New function.
1169 (init_dec_thread_ops): Adjust.
1170 * gdbthread.h (prune_threads): New declaration.
1171 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1172 (thread_db_update_thread_list): ... this. Call prune_threads.
1173 (init_thread_db_ops): Adjust.
1174 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1175 (procfs_update_thread_list): ... this. Call prune_threads.
1176 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1177 Adjust.
1178 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1179 (obsd_update_thread_list): ... this. Call prune_threads.
1180 (obsd_add_target): Adjust.
1181 * procfs.c (procfs_target): Adjust.
1182 (procfs_notice_thread): Update comment.
1183 (procfs_find_new_threads): Rename to ...
1184 (procfs_update_thread_list): ... this. Call prune_threads.
1185 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1186 comment.
1187 (ravenscar_wait): Adjust.
1188 (ravenscar_find_new_threads): Rename to ...
1189 (ravenscar_update_thread_list): ... this. Call prune_threads.
1190 (init_ravenscar_thread_ops): Adjust.
1191 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1192 (record_btrace_update_thread_list): ... this. Adjust comment.
1193 (init_record_btrace_ops): Adjust.
1194 * remote.c (remote_threads_info): Rename to ...
1195 (remote_update_thread_list): ... this. Call prune_threads.
1196 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1197 Adjust.
1198 * sol-thread.c (check_for_thread_db): Adjust.
1199 (sol_find_new_threads_callback): Rename to ...
1200 (sol_update_thread_list_callback): ... this.
1201 (sol_find_new_threads): Rename to ...
1202 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1203 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1204 * target-delegates.c: Regenerate.
1205 * target.c (target_find_new_threads): Rename to ...
1206 (target_update_thread_list): ... this.
1207 * target.h (struct target_ops): Rename to_find_new_threads field
1208 to to_update_thread_list.
1209 (target_find_new_threads): Rename to ...
1210 (target_update_thread_list): ... this.
1211 * thread.c (prune_threads): Make extern.
1212 (update_thread_list): Adjust.
1213
6dc54d91
PA
12142014-10-15 Pedro Alves <palves@redhat.com>
1215
1216 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1217 Add describing comment. Return -1 if the qL packet is not
1218 supported.
1219 (struct thread_item, thread_item_t): Move higher up in
1220 the file. Add comments.
1221 (struct threads_parsing_context): Move higher up in
1222 the file, add comments, and remote to ...
1223 (struct threads_listing_context): ... this.
1224 (remote_newthread_step): Don't add the thread to GDB's thread
1225 database here. Instead push it to the thread_listing_context
1226 list.
1227 (remote_find_new_threads): Rename to ...
1228 (remote_get_threads_with_ql): ... this. Add target_ops and
1229 targets_listing_context parameters. Pass down context.
1230 (start_thread): Adjust.
1231 (clear_threads_parsing_context): Rename to ...
1232 (clear_threads_listing_context): ... this.
1233 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1234 remote_threads_info.
1235 (remote_get_threads_with_qthreadinfo): Ditto.
1236 (remote_threads_info): Reimplement.
1237
36728e82
PA
12382014-10-15 Pedro Alves <palves@redhat.com>
1239
1240 * infrun.c (resume): Don't force displaced-stepping for all
1241 single-steps on software single-stepping archs.
1242
34b7e8a6
PA
12432014-10-15 Pedro Alves <palves@redhat.com>
1244
1245 * breakpoint.c (single_step_breakpoints): Delete global.
1246 (insert_single_step_breakpoint): Adjust to store the breakpoint
1247 pointer in the current thread.
1248 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1249 (cancel_single_step_breakpoints): Delete functions.
1250 (breakpoint_has_location_inserted_here): Make extern.
1251 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1252 breakpoint list.
1253 * breakpoint.h (breakpoint_has_location_inserted_here): New
1254 declaration.
1255 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1256 (cancel_single_step_breakpoints): Remove declarations.
1257 * gdbthread.h (struct thread_control_state)
1258 <single_step_breakpoints>: New field.
1259 (delete_single_step_breakpoints)
1260 (thread_has_single_step_breakpoints_set)
1261 (thread_has_single_step_breakpoint_here): New declarations.
1262 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1263 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1264 (singlestep_pc): Delete globals.
1265 (infrun_thread_ptid_changed): Remove references to removed
1266 globals.
1267 (resume_cleanups): Delete the current thread's single-step
1268 breakpoints.
1269 (maybe_software_singlestep): Remove references to removed globals.
1270 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1271 delete_single_step_breakpoints.
1272 (init_wait_for_inferior): Remove references to removed globals.
1273 (delete_thread_infrun_breakpoints): Delete the thread's
1274 single-step breakpoints too.
1275 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1276 single-step breakpoints here.
1277 (delete_stopped_threads_single_step_breakpoints): New function.
1278 (adjust_pc_after_break): Adjust to use
1279 thread_has_single_step_breakpoints_set.
1280 (handle_inferior_event): Remove references to removed globals.
1281 Use delete_stopped_threads_single_step_breakpoints.
1282 (handle_signal_stop): Adjust to per-thread single-step
1283 breakpoints. Swap test order to do cheaper tests first.
1284 (switch_back_to_stepped_thread): Extend debug output. Remove
1285 references to removed globals.
1286 * record-full.c (record_full_wait_1): Adjust to per-thread
1287 single-step breakpoints.
1288 * thread.c (delete_single_step_breakpoints)
1289 (thread_has_single_step_breakpoints_set)
1290 (thread_has_single_step_breakpoint_here): New functions.
1291 (clear_thread_inferior_resources): Also delete the thread's
1292 single-step breakpoints.
1293
5b834a0a
PA
12942014-10-15 Pedro Alves <palves@redhat.com>
1295
1296 * thread.c (delete_thread_breakpoint): New function.
1297 (delete_step_resume_breakpoint)
1298 (delete_exception_resume_breakpoint): Use it.
1299 (delete_at_next_stop): New function.
1300 (clear_thread_inferior_resources): Use delete_at_next_stop.
1301
a1fd2fa5
PA
13022014-10-15 Pedro Alves <palves@redhat.com>
1303
1304 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1305 (breakpoint_inserted_here_p): ... here. Remove special case for
1306 software single-step breakpoints.
1307 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1308 (software_breakpoint_inserted_here_p): ... here. Remove special
1309 case for software single-step breakpoints.
1310 (bp_target_info_copy_insertion_state)
1311 (deprecated_insert_raw_breakpoint)
1312 (deprecated_remove_raw_breakpoint): Delete functions.
1313 * breakpoint.h (deprecated_insert_raw_breakpoint)
1314 (deprecated_remove_raw_breakpoint): Remove declarations.
1315
7c16b83e
PA
13162014-10-15 Pedro Alves <palves@redhat.com>
1317
1318 PR breakpoints/9649
1319 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1320 Delete array globals.
1321 (single_step_breakpoints): New global.
1322 (breakpoint_xfer_memory): Remove special handling for single-step
1323 breakpoints.
1324 (update_breakpoints_after_exec): Delete bp_single_step
1325 breakpoints.
1326 (detach_breakpoints): Remove special handling for single-step
1327 breakpoints.
1328 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1329 (bpstat_stop_status): Add comment.
1330 (bpstat_what, bptype_string, print_one_breakpoint_location)
1331 (adjust_breakpoint_address, init_bp_location): Handle
1332 bp_single_step.
1333 (new_single_step_breakpoint): New function.
1334 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1335 handling for single-step breakpoints.
1336 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1337 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1338 Rewrite.
1339 (detach_single_step_breakpoints, find_single_step_breakpoint):
1340 Delete functions.
1341 (breakpoint_has_location_inserted_here): New function.
1342 (single_step_breakpoint_inserted_here_p): Rewrite.
1343 * breakpoint.h: Remove FIXME.
1344 (enum bptype) <bp_single_step>: New enum value.
1345 (insert_single_step_breakpoint): Update comment.
1346 * infrun.c (resume_cleanups)
1347 (delete_step_thread_step_resume_breakpoint): Remove single-step
1348 breakpoints.
1349 (fetch_inferior_event): Install a cleanup that removes infrun
1350 breakpoints.
1351 (switch_back_to_stepped_thread) <expect thread advanced also>:
1352 Clear step-over info.
1353
0cbcdb96
PA
13542014-10-15 Pedro Alves <palves@redhat.com>
1355
1356 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1357 (delete_thread_infrun_breakpoints): New function, with parts
1358 salvaged from delete_step_resume_breakpoint_callback.
1359 (delete_step_thread_step_resume_breakpoint): Delete.
1360 (for_each_just_stopped_thread_callback_func): New typedef.
1361 (for_each_just_stopped_thread): New function.
1362 (delete_just_stopped_threads_infrun_breakpoints): New function.
1363 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1364 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1365 ... this. Adjust.
1366 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1367
963f9c80
PA
13682014-10-15 Pedro Alves <palves@redhat.com>
1369
1370 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1371 trying to step past a non-steppable watchpoint.
1372 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1373 field.
1374 * infrun.c (struct step_over_info): Add new field
1375 'nonsteppable_watchpoint_p' and adjust comments.
1376 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1377 Adjust.
1378 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1379 (stepping_past_nonsteppable_watchpoint): New function.
1380 (step_over_info_valid_p): Also return true if stepping past a
1381 nonsteppable watchpoint.
1382 (proceed): Adjust call to set_step_over_info. Remove reference to
1383 init_infwait_state.
1384 (init_wait_for_inferior): Remove reference to init_infwait_state.
1385 (waiton_ptid): Delete global.
1386 (struct execution_control_state)
1387 <stepped_after_stopped_by_watchpoint>: Delete field.
1388 (wait_for_inferior, fetch_inferior_event): Always pass
1389 minus_one_ptid to target_wait.
1390 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1391 field.
1392 (init_infwait_state): Delete function.
1393 (handle_inferior_event): Remove infwait_state handling.
1394 (handle_signal_stop) <watchpoints handling>: Adjust after
1395 stepped_after_stopped_by_watchpoint removal. Don't remove
1396 breakpoints here nor set infwait_state. Set the thread's
1397 stepping_over_watchpoint flag, and call keep_going instead.
1398 (keep_going): Handle stepping_over_watchpoint. Adjust
1399 set_step_over_info calls.
1400 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1401 function.
1402
6cc83d2a
PA
14032014-10-15 Pedro Alves <palves@redhat.com>
1404
1405 * infrun.c (step_over_info_valid_p): New function.
1406 (resume): Use step_over_info_valid_p instead of checking the
1407 threads's trap_expected flag.
1408
6979730b
DE
14092014-10-15 Doug Evans <dje@google.com>
1410 Walfred Tedeschi <walfred.tedeschi@intel.com>
1411
1412 PR python/17364
1413 * python/lib/gdb/__init__.py (packages): Add "printer".
1414 * python/lib/gdb/command/bound_registers.py: Moved to ...
1415 * python/lib/gdb/printer/bound_registers.py: ... here.
1416 Add printer to global set of builtin printers. Rename printer from
1417 "bound" to "mpx_bound128".
1418 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1419 registered as global "builtin" printer.
1420 (add_builtin_pretty_printer): New function.
1421 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1422 gdb/printer/__init__.py.
1423
35a49624
IB
14242014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1425
1426 * Makefile.in (SFILES): Remove d-support.c.
1427 (COMMON_OBS): Remove d-support.o.
1428 * d-lang.h (d_parse_symbol): Remove declaration.
1429 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1430 * d-support.c: Remove file.
1431
8fa0c4f8
AA
14322014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1433
1434 * gdb/infrun.c (process_event_stop_test): Apply
1435 gdbarch_addr_bits_remove to longjmp resume address.
1436
3666da81
PA
14372014-10-15 Pedro Alves <palves@redhat.com>
1438
1439 * regformats/microblaze.dat: Delete file.
1440
449aa9df
AKA
14412014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1442
1443 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1444 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1445
ebb8ece2
SC
14462014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1447
1448 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1449 as non-trivial.
1450
82c48ac7
SC
14512014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1452
1453 PR c++/13403
1454 PR c++/15154
1455 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1456 with qualified args.
1457
c40cc657
JB
14582014-10-14 Joel Brobecker <brobecker@adacore.com>
1459
1460 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1461 of the case where the second operand is a pointer.
1462 <BINOP_SUB>: Likewise.
1463
0ea5cda8
SDJ
14642014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1465
1466 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1467 only if it is not NULL.
1468 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1469 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1470 (struct probe_ops) <clear_semaphore>: Likewise.
1471 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1472 not NULL.
1473 (stop_tracing): Likewise, for clear_semaphore.
1474
f7088df3
SDJ
14752014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1476
1477 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1478 using language_c, instead of current_language.
1479
4e1bbde0
DE
14802014-10-13 Doug Evans <dje@google.com>
1481
6ff5a0f6 1482 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1483 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1484 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1485 (pspy_new, pspace_to_pspace_object): Call it.
1486
c780cc2f
JK
14872014-10-13 Miroslav Franc <mfranc@redhat.com>
1488 Jan Kratochvil <jan.kratochvil@redhat.com>
1489
1490 Fix "save breakpoints" for "catch" command.
1491 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1492 newline.
1493
99894e11
JK
14942014-10-12 Miroslav Franc <mfranc@redhat.com>
1495
1496 Fix "save breakpoints" for "disable $bpnum" command.
1497 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1498
3831839c
PA
14992014-10-10 Pedro Alves <palves@redhat.com>
1500
1501 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1502 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1503 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1504 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1505 and been removed.
1506 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1507 * configure.ac: Remove references to IRIX.
1508 * configure.host: Add *-*-irix* to the obsolete hosts section.
1509 Remove all other references to irix.
1510 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1511 Delete files.
1512
cc3afae2
AKA
15132014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1514
1515 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1516 isn't valid, release the tdesc arch data and return NULL.
1517
cdfa0b0a
PA
15182014-10-10 Pedro Alves <palves@redhat.com>
1519
1520 * linux-tdep.c: Include observer.h.
1521 (linux_inferior_data): New global.
1522 (struct linux_info): New structure.
1523 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1524 (get_linux_inferior_data): New functions.
1525 (linux_vsyscall_range): Rename to ...
1526 (linux_vsyscall_range_raw): ... this.
1527 (linux_vsyscall_range): New function; handles caching.
1528 (_initialize_linux_tdep): Register linux_inferior_data. Install
1529 inferior_exit and inferior_appeared observers.
1530
8b9a549d
PA
15312014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1532 Pedro Alves <palves@redhat.com>
1533
1534 PR symtab/14466
1535 * solib-svr4.c (svr4_read_so_list): Rename to ...
1536 (svr4_current_sos_1): ... this and change the function comment.
1537 (svr4_current_sos): New function.
1538
3437254d
PA
15392014-10-10 Pedro Alves <palves@redhat.com>
1540
1541 * arch-utils.c (default_vsyscall_range): New function.
1542 * arch-utils.h (default_vsyscall_range): New declaration.
1543 * gdbarch.sh (vsyscall_range): New hook.
1544 * gdbarch.h, gdbarch.c: Regenerate.
1545 * linux-tdep.c (linux_vsyscall_range): New function.
1546 (linux_init_abi): Install linux_vsyscall_range as
1547 vsyscall_range gdbarch hook.
1548 * memrange.c (address_in_mem_range): New function.
1549 * memrange.h (address_in_mem_range): New declaration.
1550 * symfile-mem.c (find_vdso_size): Delete function.
1551 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1552
31cc0b80
PA
15532014-10-10 Pedro Alves <palves@redhat.com>
1554
1555 * infrun.c (normal_stop): Fix typo in comment.
1556
3e3286a2
SDJ
15572014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1558
1559 PR tdep/9390
1560 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1561 typo when using logical AND to determine instruction type.
1562
fcbdedf8
YQ
15632014-10-09 Yao Qi <yao@codesourcery.com>
1564
1565 * infrun.c (handle_signal_stop): Remove local variable
1566 'printed'.
1567
db984616
SS
15682014-10-08 Stan Shebs <stan@codesourcery.com>
1569
1570 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1571
3ba37e6c
GB
15722014-10-08 Gary Benson <gbenson@redhat.com>
1573
1574 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1575
a442d071
GB
15762014-10-08 Gary Benson <gbenson@redhat.com>
1577
1578 * common/common-defs.h: Include common-exceptions.h.
1579 * exceptions.h: Do not include common-exceptions.h.
1580
6f1947e8
GB
15812014-10-08 Gary Benson <gbenson@redhat.com>
1582
1583 * common/common-defs.h: Include cleanups.h.
1584 * common/common-exceptions.c: Do not include cleanups.h.
1585 * utils.h: Likewise.
1586
c765fdb9
GB
15872014-10-08 Gary Benson <gbenson@redhat.com>
1588
1589 * ada-lang.c: Do not include exceptions.h.
1590 * ada-valprint.c: Likewise.
1591 * amd64-tdep.c: Likewise.
1592 * auto-load.c: Likewise.
1593 * block.c: Likewise.
1594 * break-catch-throw.c: Likewise.
1595 * breakpoint.c: Likewise.
1596 * btrace.c: Likewise.
1597 * c-lang.c: Likewise.
1598 * cli/cli-cmds.c: Likewise.
1599 * cli/cli-interp.c: Likewise.
1600 * cli/cli-script.c: Likewise.
1601 * completer.c: Likewise.
1602 * corefile.c: Likewise.
1603 * corelow.c: Likewise.
1604 * cp-abi.c: Likewise.
1605 * cp-support.c: Likewise.
1606 * cp-valprint.c: Likewise.
1607 * darwin-nat.c: Likewise.
1608 * dwarf2-frame-tailcall.c: Likewise.
1609 * dwarf2-frame.c: Likewise.
1610 * dwarf2loc.c: Likewise.
1611 * dwarf2read.c: Likewise.
1612 * eval.c: Likewise.
1613 * event-loop.c: Likewise.
1614 * event-top.c: Likewise.
1615 * f-valprint.c: Likewise.
1616 * frame-unwind.c: Likewise.
1617 * frame.c: Likewise.
1618 * gdbtypes.c: Likewise.
1619 * gnu-v2-abi.c: Likewise.
1620 * gnu-v3-abi.c: Likewise.
1621 * guile/scm-auto-load.c: Likewise.
1622 * guile/scm-breakpoint.c: Likewise.
1623 * guile/scm-cmd.c: Likewise.
1624 * guile/scm-frame.c: Likewise.
1625 * guile/scm-lazy-string.c: Likewise.
1626 * guile/scm-param.c: Likewise.
1627 * guile/scm-symbol.c: Likewise.
1628 * guile/scm-type.c: Likewise.
1629 * hppa-hpux-tdep.c: Likewise.
1630 * i386-tdep.c: Likewise.
1631 * inf-loop.c: Likewise.
1632 * infcall.c: Likewise.
1633 * infcmd.c: Likewise.
1634 * infrun.c: Likewise.
1635 * interps.c: Likewise.
1636 * interps.h: Likewise.
1637 * jit.c: Likewise.
1638 * linespec.c: Likewise.
1639 * linux-nat.c: Likewise.
1640 * linux-thread-db.c: Likewise.
1641 * m32r-rom.c: Likewise.
1642 * main.c: Likewise.
1643 * memory-map.c: Likewise.
1644 * mi/mi-cmd-break.c: Likewise.
1645 * mi/mi-cmd-stack.c: Likewise.
1646 * mi/mi-interp.c: Likewise.
1647 * mi/mi-main.c: Likewise.
1648 * monitor.c: Likewise.
1649 * nto-procfs.c: Likewise.
1650 * objc-lang.c: Likewise.
1651 * p-valprint.c: Likewise.
1652 * parse.c: Likewise.
1653 * ppc-linux-tdep.c: Likewise.
1654 * printcmd.c: Likewise.
1655 * probe.c: Likewise.
1656 * python/py-auto-load.c: Likewise.
1657 * python/py-breakpoint.c: Likewise.
1658 * python/py-cmd.c: Likewise.
1659 * python/py-finishbreakpoint.c: Likewise.
1660 * python/py-frame.c: Likewise.
1661 * python/py-framefilter.c: Likewise.
1662 * python/py-function.c: Likewise.
1663 * python/py-gdb-readline.c: Likewise.
1664 * python/py-inferior.c: Likewise.
1665 * python/py-infthread.c: Likewise.
1666 * python/py-lazy-string.c: Likewise.
1667 * python/py-linetable.c: Likewise.
1668 * python/py-param.c: Likewise.
1669 * python/py-prettyprint.c: Likewise.
1670 * python/py-symbol.c: Likewise.
1671 * python/py-type.c: Likewise.
1672 * python/py-value.c: Likewise.
1673 * python/python-internal.h: Likewise.
1674 * python/python.c: Likewise.
1675 * record-btrace.c: Likewise.
1676 * record-full.c: Likewise.
1677 * regcache.c: Likewise.
1678 * remote-fileio.c: Likewise.
1679 * remote-mips.c: Likewise.
1680 * remote.c: Likewise.
1681 * rs6000-aix-tdep.c: Likewise.
1682 * rs6000-nat.c: Likewise.
1683 * skip.c: Likewise.
1684 * solib-darwin.c: Likewise.
1685 * solib-dsbt.c: Likewise.
1686 * solib-frv.c: Likewise.
1687 * solib-ia64-hpux.c: Likewise.
1688 * solib-spu.c: Likewise.
1689 * solib-svr4.c: Likewise.
1690 * solib.c: Likewise.
1691 * spu-tdep.c: Likewise.
1692 * stack.c: Likewise.
1693 * stap-probe.c: Likewise.
1694 * symfile-mem.c: Likewise.
1695 * symmisc.c: Likewise.
1696 * target.c: Likewise.
1697 * thread.c: Likewise.
1698 * top.c: Likewise.
1699 * tracepoint.c: Likewise.
1700 * tui/tui-interp.c: Likewise.
1701 * typeprint.c: Likewise.
1702 * utils.c: Likewise.
1703 * valarith.c: Likewise.
1704 * valops.c: Likewise.
1705 * valprint.c: Likewise.
1706 * value.c: Likewise.
1707 * varobj.c: Likewise.
1708 * windows-nat.c: Likewise.
1709 * xml-support.c: Likewise.
1710
484933d1
MR
17112014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1712
1713 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1714 name implies.
1715 (extended_mips16_next_pc): Update accordingly.
1716
ab50adb6
MR
17172014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1718
1719 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1720 function.
1721 (micromips_instruction_is_compact_branch): Likewise.
1722 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1723 or a compact jump, reaching a jump delay slot, or seeing a
1724 second non-prologue instruction.
1725 (micromips_scan_prologue): Also terminate scanning upon seeing a
1726 compact branch or jump, or reaching a branch or jump delay slot.
1727 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1728 or jump delay slot, or seeing a second non-prologue instruction.
1729 (mips32_instruction_has_delay_slot): Retain instruction
1730 examination code only, update arguments accordingly and move
1731 instruction fetch pieces to...
1732 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1733 (micromips_instruction_has_delay_slot): Likewise and to...
1734 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1735 (mips16_instruction_has_delay_slot): Likewise and to...
1736 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1737 (mips_single_step_through_delay): Update accordingly.
1738 (mips_adjust_breakpoint_address): Likewise.
1739
ae790652
MR
17402014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1741
1742 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1743 !mustbe32 also return 1 for 32-bit instructions.
1744 (mips16_instruction_has_delay_slot): Likewise. Add an
1745 explanatory comment.
1746
9b807e7b
MR
17472014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1748
1749 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1750 symbols special.
1751
0d5ed153
MR
17522014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1753
1754 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1755 update comments.
1756 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1757 for the breakpoint's address. Don't preinitialize `placed_size'.
1758 (insert_bp_location): Set `reqstd_address' rather than
1759 `placed_address'.
1760 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1761 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1762 address.
1763 (bkpt_remove_location): Likewise.
1764 (deprecated_insert_raw_breakpoint): Likewise.
1765 (deprecated_remove_raw_breakpoint): Likewise.
1766 (find_single_step_breakpoint): Likewise.
1767 * mem-break.c (default_memory_insert_breakpoint): Use
1768 `reqstd_address' for the breakpoint's address. Don't set
1769 `placed_address' or `placed_size' if breakpoint contents couldn't
1770 have been determined.
1771 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1772 the breakpoint's address.
1773 (remote_insert_hw_breakpoint): Likewise. Don't set
1774 `placed_address' or `placed_size' if breakpoint couldn't have been
1775 set.
1776 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1777 `reqstd_address' for the breakpoint's address.
1778 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1779 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1780 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1781 * microblaze-linux-tdep.c
1782 (microblaze_linux_memory_remove_breakpoint): Likewise.
1783 * monitor.c (monitor_insert_breakpoint): Likewise.
1784 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1785 (procfs_insert_hw_breakpoint): Likewise.
1786 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1787 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1788 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1789 * remote-mips.c (mips_insert_breakpoint): Likewise.
1790 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1791
3e871532
LM
17922014-10-03 Luis Machado <lgustavo@codesourcery.com>
1793
1794 * valops.c (value_assign): Check for bit field assignments
1795 before calling architecture-specific register value
1796 conversion functions.
1797
ec48dc8b
PM
17982014-10-03 Pierre Muller <muller@sourceware.org>
1799
1800 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1801
b57bacec
PA
18022014-10-02 Pedro Alves <palves@redhat.com>
1803
1804 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1805 threads_are_executing.
1806 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1807 describing comment.
1808 * gdbthread.h (threads_are_executing): Declare.
1809 (handle_signal_stop) <random signals>: Don't print about the
1810 signal here if stopping.
1811 (end_stepping_range): Don't notify observers here.
1812 (normal_stop): Update the thread list. If stopped by a random
1813 signal or a stepping range ended, notify observers.
1814 * thread.c (threads_executing): New global.
1815 (init_thread_list): Clear 'threads_executing'.
1816 (set_executing): Set or clear 'threads_executing'.
1817 (threads_are_executing): New function.
1818 (update_threads_executing): New function.
1819 (update_thread_list): Use it.
1820
13fd3ff3
PA
18212014-10-02 Pedro Alves <palves@redhat.com>
1822
1823 PR breakpoints/17431
1824 * breakpoint.c (update_breakpoints_after_exec): Don't create
1825 overlay, longjmp, std terminate nor exception breakpoints here.
1826
32990ada
PA
18272014-10-02 Pedro Alves <palves@redhat.com>
1828
1829 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1830 Adjust comments.
1831 * inferior.c (find_inferior_for_program_space): Give preference to
1832 the current inferior.
1833 * inferior.h (find_inferior_for_program_space): Update comment.
1834 * progspace.c (switch_to_program_space_and_thread): Prefer the
1835 current inferior if it's bound to the program space requested. If
1836 the inferior found doesn't have a PID yet, don't bother looking up
1837 a thread.
1838 * progspace.h (switch_to_program_space_and_thread): Adjust
1839 comment.
1840 * thread.c (any_thread_of_process, any_live_thread_of_process):
1841 Give preference to the current thread.
1842
0fec99e8
PA
18432014-10-01 Pedro Alves <palves@redhat.com>
1844
1845 * breakpoint.c (insert_bp_location): Error out if inserting a
1846 software breakpoint at a read-only address.
1847 * target.c (memory_xfer_check_region): New function, factored out
1848 from ...
1849 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1850 ULONGEST.
1851 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1852 against the memory region attributes.
1853
2ddf4301
SM
18542014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1855
1856 * NEWS: Announce new exit-code field in -list-thread-groups
1857 output.
1858 * inferior.c (exit_inferior_1): Don't clear exit code.
1859 (inferior_appeared): Clear exit code.
1860 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1861 code.
1862
5fdeec1d
PA
18632014-10-01 Pedro Alves <palves@redhat.com>
1864
1865 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1866 GENERATED" along with emacs/vi read-only markers.
1867 * regformats/aarch64.dat: Regenerate.
1868 * regformats/arm-with-iwmmxt.dat: Regenerate.
1869 * regformats/arm-with-neon.dat: Regenerate.
1870 * regformats/arm-with-vfpv2.dat: Regenerate.
1871 * regformats/arm-with-vfpv3.dat: Regenerate.
1872 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1873 * regformats/i386/amd64-avx.dat: Regenerate.
1874 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1875 * regformats/i386/amd64-avx512.dat: Regenerate.
1876 * regformats/i386/amd64-linux.dat: Regenerate.
1877 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1878 * regformats/i386/amd64-mpx.dat: Regenerate.
1879 * regformats/i386/amd64.dat: Regenerate.
1880 * regformats/i386/i386-avx-linux.dat: Regenerate.
1881 * regformats/i386/i386-avx.dat: Regenerate.
1882 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1883 * regformats/i386/i386-avx512.dat: Regenerate.
1884 * regformats/i386/i386-linux.dat: Regenerate.
1885 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1886 * regformats/i386/i386-mmx.dat: Regenerate.
1887 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1888 * regformats/i386/i386-mpx.dat: Regenerate.
1889 * regformats/i386/i386.dat: Regenerate.
1890 * regformats/i386/x32-avx-linux.dat: Regenerate.
1891 * regformats/i386/x32-avx.dat: Regenerate.
1892 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1893 * regformats/i386/x32-avx512.dat: Regenerate.
1894 * regformats/i386/x32-linux.dat: Regenerate.
1895 * regformats/i386/x32.dat: Regenerate.
1896 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1897 * regformats/mips-dsp-linux.dat: Regenerate.
1898 * regformats/mips-linux.dat: Regenerate.
1899 * regformats/mips64-dsp-linux.dat: Regenerate.
1900 * regformats/mips64-linux.dat: Regenerate.
1901 * regformats/nios2-linux.dat: Regenerate.
1902 * regformats/rs6000/powerpc-32.dat: Regenerate.
1903 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1904 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1905 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1906 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1907 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1908 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1909 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1910 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1911 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1912 * regformats/s390-linux32.dat: Regenerate.
1913 * regformats/s390-linux32v1.dat: Regenerate.
1914 * regformats/s390-linux32v2.dat: Regenerate.
1915 * regformats/s390-linux64.dat: Regenerate.
1916 * regformats/s390-linux64v1.dat: Regenerate.
1917 * regformats/s390-linux64v2.dat: Regenerate.
1918 * regformats/s390-te-linux64.dat: Regenerate.
1919 * regformats/s390x-linux64.dat: Regenerate.
1920 * regformats/s390x-linux64v1.dat: Regenerate.
1921 * regformats/s390x-linux64v2.dat: Regenerate.
1922 * regformats/s390x-te-linux64.dat: Regenerate.
1923 * regformats/tic6x-c62x-linux.dat: Regenerate.
1924 * regformats/tic6x-c62x.dat: Regenerate.
1925 * regformats/tic6x-c64x-linux.dat: Regenerate.
1926 * regformats/tic6x-c64x.dat: Regenerate.
1927 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1928 * regformats/tic6x-c64xp.dat: Regenerate.
1929
db74e4ba
PA
19302014-10-01 Pedro Alves <palves@redhat.com>
1931
1932 * features/Makefile: Update comments.
1933 (XMLTOC): List all xml files we build C files from.
1934 (clean-cfiles): New rule.
1935
d63f2f84
PA
19362014-10-01 Pedro Alves <palves@redhat.com>
1937
1938 * features/i386/amd64-avx512-linux.c: Regenerate.
1939 * features/i386/amd64-avx512.c: Regenerate.
1940 * features/i386/x32-avx512-linux.c: Regenerate.
1941 * features/i386/x32-avx512.c: Regenerate.
1942
20ad026d
PA
19432014-10-01 Pedro Alves <palves@redhat.com>
1944
1945 * features/Makefile (WHICH): Remove arm-with-m,
1946 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1947
acc9fe45
PA
19482014-10-01 Pedro Alves <palves@redhat.com>
1949
1950 * features/Makefile (clean): New rule.
1951
e001e535
PA
19522014-10-01 Pedro Alves <palves@redhat.com>
1953
1954 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1955 (zmm14h): Add missing end quotes.
1956
bdc14417
PA
19572014-10-01 Pedro Alves <palves@redhat.com>
1958
1959 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1960 * features/aarch64.c: Regenerate.
1961
d83ad864
DB
19622014-09-30 Don Breazeal <donb@codesourcery.com>
1963
1964 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1965 code so as to work with follow_fork_inferior.
1966 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1967 (inf_ttrace_create_inferior): Remove reference to
1968 inf_ttrace_vfork_ppid.
1969 (inf_ttrace_attach): Ditto.
1970 (inf_ttrace_detach): Ditto.
1971 (inf_ttrace_kill): Use current_inferior instead of
1972 inf_ttrace_vfork_ppid.
1973 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1974 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1975 inferior away from the parent.
1976 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1977 target_follow_fork.
1978 (follow_fork_inferior): New function.
1979 (follow_inferior_reset_breakpoints): Make function static.
1980 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1981 * linux-nat.c (linux_child_follow_fork): Move target-independent
1982 code to infrun.c:follow_fork_inferior.
1983
29082443
AA
19842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1985
1986 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1987 * gdbarch.c: Regenerate.
1988 * gdbarch.h: Likewise.
1989 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1990 gdbarch method 'regset_from_core_section'.
1991 (get_core_register_section): Remove handling for the case that
1992 regset == NULL and regset_from_core_section is defined.
1993 (get_core_registers): Drop check for deleted method.
1994 * procfs.c (procfs_do_thread_registers): Adjust comment.
1995
f968fe80
AA
19962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1997
1998 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1999 (linux_nat_make_corefile_notes): Remove.
2000 (linux_target_install_ops): Do not set target method
2001 'make_corefile_notes'.
2002 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2003 Remove field.
2004 (linux_corefile_thread_callback): Instead of args->collect, call
2005 linux_collect_thread_registers.
2006 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2007 NULL unless there is a regset iterator.
2008 (linux_make_corefile_notes_1): Remove.
2009 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2010 by linux_make_corefile_notes.
2011 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2012
174ad59a
AA
20132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2014
2015 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2016 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2017 Remove.
2018 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2019
97094034
AA
20202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2021
2022 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2023 (xtensa_iterate_over_regset_sections): New.
2024 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2025
f73d3ce7
AA
20262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2027
2028 * vax-tdep.c (vax_regset_from_core_section): Remove.
2029 (vax_iterate_over_regset_sections): New.
2030 (vax_gdbarch_init): Adjust gdbarch initialization.
2031
cb24567a
AA
20322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2033
2034 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2035 (tilegx_regset_from_core_section): Remove.
2036 (tilegx_iterate_over_regset_sections): New.
2037 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2038
e5139de8
AA
20392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2040
2041 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2042 (sparc_iterate_over_regset_sections): New.
2043 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2044 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2045 targets.
2046 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2047 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2048 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2049 target method 'make_corefile_notes'.
2050
c6d41a6f
AA
20512014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2052
2053 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2054 'sizeof_gregset' and 'sizeof_fpregset'.
2055 * sh-tdep.c (sh_regset_from_core_section): Remove.
2056 (sh_iterate_over_regset_sections): New.
2057 (sh_gdbarch_init): Adjust gdbarch initialization.
2058 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2059 sizeof_fpregset.
2060 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2061 'sizeof_gregset'.
2062
9845a0b5
AA
20632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2064
2065 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2066 (score7_linux_iterate_over_regset_sections): New.
2067 (score_gdbarch_init): Adjust gdbarch initialization.
2068
23ea9aeb
AA
20692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2070
2071 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2072 FreeBSD targets.
2073 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2074 method 'make_corefile_notes'.
2075 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2076 (ppcfbsd_regset_from_core_section): Remove.
2077 (ppcfbsd_iterate_over_regset_sections): New.
2078 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2079 initialization.
2080 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2081 (ppcnbsd_iterate_over_regset_sections): New.
2082 (ppcnbsd_init_abi): Adjust.
2083 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2084 (ppcobsd_iterate_over_regset_sections): New.
2085 (ppcobsd_init_abi): Adjust.
2086 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2087 (rs6000_aix_iterate_over_regset_sections): New.
2088 (rs6000_aix_init_osabi): Adjust.
2089
c5b8d704
AA
20902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2091
2092 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2093 (nios2_regset_from_core_section): Remove.
2094 (nios2_iterate_over_regset_sections): New.
2095 (nios2_linux_init_abi): Adjust gdbarch initialization.
2096
3636e608
AA
20972014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2098
2099 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2100 (am33_iterate_over_regset_sections): New.
2101 (am33_linux_init_osabi): Adjust gdbarch initialization.
2102
d4036235
AA
21032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2104
2105 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2106 (mips_linux_iterate_over_regset_sections): New.
2107 (mips_linux_init_abi): Adjust gdbarch initialization.
2108 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2109 (mips64obsd_iterate_over_regset_sections): New.
2110 (mips64obsd_init_abi): Adjust.
2111 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2112 (mipsnbsd_iterate_over_regset_sections): New.
2113 (mipsnbsd_init_abi): Adjust.
2114
b61ddd6e
AA
21152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2116
2117 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2118 (m88k_iterate_over_regset_sections): New.
2119 (m88k_gdbarch_init): Adjust gdbarch initialization.
2120
55a2906a
AA
21212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2122
2123 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2124 (ia64_linux_iterate_over_regset_sections): New.
2125 (ia64_linux_init_abi): Adjust gdbarch initialization.
2126
022c98ab
AA
21272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2128
2129 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2130 (m68kbsd_iterate_over_regset_sections): New.
2131 (m68kbsd_init_abi): Adjust gdbarch initialization.
2132 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2133 (m68k_linux_iterate_over_regset_sections): New.
2134 (m68k_linux_init_abi): Adjust gdbarch initialization.
2135
5fac247f
AA
21362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2137
2138 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2139 (m32r_linux_regset_from_core_section): Remove.
2140 (m32r_linux_iterate_over_regset_sections): New.
2141 (m32r_linux_init_abi): Adjust gdbarch initialization.
2142
490496c3
AA
21432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2144
2145 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2146 (amd64obsd_iterate_over_regset_sections): New.
2147 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2148 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2149 Remove.
2150 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2151 regset_from_core_section initialization.
2152 * i386-tdep.c (i386_regset_from_core_section): Remove.
2153 (i386_iterate_over_regset_sections): New.
2154 (i386_gdbarch_init): Adjust gdbarch initialization.
2155 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2156 (i386_iterate_over_regset_sections): New prototype.
2157 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2158 Remove.
2159 (i386obsd_aout_iterate_over_regset_sections): New.
2160 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2161 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2162 targets.
2163 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2164 (amd64fbsd_init_abi): Call fbsd_init_abi.
2165 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2166 (i386fbsd4_init_abi): Call fbsd_init_abi.
2167 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2168 target method 'make_corefile_notes'.
2169 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2170
50c5eb53
AA
21712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2172
2173 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2174 (hppa_hpux_iterate_over_regset_sections): New.
2175 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2176 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2177 (hppa_linux_iterate_over_regset_sections): New.
2178 (hppa_linux_init_abi): Adjust.
2179 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2180 (hppanbsd_iterate_over_regset_sections): New.
2181 (hppanbsd_init_abi): Adjust.
2182 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2183 (hppaobsd_iterate_over_regset_sections): New.
2184 (hppaobsd_init_abi): Adjust.
2185
66afae4f
AA
21862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2187
2188 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2189 (frv_linux_iterate_over_regset_sections): New.
2190 (frv_linux_init_abi): Adjust gdbarch initialization.
2191
ed09174e
AA
21922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2193
2194 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2195 (armbsd_iterate_over_regset_sections): New prototype.
2196 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2197 (armbsd_iterate_over_regset_sections): New.
2198 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2199 initialization.
2200
dff2166e
AA
22012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2202
2203 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2204 (alpha_linux_iterate_over_regset_sections): New.
2205 (alpha_linux_init_abi): Adjust gdbarch initialization.
2206 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2207 prototype.
2208 (alphanbsd_iterate_over_regset_sections): New prototype.
2209
4108500a
AA
22102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2211
2212 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2213 Remove.
2214 (aarch64_linux_iterate_over_regset_sections): New.
2215 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2216
a904c024
AA
22172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2218
2219 * fbsd-tdep.c: New file.
2220 * fbsd-tdep.h: New file.
2221 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2222 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2223 (ALLDEPFILES): Add fbsd-tdep.c.
2224
8f0435f7
AA
22252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2226
2227 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2228 parameter.
2229 * gdbarch.h: Regenerate.
2230 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2231 iterator.
2232 (get_core_register_section): Add parameter 'regset' and use it, if
2233 set. Add parameter 'min_size' and verify the bfd section size
2234 against it.
2235 (get_core_registers_cb): Add parameter 'regset' and pass it to
2236 get_core_register section. For the "standard" register sections
2237 ".reg" and ".reg2", set an appropriate default for human_name.
2238 (get_core_registers): Don't abort when the gdbarch has an iterator
2239 but no regset_from_core_section. Add NULL/0 for parameters
2240 'regset'/'min_size' in calls to get_core_register_section.
2241 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2242 'regset' and use it instead of calling the
2243 regset_from_core_section gdbarch method.
2244 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2245 * i386-tdep.c (i386_supply_xstateregset)
2246 (i386_collect_xstateregset, i386_xstateregset): Moved to
2247 i386-linux-tdep.c.
2248 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2249 .reg-xstate.
2250 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2251 core file support only if the regset iterator hasn't been set.
2252 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2253 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2254 Moved from i386-tdep.c and renamed to *_linux*.
2255 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2256 each callback invocation. Allow any .reg-xstate size when reading
2257 from a core file.
2258 * amd64-tdep.c (amd64_supply_xstateregset)
2259 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2260 amd64-linux-tdep.c.
2261 (amd64_regset_from_core_section): Remove.
2262 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2263 install an amd64-specific regset_from_core_section gdbarch method.
2264 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2265 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2266 Moved from amd64-tdep.c and renamed to *_linux*.
2267 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2268 to each callback invocation. Allow any .reg-xstate size when
2269 reading from a core file.
2270 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2271 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2272 each callback invocation.
2273 (arm_linux_init_abi): No longer set the regset_from_core_section
2274 gdbarch method.
2275 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2276 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2277 each callback invocation.
2278 (ppc_linux_init_abi): No longer set the regset_from_core_section
2279 gdbarch method.
2280 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2281 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2282 (s390_regset_from_core_section): Remove.
2283 (s390_iterate_over_regset_sections): Add regset parameter to each
2284 callback invocation.
2285 (s390_gdbarch_init): No longer set the regset_from_core_section
2286 gdbarch method. Drop initialization of deleted tdep fields.
2287
5aa82d05
AA
22882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2289
2290 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2291 (amd64_linux_iterate_over_regset_sections): New.
2292 (amd64_linux_init_abi_common): Don't install the regset section
2293 list, but the new iterator in gdbarch.
2294 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2295 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2296 (arm_linux_iterate_over_regset_sections): ...here. New function.
2297 (arm_linux_init_abi): Set iterator instead of section list.
2298 * corelow.c (get_core_registers_cb): New function, logic moved
2299 from...
2300 (get_core_registers): ...loop body here. Use new iterator method
2301 instead of walking through the regset section list.
2302 * gdbarch.sh: Remove 'core_regset_sections'. New method
2303 'iterate_over_regset_sections'. New typedef
2304 'iterate_over_regset_sections_cb'.
2305 * gdbarch.c: Regenerate.
2306 * gdbarch.h: Likewise.
2307 * i386-linux-tdep.c (i386_linux_regset_sections)
2308 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2309 Remove.
2310 (i386_linux_iterate_over_regset_sections): New.
2311 (i386_linux_init_abi): Don't choose a regset section list, but
2312 install new iterator in gdbarch.
2313 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2314 (linux_collect_regset_section_cb): New function, logic moved
2315 from...
2316 (linux_collect_thread_registers): ...loop body here. Use iterator
2317 method instead of walking through list.
2318 (linux_make_corefile_notes_1): Check for presence of iterator
2319 method instead of regset section list.
2320 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2321 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2322 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2323 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2324 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2325 (ppc_linux_init_abi): Don't choose from above regset section
2326 lists, but install new iterator in gdbarch.
2327 * regset.h (struct core_regset_section): Remove.
2328 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2329 have_linux_v1, have_linux_v2, and have_tdb.
2330 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2331 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2332 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2333 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2334 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2335 (s390_iterate_over_regset_sections): ...here. New function. Use
2336 new tdep fields.
2337 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2338 regset section lists, but install new iterator.
2339
2eca4a8d
JK
23402014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2341
2342 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2343
a73c2b56
SM
23442014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2345
2346 * progspace.c (print_program_space): Don't prune program spaces
2347 before printing them.
2348
03d46957
PA
23492014-09-25 Pedro Alves <palves@redhat.com>
2350
2351 * infrun.c (user_visible_resume_ptid): Don't check
2352 singlestep_breakpoints_inserted_p.
2353
e558d7c1
PA
23542014-09-25 Pedro Alves <palves@redhat.com>
2355
2356 * breakpoint.c (should_be_inserted): Add debug output.
2357
7f89fd65
PA
23582014-09-25 Pedro Alves <palves@redhat.com>
2359
2360 * infrun.c (stepping_past_instruction_at)
2361 (clear_exit_convenience_vars): Point at infrun.h instead of
2362 inferior.h.
2363 (handle_signal_stop): Fix typo.
2364
b7576e5c
YQ
23652014-09-24 Yao Qi <yao@codesourcery.com>
2366
2367 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2368 bitmask.
2369
9a6cf368
GB
23702014-09-22 Gary Benson <gbenson@redhat.com>
2371
2372 * target.c (target_stop): Updated comment.
2373
03f4463b
GB
23742014-09-22 Gary Benson <gbenson@redhat.com>
2375
2376 * target/target.h (target_stop_ptid): Renamed as...
2377 (target_stop_and_wait): New function. Updated comment.
2378 All uses updated.
2379 (target_continue_ptid): Renamed as...
2380 (target_continue_no_signal): New function. Updated comment.
2381 All uses updated.
2382
a25a5a45
PA
23832014-09-22 Pedro Alves <palves@redhat.com>
2384
2385 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2386 and "auto" merged.
2387 * breakpoint.c (enum ugll_insert_mode): New enum.
2388 (always_inserted_mode): Now a plain boolean.
2389 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2390 (breakpoints_always_inserted_mode): Delete.
2391 (breakpoints_should_be_inserted_now): New function.
2392 (insert_breakpoints): Pass UGLL_INSERT to
2393 update_global_location_list instead of calling
2394 insert_breakpoint_locations manually.
2395 (create_solib_event_breakpoint_1): New, factored out from ...
2396 (create_solib_event_breakpoint): ... this.
2397 (create_and_insert_solib_event_breakpoint): Use
2398 create_solib_event_breakpoint_1 instead of calling
2399 insert_breakpoint_locations manually.
2400 (update_global_location_list): Change parameter type from boolean
2401 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2402 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2403 (update_global_location_list_nothrow): Change parameter type from
2404 boolean to enum ugll_insert_mode.
2405 (_initialize_breakpoint): "breakpoint always-inserted" option is
2406 now a boolean command. Update help text.
2407 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2408 (breakpoints_should_be_inserted_now): New declaration.
2409 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2410 Remove breakpoints_always_inserted_mode check.
2411 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2412 * remote.c (remote_start_remote): Likewise.
2413
04086b45
PA
24142014-09-22 Pedro Alves <palves@redhat.com>
2415
2416 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2417 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2418 Instead, pass UGLL_INSERT to update_global_location_list.
2419 (update_global_location_list): Change parameter type from boolean
2420 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2421 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2422 (create_solib_event_breakpoint_1): New, factored out from ...
2423 (create_solib_event_breakpoint): ... this.
2424 (create_and_insert_solib_event_breakpoint): Use
2425 create_solib_event_breakpoint_1 instead of calling
2426 insert_breakpoint_locations manually.
2427 (update_global_location_list): Handle UGLL_INSERT.
2428
44702360
PA
24292014-09-22 Pedro Alves <palves@redhat.com>
2430
2431 * breakpoint.c (enum ugll_insert_mode): New enum.
2432 (update_global_location_list)
2433 (update_global_location_list_nothrow): Change parameter type from
2434 boolean to enum ugll_insert_mode. All callers adjusted.
2435
93c6145a
JB
24362014-09-19 Joel Brobecker <brobecker@adacore.com>
2437
2438 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2439 SystemTap support in GDB.
2440
89a5711c
DB
24412014-09-19 Don Breazeal <donb@codesourcery.com>
2442
2443 * linux-nat.c (linux_handle_extended_wait): Call
2444 linux_ptrace_get_extended_event.
2445 (wait_lwp): Call linux_is_extended_waitstatus.
2446 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2447 and linux_is_extended_waitstatus.
2448 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2449 linux_ptrace_get_extended_event.
2450 (linux_ptrace_get_extended_event): New function.
2451 (linux_is_extended_waitstatus): New function.
2452 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2453 (linux_is_extended_waitstatus): New declarations.
2454
c3b7b696
YQ
24552014-09-19 Yao Qi <yao@codesourcery.com>
2456
2457 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2458 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2459 comments. Callers update.
2460 (dwarf_decode_lines): Likewise.
2461 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2462 comments. Skip the line table if 'lowpc' is greater than
2463 'address'. Don't check
2464 dwarf2_per_objfile->has_section_at_zero.
2465
2b4fd423
DE
24662014-09-18 Doug Evans <dje@google.com>
2467
2468 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2469 * python/py-symtab.c (stpy_get_producer): New function.
2470 (symtab_object_getset): Add "producer" attribute.
2471
5e43d467
UW
24722014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2473
2474 PR gdb/17384
2475 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2476 (do_captured_read_memory_integer): Remove.
2477 (safe_read_memory_integer): Use target_read_memory directly instead
2478 of catching errors in do_captured_read_memory_integer.
2479
04e79979
MR
24802014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2481
2482 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2483 not gdb/doc.
2484
76aeec5b
SDJ
24852014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2486
2487 * objc-lang.c (find_implementation_from_class): Remove dead code.
2488
2f693f9d
SDJ
24892014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2490
2491 PR cli/7233
2492 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2493 "fprintf_unfiltered (gdb_stdlog...)".
2494
bb9d5f81
PP
24952014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2496
2497 PR breakpoints/12526
2498 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2499 val_bitsize.
2500 * breakpoint.c (watch_command_1): Use these fields to retain
2501 bitfield information.
2502 (extract_bitfield_from_watchpoint_value): New function.
2503 (watchpoint_check): Use it.
2504 (update_watchpoint): Use it. Optimize the address and length of a
2505 HW watchpoint pointing to a bitfield.
2506 * value.h (unpack_value_bitfield): New prototype.
2507 * value.c (unpack_value_bitfield): Make extern.
2508
05db5edd
ST
25092014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2510
2511 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2512 x86-dregs.o.
2513 * gnu-nat.c (inf_threads): New function.
2514 * gnu-nat.h (inf_threads_ftype): New typedef.
2515 (inf_threads): New declaration.
2516 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2517 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2518 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2519 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2520 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2521 (i386_gnu_dr_get_control): New functions.
2522 (reg_addr): New structure.
2523 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2524 i386 debugging register hooks.
2525 * NEWS: Mention this.
2526
5a578da5
OJ
25272014-08-13 Omair Javaid <omair.javaid@linaro.org>
2528
2529 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2530 vector data transfer instructions.
2531 (arm_record_coproc_data_proc): Updated.
2532
f20f80dd
OJ
25332014-08-13 Omair Javaid <omair.javaid@linaro.org>
2534
2535 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2536 arm_record_exreg_ld_st_insn.
2537 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2538 load/store insns.
2539
851f26ae
OJ
25402014-08-13 Omair Javaid <omair.javaid@linaro.org>
2541
2542 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2543 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2544 processing instructions.
2545
1e1b6563
OJ
25462014-08-13 Omair Javaid <omair.javaid@linaro.org>
2547
2548 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2549 for advance SIMD struct ld/st insn.
2550 (thumb2_record_decode_insn_handler): Replace stub handler with
2551 thumb2_record_asimd_struct_ld_st.
2552
60cc5e93
OJ
25532014-08-13 Omair Javaid <omair.javaid@linaro.org>
2554
2555 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2556 for asimd, vfp and coprocessor insns.
2557 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2558 and coprocessor insns.
2559 (thumb2_record_coproc_insn): New function.
2560 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2561 handlers.
2562 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2563 opcode 110 insns.
2564
81219e53
DE
25652014-09-13 Doug Evans <xdje42@gmail.com>
2566
2567 * NEWS: Mention new "queue-signal" command.
2568 * infcmd.c (queue_signal_command): New function.
2569 (_initialize_infcmd): Add new queue-signal command.
2570
d36bf488
DE
25712014-09-13 Doug Evans <xdje42@gmail.com>
2572
2573 * linux-nat.c (wait_lwp): Add debugging printf.
2574 (linux_nat_wait_1): Ditto.
2575
f37f681c
PA
25762014-09-12 Pedro Alves <palves@redhat.com>
2577
2578 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2579 (create_and_insert_solib_event_breakpoint): New functions.
2580 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2581 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2582 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2583 (remove_dbx_link_breakpoint): Delete function.
2584 (insert_dbx_link_bpt_in_file): Use
2585 create_and_insert_solib_event_breakpoint instead of
2586 deprecated_insert_raw_breakpoint.
2587 (procfs_wait): Don't check whether we hit __dbx_link here.
2588 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2589 here.
2590 * solib-irix.c (base_breakpoint): Delete global.
2591 (disable_break): Delete function.
2592 (enable_break): Use create_solib_event_breakpoint
2593 instead of deprecated_insert_raw_breakpoint.
2594 (irix_solib_handle_event): New function.
2595 (irix_solib_create_inferior_hook): Don't run the target or disable
2596 the mapping-complete breakpoint here.
2597 (_initialize_irix_solib): Install irix_solib_handle_event as
2598 so_ops->handle_event hook.
2599
9d9bf2df
EBM
26002014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2601 Ulrich Weigand  <uweigand@de.ibm.com>
2602
2603 PR tdep/17379
2604 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2605 instead of read_memory_unsigned_integer.
2606
b006a80e
GB
26072014-09-12 Gary Benson <gbenson@redhat.com>
2608
2609 * nat/linux-waitpid.c: Include common-defs.h.
2610 [GDBSERVER]: Add FIXME comment.
2611 [!GDBSERVER]: Don't include defs.h or signal.h.
2612 (linux_debug) [!GDBSERVER]: Remove empty block.
2613
296b1496
GB
26142014-09-12 Gary Benson <gbenson@redhat.com>
2615
2616 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2617 Don't include defs.h or server.h.
2618
53f81362
GB
26192014-09-12 Gary Benson <gbenson@redhat.com>
2620
2621 * nat/linux-btrace.c: Include common-defs.h.
2622 Don't include defs.h, server.h or gdbthread.h.
2623 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2624
727605ca
GB
26252014-09-12 Gary Benson <gbenson@redhat.com>
2626
2627 * common/agent.c: Include common-defs.h.
2628 Don't include defs.h or server.h.
2629 * common/buffer.c: Likewise.
2630 * common/common-debug.c: Likewise.
2631 * common/common-utils.c: Likewise.
2632 * common/errors.c: Likewise.
2633 * common/filestuff.c: Likewise.
2634 * common/format.c: Likewise.
2635 * common/gdb_vecs.c: Likewise.
2636 * common/print-utils.c: Likewise.
2637 * common/ptid.c: Likewise.
2638 * common/rsp-low.c: Likewise.
2639 * common/signals.c: Likewise.
2640 * common/vec.c: Likewise.
2641 * common/xml-utils.c: Likewise.
2642 * nat/linux-osdata.c: Likewise.
2643 * nat/linux-procfs.c: Likewise.
2644 * nat/linux-ptrace.c: Likewise.
2645 * nat/mips-linux-watch.c: Likewise.
2646 * target/waitstatus.c: Likewise.
2647
361c8ade
GB
26482014-09-12 Tom Tromey <tromey@redhat.com>
2649 Gary Benson <gbenson@redhat.com>
2650
2651 * common/common-regcache.h: New file.
2652 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2653 * regcache.h: Include common-regcache.h.
2654 (regcache_read_pc): Don't declare.
2655 * regcache.c (get_thread_regcache_for_ptid): New function.
2656 * nat/linux-btrace.c: Don't include regcache.h.
2657 Include common-regcache.h.
2658 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2659
a01cbb49
TS
26602014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2661
2662 * regcache.h (struct regset): Declare.
2663
98880d46
PA
26642014-09-11 Pedro Alves <palves@redhat.com>
2665
2666 PR gdb/17347
2667 * main.c: Include "infrun.h".
2668 (catch_command_errors, catch_command_errors_const): Wait for the
2669 foreground command to complete.
2670 * top.c (maybe_wait_sync_command_done): New function, factored out
2671 from ...
2672 (maybe_wait_sync_command_done): ... here.
2673 * top.h (maybe_wait_sync_command_done): New declaration.
2674
bd9269f7
GB
26752014-09-11 Tom Tromey <tromey@redhat.com>
2676 Gary Benson <gbenson@redhat.com>
2677
2678 * common/symbol.h: New file.
2679 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2680 * minsyms.c (find_minimal_symbol_address): New function.
2681 * common/agent.c: Include common/symbol.h.
2682 [!GDBSERVER]: Don't include objfiles.h.
2683 (agent_look_up_symbols): Use find_minimal_symbol_address.
2684
f8c1d06b
GB
26852014-09-11 Gary Benson <gbenson@redhat.com>
2686
2687 * target/target.h (target_stop_ptid, target_continue_ptid):
2688 Declare.
2689 * target.c (target_stop_ptid, target_continue_ptid): New
2690 functions.
2691 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2692 (agent_run_command): Always use target_stop_ptid and
2693 target_continue_ptid.
2694
721ec300
GB
26952014-09-11 Tom Tromey <tromey@redhat.com>
2696 Gary Benson <gbenson@redhat.com>
2697
2698 * target/target.h: New file.
2699 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2700 * target.h: Include target/target.h.
2701 (target_read_memory, target_write_memory): Don't declare.
2702 * target.c (target_read_uint32): New function.
2703 * common/agent.c: Include target/target.h.
2704 [!GDBSERVER]: Don't include target.h.
2705 (helper_thread_id): Type changed to uint32_t.
2706 (agent_get_helper_thread_id): Use target_read_uint32.
2707 (agent_run_command): Always use target_read_memory and
2708 target_write_memory.
2709 (agent_capability): Type changed to uint32_t.
2710 (agent_capability_check): Use target_read_uint32.
2711
c5e92cca
GB
27122014-09-11 Gary Benson <gbenson@redhat.com>
2713
2714 * common/common-debug.h (show_debug_regs): Declare.
2715 * common/common-debug.c (show_debug_regs): Define.
2716 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2717 all uses with show_debug_regs. Replace all uses that considered
2718 debug_hw_points as a multi-value integer with straight boolean
2719 uses.
2720 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2721 with show_debug_regs.
2722 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2723 all uses with show_debug_regs.
2724 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2725 uses with show_debug_regs.
2726
eeef931a
UW
27272014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2728
2729 * findvar.c (address_from_register): Handle targets requiring
2730 a special conversion routine even for plain pointer types.
2731
8efa9855
UW
27322014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2733
2734 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2735 (store_register): Do not call exec_one_dummy_insn.
2736
eb479039
JB
27372014-09-10 Joel Brobecker <brobecker@adacore.com>
2738
2739 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2740 dereference it first. Use value_enclosing_type instead of
2741 value_type.
2742 (ada_array_length): Likewise.
2743
deede10c
JB
27442014-09-10 Joel Brobecker <brobecker@adacore.com>
2745
2746 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2747 Adjust function implementation and documentation accordingly.
2748 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2749 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2750 Update call to ada_value_ptr_subscript.
2751
7828a5f5
JB
27522014-09-10 Joel Brobecker <brobecker@adacore.com>
2753
2754 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2755 instead of VAL's type.
2756
35782f14
JB
27572014-09-10 Joel Brobecker <brobecker@adacore.com>
2758
2759 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2760
d342a0da
DE
27612014-09-09 Doug Evans <xdje42@gmail.com>
2762
2763 PR guile/17367
2764 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2765 last parameter to pkg-config, not first.
2766 * configure.ac: Pass --with-guile provided pkg-config path to
2767 GDB_GUILE_PROGRAM_NAMES.
2768 * configure: Regenerate.
2769
b4a3d263
GKB
27702014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2771
2772 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2773 Bertazi".
2774
6e466374
MR
27752014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2776
2777 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2778 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2779 the list of sections determining GDB_OSABI_IRIX.
2780
a1ada89a
JH
27812014-09-09 James Hogan <james.hogan@imgtec.com>
2782
2783 * MAINTAINERS (Write After Approval): Add "James Hogan".
2784
86db008d
JH
27852014-09-09 James Hogan <james.hogan@imgtec.com>
2786
2787 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2788
72fde3df
JB
27892014-09-09 Joel Brobecker <brobecker@adacore.com>
2790
2791 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2792
92d8d229
DE
27932014-09-08 Doug Evans <xdje42@gmail.com>
2794
2795 PR 17247
2796 * guile.c: #include <signal.h>.
2797 (_initialize_guile): Block SIGCHLD while initializing Guile.
2798
2799 Replaces the following, which is reverted.
2800
2801 2014-07-26 Doug Evans <xdje42@gmail.com>
2802
2803 PR 17185
2804 * configure.ac: Add check for header gc/gc.h.
2805 Add check for function setenv.
2806 * configure: Regenerate.
2807 * config.in: Regenerate.
2808 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2809
d81412aa
DE
28102014-09-08 Doug Evans <xdje42@gmail.com>
2811
2812 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2813 with named constant. Fix style of pointer comparison.
2814 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2815
a9f116cb
GKB
28162014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2817
2818 PR gdb/17035
2819 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2820 decide whether we display the command on "show user".
2821 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2822 printing command name.
2823 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2824 * cli/cli-decode.c (cli_user_command_p): Create helper function
2825 to verify whether cmd_list_element is a user-defined command.
2826
c75bd3a2
JK
28272014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2828
2829 PR python/17355
2830 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2831 Fix goto out of TRY_CATCH.
2832
faa42425 28332014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2834 Tom Tromey <tromey@redhat.com>
faa42425
DE
2835
2836 PR 15276
2837 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2838 $_any_caller_matches.
2839 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2840 * python/lib/gdb/function/caller_is.py: New file.
2841
0d41ba00
DE
28422014-09-06 Doug Evans <xdje42@gmail.com>
2843
2844 * infcmd.c (program_info): Fix typo.
2845
474ca4f6
SDJ
28462014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2847
2848 PR gdb/17235
2849 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2850 'number'. New variable 'has_digit'. Rewrite code to deal with
2851 subexpressions on SDT probes.
2852
ebf13736
PA
28532014-09-04 Pedro Alves <palves@redhat.com>
2854
2855 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2856 the input is only one character long.
2857
eb0b0463
SDJ
28582014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2859
2860 PR fortran/17237
2861 * f-valprint.c (f_val_print): Specify the correct print option to
2862 use when printing integer values.
2863
5ee44bfa
GB
28642014-09-04 Gary Benson <gbenson@redhat.com>
2865
2866 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2867 Remove code to cope with LWPs wrapped as PIDs.
2868 Add assertions to ensure no wrapped LWPs are passed.
2869
4875ffdb
PA
28702014-09-04 Pedro Alves <palves@redhat.com>
2871
2872 * value.c (value_ranges_copy_adjusted): New function, factored out
2873 from ...
2874 (value_contents_copy_raw): ... here.
2875 (unpack_value_bits_as_long_1): Rename back to ...
2876 (unpack_bits_as_long): ... this. Remove 'original_value' and
2877 'result' parameters. Change return type to LONGEST.
2878 (unpack_value_bits_as_long): Delete.
2879 (unpack_value_field_as_long_1): Delete.
2880 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2881 (unpack_value_bitfield): New function.
2882 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2883 (value_fetch_lazy): Use unpack_value_bitfield.
2884 * value.h (unpack_value_bits_as_long): Delete declaration.
2885
5f3b99cf
SS
28862014-09-03 Sasha Smundak <asmundak@google.com>
2887
2888 * python/py-frame.c (frapy_read_register): New function.
2889
ac740bc7
JH
28902014-09-03 James Hogan <james.hogan@imgtec.com>
2891
2892 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2893 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2894
7d793aa9
SDJ
28952014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2896
2897 PR python/16699
2898 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2899 function.
2900 (add_cmd): Set "completer_handle_brkchars" to NULL.
2901 * cli/cli-decode.h (struct cmd_list_element)
2902 <completer_handle_brkchars>: New field.
2903 * command.h (completer_ftype_void): New typedef.
2904 (set_cmd_completer_handle_brkchars): New prototype.
2905 * completer.c (set_gdb_completion_word_break_characters): New
2906 function.
2907 (complete_line_internal): Call "completer_handle_brkchars"
2908 callback from command.
2909 * completer.h: Include "command.h".
2910 (set_gdb_completion_word_break_characters): New prototype.
2911 * python/py-cmd.c (cmdpy_completer_helper): New function.
2912 (cmdpy_completer_handle_brkchars): New function.
2913 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2914 (cmdpy_init): Set completer_handle_brkchars to
2915 cmdpy_completer_handle_brkchars.
2916
97ea6506
GB
29172014-09-03 Gary Benson <gbenson@redhat.com>
2918
2919 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2920 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2921 Loop conditions changed to equivalent form.
2922 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2923 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2924 ALL_DEBUG_ADDRESS_REGISTERS.
2925
d1437815
JB
29262014-09-03 Joel Brobecker <brobecker@adacore.com>
2927
2928 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2929 description fix.
2930
9b94fcf1
DE
29312014-09-02 Doug Evans <dje@google.com>
2932
2933 * typeprint.c (find_global_typedef): Fix comment.
2934
df7e5265
GB
29352014-09-02 Gary Benson <gbenson@redhat.com>
2936
2937 * i386-nat.h: Renamed as...
2938 * x86-nat.h: New file. All type, function and variable name
2939 prefixes changed from "i386_" to "x86_". All references updated.
2940 * i386-nat.c: Renamed as...
2941 * x86-nat.c: New file. All type, function and variable name
2942 prefixes changed from "i386_" to "x86_". All references updated.
2943 * common/i386-xstate.h: Renamed as...
2944 * common/x86-xstate.h: New file. All type, function and variable
2945 name prefixes changed from "i386_" to "x86_". All references
2946 updated.
2947 * nat/i386-cpuid.h: Renamed as...
2948 * nat/x86-cpuid.h: New file. All type, function and variable name
2949 prefixes changed from "i386_" to "x86_". All references updated.
2950 * nat/i386-gcc-cpuid.h: Renamed as...
2951 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2952 name prefixes changed from "i386_" to "x86_". All references
2953 updated.
2954 * nat/i386-dregs.h: Renamed as...
2955 * nat/x86-dregs.h: New file. All type, function and variable name
2956 prefixes changed from "i386_" to "x86_". All references updated.
2957 * nat/i386-dregs.c: Renamed as...
2958 * nat/x86-dregs.c: New file. All type, function and variable name
2959 prefixes changed from "i386_" to "x86_". All references updated.
2960
1c3569d4
MR
29612014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2962
2963 * varobj.c (_initialize_varobj): Move to the end of file.
2964
ff55e1b5
GB
29652014-08-29 Gary Benson <gbenson@redhat.com>
2966
2967 * common/common-exceptions.h: New file.
2968 * common/common-exceptions.c: Likewise.
2969 * Makefile.in (SFILES): Add common/common-exceptions.c.
2970 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2971 (COMMON_OBS): Add common-exceptions.o.
2972 (common-exceptions.o): New rule.
2973 * exceptions.h (common-exceptions.h): Include.
2974 (gdb_setjmp.h): Do not include.
2975 (return_reason): Moved to common-exceptions.h.
2976 (enum return_reason): Likewise.
2977 (RETURN_MASK): Likewise.
2978 (typedef return_mask): Likewise.
2979 (enum errors): Likewise.
2980 (struct gdb_exception): Likewise.
2981 (exceptions_state_mc_init): Likewise.
2982 (exceptions_state_mc_action_iter): Likewise.
2983 (exceptions_state_mc_action_iter_1): Likewise.
2984 (TRY_CATCH): Likewise.
2985 (throw_exception): Likewise.
2986 (throw_verror): Likewise.
2987 (throw_vquit): Likewise.
2988 (throw_error): Likewise.
2989 (throw_quit): Likewise.
2990 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2991 (enum catcher_action): Likewise.
2992 (struct catcher): Likewise.
2993 (current_catcher): Likewise.
2994 (catcher_list_size): Likewise.
2995 (exceptions_state_mc_init): Likewise.
2996 (catcher_pop): Likewise.
2997 (exceptions_state_mc): Likewise.
2998 (exceptions_state_mc_action_iter): Likewise.
2999 (exceptions_state_mc_action_iter_1): Likewise.
3000 (throw_exception): Likewise.
3001 (exception_messages): Likewise.
3002 (exception_messages_size): Likewise.
3003 (throw_it): Likewise.
3004 (throw_verror): Likewise.
3005 (throw_vquit): Likewise.
3006 (throw_error): Likewise.
3007 (throw_quit): Likewise.
3008 (prepare_to_throw_exception): New function.
3009
e9bcb658
GB
30102014-08-29 Gary Benson <gbenson@redhat.com>
3011
3012 * common/gdb_setjmp.h: New file.
3013 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3014 * configure.ac: Move sigsetjmp check...
3015 * common/common.m4: ...here.
3016 * configure: Regenerate.
3017 * cp-support.c (SIGJMP_BUF): Delete.
3018 (SIGSETJMP): Likewise.
3019 (SIGLONGJMP): Likewise.
3020 * exceptions.h (gdb_setjmp.h): Include.
3021 (setjmp.h): Do not include.
3022 (EXCEPTIONS_SIGJMP_BUF): Delete.
3023 (EXCEPTIONS_SIGSETJMP): Likewise.
3024 (EXCEPTIONS_SIGLONGJMP): Likewise.
3025 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3026 from gdb_setjmp.h.
3027 * exceptions.c: Likewise.
3028
e3180625
GB
30292014-08-29 Gary Benson <gbenson@redhat.com>
3030
3031 * cleanups.h: Moved to...
3032 * common/cleanups.h: New file.
3033 * cleanups.c: Moved to...
3034 * common/cleanups.c: New file. Include common-defs.h and
3035 cleanups.h. Do not include defs.h.
3036 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3037 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3038 (cleanups.o): New rule.
3039
e3d6ba5d
GB
30402014-08-29 Gary Benson <gbenson@redhat.com>
3041
3042 * common/errors.h (internal_warning): New declaration.
3043 (internal_vwarning): Likewise.
3044 * common/errors.c (internal_warning): New function.
3045 * utils.h (internal_warning): Don't declare.
3046 (internal_vwarning): Likewise.
3047 * utils.c (internal_warning): Removed.
3048
075c7033
GB
30492014-08-29 Gary Benson <gbenson@redhat.com>
3050
3051 * main.c (captured_main): Use warning during startup.
3052 Prefix startup warning messages with command name.
3053
91b35fd0
GB
30542014-08-29 Gary Benson <gbenson@redhat.com>
3055
3056 * main.c (captured_main): Handle usage errors with error.
3057
b1ec390e
GB
30582014-08-29 Gary Benson <gbenson@redhat.com>
3059
3060 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3061 exit pair with a call to error. Wrap the message with _().
3062
fd0ef3dd
GB
30632014-08-29 Gary Benson <gbenson@redhat.com>
3064
3065 * main.c (captured_main): Replace a fprintf/exit
3066 pair with a call to error. Wrap the message with _().
3067
e0e6bcab
GB
30682014-08-29 Gary Benson <gbenson@redhat.com>
3069
3070 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3071 pairs with calls to error. Wrap the message with _().
3072
0d2f5c07
GB
30732014-08-29 Gary Benson <gbenson@redhat.com>
3074
3075 * utils.c (vwarning): Protect calls to target_terminal_ours
3076 and wrap_here.
3077
5df43998
GB
30782014-08-29 Gary Benson <gbenson@redhat.com>
3079
3080 * exceptions.c (print_flush): Protect calls to
3081 target_terminal_ours and wrap_here.
3082
2437fd32
GB
30832014-08-29 Gary Benson <gbenson@redhat.com>
3084
3085 * utils.h (filtered_printing_initialized): New declaration.
3086 * utils.c (abort_with_message): New function.
3087 (internal_vproblem): Use abort_with_message for first level
3088 recursive internal problems, and if gdb_stderr is not set up.
3089 Protect calls to target_terminal_ours, begin_line and query.
3090
f1f58506
DE
30912014-08-28 Doug Evans <dje@google.com>
3092
3093 * symtab.c (in_prologue): Move definition to better spot.
3094 (skip_prologue_using_sal): Ditto.
3095
aab2f208
DE
30962014-08-28 Doug Evans <dje@google.com>
3097
3098 * symtab.c (find_function_start_sal): Move definition to better spot.
3099
6b65d1b6
YQ
31002014-08-28 Yao Qi <yao@codesourcery.com>
3101
3102 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3103 found_stack_adjust in forward scan. Remove condition check
3104 on found_stack_adjust which is always true. Indent the code.
3105
a1b34d15
YQ
31062014-08-28 Yao Qi <yao@codesourcery.com>
3107
3108 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3109 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3110 (dwarf_decode_lines): Remove argument
3111 want_line_info. Remove condition check on want_line_info.
3112 Callers update.
3113
d5962de5
DE
31142014-08-27 Doug Evans <dje@google.com>
3115
3116 * dwarf2read.c (dwarf_record_line): Fix typo.
3117
9b139002
SDJ
31182014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3119
3120 * target.h (struct target_ops::to_terminal_save_ours): Remove
3121 declaration.
3122 (target_terminal_save_ours): Remove macro.
3123 * target-delegates.c: Regenerate.
3124 * inf-child.c (inf_child_target): Don't set the nonexistent
3125 field to_terminal_save_ours.
3126 * inferior.h (child_terminal_save_ours): Remove declaration.
3127 * terminal.h (gdb_save_tty_state): New declaration.
3128 * inflow.c (child_terminal_save_ours): Rename to ...
3129 (gdb_save_tty_state): ... this.
3130 * tui/tui.c: Include terminal.h.
3131 (tui_enable): Use gdb_save_tty_state instead of
3132 target_terminal_save_ours.
3133 (tui_disable): Likewise.
3134
9debeba0
DE
31352014-08-25 Doug Evans <dje@google.com>
3136
3137 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3138 Pass NULL instead of 0 for context pointer.
3139
428fc5fc
YQ
31402014-08-25 Yao Qi <yao@codesourcery.com>
3141
3142 * dwarf2read.c: Fix grammatical error.
3143
cdc07690
YQ
31442014-08-24 Yao Qi <yao@codesourcery.com>
3145
3146 * dwarf2read.c (scan_partial_symbols): Update comments.
3147 Rename argument 'need_pc' with 'set_addrmap'.
3148 (add_partial_namespace): Rename argument 'need_pc' with
3149 'set_addrmap'.
3150 (add_partial_module): Likewise.
3151 (add_partial_subprogram): Likewise. Update comments.
3152 (dwarf2_name): Fix typo.
3153
a05a36a5
DE
31542014-08-22 Doug Evans <dje@google.com>
3155
3156 PR 17276
3157 * dwarf2read.c (dwarf_record_line_p): New function.
3158 (dwarf_decode_lines_1): Ignore subsequent line number entries
3159 for the same line if any entry had a non-zero discriminator.
3160
252a6764
DE
31612014-08-22 Doug Evans <dje@google.com>
3162
3163 * buildsym.h (record_line_ftype): New typedef.
3164 (record_line): Use it.
3165 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3166 (dwarf_decode_lines_1): Call them.
3167
510db052
YQ
31682014-08-22 Yao Qi <yao@codesourcery.com>
3169
3170 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3171 (ctf_end): Remove code.
3172
22fd09ae
JK
31732014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3174
3175 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3176 (linux_make_corefile_notes): call update_thread_list, protected against
3177 exceptions.
3178
656e8868
PA
31792014-08-21 Pedro Alves <palves@redhat.com>
3180
3181 * infcmd.c (attach_command): Remove comment.
3182
de589d04
WN
31832014-08-21 Bin Cheng <bin.cheng@arm.com>
3184
3185 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3186 unsigned LONGEST to ULONGEST.
3187
2a31c623
PA
31882014-08-20 Pedro Alves <palves@redhat.com>
3189
3190 * Makefile.in (check-read1): New rule.
3191
d36430db
JB
31922014-08-20 Joel Brobecker <brobecker@adacore.com>
3193
3194 * value.c (value_from_contents_and_address): Strip resolved_type's
3195 typedef layers before checking its TYPE_DATA_LOCATION.
3196
000339af
PA
31972014-08-20 Pedro Alves <palves@redhat.com>
3198
3199 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3200
5f52445b
YQ
32012014-08-20 Yao Qi <yao@codesourcery.com>
3202
3203 * amd64-tdep.c (amd64_classify): Add a blank line after the
3204 example. Move "*/" to a new line.
3205 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3206 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3207 * dwarf2read.c (psymtab_include_file_name): Likewise.
3208
9a0dc9e3
PA
32092014-08-19 Andrew Burgess <aburgess@broadcom.com>
3210 Pedro Alves <palves@redhat.com>
3211
3212 PR symtab/14604
3213 PR symtab/14605
3214 * ada-lang.c (coerce_unspec_val_to_type): Use
3215 value_contents_copy_raw.
3216 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3217 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3218 * cp-valprint.c (cp_print_value_fields): Let the common printing
3219 code handle optimized out values.
3220 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3221 * d-valprint.c (dynamic_array_type): Use
3222 value_bits_any_optimized_out.
3223 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3224 check_any_valid fields.
3225 (check_pieced_value_bits): Delete and inline ...
3226 (check_pieced_synthetic_pointer): ... here.
3227 (check_pieced_value_validity): Delete.
3228 (check_pieced_value_invalid): Delete.
3229 (pieced_value_funcs): Remove check_validity and check_any_valid
3230 fields.
3231 (read_pieced_value): Use mark_value_bits_optimized_out.
3232 (write_pieced_value): Switch to use
3233 mark_value_bytes_optimized_out.
3234 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3235 of assuming the whole value is optimized out.
3236 * findvar.c (read_frame_register_value): Remove special handling
3237 of optimized out registers.
3238 (value_from_register): Use mark_value_bytes_optimized_out.
3239 * frame-unwind.c (frame_unwind_got_optimized): Use
3240 mark_value_bytes_optimized_out.
3241 * jv-valprint.c (java_value_print): Adjust.
3242 (java_print_value_fields): Let the common printing code handle
3243 optimized out values.
3244 * mips-tdep.c (mips_print_register): Remove special handling of
3245 optimized out registers.
3246 * opencl-lang.c (lval_func_check_validity): Delete.
3247 (lval_func_check_any_valid): Delete.
3248 (opencl_value_funcs): Remove check_validity and check_any_valid
3249 fields.
3250 * p-valprint.c (pascal_object_print_value_fields): Let the common
3251 printing code handle optimized out values.
3252 * stack.c (read_frame_arg): Remove special handling of optimized
3253 out values. Fetch both VAL and ENTRYVAL before comparing
3254 contents. Adjust to value_available_contents_eq rename.
3255 * valprint.c (valprint_check_validity)
3256 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3257 (val_print_array_elements): Adjust.
3258 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3259 (value_bits_any_optimized_out): New function.
3260 (value_entirely_covered_by_range_vector): New function, factored
3261 out from value_entirely_unavailable.
3262 (value_entirely_unavailable): Reimplement.
3263 (value_entirely_optimized_out): New function.
3264 (insert_into_bit_range_vector): New function, factored out from
3265 mark_value_bits_unavailable.
3266 (mark_value_bits_unavailable): Reimplement.
3267 (struct ranges_and_idx): New struct.
3268 (find_first_range_overlap_and_match): New function, factored out
3269 from value_available_contents_bits_eq.
3270 (value_available_contents_bits_eq): Rename to ...
3271 (value_contents_bits_eq): ... this. Check both unavailable
3272 contents and optimized out contents.
3273 (value_available_contents_eq): Rename to ...
3274 (value_contents_eq): ... this.
3275 (allocate_value_lazy): Remove reference to the old optimized_out
3276 boolean.
3277 (allocate_optimized_out_value): Use
3278 mark_value_bytes_optimized_out.
3279 (require_not_optimized_out): Adjust to check whether the
3280 optimized_out vec is empty.
3281 (ranges_copy_adjusted): New function, factored out from
3282 value_contents_copy_raw.
3283 (value_contents_copy_raw): Also copy the optimized out ranges.
3284 Assert the destination ranges aren't optimized out.
3285 (value_contents_copy): Update comment, remove call to
3286 require_not_optimized_out.
3287 (value_contents_equal): Adjust to check whether the optimized_out
3288 vec is empty.
3289 (set_value_optimized_out, value_optimized_out_const): Delete.
3290 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3291 New functions.
3292 (value_entirely_optimized_out, value_bits_valid): Delete.
3293 (value_copy): Take a VEC copy of the 'optimized_out' field.
3294 (value_primitive_field): Remove special handling of optimized out.
3295 (value_fetch_lazy): Assert that lazy values have no unavailable
3296 regions. Use value_bits_any_optimized_out. Remove some special
3297 handling for optimized out values.
3298 * value.h: Add intro comment about <optimized out> and
3299 <unavailable>.
3300 (struct lval_funcs): Remove check_validity and check_any_valid
3301 fields.
3302 (set_value_optimized_out, value_optimized_out_const): Remove.
3303 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3304 New declarations.
3305 (value_bits_any_optimized_out): New declaration.
3306 (value_bits_valid): Delete declaration.
3307 (value_available_contents_eq): Rename to ...
3308 (value_contents_eq): ... this, and extend comments.
3309
6694c411
JK
33102014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3311
3312 Fix -fsanitize=address on unreadable inferior strings.
3313 * valprint.c (val_print_string): Fix access before BUFFER.
3314
89a1c21a
SM
33152014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3316
3317 * target.c (target_struct_size): Remove.
3318 (target_struct_allocsize): Remove.
3319 (DEFAULT_ALLOCSIZE): Remove.
3320 (target_ops_p): New typedef.
3321 (DEF_VEC_P (target_ops_p)): New vector type.
3322 (target_structs): Change type to VEC (target_ops_p).
3323 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3324 (find_default_run_target): Rewrite for loop following changes to
3325 target_structs.
3326
cb417230
JB
33272014-08-19 Joel Brobecker <brobecker@adacore.com>
3328
3329 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3330 Adjust code accordingly. Adjust function description comment.
3331
817e0957
YQ
33322014-08-19 Yao Qi <yao@codesourcery.com>
3333
3334 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3335 types.
3336
2974be62
AM
33372014-08-19 Alan Modra <amodra@gmail.com>
3338
3339 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3340 * config.in: Regenerate.
3341 * configure: Regenerate.
3342
34abf635
GB
33432014-08-19 Tom Tromey <tromey@redhat.com>
3344 Gary Benson <gbenson@redhat.com>
3345
3346 * common/common-debug.h: New file.
3347 * common/common-debug.c: Likewise.
3348 * debug.c: Likewise.
3349 * Makefile.in (SFILES): Add common/common-debug.c.
3350 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3351 (COMMON_OBS): Add common-debug.o and debug.o.
3352 (common-debug.o): New rule.
3353 * common/common-defs.h: Include common-debug.h.
3354 * common/agent.c (debug_agent_printf): New function.
3355 (DEBUG_AGENT): Redefine.
3356 * nat/i386-dregs.c (debug_printf): Undefine.
3357
f6e94d78
GB
33582014-08-19 Gary Benson <gbenson@redhat.com>
3359
3360 * common/common-defs.h: Include print-utils.h.
3361 * utils.h: Do not include print-utils.h.
3362
9239eeab
GB
33632014-08-19 Tom Tromey <tromey@redhat.com>
3364 Gary Benson <gbenson@redhat.com>
3365
3366 * common/common-types.h: New file.
3367 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3368 * common/common-defs.h: Include common-types.h.
3369 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3370 (ULONGEST): Remove.
3371
ef87c8bb
GB
33722014-08-19 Tom Tromey <tromey@redhat.com>
3373 Gary Benson <gbenson@redhat.com>
3374
3375 * common/errors.h: New file.
3376 * common/errors.c: Likewise.
3377 * Makefile.in (SFILES): Add common/errors.c.
3378 (HFILES_NO_SRCDIR): Add common/errors.h.
3379 (COMMON_OBS): Add errors.o.
3380 (errors.o): New rule.
3381 * common/common-defs.h: Include errors.h.
3382 * utils.h (perror_with_name, error, verror, warning, vwarning):
3383 Don't declare.
3384 * common/common-utils.h: (malloc_failure, internal_error):
3385 Likewise.
3386
196a707b
GB
33872014-08-19 Gary Benson <gbenson@redhat.com>
3388
3389 * utils.c (internal_vproblem): Always print the message.
3390
ded4fc8f
DE
33912014-08-18 Doug Evans <dje@google.com>
3392
3393 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3394
950c97d8
JB
33952014-08-18 Joel Brobecker <brobecker@adacore.com>
3396
3397 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3398 Return 0 if TYPE is dynamic.
3399 (print_range): Add handling of dynamic ranges.
3400
3cdcd0ce
JB
34012014-08-18 Keven Boell <keven.boell@intel.com>
3402 Joel Brobecker <brobecker@adacore.com>
3403
3404 * gdbtypes.h (struct main_type): Add field "data_location".
3405 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3406 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3407 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3408 a dynamic data location.
3409 (resolve_dynamic_type): Add DW_AT_data_location handling.
3410 (copy_recursive, copy_type): Copy the data_location information
3411 when present.
3412 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3413 * value.c (value_from_contents_and_address): Add
3414 DW_AT_data_location handling.
3415
08412b07
JB
34162014-08-18 Keven Boell <keven.boell@intel.com>
3417 Joel Brobecker <brobecker@adacore.com>
3418
3419 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3420 field "get_object_address".
3421 * dwarf2expr.c (execute_stack_op): Add handling for
3422 DW_OP_push_object_address.
3423 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3424 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3425 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3426 (dwarf_expr_get_obj_addr): New function.
3427 (dwarf_expr_ctx_funcs): Add get_object_address field.
3428 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3429 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3430 (dwarf2_evaluate_property): Add parameter "address". Use it.
3431 (needs_get_obj_addr): New function.
3432 (needs_frame_ctx_funcs): Add get_object_address field.
3433 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3434 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3435 (resolve_dynamic_array): Likewise.
3436
84754697
JB
34372014-08-18 Joel Brobecker <brobecker@adacore.com>
3438
3439 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3440 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3441 fixed value for records and unions for which some GNAT encodings
3442 are present.
3443
da5c522f
JB
34442014-08-18 Joel Brobecker <brobecker@adacore.com>
3445
3446 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3447 rewrite to avoid "else if" and "else" constructs. Should be
3448 a no-op in practice.
3449
0d72a7c3
JB
34502014-08-18 Joel Brobecker <brobecker@adacore.com>
3451
3452 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3453 of lexical block.
3454
e66d4446
SC
34552014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3456
3457 PR c++/17132
3458 * eval.c: Update all calls to find_overload_match.
3459 * valarith.c: Likewise.
3460 (value_user_defined_cpp_op, value_user_defined_op): New
3461 argument NOSIDE. Update all callers.
3462 * valops.c (find_overload_match): New argument NOSIDE.
3463 * value.h (find_overload_match): Update signature.
3464
940df408
SC
34652014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3466
3467 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3468 'items' methods instead of 'iteritems' method on dictionaries.
3469
699ca60a
DE
34702014-08-15 Doug Evans <dje@google.com>
3471
3472 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3473 closer to use.
3474
37780ee5
DE
34752014-08-15 Doug Evans <dje@google.com>
3476
3477 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3478
0ad93d4f
DE
34792014-08-15 Doug Evans <dje@google.com>
3480
3481 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3482
20d8c372
DE
34832014-08-15 Doug Evans <dje@google.com>
3484
3485 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3486 unused.
3487
cb039ba4
EZ
34882014-08-15 Eli Zaretskii <eliz@gnu.org>
3489
3490 * dcache.h: Include target.h, to avoid compile time warnings.
3491
eb7a547a
JB
34922014-08-15 Joel Brobecker <brobecker@adacore.com>
3493
3494 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3495 frame_info" partial declaration.
3496 * gdbarch.h: Regenerate.
3497
783cecc8
YQ
34982014-08-15 Yao Qi <yao@codesourcery.com>
3499
3500 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3501 Add parameter 'decode_for_pst_p'. Callers update.
3502
65c749e7
YQ
35032014-08-13 Yao Qi <yao@codesourcery.com>
3504
3505 PR build/17104
3506 * configure.ac: Use local variable 'pos'.
3507 * configure: Regenerated.
3508
d769e349
DE
35092014-08-11 Doug Evans <dje@google.com>
3510
3511 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3512 message, it is redundant with "Reading symbols from ..." message.
3513
24f1235e
DE
35142014-08-10 Doug Evans <xdje42@gmail.com>
3515
3516 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3517
dcd2e6ef
YQ
35182014-08-09 Yao Qi <yao@codesourcery.com>
3519
3520 PR remote/9053
3521 * remote.c (remote_xfer_partial): Remove dead code.
3522
070bdf0b
AA
35232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3524
3525 * ia64-linux-tdep.c: Include "regset.h".
3526 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3527 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3528 (ia64_linux_supply_fpregset): New function.
3529 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3530 (ia64_linux_regset_from_core_section): New function.
3531 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3532 method.
3533
08f9f542
AA
35342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3535
3536 * m68klinux-tdep.c: Include "regset.h".
3537 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3538 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3539 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3540 (m68k_linux_regset_from_core_section): New function.
3541 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3542 method.
3543
8f1cee41
AA
35442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3545
3546 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3547 function. Move logic to...
3548 (tilegx_linux_regmap): ... this new register map.
3549 (tilegx_linux_regset): Refer to register map, replace supply
3550 method by regcache_supply_regset, and add collect method.
3551 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3552 TILEGX_FIRST_EASY_REGNUM.
3553
c5741217
AA
35542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3555
3556 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3557 that calls regcache_supply_regset and handles the EPC register
3558 separately. Move main logic to...
3559 (score7_linux_gregmap): ... this new register map.
3560 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3561 (score7_linux_gregset): Refer to register map. Add collect method.
3562 (score7_linux_regset_from_core_section): Replace
3563 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3564 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3565 (struct regset): Delete unused forward declaraction.
3566 (struct pt_regs): Delete structure definition.
3567 (elf_gregset_t): Delete typedef.
3568
81580573
AA
35692014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3570
3571 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3572 (nios2_core_regset): Add collect method.
3573
ba199d7d
AA
35742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3575
3576 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3577 platform-independent and don't write to read-only input buffer.
3578 (m32r_linux_collect_gregset): New function.
3579 (m32r_linux_gregset): Add collect method.
3580
0006a9da
AA
35812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3582
3583 * hppa-linux-tdep.c (greg_map): Rename to...
3584 (hppa_linux_gregmap): ... this. Also convert to
3585 regcache_map_entry format.
3586 (hppa_linux_supply_regset): Delete function.
3587 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3588 (hppa_linux_fpregmap): ... this new register map.
3589 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3590 register map, replace supply method by regcache_supply_regset, and
3591 add collect method regcache_collect_regset.
3592
901e1b23
AA
35932014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3594
3595 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3596 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3597 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3598 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3599 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3600 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3601 (frv_linux_supply_gregset): Replace main logic by call to
3602 regcache_supply_regset, but keep clearing gr32-gr63.
3603 (frv_linux_supply_fpregset): Delete function.
3604 (frv_linux_gregset): Refer to appropriate register map and add
3605 regcache_collect_regset as the collect method.
3606 (frv_linux_fpregset): Likewise. Also exchange the supply method
3607 by regcache_supply_regset.
3608
1d6e7555
AA
36092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3610
3611 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3612 by call to alpha_supply_int_regs.
3613 (alpha_linux_collect_gregset): New function.
3614 (alpha_linux_supply_fpregset): Replace logic by call to
3615 alpha_supply_fp_regs.
3616 (alpha_linux_collect_fpregset): New function.
3617 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3618
d4d793bf
AA
36192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3620
3621 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3622 by call to regcache_collect_regset.
3623 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3624 instead of aarch64_linux_supply_gregset/_fpregset.
3625 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3626 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3627 header file instead.
3628 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3629 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3630 functions. Move logic to ...
3631 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3632 register maps.
3633 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3634 refer to new register maps, replace *_regset_from_core by
3635 regcache_supply_regset, and also use regcache_collect_regset.
3636 * aarch64-linux-tdep.h: Include "regset.h".
3637 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3638 Delete prototypes.
3639 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3640 macros, moved from C source file.
3641 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3642 variable declarations.
3643
99b7da5d
AA
36442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3645
3646 * s390-linux-nat.c: Include "regset.h".
3647 (regmap_gregset): Delete macro.
3648 (s390_64_regmap_gregset): New register map for
3649 regcache_supply/_collect_regset.
3650 (s390_64_gregset): New regset.
3651 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3652 (regmap_fpregset): Delete macro.
3653 (s390_native_supply, s390_native_collect): Delete functions.
3654 (supply_gregset, fill_gregset): Replace s390-specific regmap
3655 handling by a call to regcache_supply/_collect_regset.
3656 (supply_fpregset, fill_fpregset): Call regcache_supply/
3657 _collect_regset instead of s390_native_supply/_collect.
3658 (fetch_regset, store_regset): Likewise. Also change the last
3659 parameter to a regset instead of a regmap.
3660 (s390_linux_fetch_inferior_registers)
3661 (390_linux_store_inferior_registers): Adjust last parameter in
3662 calls to fetch_regset and store_regset.
3663 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3664 (s390_gregmap): ... this. Also make static const and convert to
3665 regcache_map_entry format.
3666 (s390x_regmap_gregset): Delete.
3667 (s390_regmap_fpregset): Rename to...
3668 (s390_fpregmap): ... this. Make static const and convert to
3669 regcache_map_entry format.
3670 (s390_regmap_upper, s390_regmap_last_break)
3671 (s390x_regmap_last_break, s390_regmap_system_call)
3672 (s390_regmap_tdb): Likewise.
3673 (s390_supply_regset, s390_collect_regset): Remove functions.
3674 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3675 s390_supply_regset.
3676 (s390_gregset, s390_fpregset, s390_upper_regset)
3677 (s390_last_break_regset, s390x_last_break_regset)
3678 (s390_system_call_regset, s390_tdb_regset): Make global and
3679 replace s390_supply/_collect_regset by regcache_supply/
3680 _collect_regset.
3681 (s390x_gregset): Delete.
3682 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3683 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3684 (s390_regmap_fpregset, s390_regmap_last_break)
3685 (s390x_regmap_last_break, s390_regmap_system_call)
3686 (s390_regmap_tdb): Delete global variable declarations.
3687 (s390_gregset, s390_fpregset, s390_last_break_regset)
3688 (s390x_last_break_regset, s390_system_call_regset)
3689 (s390_tdb_regset): New global variable declarations.
3690
0b309272
AA
36912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3692
3693 * regcache.c: Include "regset.h".
3694 (regcache_transfer_regset): New local function.
3695 (regcache_supply_regset, regcache_collect_regset): New functions.
3696 * regcache.h (struct regcache_map_entry): New structure.
3697 (REGCACHE_MAP_SKIP): New enum value.
3698 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3699
7fefa8d7
AA
37002014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3701
3702 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3703 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3704 (ppc_linux_collect_gregset ): Likewise.
3705 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3706 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3707 (ppc_collect_vrregset): Likewise.
3708 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3709 Likewise.
3710
96c4f946
YQ
37112014-08-07 Yao Qi <yao@codesourcery.com>
3712
3713 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3714 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3715 * remote.c (remote_read_bytes): Likewise.
3716
fffbe6a8
YQ
37172014-08-07 Yao Qi <yao@codesourcery.com>
3718
3719 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3720
5ee8a82c
YQ
37212014-08-07 Yao Qi <yao@codesourcery.com>
3722
3723 PR remote/17230
3724 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3725 TARGET_XFER_OK instead of 0.
3726
bb974a24
GB
37272014-08-07 Gary Benson <gbenson@redhat.com>
3728
3729 * common/common-defs.h: Include errno.h.
3730 * defs.h: Do not include errno.h.
3731 * ada-typeprint.c: Likewise.
3732 * c-typeprint.c: Likewise.
3733 * core-regset.c: Likewise.
3734 * corefile.c: Likewise.
3735 * corelow.c: Likewise.
3736 * event-loop.c: Likewise.
3737 * f-typeprint.c: Likewise.
3738 * gnu-nat.c: Likewise.
3739 * go32-nat.c: Likewise.
3740 * i386gnu-nat.c: Likewise.
3741 * m2-typeprint.c: Likewise.
3742 * nat/linux-btrace.c: Likewise.
3743 * p-typeprint.c: Likewise.
3744 * procfs.c: Likewise.
3745 * remote-sim.c: Likewise.
3746 * rs6000-nat.c: Likewise.
3747 * target.c: Likewise.
3748 * typeprint.c: Likewise.
3749 * ui-file.c: Likewise.
3750 * valops.c: Likewise.
3751 * valprint.c: Likewise.
3752
6d3d12eb
GB
37532014-08-07 Gary Benson <gbenson@redhat.com>
3754
3755 * common/common-defs.h: Include string.h.
3756 * aarch64-tdep.c: Do not include string.h.
3757 * ada-exp.y: Likewise.
3758 * ada-lang.c: Likewise.
3759 * ada-lex.l: Likewise.
3760 * ada-typeprint.c: Likewise.
3761 * ada-valprint.c: Likewise.
3762 * aix-thread.c: Likewise.
3763 * alpha-linux-tdep.c: Likewise.
3764 * alpha-mdebug-tdep.c: Likewise.
3765 * alpha-nat.c: Likewise.
3766 * alpha-osf1-tdep.c: Likewise.
3767 * alpha-tdep.c: Likewise.
3768 * alphanbsd-tdep.c: Likewise.
3769 * amd64-dicos-tdep.c: Likewise.
3770 * amd64-linux-tdep.c: Likewise.
3771 * amd64-nat.c: Likewise.
3772 * amd64-sol2-tdep.c: Likewise.
3773 * amd64fbsd-tdep.c: Likewise.
3774 * amd64obsd-tdep.c: Likewise.
3775 * arch-utils.c: Likewise.
3776 * arm-linux-nat.c: Likewise.
3777 * arm-linux-tdep.c: Likewise.
3778 * arm-tdep.c: Likewise.
3779 * arm-wince-tdep.c: Likewise.
3780 * armbsd-tdep.c: Likewise.
3781 * armnbsd-nat.c: Likewise.
3782 * armnbsd-tdep.c: Likewise.
3783 * armobsd-tdep.c: Likewise.
3784 * avr-tdep.c: Likewise.
3785 * ax-gdb.c: Likewise.
3786 * ax-general.c: Likewise.
3787 * bcache.c: Likewise.
3788 * bfin-tdep.c: Likewise.
3789 * breakpoint.c: Likewise.
3790 * build-id.c: Likewise.
3791 * buildsym.c: Likewise.
3792 * c-exp.y: Likewise.
3793 * c-lang.c: Likewise.
3794 * c-typeprint.c: Likewise.
3795 * c-valprint.c: Likewise.
3796 * charset.c: Likewise.
3797 * cli-out.c: Likewise.
3798 * cli/cli-cmds.c: Likewise.
3799 * cli/cli-decode.c: Likewise.
3800 * cli/cli-dump.c: Likewise.
3801 * cli/cli-interp.c: Likewise.
3802 * cli/cli-logging.c: Likewise.
3803 * cli/cli-script.c: Likewise.
3804 * cli/cli-setshow.c: Likewise.
3805 * cli/cli-utils.c: Likewise.
3806 * coffread.c: Likewise.
3807 * common/agent.c: Likewise.
3808 * common/buffer.c: Likewise.
3809 * common/buffer.h: Likewise.
3810 * common/common-utils.c: Likewise.
3811 * common/filestuff.c: Likewise.
3812 * common/filestuff.c: Likewise.
3813 * common/format.c: Likewise.
3814 * common/print-utils.c: Likewise.
3815 * common/rsp-low.c: Likewise.
3816 * common/signals.c: Likewise.
3817 * common/vec.h: Likewise.
3818 * common/xml-utils.c: Likewise.
3819 * core-regset.c: Likewise.
3820 * corefile.c: Likewise.
3821 * corelow.c: Likewise.
3822 * cp-abi.c: Likewise.
3823 * cp-name-parser.y: Likewise.
3824 * cp-support.c: Likewise.
3825 * cp-valprint.c: Likewise.
3826 * cris-tdep.c: Likewise.
3827 * d-exp.y: Likewise.
3828 * darwin-nat.c: Likewise.
3829 * dbxread.c: Likewise.
3830 * dcache.c: Likewise.
3831 * demangle.c: Likewise.
3832 * dicos-tdep.c: Likewise.
3833 * disasm.c: Likewise.
3834 * doublest.c: Likewise.
3835 * dsrec.c: Likewise.
3836 * dummy-frame.c: Likewise.
3837 * dwarf2-frame.c: Likewise.
3838 * dwarf2loc.c: Likewise.
3839 * dwarf2read.c: Likewise.
3840 * elfread.c: Likewise.
3841 * environ.c: Likewise.
3842 * eval.c: Likewise.
3843 * event-loop.c: Likewise.
3844 * exceptions.c: Likewise.
3845 * exec.c: Likewise.
3846 * expprint.c: Likewise.
3847 * f-exp.y: Likewise.
3848 * f-lang.c: Likewise.
3849 * f-typeprint.c: Likewise.
3850 * f-valprint.c: Likewise.
3851 * fbsd-nat.c: Likewise.
3852 * findcmd.c: Likewise.
3853 * findvar.c: Likewise.
3854 * fork-child.c: Likewise.
3855 * frame.c: Likewise.
3856 * frv-linux-tdep.c: Likewise.
3857 * frv-tdep.c: Likewise.
3858 * gdb.c: Likewise.
3859 * gdb_bfd.c: Likewise.
3860 * gdbarch.c: Likewise.
3861 * gdbarch.sh: Likewise.
3862 * gdbtypes.c: Likewise.
3863 * gnu-nat.c: Likewise.
3864 * gnu-v2-abi.c: Likewise.
3865 * gnu-v3-abi.c: Likewise.
3866 * go-exp.y: Likewise.
3867 * go-lang.c: Likewise.
3868 * go32-nat.c: Likewise.
3869 * guile/guile.c: Likewise.
3870 * guile/scm-auto-load.c: Likewise.
3871 * hppa-hpux-tdep.c: Likewise.
3872 * hppa-linux-nat.c: Likewise.
3873 * hppanbsd-tdep.c: Likewise.
3874 * hppaobsd-tdep.c: Likewise.
3875 * i386-cygwin-tdep.c: Likewise.
3876 * i386-dicos-tdep.c: Likewise.
3877 * i386-linux-tdep.c: Likewise.
3878 * i386-nto-tdep.c: Likewise.
3879 * i386-sol2-tdep.c: Likewise.
3880 * i386-tdep.c: Likewise.
3881 * i386bsd-tdep.c: Likewise.
3882 * i386gnu-nat.c: Likewise.
3883 * i386nbsd-tdep.c: Likewise.
3884 * i386obsd-tdep.c: Likewise.
3885 * i387-tdep.c: Likewise.
3886 * ia64-libunwind-tdep.c: Likewise.
3887 * ia64-linux-nat.c: Likewise.
3888 * inf-child.c: Likewise.
3889 * inf-ptrace.c: Likewise.
3890 * inf-ttrace.c: Likewise.
3891 * infcall.c: Likewise.
3892 * infcmd.c: Likewise.
3893 * inflow.c: Likewise.
3894 * infrun.c: Likewise.
3895 * interps.c: Likewise.
3896 * iq2000-tdep.c: Likewise.
3897 * irix5-nat.c: Likewise.
3898 * jv-exp.y: Likewise.
3899 * jv-lang.c: Likewise.
3900 * jv-typeprint.c: Likewise.
3901 * jv-valprint.c: Likewise.
3902 * language.c: Likewise.
3903 * linux-fork.c: Likewise.
3904 * linux-nat.c: Likewise.
3905 * lm32-tdep.c: Likewise.
3906 * m2-exp.y: Likewise.
3907 * m2-typeprint.c: Likewise.
3908 * m32c-tdep.c: Likewise.
3909 * m32r-linux-nat.c: Likewise.
3910 * m32r-linux-tdep.c: Likewise.
3911 * m32r-rom.c: Likewise.
3912 * m32r-tdep.c: Likewise.
3913 * m68hc11-tdep.c: Likewise.
3914 * m68k-tdep.c: Likewise.
3915 * m68kbsd-tdep.c: Likewise.
3916 * m68klinux-nat.c: Likewise.
3917 * m68klinux-tdep.c: Likewise.
3918 * m88k-tdep.c: Likewise.
3919 * machoread.c: Likewise.
3920 * macrocmd.c: Likewise.
3921 * main.c: Likewise.
3922 * mdebugread.c: Likewise.
3923 * mem-break.c: Likewise.
3924 * memattr.c: Likewise.
3925 * memory-map.c: Likewise.
3926 * mep-tdep.c: Likewise.
3927 * mi/mi-cmd-break.c: Likewise.
3928 * mi/mi-cmd-disas.c: Likewise.
3929 * mi/mi-cmd-env.c: Likewise.
3930 * mi/mi-cmd-stack.c: Likewise.
3931 * mi/mi-cmd-var.c: Likewise.
3932 * mi/mi-cmds.c: Likewise.
3933 * mi/mi-console.c: Likewise.
3934 * mi/mi-getopt.c: Likewise.
3935 * mi/mi-interp.c: Likewise.
3936 * mi/mi-main.c: Likewise.
3937 * mi/mi-parse.c: Likewise.
3938 * microblaze-rom.c: Likewise.
3939 * microblaze-tdep.c: Likewise.
3940 * mingw-hdep.c: Likewise.
3941 * minidebug.c: Likewise.
3942 * minsyms.c: Likewise.
3943 * mips-irix-tdep.c: Likewise.
3944 * mips-linux-tdep.c: Likewise.
3945 * mips-tdep.c: Likewise.
3946 * mips64obsd-tdep.c: Likewise.
3947 * mipsnbsd-tdep.c: Likewise.
3948 * mipsread.c: Likewise.
3949 * mn10300-linux-tdep.c: Likewise.
3950 * mn10300-tdep.c: Likewise.
3951 * monitor.c: Likewise.
3952 * moxie-tdep.c: Likewise.
3953 * mt-tdep.c: Likewise.
3954 * nat/linux-btrace.c: Likewise.
3955 * nat/linux-osdata.c: Likewise.
3956 * nat/linux-procfs.c: Likewise.
3957 * nat/linux-ptrace.c: Likewise.
3958 * nat/linux-waitpid.c: Likewise.
3959 * nbsd-tdep.c: Likewise.
3960 * nios2-linux-tdep.c: Likewise.
3961 * nto-procfs.c: Likewise.
3962 * nto-tdep.c: Likewise.
3963 * objc-lang.c: Likewise.
3964 * objfiles.c: Likewise.
3965 * opencl-lang.c: Likewise.
3966 * osabi.c: Likewise.
3967 * osdata.c: Likewise.
3968 * p-exp.y: Likewise.
3969 * p-lang.c: Likewise.
3970 * p-typeprint.c: Likewise.
3971 * parse.c: Likewise.
3972 * posix-hdep.c: Likewise.
3973 * ppc-linux-nat.c: Likewise.
3974 * ppc-sysv-tdep.c: Likewise.
3975 * ppcfbsd-tdep.c: Likewise.
3976 * ppcnbsd-tdep.c: Likewise.
3977 * ppcobsd-tdep.c: Likewise.
3978 * printcmd.c: Likewise.
3979 * procfs.c: Likewise.
3980 * prologue-value.c: Likewise.
3981 * python/py-auto-load.c: Likewise.
3982 * python/py-gdb-readline.c: Likewise.
3983 * ravenscar-thread.c: Likewise.
3984 * regcache.c: Likewise.
3985 * registry.c: Likewise.
3986 * remote-fileio.c: Likewise.
3987 * remote-m32r-sdi.c: Likewise.
3988 * remote-mips.c: Likewise.
3989 * remote-notif.c: Likewise.
3990 * remote-sim.c: Likewise.
3991 * remote.c: Likewise.
3992 * reverse.c: Likewise.
3993 * rs6000-aix-tdep.c: Likewise.
3994 * ser-base.c: Likewise.
3995 * ser-go32.c: Likewise.
3996 * ser-mingw.c: Likewise.
3997 * ser-pipe.c: Likewise.
3998 * ser-tcp.c: Likewise.
3999 * ser-unix.c: Likewise.
4000 * serial.c: Likewise.
4001 * sh-tdep.c: Likewise.
4002 * sh64-tdep.c: Likewise.
4003 * shnbsd-tdep.c: Likewise.
4004 * skip.c: Likewise.
4005 * sol-thread.c: Likewise.
4006 * solib-dsbt.c: Likewise.
4007 * solib-frv.c: Likewise.
4008 * solib-osf.c: Likewise.
4009 * solib-som.c: Likewise.
4010 * solib-spu.c: Likewise.
4011 * solib-target.c: Likewise.
4012 * solib.c: Likewise.
4013 * somread.c: Likewise.
4014 * source.c: Likewise.
4015 * sparc-nat.c: Likewise.
4016 * sparc-sol2-tdep.c: Likewise.
4017 * sparc-tdep.c: Likewise.
4018 * sparc64-tdep.c: Likewise.
4019 * sparc64fbsd-tdep.c: Likewise.
4020 * sparc64nbsd-tdep.c: Likewise.
4021 * sparcnbsd-tdep.c: Likewise.
4022 * spu-linux-nat.c: Likewise.
4023 * spu-multiarch.c: Likewise.
4024 * spu-tdep.c: Likewise.
4025 * stabsread.c: Likewise.
4026 * stack.c: Likewise.
4027 * std-regs.c: Likewise.
4028 * symfile.c: Likewise.
4029 * symmisc.c: Likewise.
4030 * symtab.c: Likewise.
4031 * target.c: Likewise.
4032 * thread.c: Likewise.
4033 * tilegx-linux-nat.c: Likewise.
4034 * tilegx-tdep.c: Likewise.
4035 * top.c: Likewise.
4036 * tracepoint.c: Likewise.
4037 * tui/tui-command.c: Likewise.
4038 * tui/tui-data.c: Likewise.
4039 * tui/tui-disasm.c: Likewise.
4040 * tui/tui-file.c: Likewise.
4041 * tui/tui-layout.c: Likewise.
4042 * tui/tui-out.c: Likewise.
4043 * tui/tui-regs.c: Likewise.
4044 * tui/tui-source.c: Likewise.
4045 * tui/tui-stack.c: Likewise.
4046 * tui/tui-win.c: Likewise.
4047 * tui/tui-windata.c: Likewise.
4048 * tui/tui-winsource.c: Likewise.
4049 * typeprint.c: Likewise.
4050 * ui-file.c: Likewise.
4051 * ui-out.c: Likewise.
4052 * user-regs.c: Likewise.
4053 * utils.c: Likewise.
4054 * v850-tdep.c: Likewise.
4055 * valarith.c: Likewise.
4056 * valops.c: Likewise.
4057 * valprint.c: Likewise.
4058 * value.c: Likewise.
4059 * varobj.c: Likewise.
4060 * vax-tdep.c: Likewise.
4061 * vaxnbsd-tdep.c: Likewise.
4062 * vaxobsd-tdep.c: Likewise.
4063 * windows-nat.c: Likewise.
4064 * xcoffread.c: Likewise.
4065 * xml-support.c: Likewise.
4066 * xstormy16-tdep.c: Likewise.
4067 * xtensa-linux-nat.c: Likewise.
4068
dccbb609
GB
40692014-08-07 Gary Benson <gbenson@redhat.com>
4070
4071 * common/common-defs.h: Include gdb_assert.h.
4072 * aarch64-tdep.c: Do not include gdb_assert.h.
4073 * addrmap.c: Likewise.
4074 * aix-thread.c: Likewise.
4075 * alpha-linux-tdep.c: Likewise.
4076 * alpha-mdebug-tdep.c: Likewise.
4077 * alphanbsd-tdep.c: Likewise.
4078 * amd64-nat.c: Likewise.
4079 * amd64-tdep.c: Likewise.
4080 * amd64bsd-nat.c: Likewise.
4081 * amd64fbsd-nat.c: Likewise.
4082 * amd64fbsd-tdep.c: Likewise.
4083 * amd64nbsd-nat.c: Likewise.
4084 * amd64nbsd-tdep.c: Likewise.
4085 * amd64obsd-nat.c: Likewise.
4086 * amd64obsd-tdep.c: Likewise.
4087 * arch-utils.c: Likewise.
4088 * arm-tdep.c: Likewise.
4089 * armbsd-tdep.c: Likewise.
4090 * auxv.c: Likewise.
4091 * bcache.c: Likewise.
4092 * bfin-tdep.c: Likewise.
4093 * blockframe.c: Likewise.
4094 * breakpoint.c: Likewise.
4095 * bsd-kvm.c: Likewise.
4096 * bsd-uthread.c: Likewise.
4097 * buildsym.c: Likewise.
4098 * c-exp.y: Likewise.
4099 * c-lang.c: Likewise.
4100 * charset.c: Likewise.
4101 * cleanups.c: Likewise.
4102 * cli-out.c: Likewise.
4103 * cli/cli-decode.c: Likewise.
4104 * cli/cli-dump.c: Likewise.
4105 * cli/cli-logging.c: Likewise.
4106 * cli/cli-script.c: Likewise.
4107 * cli/cli-utils.c: Likewise.
4108 * coffread.c: Likewise.
4109 * common/common-utils.c: Likewise.
4110 * common/queue.h: Likewise.
4111 * common/signals.c: Likewise.
4112 * common/vec.h: Likewise.
4113 * complaints.c: Likewise.
4114 * completer.c: Likewise.
4115 * corelow.c: Likewise.
4116 * cp-abi.c: Likewise.
4117 * cp-name-parser.y: Likewise.
4118 * cp-namespace.c: Likewise.
4119 * cp-support.c: Likewise.
4120 * cris-tdep.c: Likewise.
4121 * dbxread.c: Likewise.
4122 * dictionary.c: Likewise.
4123 * doublest.c: Likewise.
4124 * dsrec.c: Likewise.
4125 * dummy-frame.c: Likewise.
4126 * dwarf2-frame-tailcall.c: Likewise.
4127 * dwarf2-frame.c: Likewise.
4128 * dwarf2expr.c: Likewise.
4129 * dwarf2loc.c: Likewise.
4130 * dwarf2read.c: Likewise.
4131 * eval.c: Likewise.
4132 * event-loop.c: Likewise.
4133 * exceptions.c: Likewise.
4134 * expprint.c: Likewise.
4135 * f-valprint.c: Likewise.
4136 * fbsd-nat.c: Likewise.
4137 * findvar.c: Likewise.
4138 * frame-unwind.c: Likewise.
4139 * frame.c: Likewise.
4140 * frv-tdep.c: Likewise.
4141 * gcore.c: Likewise.
4142 * gdb-dlfcn.c: Likewise.
4143 * gdb_bfd.c: Likewise.
4144 * gdbarch.c: Likewise.
4145 * gdbarch.sh: Likewise.
4146 * gdbtypes.c: Likewise.
4147 * gnu-nat.c: Likewise.
4148 * gnu-v3-abi.c: Likewise.
4149 * go-lang.c: Likewise.
4150 * guile/scm-exception.c: Likewise.
4151 * guile/scm-gsmob.c: Likewise.
4152 * guile/scm-lazy-string.c: Likewise.
4153 * guile/scm-math.c: Likewise.
4154 * guile/scm-pretty-print.c: Likewise.
4155 * guile/scm-safe-call.c: Likewise.
4156 * guile/scm-utils.c: Likewise.
4157 * guile/scm-value.c: Likewise.
4158 * h8300-tdep.c: Likewise.
4159 * hppa-hpux-nat.c: Likewise.
4160 * hppa-tdep.c: Likewise.
4161 * hppanbsd-tdep.c: Likewise.
4162 * hppaobsd-tdep.c: Likewise.
4163 * i386-darwin-nat.c: Likewise.
4164 * i386-darwin-tdep.c: Likewise.
4165 * i386-nto-tdep.c: Likewise.
4166 * i386-tdep.c: Likewise.
4167 * i386bsd-nat.c: Likewise.
4168 * i386fbsd-tdep.c: Likewise.
4169 * i386gnu-nat.c: Likewise.
4170 * i386nbsd-tdep.c: Likewise.
4171 * i386obsd-tdep.c: Likewise.
4172 * i387-tdep.c: Likewise.
4173 * ia64-libunwind-tdep.c: Likewise.
4174 * ia64-tdep.c: Likewise.
4175 * inf-ptrace.c: Likewise.
4176 * inf-ttrace.c: Likewise.
4177 * infcall.c: Likewise.
4178 * infcmd.c: Likewise.
4179 * infrun.c: Likewise.
4180 * inline-frame.c: Likewise.
4181 * interps.c: Likewise.
4182 * jv-lang.c: Likewise.
4183 * jv-typeprint.c: Likewise.
4184 * linux-fork.c: Likewise.
4185 * linux-nat.c: Likewise.
4186 * linux-thread-db.c: Likewise.
4187 * m32c-tdep.c: Likewise.
4188 * m32r-linux-nat.c: Likewise.
4189 * m32r-tdep.c: Likewise.
4190 * m68k-tdep.c: Likewise.
4191 * m68kbsd-nat.c: Likewise.
4192 * m68kbsd-tdep.c: Likewise.
4193 * m88k-tdep.c: Likewise.
4194 * machoread.c: Likewise.
4195 * macroexp.c: Likewise.
4196 * macrotab.c: Likewise.
4197 * maint.c: Likewise.
4198 * mdebugread.c: Likewise.
4199 * memory-map.c: Likewise.
4200 * mep-tdep.c: Likewise.
4201 * mi/mi-common.c: Likewise.
4202 * microblaze-tdep.c: Likewise.
4203 * mingw-hdep.c: Likewise.
4204 * mips-linux-nat.c: Likewise.
4205 * mips-linux-tdep.c: Likewise.
4206 * mips-tdep.c: Likewise.
4207 * mips64obsd-tdep.c: Likewise.
4208 * mipsnbsd-tdep.c: Likewise.
4209 * mn10300-linux-tdep.c: Likewise.
4210 * mn10300-tdep.c: Likewise.
4211 * moxie-tdep.c: Likewise.
4212 * mt-tdep.c: Likewise.
4213 * nat/linux-btrace.c: Likewise.
4214 * nat/linux-osdata.c: Likewise.
4215 * nat/linux-ptrace.c: Likewise.
4216 * nat/mips-linux-watch.c: Likewise.
4217 * nios2-linux-tdep.c: Likewise.
4218 * nios2-tdep.c: Likewise.
4219 * objc-lang.c: Likewise.
4220 * objfiles.c: Likewise.
4221 * obsd-nat.c: Likewise.
4222 * opencl-lang.c: Likewise.
4223 * osabi.c: Likewise.
4224 * parse.c: Likewise.
4225 * ppc-linux-nat.c: Likewise.
4226 * ppc-sysv-tdep.c: Likewise.
4227 * ppcfbsd-nat.c: Likewise.
4228 * ppcfbsd-tdep.c: Likewise.
4229 * ppcnbsd-nat.c: Likewise.
4230 * ppcnbsd-tdep.c: Likewise.
4231 * ppcobsd-nat.c: Likewise.
4232 * ppcobsd-tdep.c: Likewise.
4233 * printcmd.c: Likewise.
4234 * procfs.c: Likewise.
4235 * prologue-value.c: Likewise.
4236 * psymtab.c: Likewise.
4237 * python/py-lazy-string.c: Likewise.
4238 * python/py-value.c: Likewise.
4239 * regcache.c: Likewise.
4240 * reggroups.c: Likewise.
4241 * registry.c: Likewise.
4242 * remote-sim.c: Likewise.
4243 * remote.c: Likewise.
4244 * rs6000-aix-tdep.c: Likewise.
4245 * rs6000-tdep.c: Likewise.
4246 * s390-linux-tdep.c: Likewise.
4247 * score-tdep.c: Likewise.
4248 * ser-base.c: Likewise.
4249 * ser-mingw.c: Likewise.
4250 * sh-tdep.c: Likewise.
4251 * sh64-tdep.c: Likewise.
4252 * solib-darwin.c: Likewise.
4253 * solib-spu.c: Likewise.
4254 * solib-svr4.c: Likewise.
4255 * source.c: Likewise.
4256 * sparc-nat.c: Likewise.
4257 * sparc-sol2-tdep.c: Likewise.
4258 * sparc-tdep.c: Likewise.
4259 * sparc64-sol2-tdep.c: Likewise.
4260 * sparc64-tdep.c: Likewise.
4261 * sparc64fbsd-tdep.c: Likewise.
4262 * sparc64nbsd-tdep.c: Likewise.
4263 * sparc64obsd-tdep.c: Likewise.
4264 * sparcnbsd-tdep.c: Likewise.
4265 * sparcobsd-tdep.c: Likewise.
4266 * spu-multiarch.c: Likewise.
4267 * spu-tdep.c: Likewise.
4268 * stabsread.c: Likewise.
4269 * stack.c: Likewise.
4270 * symfile.c: Likewise.
4271 * symtab.c: Likewise.
4272 * target-descriptions.c: Likewise.
4273 * target-memory.c: Likewise.
4274 * target.c: Likewise.
4275 * tic6x-linux-tdep.c: Likewise.
4276 * tic6x-tdep.c: Likewise.
4277 * tilegx-linux-nat.c: Likewise.
4278 * tilegx-tdep.c: Likewise.
4279 * top.c: Likewise.
4280 * tramp-frame.c: Likewise.
4281 * tui/tui-out.c: Likewise.
4282 * tui/tui-winsource.c: Likewise.
4283 * ui-out.c: Likewise.
4284 * user-regs.c: Likewise.
4285 * utils.c: Likewise.
4286 * v850-tdep.c: Likewise.
4287 * valops.c: Likewise.
4288 * value.c: Likewise.
4289 * varobj.c: Likewise.
4290 * vax-nat.c: Likewise.
4291 * xml-syscall.c: Likewise.
4292 * xml-tdesc.c: Likewise.
4293 * xstormy16-tdep.c: Likewise.
4294 * xtensa-linux-nat.c: Likewise.
4295 * xtensa-tdep.c: Likewise.
4296
e76df0d0
GB
42972014-08-07 Gary Benson <gbenson@redhat.com>
4298
4299 * common/common-defs.h: Include common-utils.h.
4300 * defs.h: Do not include common-utils.h.
4301 * common/gdb_assert.h: Likewise.
4302 * darwin-nat.h: Likewise.
4303 * nat/linux-btrace.c: Likewise.
4304 * target/waitstatus.h: Likewise.
4305
4cb9c816
GB
43062014-08-07 Gary Benson <gbenson@redhat.com>
4307
4308 * common/common-defs.h: Include ptid.h.
4309 * defs.h: Do not include ptid.h.
4310 * inferior.h: Likewise.
4311 * infrun.h: Likewise.
4312 * nat/linux-btrace.h: Likewise.
4313 * nat/linux-osdata.h: Likewise.
4314 * target/waitstatus.h: Likewise.
4315
3995eeee
GB
43162014-08-07 Gary Benson <gbenson@redhat.com>
4317
4318 * common/common-defs.h: Include gdb_locale.h.
4319 * defs.h: Do not include gdb_locale.h.
4320
cb9f1a9b
GB
43212014-08-07 Gary Benson <gbenson@redhat.com>
4322
4323 * common/common-defs.h: Include gdb/signals.h.
4324 * defs.h: Do not include gdb/signals.h.
4325
a5fceff8
GB
43262014-08-07 Gary Benson <gbenson@redhat.com>
4327
4328 * common/common-defs.h: Include pathmax.h.
4329 * defs.h: Do not include pathmax.h.
4330
b9391142
GB
43312014-08-07 Gary Benson <gbenson@redhat.com>
4332
4333 * common/common-defs.h: Include libiberty.h.
4334 * defs.h: Do not include libiberty.h.
4335 * common/queue.h: Likewise.
4336 * cp-name-parser.y: Likewise.
4337 * mi/mi-cmd-catch.c: Likewise.
4338 * python/python.c: Likewise.
4339
0e443c87
GB
43402014-08-07 Gary Benson <gbenson@redhat.com>
4341
4342 * common/common-defs.h: Include ansidecl.h.
4343 * defs.h: Do not include ansidecl.h.
4344 * common/buffer.h: Likewise.
4345 * common/common-utils.h: Likewise.
4346
8ebb3f56
GB
43472014-08-07 Gary Benson <gbenson@redhat.com>
4348
4349 * common/common-defs.h: Include stddef.h.
4350 * defs.h: Do not include stddef.h.
4351 * common/common-utils.h: Likewise.
4352 * amd64fbsd-nat.c: Likewise.
4353 * bcache.c: Likewise.
4354 * charset.c: Likewise.
4355 * common/buffer.h: Likewise.
4356 * common/vec.h: Likewise.
4357 * i386bsd-nat.c: Likewise.
4358 * nat/linux-btrace.h: Likewise.
4359 * ppcfbsd-nat.c: Likewise.
4360 * ppcnbsd-tdep.h: Likewise.
4361 * ppcobsd-nat.c: Likewise.
4362 * ppcobsd-tdep.h: Likewise.
4363 * python/py-gdb-readline.c: Likewise.
4364
8980bdf6
GB
43652014-08-07 Gary Benson <gbenson@redhat.com>
4366
4367 * common/common-defs.h: Include stdarg.h.
4368 * defs.h: Do not include stdarg.h.
4369 * ada-lang.c: Likewise.
4370 * common/common-utils.h: Likewise.
4371 * guile/scm-string.c: Likewise.
4372 * guile/scm-utils.c: Likewise.
4373 * m32c-tdep.c: Likewise.
4374
d7096f71
GB
43752014-08-07 Gary Benson <gbenson@redhat.com>
4376
4377 * common/common-defs.h: Include stdlib.h.
4378 * defs.h: Do not include stdlib.h.
4379 * addrmap.c: Likewise.
4380 * bcache.c: Likewise.
4381 * common/buffer.c: Likewise.
4382 * common/common-utils.c: Likewise.
4383 * cp-name-parser.y: Likewise.
4384 * go32-nat.c: Likewise.
4385 * mn10300-linux-tdep.c: Likewise.
4386 * nat/linux-osdata.c: Likewise.
4387 * tui/tui.c: Likewise.
4388 * windows-nat.c: Likewise.
4389
d02f550d
GB
43902014-08-07 Gary Benson <gbenson@redhat.com>
4391
4392 * common/common-defs.h: Include stdio.h.
4393 * defs.h: Do not include stdio.h.
4394 * ada-lang.c: Likewise.
4395 * common/buffer.c: Likewise.
4396 * common/common-utils.c: Likewise.
4397 * cp-name-parser.y: Likewise.
4398 * gnu-nat.c: Likewise.
4399 * go32-nat.c: Likewise.
4400 * i386gnu-nat.c: Likewise.
4401 * proc-api.c: Likewise.
4402 * proc-events.c: Likewise.
4403 * proc-flags.c: Likewise.
4404 * proc-why.c: Likewise.
4405 * python/python-internal.h: Likewise.
4406 * target-memory.c: Likewise.
4407 * tui/tui-io.c: Likewise.
4408 * tui/tui.c: Likewise.
4409
b6d7a4bf
SM
44102014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4411
4412 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4413 (scan_dyntag_auxv): Same.
4414
af19829b
YQ
44152014-08-06 Yao Qi <yao@codesourcery.com>
4416
4417 * amd64-linux-nat.c: Remove duplicated include
4418 "x86-linux-nat.h".
4419 * i386-linux-nat.c: Likewise.
4420
8e07a239
YQ
44212014-08-06 Yao Qi <yao@codesourcery.com>
4422
4423 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4424 operand" with "Special opcode" in comments.
4425
7bfe8241
GB
44262014-08-05 Gary Benson <gbenson@redhat.com>
4427
4428 * interps.c (initialize_interps): Remove prototype.
4429 (interpreter_initialized): Remove static global.
4430 (interp_add): Do not call initialize_interps.
4431 (initialize_interps): Remove function.
4432
d6c95504
GB
44332014-08-05 Gary Benson <gbenson@redhat.com>
4434
4435 * utils.c (vwarning): Remove spurious va_end.
4436
241fd515
AM
44372014-08-05 Alan Modra <amodra@gmail.com>
4438
4439 * charset.c (convert_between_encodings): Cast result of obstack_base.
4440 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4441 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4442 (read_unwind_info): Use size_t for some locals.
4443 * jit.c (finalize_symtab): Likewise.
4444 * utils.c (hashtab_obstack_allocate): Likewise.
4445 * symmisc.c (print_objfile_statistics): Update format strings.
4446
dc304a94
JK
44472014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4448
4449 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4450 (Changes in GDB 7.8): ... here.
4451
3cecbbbe
TT
44522014-08-04 Tom Tromey <tromey@redhat.com>
4453
4454 * target.c (set_targetdebug): New function.
4455 (initialize_targets): Pass set_targetdebug when creating "set
4456 debug target".
4457
6908c509
JB
44582014-08-01 Joel Brobecker <brobecker@adacore.com>
4459
4460 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4461 if detecting a variable-sized field that is not the last field.
4462 Fix struct type length computation.
4463
53e8f97d
JB
44642014-08-01 Joel Brobecker <brobecker@adacore.com>
4465
4466 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4467 Add debug trace.
4468
e068c55d
JB
44692014-08-01 Joel Brobecker <brobecker@adacore.com>
4470
4471 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4472 Remove "+ 8" offset in computation of CHAIN_VMA.
4473
4d4ca2a1
DE
44742014-07-31 Doug Evans <dje@google.com>
4475
4476 * inflow.c (child_terminal_inferior): Add comment.
4477 (child_terminal_ours_for_output): Add comment.
4478 (child_terminal_ours): Add comment.
4479 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4480 (linux_nat_terminal_ours): Add comment.
4481
462f517e
GB
44822014-07-31 Gary Benson <gbenson@redhat.com>
4483
4484 * common/btrace-common.h: Do not include defs.h or server.h.
4485 * nat/mips-linux-watch.h: Likewise.
4486 * gdb-dlfcn.h: Do not include defs.h.
4487 * tracefile.h: Likewise.
4488
74228e77
RM
44892014-07-30 Roland McGrath <mcgrathr@google.com>
4490
4491 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4492
014f9477
TT
44932014-07-30 Tom Tromey <tromey@redhat.com>
4494
4495 * bsd-kvm.c (bsd_kvm_open): Constify.
4496 * corelow.c (core_open): Constify.
4497 * ctf.c (ctf_open): Constify.
4498 * dbug-rom.c (dbug_open): Constify.
4499 * exec.c (exec_open): Constify.
4500 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4501 * microblaze-rom.c (picobug_open): Constify.
4502 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4503 Constify.
4504 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4505 * record-btrace.c (record_btrace_open): Constify.
4506 * record-full.c (record_full_core_open_1, record_full_open_1)
4507 (record_full_open): Constify.
4508 * remote-m32r-sdi.c (m32r_open): Constify.
4509 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4510 (rockhopper_open, lsi_open): Constify.
4511 * remote-sim.c (gdbsim_open): Constify.
4512 * remote.c (remote_open, extended_remote_open, remote_open_1):
4513 Constify.
4514 * target.h (struct target_ops) <to_open>: Make "arg" const.
4515 * tracefile-tfile.c (tfile_open): Constify.
4516
e799154c
TT
45172014-07-30 Tom Tromey <tromey@redhat.com>
4518
4519 * breakpoint.c (map_breakpoint_numbers): Update.
4520 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4521 (get_number_const): New function.
4522 (get_number): Rewrite using get_number_const.
4523 (init_number_or_range): Make "string" const.
4524 (number_is_in_list): Make "list" const.
4525 * cli/cli-utils.h (get_number_const): Declare.
4526 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4527 (init_number_or_range, number_is_in_list): Update.
4528 * printcmd.c (map_display_numbers): Update.
4529 * value.c (value_from_history_ref): Constify.
4530 * value.h (value_from_history_ref): Update.
4531
5f08566b
TT
45322014-07-30 Tom Tromey <tromey@redhat.com>
4533
4534 * corefile.c (hook_type, call_extra_exec_file_hooks)
4535 (specify_exec_file_hook): Constify.
4536 * exec.c (exec_file_attach): Make "filename" const.
4537 * gdbcore.h (deprecated_exec_file_display_hook)
4538 (specify_exec_file_hook, exec_file_attach): Constify.
4539 * main.c (captured_main): Use catch_command_errors_const.
4540
8981c758
TT
45412014-07-30 Tom Tromey <tromey@redhat.com>
4542
4543 * target.c (open_target): New function.
4544 (add_target_with_completer, add_deprecated_target_alias): Use
4545 set_cmd_sfunc, set_cmd_context.
4546 (debug_to_open): Remove.
4547 (setup_target_debug): Update.
4548
a1c7835a
YQ
45492014-07-30 Yao Qi <yao@codesourcery.com>
4550
4551 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4552 comments.
4553 * parse.c (exp_iterate): Update comments.
4554
976411d6
GB
45552014-07-30 Gary Benson <gbenson@redhat.com>
4556
4557 * common/common-defs.h: New file.
4558 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4559 * defs.h: Include common-defs.h.
4560 Do not include config.h or build-gnulib/config.h.
4561
5d4848a4
GB
45622014-07-30 Gary Benson <gbenson@redhat.com>
4563
4564 * common/common-utils.h: Do not include config.h.
4565 * nat/linux-btrace.h: Likewise.
4566
d41f6d8e
GB
45672014-07-30 Gary Benson <gbenson@redhat.com>
4568
4569 * btrace.c: Include defs.h.
4570 * common/ptid.c: Include defs.h or server.h as appropriate.
4571 * nat/mips-linux-watch.c: Likewise.
4572
84202f9c
TT
45732014-07-29 Tom Tromey <tromey@redhat.com>
4574
4575 * target.c (target_is_pushed): Simplify.
4576
2530441c
JB
45772014-07-29 Joel Brobecker <brobecker@adacore.com>
4578
4579 GDB 7.8 released.
4580
7e09a223
YQ
45812014-07-29 Yao Qi <yao@codesourcery.com>
4582
4583 PR gdb/17206
4584 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4585
7ebdbe92
DE
45862014-07-28 Doug Evans <xdje42@gmail.com>
4587
4588 PR guile/17203
4589 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4590 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4591 parameters.
4592
f347ffc9
WN
45932014-07-28 Will Newton <will.newton@linaro.org>
4594
4595 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4596 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4597 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4598 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4599 (THUMB2_EABI_SYSCALL): Likewise.
4600 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4601 struct tramp_frame.
4602 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4603 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4604
37c5f1f7
DE
46052014-07-27 Doug Evans <xdje42@gmail.com>
4606
4607 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4608
0c3abbc7
DE
46092014-07-27 Doug Evans <xdje42@gmail.com>
4610
4611 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4612
e76c5d17
DE
46132014-07-26 Ludovic Courtès <ludo@gnu.org>
4614 Doug Evans <xdje42@gmail.com>
4615
4616 PR guile/17146
4617 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4618 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4619 * configure.ac: Try to use guild to compile an scm file, if it fails
4620 then disable guile support.
4621 * configure: Regenerate.
4622 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4623 GUILE_FILE_LIST.
4624 (GUILE_COMPILED_FILES): New variable.
4625 (GUILE_FILES) Update.
4626 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4627 (stamp-guile): Compile scm files.
4628 * guile/guile.c (boot_guile_support): New function.
4629 (standard_throw_args_p): New function.
4630 (print_standard_throw_error, print_throw_error): New functions.
4631 (handle_boot_error): New function.
4632 (initialize_scheme_side): Rewrite to call boot_guile_support.
4633 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4634 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4635
186fcde0
DE
46362014-07-26 Ludovic Courtès <ludo@gnu.org>
4637 Doug Evans <xdje42@gmail.com>
4638
4639 PR guile/17146
4640 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4641 * guile/lib/gdb/support.scm: New file.
4642 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4643 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4644 All uses updated.
4645 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4646 All uses updated.
4647 (%assert-type): Ditto, and renamed to assert-type.
4648 (%exception-print-style): Delete.
4649
4df42755
DE
46502014-07-26 Doug Evans <xdje42@gmail.com>
4651
4652 PR build/17105
4653 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4654 * configure: Regenerate.
4655 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4656 PYTHON_FILES.
4657 (PYTHON_FILES): New variable.
4658 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4659 (GUILE_FILES): New variable.
4660 (stamp-python, install-python, uninstall-python): Handle empty
4661 file list.
4662 (stamp-guile, install-guile, uninstall-guile): Ditto.
4663
ee7333ae
DE
46642014-07-26 Doug Evans <xdje42@gmail.com>
4665
4666 PR guile/17177
4667 * guile/lib/gdb.scm (pretty-printers): Export.
4668 (set-pretty-printers!): Export.
4669 * guile/lib/gdb/printing.scm (gdb module): Update.
4670 (prepend-pretty-printer!, append-pretty-printer!): Update.
4671 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4672 (pretty_printer_list_var): Delete.
4673 (pretty_printer_list): New static global.
4674 (gdbscm_pretty_printers): New function.
4675 (gdbscm_set_pretty_printers_x): New function.
4676 (ppscm_find_pretty_printer_from_gdb): Update.
4677 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4678 (gdbscm_initialize_pretty_printers): Update.
4679
74edf516
DE
46802014-07-26 Doug Evans <xdje42@gmail.com>
4681
4682 PR 17185
4683 * configure.ac: Add check for header gc/gc.h.
4684 Add check for function setenv.
4685 * configure: Regenerate.
4686 * config.in: Regenerate.
4687 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4688
d54398a7
MR
46892014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4690
4691 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4692 variation in gdbarch matching.
4693
ab16fce8
TT
46942014-07-25 Tom Tromey <tromey@redhat.com>
4695
4696 * exec.c (using_exec_ops): Remove.
4697 (exec_close_1): Update. Remove extraneous block, reindent.
4698 (add_target_sections): Use target_is_pushed.
4699
88056fbb
PA
47002014-07-25 Pedro Alves <palves@redhat.com>
4701
4702 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4703 * monitor.c (monitor_create_inferior): Likewise.
4704 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4705 * remote-sim.c (gdbsim_create_inferior): Likewise.
4706 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4707 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4708 * windows-nat.c (do_initial_windows_stuff): Likewise.
4709
70509625
PA
47102014-07-25 Pedro Alves <palves@redhat.com>
4711
4712 * NEWS: Mention signal passing and "signal" command changes.
4713 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4714 comment.
4715 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4716 call.
4717 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4718 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4719 (jump_command): Adjust clear_proceed_status call.
4720 (signal_command): Warn if other thread that are resumed have
4721 signals that will be delivered. Adjust clear_proceed_status call.
4722 (until_next_command, finish_command)
4723 (proceed_after_attach_callback, attach_command_post_wait)
4724 (attach_command): Adjust clear_proceed_status call.
4725 * infrun.c (proceed_after_vfork_done): Likewise.
4726 (proceed_after_attach_callback): Adjust comment.
4727 (clear_proceed_status_thread): Clear stop_signal if not in pass
4728 state.
4729 (clear_proceed_status_callback): Delete.
4730 (clear_proceed_status): New 'step' parameter. Only clear the
4731 proceed status of threads the command being prepared is about to
4732 resume.
4733 (proceed): If passed in an explicit signal, override stop_signal
4734 with it. Don't pass the last stop signal to the thread we're
4735 resuming.
4736 (init_wait_for_inferior): Adjust clear_proceed_status call.
4737 (switch_back_to_stepped_thread): Clear the signal if it should not
4738 be passed.
4739 * infrun.h (clear_proceed_status): New 'step' parameter.
4740 (user_visible_resume_ptid): Add comment.
4741 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4742 signal is in pass state.
4743 * remote.c (append_pending_thread_resumptions): Likewise.
4744 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4745
d8be2939
TT
47462014-07-25 Tom Tromey <tromey@redhat.com>
4747
4748 * target.h (target_stopped_data_address)
4749 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4750 parentheses.
4751
7d0d9d2b
PL
47522014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4753
4754 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4755 comments.
4756 (avr_pointer_to_address): Likewise.
4757
e9e7f724
TT
47582014-07-24 Tom Tromey <tromey@redhat.com>
4759
4760 * monitor.c (compile_pattern): Update.
4761 * target.h (struct target_ops) <to_shortname, to_longname,
4762 to_doc>: Now const.
4763
1947513d
TT
47642014-07-24 Tom Tromey <tromey@redhat.com>
4765
4766 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4767 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4768 (add_info_alias, add_com): Make "doc" const.
4769 (print_doc_line): Make "str" const.
4770 (delete_cmd): Update.
4771 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4772 (print_doc_line): Update.
4773 * cli/cli-script.c (document_command): Update.
4774 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4775 (add_com, add_info, add_info_alias): Update.
4776 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4777 * python/py-cmd.c (cmdpy_destroyer): Update.
4778
64e61d29
TT
47792014-07-24 Tom Tromey <tromey@redhat.com>
4780
4781 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4782 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4783 (help_cmd_list): Constify.
4784 (lookup_cmd): Update.
4785 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4786 const.
4787 (help_cmd_list, apropos_cmd): Update.
4788 * cli/cli-script.c (show_user): Update.
4789 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4790 * cli/cli-setshow.h (cmd_show_list): Update.
4791 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4792 (cmd_show_list): Update.
4793 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4794 * python/py-cmd.c (cmdpy_destroyer): Update.
4795
429e55ea
TT
47962014-07-24 Tom Tromey <tromey@redhat.com>
4797
4798 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4799 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4800 const.
4801 * command.h (deprecate_cmd): Update.
4802 * maint.c (maintenance_do_deprecate): Add casts.
4803
64669f3b
TT
48042014-07-24 Tom Tromey <tromey@redhat.com>
4805
4806 * cli/cli-decode.c (help_cmd): Make parameter "const".
4807 * cli/cli-decode.h (help_cmd): Update.
4808
d3d3328b
TT
48092014-07-24 Tom Tromey <tromey@redhat.com>
4810
4811 * stack.c (up_silently_base, down_silently_base): Make argument
4812 const.
4813
414842dc
TT
48142014-07-24 Tom Tromey <tromey@redhat.com>
4815
4816 * solib.c (solib_add): Make "pattern" const.
4817 * solib.h (solib_add): Update.
4818
baa336ce
TT
48192014-07-24 Tom Tromey <tromey@redhat.com>
4820
4821 * remote.c (remote_serial_open, print_packet, putpkt)
4822 (putpkt_binary): Constify.
4823 * remote.h (putpkt): Update.
4824
5a19e2d0
TT
48252014-07-24 Tom Tromey <tromey@redhat.com>
4826
4827 * monitor.c (monitor_open): Make "args" const.
4828 * monitor.h (monitor_open): Update.
4829
fc4baa5e
TT
48302014-07-24 Tom Tromey <tromey@redhat.com>
4831
4832 * maint.c (match_bfd_flags): Make "string" const.
4833 (print_bfd_section_info): Remove casts.
4834 (print_objfile_section_info): Make "string" const.
4835
0d5f0dbe
TT
48362014-07-24 Tom Tromey <tromey@redhat.com>
4837
4838 * inf-child.c (inf_child_open_target): Make "arg" const.
4839 * inf-child.h (inf_child_open_target): Update.
4840
41c77899
TT
48412014-07-24 Tom Tromey <tromey@redhat.com>
4842
4843 * environ.c (unset_in_environ): Make "var" const.
4844 * environ.h (unset_in_environ): Update.
4845
93db0d79
TT
48462014-07-24 Tom Tromey <tromey@redhat.com>
4847
4848 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4849 Make "cmd" const.
4850 (scan_filename_with_cleanup): Likewise.
4851 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4852 Make arguments const.
4853 (restore_command): Update.
4854
36d6eb95
PA
48552014-07-24 Pedro Alves <palves@redhat.com>
4856
4857 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4858
8009206a
TT
48592014-07-24 Tom Tromey <tromey@redhat.com>
4860 Gary Benson <gbenson@redhat.com>
4861
4862 * nat/linux-ptrace.c (additional_flags): New global.
4863 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4864 additional_flags; don't check GDBSERVER.
4865 (linux_ptrace_set_additional_flags): New function.
4866 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4867 Declare.
4868 * linux-nat.c (_initialize_linux_nat): Call
4869 linux_ptrace_set_additional_flags.
4870
a7068b60
TT
48712014-07-24 Tom Tromey <tromey@redhat.com>
4872
4873 * make-target-delegates (munge_type, write_debugmethod): New
4874 functions.
4875 (debug_names): New global.
4876 ($TARGET_DEBUG_PRINTER): New global.
4877 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4878 name.
4879 Write debug methods. Generate init_debug_target.
4880 * target-debug.h: New file.
4881 * target-delegates.c: Rebuild.
4882 * target.c: Include target-debug.h.
4883 (debug_target): Hoist definition.
4884 (target_kill, target_get_section_table, target_memory_map)
4885 (target_flash_erase, target_flash_done, target_detach)
4886 (target_disconnect, target_wait, target_resume)
4887 (target_pass_signals, target_program_signals, target_follow_fork)
4888 (target_mourn_inferior, target_search_memory)
4889 (target_thread_address_space, target_close)
4890 (target_find_new_threads, target_core_of_thread)
4891 (target_verify_memory, target_insert_mask_watchpoint)
4892 (target_remove_mask_watchpoint): Remove targetdebug code.
4893 (debug_to_post_attach, debug_to_prepare_to_store)
4894 (debug_to_files_info, debug_to_insert_breakpoint)
4895 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4896 (debug_to_region_ok_for_hw_watchpoint)
4897 (debug_to_can_accel_watchpoint_condition)
4898 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4899 (debug_to_watchpoint_addr_within_range)
4900 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4901 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4902 (debug_to_terminal_init, debug_to_terminal_inferior)
4903 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4904 (debug_to_terminal_save_ours, debug_to_terminal_info)
4905 (debug_to_load, debug_to_post_startup_inferior)
4906 (debug_to_insert_fork_catchpoint)
4907 (debug_to_remove_fork_catchpoint)
4908 (debug_to_insert_vfork_catchpoint)
4909 (debug_to_remove_vfork_catchpoint)
4910 (debug_to_insert_exec_catchpoint)
4911 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4912 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4913 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4914 (setup_target_debug): Call init_debug_target.
4915 * target.h (TARGET_DEBUG_PRINTER): New macro.
4916 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4917 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4918
2c51604d
GB
49192014-07-24 Gary Benson <gbenson@redhat.com>
4920
4921 * exceptions.h (throw_vfatal): Renamed to...
4922 (throw_vquit): New declaration.
4923 (throw_quit): Likewise.
4924 * exceptions.c (throw_vfatal): Renamed to...
4925 (throw_vquit): New function.
4926 (throw_quit): Likewise.
4927 (throw_error): Call throw_verror rather than throw_it.
4928 * utils.h (vfatal): Removed.
4929 (fatal): Likewise.
4930 * utils.c (vfatal): Removed.
4931 (fatal): Likewise.
4932 (internal_verror): Replaced call to fatal with call to throw_quit.
4933 (quit): Replaced calls to fatal with calls to throw_quit.
4934
34211963
ME
49352014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4936
4937 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4938 target_read_code.
4939
a52b4d3e
ME
49402014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4941
4942 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4943 less than zero in conditional expression.
4944
a8bdc56b
TT
49452014-07-23 Tom Tromey <tromey@redhat.com>
4946
4947 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4948 ($INTRO_PART): Don't match whitespace.
4949 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4950 argument matching.
4951 ($METHOD): Add $METHOD_TRAILER.
4952 (trim): Rewrite.
4953 (scan_target_h): New sub.
4954 Change main loop not to collect state.
4955 * target-delegates.c: Rebuild.
4956
91b52240
GB
49572014-07-23 Gary Benson <gbenson@redhat.com>
4958
4959 * cp-support.c (gdb_demangle): Fix build on systems without
4960 sigaltstack.
4961
45326f6f
JK
49622014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4963
4964 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4965 for reference entry value target data value.
4966
e214cf6c
JK
49672014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4968
4969 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4970 value_available_contents_eq.
4971
bddbbedd
PA
49722014-07-22 Pedro Alves <palves@redhat.com>
4973
4974 * value.c (allocate_optimized_out_value): Don't mark value as
4975 non-lazy.
4976
45c71484
JW
49772014-07-22 Jiong Wang <jiong.wang@arm.com>
4978
4979 * MAINTAINERS (Write After Approval): Update my email address.
4980
9597b22a
DE
49812014-07-20 Doug Evans <dje@google.com>
4982
4983 PR server/17147
4984 * remote.c (putpkt_binary): Add text to error message.
4985
91101fe5
YQ
49862014-07-20 Yao Qi <yao@codesourcery.com>
4987
4988 * eval.c: Remove "Chill" from comments.
4989 * gdbtypes.h: Likewise.
4990 * symtab.h: Likewise.
4991
c9402c95
YQ
49922014-07-20 Yao Qi <yao@codesourcery.com>
4993
4994 * std-operator.def: Update comments to TERNOP_SLICE.
4995
ae8fddda
YQ
49962014-07-20 Yao Qi <yao@codesourcery.com>
4997
4998 * std-operator.def: Remove BINOP_RANGE.
4999 * breakpoint.c (watchpoint_exp_is_const): Update.
5000 * expprint.c (dump_subexp_body_standard): Likewise.
5001 * eval.c (init_array_element): Remove dead code.
5002 (evaluate_subexp_standard): Likewise.
5003
9c816640
YQ
50042014-07-20 Yao Qi <yao@codesourcery.com>
5005
5006 * std-operator.def: Remove BINOP_IN.
5007 * breakpoint.c (watchpoint_exp_is_const): Update.
5008 * eval.c (evaluate_subexp_standard): Likewise.
5009 * expprint.c (dump_subexp_body_standard): Likewise.
5010
164224e9
ME
50112014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5012
5013 * microblaze-tdep.c (microblaze_register_names): Add
5014 the rshr and rslr register names.
5015 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5016 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5017 Use of tdesc_numbered_register. Use of
5018 microblaze_register_g_packet_guesses. Use of
5019 tdesc_use_registers. Use of set_gdbarch_register_type.
5020 (microblaze_register_g_packet_guesses): New.
5021 * microblaze-tdep.h (microblaze_reg_num): Add
5022 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5023 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5024 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5025 * features/microblaze-core.xml: New file.
5026 * features/microblaze-stack-protect.xml: New file.
5027 * features/microblaze-with-stack-protect.c: New file.
5028 * features/microblaze-with-stack-protect.xml: New file.
5029 * features/microblaze.xml: New file.
5030 * features/microblaze.c: New file.
5031 * features/Makefile (microblaze-with-stack-protect): Add
5032 microblaze-with-stack-protect microblaze and microblaze-expedite.
5033 * regformats/microblaze-with-stack-protect.dat: New file.
5034 * regformats/microblaze.dat: New file.
5035 * doc/gdb.texinfo (MicroBlaze Features): Added.
5036
e8b2341c
TT
50372014-07-18 Tom Tromey <tromey@redhat.com>
5038
5039 * exec.c (exec_ops): Now static.
5040 * exec.h (exec_ops): Don't declare.
5041
44e89118
TT
50422014-07-18 Tom Tromey <tromey@redhat.com>
5043
5044 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5045 to find_target_beneath.
5046 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5047 find_target_beneath.
5048 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5049
b0ed115f
TT
50502014-07-18 Tom Tromey <tromey@redhat.com>
5051
5052 PR gdb/17130:
5053 * utils.c (quit): Use target_supports_terminal_ours.
5054 * target.h (target_supports_terminal_ours): Declare.
5055 * target.c (target_supports_delete_record): Don't check
5056 to_delete_record against NULL.
5057 (target_supports_terminal_ours): New function.
5058
e75fdfca
TT
50592014-07-18 Tom Tromey <tromey@redhat.com>
5060
5061 PR gdb/17130:
5062 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5063 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5064 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5065 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5066 * windows-nat.c (windows_xfer_partial): Always delegate.
5067 * record-btrace.c (record_btrace_xfer_partial): Simplify
5068 delegation.
5069 (record_btrace_fetch_registers, record_btrace_store_registers)
5070 (record_btrace_prepare_to_store, record_btrace_resume)
5071 (record_btrace_wait, record_btrace_find_new_threads)
5072 (record_btrace_thread_alive): Likewise.
5073 * procfs.c (procfs_xfer_partial): Always delegate.
5074 * corelow.c (core_xfer_partial): Always delegate.
5075 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5076
83814951
TT
50772014-07-18 Tom Tromey <tromey@redhat.com>
5078
5079 * exec.c (exec_make_note_section): Move earlier.
5080
b8b8facf
DE
50812014-07-17 Doug Evans <dje@google.com>
5082
74b49205 5083 PR gdb/17170
b8b8facf
DE
5084 * maint.c (count_symtabs_and_blocks): Handle NULL
5085 current_program_space.
5086 (report_command_stats): Check global enabled flag in addition to
5087 recorded enabled flag.
5088 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5089
69ff6be5
PA
50902014-07-16 Pedro Alves <palves@redhat.com>
5091
5092 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5093
252db1b5
TT
50942014-07-16 Tom Tromey <tromey@redhat.com>
5095
5096 * target.h (struct target_ops) <to_delete_record>: Reformat
5097 comment.
5098
a432721e
TT
50992014-07-16 Tom Tromey <tromey@redhat.com>
5100
5101 * target-delegates.c: Rebuild.
5102
487d9753
PL
51032014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5104
5105 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5106 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5107 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5108 (avr_pointer_to_address): Likewise.
5109 (avr_address_class_type_flags): New function.
5110 (avr_address_class_type_flags_to_name): Likewise.
5111 (avr_address_class_name_to_type_flags): Likewise.
5112 (avr_gdbarch_init): Set address_class_type_flags,
5113 address_class_type_flags_to_name and
5114 address_class_name_to_type_flags.
5115
57745c90
PA
51162014-07-15 Pedro Alves <palves@redhat.com>
5117
5118 * linux-nat.c (kill_callback): Save errno and work with saved
5119 copy.
5120
2d40be18
SM
51212014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5122
5123 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5124
572f6555
EBM
51252014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5126
5127 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5128 breakpoint support correctly.
5129
cc1c52ad
PA
51302014-07-14 Pedro Alves <palves@redhat.com>
5131
5132 * utils.c (prompt_for_continue): Call target_terminal_ours.
5133
1e973570
PA
51342014-07-14 Pedro Alves <palves@redhat.com>
5135
5136 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5137 catch_errors. Don't re-enable stdin or notify observers where,
5138 and rethrow error.
5139 (fetch_inferior_event_wrapper): Delete.
5140
93d6eb10
PA
51412014-07-14 Pedro Alves <palves@redhat.com>
5142
5143 PR gdb/17072
5144 * top.c: Include "inf-loop.h".
5145 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5146 field.
5147 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5148 was async before.
5149 (gdb_readline_wrapper): Store whether the target is async, and
5150 make it sync.
5151
0017922d
PA
51522014-07-14 Pedro Alves <palves@redhat.com>
5153
5154 PR gdb/17072
5155 * top.c (gdb_readline_wrapper_line): Tweak comment.
5156 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5157 the input handler callback.
5158
94696ad3
PA
51592014-07-14 Pedro Alves <palves@redhat.com>
5160
5161 PR gdb/17072
5162 * main.c: Include event-top.h.
5163 (handle_command_errors): New function.
5164 (catch_command_errors, catch_command_errors_const): Use it.
5165
9d1e69a2
PA
51662014-07-14 Pedro Alves <palves@redhat.com>
5167
5168 * exceptions.c (catch_command_errors, catch_command_errors_const):
5169 Moved to main.c.
5170 * exceptions.h (catch_command_errors_ftype)
5171 (catch_command_errors_const_ftype): Moved to main.c.
5172 (catch_command_errors, catch_command_errors_const): Delete
5173 declarations.
5174 * main.c (catch_command_errors_ftype)
5175 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5176 (catch_command_errors, catch_command_errors_const)): Moved here
5177 from exceptions.c and make static.
5178
feefc97b
PA
51792014-07-14 Pedro Alves <palves@redhat.com>
5180
5181 * exceptions.c (print_any_exception): Delete.
5182 (catch_exceptions_with_msg): Use exception_print instead of
5183 print_any_exception.
5184 (catch_errors): Use exception_fprintf instead of
5185 print_any_exception.
5186 (catch_command_errors, catch_command_errors_const): Use
5187 exception_print instead of print_any_exception.
5188
c933f875
PA
51892014-07-14 Pedro Alves <palves@redhat.com>
5190
5191 * infcall.c (run_inferior_call): Set 'sync_execution' while
5192 running the inferior call.
5193
feb6f816
PA
51942014-07-14 Pedro Alves <palves@redhat.com>
5195
5196 * value.c (value_contents_equal): Delete function.
5197 * value.h (value_contents_equal): Delete declaration.
5198
d98b7a16
TT
51992014-07-14 Tom Tromey <tromey@redhat.com>
5200
5201 PR exp/17106:
5202 * gdbtypes.c (is_dynamic_type_internal): New function, from
5203 is_dynamic_type.
5204 (is_dynamic_type): Rewrite.
5205 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5206 (resolve_dynamic_struct): Likewise.
5207 (resolve_dynamic_type_internal): New function, from
5208 resolve_dynamic_type.
5209 (resolve_dynamic_type): Rewrite.
5210
548740d6
TT
52112014-07-14 Tom Tromey <tromey@redhat.com>
5212
5213 * target.c (target_require_runnable): Also check record_stratum.
5214 Update comment.
5215
808f7ab1
YQ
52162014-07-11 Yao Qi <yao@codesourcery.com>
5217
5218 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5219 thumb_instruction_restores_sp return true.
5220
540314bd
YQ
52212014-07-11 Yao Qi <yao@codesourcery.com>
5222
5223 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5224 (thumb_in_function_epilogue_p): Call
5225 thumb_instruction_restores_sp.
5226
1db01f22
YQ
52272014-07-11 Yao Qi <yao@codesourcery.com>
5228
5229 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5230 'add sp, #imm'.
5231 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5232
3116063b
GB
52332014-07-11 Gary Benson <gbenson@redhat.com>
5234
5235 * amd64-linux-nat.c (gdbcore.h): Remove include.
5236 (regset.h): Likewise.
5237 (nat/linux-btrace.h): Likewise.
5238 (btrace.h): Likewise.
5239 (gdb_assert.h): Likewise.
5240 (string.h): Likewise.
5241 (sys/uio.h): Likewise.
5242 (sys/debugreg.h): Likewise.
5243 (sys/syscall.h): Likewise.
5244 (sys/procfs.h): Likewise.
5245 (sys/user.h): Likewise.
5246 (asm/ptrace.h): Likewise.
5247 (i386-nat.h): Likewise.
5248 * i386-linux-nat.c (i386-nat.h): Likewise.
5249 (regset.h): Likewise.
5250 (target.h): Likewise.
5251 (linux-nat.h): Likewise.
5252 (nat/linux-btrace.h): Likewise.
5253 (btrace.h): Likewise.
5254 (gdb_assert.h): Likewise.
5255 (string.h): Likewise.
5256 (sys/uio.h): Likewise.
5257 (sys/user.h): Likewise.
5258 (sys/procfs.h): Likewise.
5259 (sys/reg.h): Likewise.
5260 (sys/debugreg.h): Likewise.
5261 (ORIG_EAX): Remove definition.
5262
040baaf6
GB
52632014-07-11 Gary Benson <gbenson@redhat.com>
5264
5265 * i386-linux-nat.h: New file.
5266 * x86-linux-nat.h: Likewise.
5267 * x86-linux-nat.c: Likewise.
5268 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5269 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5270 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5271 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5272 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5273 (PTRACE_SETREGSET): Likewise.
5274 (arch_lwp_info): Now in x86-linux-nat.c.
5275 (have_ptrace_getregset): Now in x86-linux-nat.h.
5276 (x86_linux_dr_get): Now in x86-linux-nat.c.
5277 (x86_linux_dr_set): Likewise.
5278 (x86_linux_dr_get_addr): Likewise.
5279 (x86_linux_dr_get_control): Likewise.
5280 (x86_linux_dr_get_status): Likewise.
5281 (update_debug_registers_callback): Likewise.
5282 (x86_linux_dr_set_control): Likewise.
5283 (x86_linux_dr_set_addr): Likewise.
5284 (x86_linux_prepare_to_resume): Likewise.
5285 (x86_linux_new_thread): Likewise.
5286 (x86_linux_new_fork): Likewise.
5287 (x86_linux_get_thread_area): Likewise.
5288 (super_post_startup_inferior): Likewise.
5289 (x86_linux_child_post_startup_inferior): Likewise.
5290 (AMD64_LINUX_USER64_CS): Likewise.
5291 (AMD64_LINUX_X32_DS): Likewise.
5292 (x86_linux_read_description): Likewise.
5293 (x86_linux_enable_btrace): Likewise.
5294 (x86_linux_disable_btrace): Likewise.
5295 (x86_linux_teardown_btrace): Likewise.
5296 (x86_linux_read_btrace): Likewise.
5297 (x86_linux_create_target): Likewise.
5298 (x86_linux_add_target): Likewise.
5299 * i386-linux-nat.c (x86-linux-nat.h): New include.
5300 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5301 (PTRACE_SETREGSET): Likewise.
5302 (arch_lwp_info): Now in x86-linux-nat.c.
5303 (have_ptrace_getregset): Now in x86-linux-nat.h.
5304 (x86_linux_dr_get): Now in x86-linux-nat.c.
5305 (x86_linux_dr_set): Likewise.
5306 (x86_linux_dr_get_addr): Likewise.
5307 (x86_linux_dr_get_control): Likewise.
5308 (x86_linux_dr_get_status): Likewise.
5309 (update_debug_registers_callback): Likewise.
5310 (x86_linux_dr_set_control): Likewise.
5311 (x86_linux_dr_set_addr): Likewise.
5312 (x86_linux_prepare_to_resume): Likewise.
5313 (x86_linux_new_thread): Likewise.
5314 (x86_linux_new_fork): Likewise.
5315 (x86_linux_get_thread_area): Likewise.
5316 (super_post_startup_inferior): Likewise.
5317 (x86_linux_child_post_startup_inferior): Likewise.
5318 (AMD64_LINUX_USER64_CS): Likewise.
5319 (AMD64_LINUX_X32_DS): Likewise.
5320 (x86_linux_read_description): Likewise.
5321 (x86_linux_enable_btrace): Likewise.
5322 (x86_linux_disable_btrace): Likewise.
5323 (x86_linux_teardown_btrace): Likewise.
5324 (x86_linux_read_btrace): Likewise.
5325 (x86_linux_create_target): Likewise.
5326 (x86_linux_add_target): Likewise.
5327
1aa7e42c
GB
53282014-07-11 Gary Benson <gbenson@redhat.com>
5329
5330 * amd64-linux-nat.c: Comment and whitespace changes.
5331 * i386-linux-nat.c: Comment and whitespace changes.
5332
c1e246a0
GB
53332014-07-11 Gary Benson <gbenson@redhat.com>
5334
5335 * amd64-linux-nat.c (x86_linux_create_target): New function.
5336 (x86_linux_add_target): Likewise.
5337 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5338 * i386-linux-nat.c (x86_linux_create_target): New function.
5339 (x86_linux_add_target): Likewise.
5340 (_initialize_i386_linux_nat): Delegate to the above new functions.
5341
8c420b8d
GB
53422014-07-11 Gary Benson <gbenson@redhat.com>
5343
5344 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5345 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5346 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5347 (ps_get_thread_area): Delegate to the above.
5348
cb1da100
GB
53492014-07-11 Gary Benson <gbenson@redhat.com>
5350
5351 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5352 x86_linux_read_description. All uses updated. amd64-specific
5353 code conditionalized. Conditionalized i386-specific code added.
5354 Redundant cast removed.
5355 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5356 x86_linux_read_description. All uses updated. i386-specific
5357 code conditionalized. Conditionalized amd64-specific code added.
5358 One sizeof replaced with the actual type it is describing.
5359
2acf3cd0
GB
53602014-07-11 Gary Benson <gbenson@redhat.com>
5361
5362 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5363 x86_linux_dr_get. All uses updated.
5364 (amd64_linux_dr_set): Renamed to
5365 x86_linux_dr_set. All uses updated.
5366 (amd64_linux_dr_get_addr): Renamed to
5367 x86_linux_dr_get_addr. All uses updated.
5368 (amd64_linux_dr_get_control): Renamed to
5369 x86_linux_dr_get_control. All uses updated.
5370 (amd64_linux_dr_get_status): Renamed to
5371 x86_linux_dr_get_status. All uses updated.
5372 (amd64_linux_dr_set_control): Renamed to
5373 x86_linux_dr_set_control. All uses updated.
5374 (amd64_linux_dr_set_addr): Renamed to
5375 x86_linux_dr_set_addr. All uses updated.
5376 (amd64_linux_prepare_to_resume): Renamed to
5377 x86_linux_prepare_to_resume. All uses updated.
5378 (amd64_linux_new_thread): Renamed to
5379 x86_linux_new_thread. All uses updated.
5380 (amd64_linux_new_fork): Renamed to
5381 x86_linux_new_fork. All uses updated.
5382 (amd64_linux_child_post_startup_inferior): Renamed to
5383 x86_linux_child_post_startup_inferior. All uses updated.
5384 (amd64_linux_enable_btrace): Renamed to
5385 x86_linux_enable_btrace. All uses updated.
5386 (amd64_linux_disable_btrace): Renamed to
5387 x86_linux_disable_btrace. All uses updated.
5388 (amd64_linux_teardown_btrace): Renamed to
5389 x86_linux_teardown_btrace. All uses updated.
5390 (amd64_linux_read_btrace): Renamed to
5391 x86_linux_read_btrace. All uses updated.
5392 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5393 x86_linux_dr_get. All uses updated.
5394 (i386_linux_dr_set): Renamed to
5395 x86_linux_dr_set. All uses updated.
5396 (i386_linux_dr_get_addr): Renamed to
5397 x86_linux_dr_get_addr. All uses updated.
5398 (i386_linux_dr_get_control): Renamed to
5399 x86_linux_dr_get_control. All uses updated.
5400 (i386_linux_dr_get_status): Renamed to
5401 x86_linux_dr_get_status. All uses updated.
5402 (i386_linux_dr_set_control): Renamed to
5403 x86_linux_dr_set_control. All uses updated.
5404 (i386_linux_dr_set_addr): Renamed to
5405 x86_linux_dr_set_addr. All uses updated.
5406 (i386_linux_prepare_to_resume): Renamed to
5407 x86_linux_prepare_to_resume. All uses updated.
5408 (i386_linux_new_thread): Renamed to
5409 x86_linux_new_thread. All uses updated.
5410 (i386_linux_new_fork): Renamed to
5411 x86_linux_new_fork. All uses updated.
5412 (i386_linux_child_post_startup_inferior): Renamed to
5413 x86_linux_child_post_startup_inferior. All uses updated.
5414 (i386_linux_enable_btrace): Renamed to
5415 x86_linux_enable_btrace. All uses updated.
5416 (i386_linux_disable_btrace): Renamed to
5417 x86_linux_disable_btrace. All uses updated.
5418 (i386_linux_teardown_btrace): Renamed to
5419 x86_linux_teardown_btrace. All uses updated.
5420 (i386_linux_read_btrace): Renamed to
5421 x86_linux_read_btrace. All uses updated.
5422
b9c1d481
AS
54232014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5424
5425 * remote.c (extended_remote_post_attach): New function.
5426 (init_extended_remote_ops): Install it as to_post_attach method.
5427
7180e04a
PA
54282014-07-09 Pedro Alves <palves@redhat.com>
5429
5430 * infcmd.c (attach_command_post_wait): Don't call
5431 target_terminal_inferior here.
5432 (attach_command): Call it here instead.
5433
9a9a7608
AB
54342014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5435
5436 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5437 field.
5438 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5439 from varobj.c, with additional checks.
5440 (c_varobj_ops): Fill in is_path_expr_parent field.
5441 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5442 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5443 field.
5444 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5445 ops method.
5446 (varobj_default_is_path_expr_parent): New function.
5447 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5448 (varobj_default_is_path_expr_parent): Declare new function.
5449
1f267ae3
MM
54502014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5451
5452 * infcmd.c (finish_backward): Turn internal error into normal error.
5453
b2ee242b
PA
54542014-07-07 Pedro Alves <palves@redhat.com>
5455
8a869bca 5456 PR gdb/17096
b2ee242b
PA
5457 * remote.c (async_handle_remote_sigint)
5458 (async_handle_remote_sigint_twice): Call
5459 gdb_call_async_signal_handler instead of
5460 mark_async_signal_handler.
5461
38e229b2
TT
54622014-07-07 Tom Tromey <tromey@redhat.com>
5463
5464 * target-delegates.c: Rebuild.
5465 * target.c (target_info_record): Remove.
5466 * record.c (info_record_command): Unconditionally call
5467 to_info_record.
5468 * target.h (struct target_ops) <to_info_record>: Use
5469 TARGET_DEFAULT_IGNORE.
5470 (target_info_record): Remove.
5471
f0f9ff95
TT
54722014-07-07 Tom Tromey <tromey@redhat.com>
5473
5474 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5475 TARGET_DEFAULT_NORETURN.
5476 * target.c (generic_tls_error): New function.
5477 (target_translate_tls_address): Don't search target stack.
5478 * target-delegates.c: Rebuild.
5479 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5480 stack.
5481 * linux-thread-db.c (thread_db_get_thread_local_address):
5482 Unconditionally call beneath target.
5483
4a5be5ee
MK
54842014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5485
5486 * cli/cli-logging.c (pop_output_files): Assign targerr to
5487 gdb_stdtargerr.
5488
92c3b204
AB
54892014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5490
5491 * MAINTAINERS (Write After Approval): Update my email address.
5492
9b11e3a7
GB
54932014-07-02 Gary Benson <gbenson@redhat.com>
5494
5495 * proc-service.c (ps_xfer_memory): Update comment.
5496 (ps_pstop): Remove unused function.
5497 (ps_pcontinue): Likewise.
5498 (ps_lstop): Likewise.
5499 (ps_lcontinue): Likewise.
5500 (ps_lgetxregsize): Likewise.
5501 (ps_lgetxregs): Likewise.
5502 (ps_lsetxregs): Likewise.
5503 (ps_plog): Likewise.
5504 (ps_ptread): Likewise.
5505 (ps_ptwrite): Likewise.
5506
cf363f18
MW
55072014-07-01 Mark Wielaard <mjw@redhat.com>
5508
5509 * dwarf2read.c (add_array_cv_type): New function.
5510 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5511 (read_tag_volatile_type): Likewise.
5512
82ae6c8d
TT
55132014-07-01 Tom Tromey <tromey@redhat.com>
5514
5515 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5516 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5517 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5518 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5519 * command.h (cmd_cfunc_ftype): Move earlier.
5520 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5521 (add_com, add_info): Use cmd_cfunc_ftype.
5522
96142726
TT
55232014-06-30 Tom Tromey <tromey@redhat.com>
5524
5525 * symtab.c (operator_chars): Make parameters and return type
5526 const.
5527 (file_matches): Make "files" const.
5528 (struct search_symbols_data) <files>: Now const.
5529 (search_symbols): Make "regexp" and "files" parameters const.
5530 Update.
5531 (symtab_symbol_info): Remove cast.
5532 (rbreak_command): Update.
5533 * symtab.h (search_symbols): Update.
5534
b67a2c6f
YQ
55352014-06-27 Yao Qi <yao@codesourcery.com>
5536
5537 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5538 Change parameter type to 'struct thread_info *'. Caller
5539 updated.
5540 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5541 Update declaration.
5542 * dummy-frame.c (struct dummy_frame_id): New.
5543 (dummy_frame_id_eq): New function.
5544 (struct dummy_frame) <id>: Change its type to 'struct
5545 dummy_frame_id'.
5546 (dummy_frame_push): Add parameter ptid and save it in
5547 dummy_frame_id.
5548 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5549 inferior_ptid.
5550 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5551 to inferior_ptid.
5552 (lookup_dummy_frame): Change parameter type to 'struct
5553 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5554 instead of frame_id_eq.
5555 (dummy_frame_pop): Add parameter ptid. Callers updated.
5556 Update comments. Compose dummy_frame_id and pass it to
5557 lookup_dummy_frame.
5558 (dummy_frame_discard): Add parameter ptid.
5559 (dummy_frame_sniffer): Compose dummy_frame_id and call
5560 dummy_frame_id_eq instead of frame_id_eq.
5561 (fprint_dummy_frames): Print ptid.
5562 * dummy-frame.h: Remove comments.
5563 (dummy_frame_push): Add ptid in declaration.
5564 (dummy_frame_pop, dummy_frame_discard): Likewise.
5565
5b10184c
TT
55662014-06-26 Tom Tromey <tromey@redhat.com>
5567
5568 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5569 * command.h (error_no_arg): Update.
5570
06900326
TT
55712014-06-26 Tom Tromey <tromey@redhat.com>
5572
5573 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5574 (do_show_command): Make "arg" const.
5575 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5576
c2bcbb1d
TT
55772014-06-26 Tom Tromey <tromey@redhat.com>
5578
5579 * record-full.c (record_full_get_bookmark): Make "args" const.
5580 (record_full_goto_bookmark): Make "raw_bookmark" const.
5581 * record.c (record_goto): New function.
5582 (cmd_record_goto): Use it. Now static.
5583 * record.h (record_goto): Declare.
5584 (cmd_record_goto): Remove declaration.
5585 * target-delegates.c: Rebuild.
5586 * target.h (struct target_ops) <to_get_bookmark,
5587 to_goto_bookmark>: Make parameter const.
5588
9cbe5fff
TT
55892014-06-26 Tom Tromey <tromey@redhat.com>
5590
5591 * defs.h (generic_load): Update.
5592 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5593 * monitor.c (monitor_load): Make "args" const.
5594 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5595 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5596 const.
5597 (mips_load): Make "file" const.
5598 * remote-sim.c (gdbsim_load): Make "args" const.
5599 * remote.c (remote_load): Make "name" const.
5600 * symfile.c (generic_load): Make "args" const.
5601 * target-delegates.c: Rebuild.
5602 * target.c (target_load): Make "arg" const.
5603 (debug_to_load): Make "args" const.
5604 * target.h (struct target_ops) <to_load>: Make parameter const.
5605 (target_load): Update.
5606
34a68019
TT
56072014-06-26 Tom Tromey <tromey@redhat.com>
5608
5609 PR symtab/16902:
5610 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5611 (dwarf2_physname, read_partial_die)
5612 (guess_partial_die_structure_name, fixup_partial_die)
5613 (guess_full_die_structure_name, anonymous_struct_prefix)
5614 (dwarf2_name): Use per-BFD obstack.
5615
efc889c1
YQ
56162014-06-26 Yao Qi <yao@codesourcery.com>
5617
5618 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5619 dummyframe and this_id into inner block below.
5620
4395285e
YQ
56212014-06-26 Yao Qi <yao@codesourcery.com>
5622
5623 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5624 with "signal_pass[0]" in the initialization of signal_pass.
5625
aef92902
MM
56262014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5627
5628 * record-btrace.c (record_btrace_generating_corefile)
5629 (record_btrace_prepare_to_generate_core)
5630 (record_btrace_done_generating_core): New.
5631 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5632 (record_btrace_store_registers, record_btrace_prepare_to_store):
5633 Forward request when generating a core file.
5634 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5635 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5636 to_done_generating_core.
5637
5fff78c4
MM
56382014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5639
5640 * target.h (target_ops) <to_prepare_to_generate_core>
5641 <to_done_generating_core>: New.
5642 (target_prepare_to_generate_core, target_done_generating_core): New.
5643 * target.c (target_prepare_to_generate_core)
5644 (target_done_generating_core): New.
5645 * target-delegates.c: Regenerate.
5646 * gcore.c: (write_gcore_file): Rename to ...
5647 (write_gcore_file_1): ...this.
5648 (write_gcore_file): Call target_prepare_to_generate_core
5649 and target_done_generating_core.
5650
1d1f1ccb
MM
56512014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5652
5653 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5654 * gcore.c (write_gcore_file): Free memory returned from
5655 make_corefile_notes.
5656 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5657 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5658
3343ef86
YQ
56592014-06-24 Yao Qi <yao@codesourcery.com>
5660
5661 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5662 (arm_linux_init_abi): Set skip_trampoline_code with
5663 gdbarch_skip_trampoline_code instead of
5664 find_solib_trampoline_target.
5665
18d18ac8
YQ
56662014-06-24 Yao Qi <yao@codesourcery.com>
5667
5668 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5669 arm_skip_bx_reg returns non-zero.
5670
80d8d390
YQ
56712014-06-24 Yao Qi <yao@codesourcery.com>
5672
5673 * arm-tdep.c (arm_skip_bx_reg): New function.
5674 (arm_skip_stub): Call arm_skip_bx_reg.
5675
6a18a01c
DB
56762014-06-23 Don Breazeal <donb@codesourcery.com>
5677
5678 * MAINTAINERS: Add myself as write-after-approval maintainer.
5679
8e9db26e
PA
56802014-06-23 Pedro Alves <palves@redhat.com>
5681
5682 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5683 DR_CONTROL before setting DR0..DR3.
5684 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5685 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5686 bits of DR_CONTROL related to the debug register slot being
5687 disabled. If all slots are vacant, clear local slowdown as well,
5688 and assert DR_CONTROL is 0.
5689
70afc5b7
SC
56902014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5691
5692 * python/lib/gdb/command/xmethods.py
5693 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5694 current progspace only if the string "progspace" matches LOCUS_RE.
5695
840ed64d
JK
56962014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5697
5698 Fix --with-system-readline with readline-6.3 patch 5.
5699 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5700 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5701 types.
5702
26f2dc30
TT
57032014-06-20 Tom Tromey <tromey@redhat.com>
5704
5705 * dwarf2read.c (dw2_get_real_path): Use correct type in
5706 OBSTACK_CALLOC.
5707 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5708
125f8a3d
GB
57092014-06-20 Gary Benson <gbenson@redhat.com>
5710
5711 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5712 * common/glibc_thread_db.h: Likewise.
5713 * common/i386-cpuid.h: Likewise.
5714 * common/i386-gcc-cpuid.h: Likewise.
5715 * common/linux-btrace.h: Likewise.
5716 * common/linux-osdata.h: Likewise.
5717 * common/linux-procfs.h: Likewise.
5718 * common/linux-ptrace.h: Likewise.
5719 * common/mips-linux-watch.h: Likewise.
5720 * common/linux-btrace.c: Moved to nat.
5721 * common/linux-osdata.c: Likewise.
5722 * common/linux-procfs.c: Likewise.
5723 * common/linux-ptrace.c: Likewise.
5724 * common/mips-linux-watch.c: Likewise.
5725 * nat/gdb_thread_db.h: Moved from common.
5726 * nat/glibc_thread_db.h: Likewise.
5727 * nat/i386-cpuid.h: Likewise.
5728 * nat/i386-gcc-cpuid.h: Likewise.
5729 * nat/linux-btrace.c: Likewise.
5730 * nat/linux-btrace.h: Likewise.
5731 * nat/linux-osdata.c: Likewise.
5732 * nat/linux-osdata.h: Likewise.
5733 * nat/linux-procfs.c: Likewise.
5734 * nat/linux-procfs.h: Likewise.
5735 * nat/linux-ptrace.c: Likewise.
5736 * nat/linux-ptrace.h: Likewise.
5737 * nat/mips-linux-watch.c: Likewise.
5738 * nat/mips-linux-watch.h: Likewise.
5739 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5740 (object file files): Reordered.
5741 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5742 of glibc_thread_db.h.
5743
42995dbd
GB
57442014-06-20 Gary Benson <gbenson@redhat.com>
5745
5746 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5747 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5748 (i386_dr_low): Likewise.
5749 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5750 (i386_dr_low_set_addr): Likewise.
5751 (i386_dr_low_get_addr): Likewise.
5752 (i386_dr_low_can_set_control): Likewise.
5753 (i386_dr_low_set_control): Likewise.
5754 (i386_dr_low_get_control): Likewise.
5755 (i386_dr_low_get_status): Likewise.
5756 (i386_get_debug_register_length): Likewise.
5757 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5758 (i386_dr_low): Likewise.
5759 * nat/i386-dregs.c (i386-low.h): Remove include.
5760 (i386-nat.h): Likewise.
5761 (nat/i386-dregs.h): New include.
5762 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5763 (i386_dr_low_set_addr): Likewise.
5764 (i386_dr_low_get_addr): Likewise.
5765 (i386_dr_low_can_set_control): Likewise.
5766 (i386_dr_low_set_control): Likewise.
5767 (i386_dr_low_get_control): Likewise.
5768 (i386_dr_low_get_status): Likewise.
5769 (i386_get_debug_register_length): Likewise.
5770 (debug_hw_points): Likewise.
5771
3ed9baed
IB
57722014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5773
5774 * Makefile.in (SFILES): Add d-exp.y.
5775 (YYFILES): Add d-exp.c.
5776 (YYOBJ): Add d-exp.o.
5777 (local-maintainer-clean): Delete d-exp.c.
5778 * d-exp.y: New file.
5779 * d-lang.h (d_parse): New declaration.
5780 (d_error): New declaration.
5781 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5782 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5783 PREC_ORDER operators.
5784 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5785
78c164b0
YQ
57862014-06-19 Yao Qi <yao@codesourcery.com>
5787
5788 * gdbthread.h (any_running): Remove the declaration.
5789 * thread.c (any_running): Remove.
5790
f6e29b6e
YQ
57912014-06-19 Yao Qi <yao@codesourcery.com>
5792
5793 * gdbthread.h (struct thread_info) <state>: Change its type to
5794 'enum thread_state'. Update comments.
5795
034f788c
PA
57962014-06-19 Pedro Alves <palves@redhat.com>
5797
5798 * gdbthread.h (ALL_THREADS): Delete.
5799 (ALL_NON_EXITED_THREADS): New macro.
5800 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5801 instead of ALL_THREADS.
5802 * infrun.c (find_thread_needs_step_over)
5803 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5804 instead of ALL_THREADS.
5805 * record-btrace.c (record_btrace_open)
5806 (record_btrace_stop_recording, record_btrace_close)
5807 (record_btrace_is_replaying, record_btrace_resume)
5808 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5809 * remote.c (append_pending_thread_resumptions): Likewise.
5810 * thread.c (thread_apply_all_command): Likewise.
5811
46e33252
GB
58122014-06-19 Gary Benson <gbenson@redhat.com>
5813
5814 * i386-nat.c (i386_stopped_by_watchpoint):
5815 Use i386_dr_stopped_by_watchpoint.
5816 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5817 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5818
3a8ee006
GB
58192014-06-19 Gary Benson <gbenson@redhat.com>
5820
5821 * nat/i386-dregs.c: New file.
5822 * Makefile.in (i386-dregs.o): New rule.
5823 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5824 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5825 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5826 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5827 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5828 * config/i386/go32.mh (NATDEPFILES): Likewise.
5829 * config/i386/linux.mh (NATDEPFILES): Likewise.
5830 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5831 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5832 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5833 * i386-nat.h (debug_hw_points): New declaration.
5834 * i386-nat.c (breakpoint.h): Remove include.
5835 (command.h): Likewise.
5836 (target.h): Likewise.
5837 (gdb_assert.h): Likewise.
5838 (debug_hw_points): Made nonstatic.
5839 (debug_printf): Now in i386-dregs.c.
5840 (TARGET_HAS_DR_LEN_8): Likewise.
5841 (DR_CONTROL_SHIFT): Likewise.
5842 (DR_CONTROL_SIZE): Likewise.
5843 (DR_RW_EXECUTE): Likewise.
5844 (DR_RW_WRITE): Likewise.
5845 (DR_RW_READ): Likewise.
5846 (DR_RW_IORW): Likewise.
5847 (DR_LEN_1): Likewise.
5848 (DR_LEN_2): Likewise.
5849 (DR_LEN_4): Likewise.
5850 (DR_LEN_8): Likewise.
5851 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5852 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5853 (DR_ENABLE_SIZE): Likewise.
5854 (DR_LOCAL_SLOWDOWN): Likewise.
5855 (DR_GLOBAL_SLOWDOWN): Likewise.
5856 (DR_CONTROL_RESERVED): Likewise.
5857 (I386_DR_CONTROL_MASK): Likewise.
5858 (I386_DR_VACANT): Likewise.
5859 (I386_DR_LOCAL_ENABLE): Likewise.
5860 (I386_DR_GLOBAL_ENABLE): Likewise.
5861 (I386_DR_DISABLE): Likewise.
5862 (I386_DR_SET_RW_LEN): Likewise.
5863 (I386_DR_GET_RW_LEN): Likewise.
5864 (I386_DR_WATCH_HIT): Likewise.
5865 (i386_wp_op_t): Likewise.
5866 (i386_show_dr): Likewise.
5867 (i386_length_and_rw_bits): Likewise.
5868 (i386_insert_aligned_watchpoint): Likewise.
5869 (i386_remove_aligned_watchpoint): Likewise.
5870 (i386_handle_nonaligned_watchpoint): Likewise.
5871 (i386_update_inferior_debug_regs): Likewise.
5872 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5873 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5874 (i386_region_ok_for_watchpoint):
5875 Use i386_dr_region_ok_for_watchpoint.
5876 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5877
322a8e06
GB
58782014-06-19 Gary Benson <gbenson@redhat.com>
5879
5880 * i386-nat.c (i386_insert_hw_breakpoint): Use
5881 i386_insert_watchpoint.
5882 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5883
8f26655c
GB
58842014-06-19 Gary Benson <gbenson@redhat.com>
5885
5886 * i386-nat.c (i386_dr_show): Renamed to
5887 i386_show_dr and made static. All uses updated.
5888 (i386_dr_length_and_rw_bits): Renamed to
5889 i386_length_and_rw_bits and made static.
5890 All uses updated.
5891 (i386_dr_insert_aligned_watchpoint): Renamed to
5892 i386_insert_aligned_watchpoint and made static.
5893 All uses updated.
5894 (i386_dr_remove_aligned_watchpoint): Renamed to
5895 i386_remove_aligned_watchpoint and made static.
5896 All uses updated.
5897 (i386_dr_update_inferior_debug_regs): Renamed to
5898 i386_update_inferior_debug_regs and made static.
5899 All uses updated.
5900 * nat/i386-dregs.h (i386_dr_show): Removed.
5901 (i386_dr_length_and_rw_bits): Likewise.
5902 (i386_dr_insert_aligned_watchpoint): Likewise.
5903 (i386_dr_remove_aligned_watchpoint): Likewise.
5904 (i386_dr_update_inferior_debug_regs): Likewise.
5905
992c7d70
GB
59062014-06-19 Gary Benson <gbenson@redhat.com>
5907
5908 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5909 * configure: Regenerate.
5910 * config.in: Likewise.
5911 * main.c (signal.h): New include.
5912 (setup_alternate_signal_stack): New function.
5913 (captured_main): Call the above.
5914 * cp-support.c (signal.h): New include.
5915 (catch_demangler_crashes): New flag.
5916 (SIGJMP_BUF): New define.
5917 (SIGSETJMP): Likewise.
5918 (SIGLONGJMP): Likewise.
5919 (gdb_demangle_jmp_buf): New static global.
5920 (gdb_demangle_attempt_core_dump): Likewise.
5921 (gdb_demangle_signal_handler): New function.
5922 (gdb_demangle): If catch_demangler_crashes is set, install the
5923 above signal handler before calling bfd_demangle, and restore
5924 the original signal handler afterwards. Display the offending
5925 symbol and call demangler_warning the first time a segmentation
5926 fault is caught.
5927 (_initialize_cp_support): New maint set/show command.
5928
eae7090b
GB
59292014-06-19 Gary Benson <gbenson@redhat.com>
5930
5931 * utils.h (resource_limit_kind): New enum.
5932 (can_dump_core): New declaration.
5933 (warn_cant_dump_core): Likewise.
5934 (dump_core): Likewise.
5935 * utils.c (dump_core): Made nonstatic. Added new
5936 parameter "limit_kind".
5937 (can_dump_core): Made nonstatic. Moved printing code to...
5938 (warn_cant_dump_core): New function.
5939 (can_dump_core_warn): Likewise.
5940 (internal_vproblem): Replace calls to can_dump_core with
5941 calls to can_dump_core_warn. Supply new argument to each.
5942
57fcfb1b
GB
59432014-06-19 Gary Benson <gbenson@redhat.com>
5944
5945 * utils.h (demangler_vwarning): New declaration.
5946 (demangler_warning): Likewise.
5947 * utils.c (struct internal_problem)
5948 <user_settable_should_quit>: New field.
5949 <user_settable_should_dump_core>: Likewise
5950 (internal_error_problem): Add values for above new fields.
5951 (internal_warning_problem): Likewise.
5952 (demangler_warning_problem): New static global.
5953 (demangler_vwarning): New function.
5954 (demangler_warning): Likewise.
5955 (add_internal_problem_command): Selectively add commands.
5956 (_initialize_utils): New internal problem command.
5957 * maint.c (maintenance_demangler_warning): New function.
5958 (_initialize_maint_cmds): New command.
5959
17a40b44
TT
59602014-06-18 Tom Tromey <tromey@redhat.com>
5961
5962 * f-valprint.c (info_common_command_for_block): Update.
5963 * symtab.h (struct general_symbol_info) <common_block>: Now
5964 const.
5965
346d1dfe
TT
59662014-06-18 Tom Tromey <tromey@redhat.com>
5967
5968 * symtab.h (struct symtab) <blockvector>: Now const.
5969 * ada-lang.c (ada_add_global_exceptions): Update.
5970 * buildsym.c (augment_type_symtab): Update.
5971 * dwarf2read.c (dw2_lookup_symbol): Update.
5972 * jit.c (finalize_symtab): Update.
5973 * jv-lang.c (add_class_symtab_symbol): Update.
5974 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5975 Update.
5976 * objfiles.c (objfile_relocate1): Update.
5977 * psymtab.c (lookup_symbol_aux_psymtabs)
5978 (maintenance_check_psymtabs): Update.
5979 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5980 Update.
5981 * spu-tdep.c (spu_catch_start): Update.
5982 * symmisc.c (dump_symtab_1): Update.
5983 * symtab.c (lookup_global_symbol_from_objfile)
5984 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5985 (basic_lookup_transparent_type_quick)
5986 (basic_lookup_transparent_type, find_pc_sect_symtab)
5987 (find_pc_sect_line, search_symbols): Update.
5988 * block.c (find_block_in_blockvector): Make "bl" const.
5989 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5990 const.
5991 (blockvector_contains_pc): Make "bv" const.
5992 (block_for_pc_sect): Update.
5993 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5994 (blockvector_contains_pc): Update.
5995 * breakpoint.c (resolve_sal_pc): Update.
5996 * inline-frame.c (block_starting_point_at): Update.
5997
1834676b
TT
59982014-06-18 Tom Tromey <tromey@redhat.com>
5999
6000 * completer.c (complete_line): Make "line_buffer" const.
6001 * completer.h (complete_line): Update.
6002
ac1a991b
TT
60032014-06-18 Tom Tromey <tromey@redhat.com>
6004
6005 * symtab.c (add_macro_name): Remove unneeded cast.
6006
5bc98e52
TT
60072014-06-18 Tom Tromey <tromey@redhat.com>
6008
6009 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6010 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6011
8236def8
TT
60122014-06-18 Tom Tromey <tromey@redhat.com>
6013
6014 * probe.c (info_probes_for_ops): Make "arg" const.
6015 * probe.h (info_probes_for_ops): Update.
6016
3977b71f
TT
60172014-06-18 Tom Tromey <tromey@redhat.com>
6018
6019 * varobj.c (varobj_create): Update.
6020 * valops.c (value_of_this): Update.
6021 * tracepoint.c (add_local_symbols, scope_info): Update.
6022 * symtab.h (struct general_symbol_info) <block>: Now const.
6023 * symtab.c (skip_prologue_sal)
6024 (default_make_symbol_completion_list_break_on)
6025 (skip_prologue_using_sal): Update.
6026 * stack.h (iterate_over_block_locals)
6027 (iterate_over_block_local_vars): Update.
6028 * stack.c (print_frame_args): Update.
6029 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6030 parameter const.
6031 (get_selected_block): Make return type const.
6032 * python/py-frame.c (frapy_block): Update.
6033 * python/py-block.c (gdbpy_block_for_pc): Update.
6034 * p-exp.y (%union) <bval>: Now const.
6035 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6036 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6037 * m2-exp.y (%union) <bval>: Now const.
6038 * linespec.c (get_current_search_block): Make return type const.
6039 (create_sals_line_offset, find_label_symbols): Update.
6040 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6041 Update.
6042 (block_starting_point_at): Make "block" const.
6043 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6044 (check_exception_resume): Update.
6045 * guile/scm-frame.c (gdbscm_frame_block): Update.
6046 * guile/scm-block.c (gdbscm_lookup_block): Update.
6047 * frame.h (get_frame_block): Update.
6048 (get_selected_block): Make return type const.
6049 * frame.c (frame_id_inner): Update.
6050 * f-valprint.c (info_common_command_for_block)
6051 (info_common_command): Update.
6052 * dwarf2loc.c (dwarf2_find_location_expression)
6053 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6054 (locexpr_describe_location_piece): Update.
6055 * c-exp.y (%union) <bval>: Now const.
6056 * breakpoint.c (resolve_sal_pc): Update.
6057 * blockframe.c (get_frame_block):Make return type const.
6058 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6059 (block_innermost_frame): Update.
6060 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6061 (block_for_pc, block_for_pc_sect): Update.
6062 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6063 'pblock' const.
6064 (block_for_pc_sect, block_for_pc): Make return type const.
6065 * ax-gdb.c (gen_expr): Update.
6066 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6067 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6068 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6069 (ada_read_var_value): Update.
6070 * ada-exp.y (struct name_info) <block>: Now const.
6071 (%union): Likewise.
6072 (block_lookup): Constify.
6073
b9228891
GB
60742014-06-18 Gary Benson <gbenson@redhat.com>
6075
6076 * nat/i386-dregs.h: New file.
6077 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6078 * i386-nat.h (i386-dregs.h): New include.
6079 (DR_FIRSTADDR): Now in i386-dregs.h.
6080 (DR_LASTADDR): Likewise.
6081 (DR_NADDR): Likewise.
6082 (DR_STATUS): Likewise.
6083 (DR_CONTROL): Likewise.
6084 (i386_debug_reg_state): Likewise.
6085 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6086
a1aa2221
LM
60872014-06-18 Don Breazeal <donb@codesourcery.com>
6088
6089 * breakpoint.c (set_longjmp_breakpoint): Call
6090 momentary_breakpoint_from_master with additional argument.
6091 (set_longjmp_breakpoint_for_call_dummy): Call
6092 momentary_breakpoint_from_master with additional argument.
6093 (set_std_terminate_breakpoint): Call
6094 momentary_breakpoint_from_master with additional argument.
6095 (momentary_breakpoint_from_master): Add argument to function
6096 definition and use it to initialize structure member flag.
74228e77 6097 (clone_momentary_breakpoint): Call
a1aa2221
LM
6098 momentary_breakpoint_from_master with additional argument.
6099 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6100 member flags set in momentary_breakpoint_from_master.
6101
4be83cc2
GB
61022014-06-18 Gary Benson <gbenson@redhat.com>
6103
6104 * i386-nat.c (i386_show_dr): Renamed to
6105 i386_dr_show and made nonstatic. All uses updated.
6106 (i386_length_and_rw_bits): Renamed to
6107 i386_dr_length_and_rw_bits and made nonstatic.
6108 All uses updated.
6109 (i386_insert_aligned_watchpoint): Renamed to
6110 i386_dr_insert_aligned_watchpoint and made nonstatic.
6111 All uses updated.
6112 (i386_remove_aligned_watchpoint): Renamed to
6113 i386_dr_remove_aligned_watchpoint and made nonstatic.
6114 All uses updated.
6115 (i386_update_inferior_debug_regs): Renamed to
6116 i386_dr_update_inferior_debug_regs and made nonstatic.
6117 All uses updated.
6118
131aa0d4
GB
61192014-06-18 Gary Benson <gbenson@redhat.com>
6120
6121 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6122 (i386_dr_low_can_set_control): Likewise.
6123 (i386_dr_low_set_addr): Likewise.
6124 (i386_dr_low_set_control): Likewise.
6125 (i386_dr_low_get_addr): Likewise.
6126 (i386_dr_low_get_status): Likewise.
6127 (i386_dr_low_get_control): Likewise.
6128 (i386_insert_aligned_watchpoint): Use new macros.
6129 (i386_update_inferior_debug_regs): Likewise.
6130 (i386_stopped_data_address): Likewise.
6131
d9305f7f
GB
61322014-06-18 Gary Benson <gbenson@redhat.com>
6133
6134 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6135 New parameter. All uses updated.
6136
ea008da4
GB
61372014-06-18 Gary Benson <gbenson@redhat.com>
6138
6139 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6140 All uses updated.
6141
1b6d4134
GB
61422014-06-18 Gary Benson <gbenson@redhat.com>
6143
6144 * i386-nat.c (debug_printf): New macro.
6145 (i386_get_debug_register_length): Likewise.
6146 (TARGET_HAS_DR_LEN_8): Use above macro.
6147 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6148 and printf_unfiltered. Use phex to format values.
6149
9b4550ef
GB
61502014-06-18 Gary Benson <gbenson@redhat.com>
6151
6152 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6153 Make const.
6154
6e62758f
GB
61552014-06-18 Gary Benson <gbenson@redhat.com>
6156
6157 * i386-nat.c: Comment changes.
6158
51c79e94
GB
61592014-06-18 Gary Benson <gbenson@redhat.com>
6160
6161 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6162
3e11889a
GB
61632014-06-18 Gary Benson <gbenson@redhat.com>
6164
6165 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6166 (i386_insert_aligned_watchpoint): Likewise.
6167 (i386_remove_aligned_watchpoint): Likewise.
6168 (i386_handle_nonaligned_watchpoint): Likewise.
6169
fc6e2f03
GB
61702014-06-18 Gary Benson <gbenson@redhat.com>
6171
6172 * i386-nat.c: Whitespace changes.
6173
2afe7d50
SB
61742014-06-17 Samuel Bronson <naesten@gmail.com>
6175
6176 * MAINTAINERS: Update Roland McGrath's email address.
6177 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6178 Red Hat a while ago, and giving me a current address.
2afe7d50 6179
3bca49ee
TT
61802014-06-17 Tom Tromey <tromey@redhat.com>
6181
6182 * utils.h (savestring): Remove declaration.
6183
6e366df1
TT
61842014-06-17 Tom Tromey <tromey@redhat.com>
6185
6186 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6187
6be47f0c
KS
61882014-06-16 Keith Seitz <keiths@redhat.com>
6189
6190 PR mi/15863
6191 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6192 to update the varobj if inferior_ptid is null_ptid.
6193
7bc112c1
TT
61942014-06-16 Tom Tromey <tromey@redhat.com>
6195
6196 * target.h (struct target_ops) <to_info_proc>: Make parameter
6197 const.
6198 (target_info_proc): Update.
6199 * target.c (target_info_proc): Make "args" const.
6200 * procfs.c (procfs_info_proc): Update.
6201 * linux-tdep.c (linux_info_proc): Update.
6202 (linux_core_info_proc_mappings): Make "args" const.
6203 (linux_core_info_proc): Update.
6204 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6205 * gdbarch.c: Rebuild.
6206 * gdbarch.h: Rebuild.
6207 * corelow.c (core_info_proc): Update.
6208
fee354ee
TT
62092014-06-16 Tom Tromey <tromey@redhat.com>
6210
6211 * target.h (struct target_ops) <to_disconnect>: Make parameter
6212 const.
6213 (target_disconnect): Update.
6214 * target.c (target_disconnect): Make "args" const.
6215 * target-delegates.c: Rebuild.
6216 * remote.c (remote_disconnect): Update.
6217 * record.h (record_disconnect): Update.
6218 * record.c (record_disconnect): Update.
6219 * inf-child.c (inf_child_disconnect): Update.
6220
a30bf1f1
TT
62212014-06-16 Tom Tromey <tromey@redhat.com>
6222
6223 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6224 * target.c (debug_to_rcmd, default_rcmd): Update.
6225 * target-delegates.c: Rebuild.
6226 * remote.c (remote_rcmd): Update.
6227 * monitor.c (monitor_rcmd): Update.
6228
d03de421
PA
62292014-06-16 Pedro Alves <palves@redhat.com>
6230
6231 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6232 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6233 have OBJF_SHARED set.
6234 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6235 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6236 instead of OBJF_USERLOADED.
6237 * objfiles.h (OBJF_SHARED): Update comment.
6238 (userloaded_objfile_contains_address_p): Rename to ...
6239 (shared_objfile_contains_address_p): ... this, and update
6240 comments.
6241 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6242 new objfile.
6243 (remove_symbol_file_command): Skip objfiles that don't have
6244 OBJF_SHARED set.
6245
99f4262f
TT
62462014-06-16 Tom Tromey <tromey@redhat.com>
6247
6248 * minsyms.h (prim_record_minimal_symbol)
6249 (prim_record_minimal_symbol_and_info): Update comments.
6250
97d66cc6
EZ
62512014-06-14 Eli Zaretskii <eliz@gnu.org>
6252
6253 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6254 or --without-guile, according to how GDB was built.
6255
635c7e8a
TT
62562014-06-13 Tom Tromey <tromey@redhat.com>
6257
6258 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6259 to help_list.
6260 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6261 to help_list.
6262 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6263 help_list.
6264 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6265 help_list.Pass all_commands, not -1, to help_list.
6266 * cli/cli-dump.c (dump_command, append_command)
6267 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6268 (binary_dump_command, binary_append_command): Pass all_commands,
6269 not -1, to help_list.
6270 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6271 -1, to help_list.
6272 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6273 -1, to help_list.
6274 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6275 help_list.
6276 * top.c (set_history): Pass all_commands, not -1, to help_list.
6277 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6278 all_commands, not -1, to help_list.
6279 * symfile.c (overlay_command): Pass all_commands, not -1, to
6280 help_list.
6281 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6282 help_list.
6283 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6284 help_list.
6285 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6286 -1, to help_list.
6287 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6288 not -1, to help_list.
6289 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6290 not -1, to help_list.
6291 * maint.c (maintenance_command, maintenance_info_command)
6292 (maintenance_print_command, maintenance_set_cmd): Pass
6293 all_commands, not -1, to help_list.
6294 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6295 help_list.
6296 * language.c (set_check): Pass all_commands, not -1, to help_list.
6297 * infcmd.c (unset_command): Pass all_commands, not -1, to
6298 help_list.
6299 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6300 help_list.
6301 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6302 help_list.
6303 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6304 help_list.
6305 * breakpoint.c (save_command): Pass all_commands, not -1, to
6306 help_list.
6307 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6308 all_commands, not -1, to help_list.
6309
b94ade42
PL
63102014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6311
6312 * regcache.c (struct register_to_invalidate): New structure.
6313 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6314 functions.
6315 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6316
31f628ae
YQ
63172014-06-12 Yao Qi <yao@codesourcery.com>
6318
6319 * varobj.c (varobj_get_num_children): Call
6320 varobj_is_dynamic_p.
6321 (varobj_list_children): Likewise.
6322 (varobj_update): Likewise. Update comments.
6323
cde5ef40
YQ
63242014-06-12 Yao Qi <yao@codesourcery.com>
6325
6326 * varobj.c (varobj_pretty_printed_p): Rename to ...
6327 (varobj_is_dynamic_p): ... this. New function.
6328 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6329 (varobj_is_dynamic_p): Declare.
6330 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6331 (mi_print_value_p, varobj_update_one): Likewise.
6332
576ea091
YQ
63332014-06-12 Pedro Alves <pedro@codesourcery.com>
6334 Yao Qi <yao@codesourcery.com>
6335
6336 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6337 (varobj_get_iterator): Wrap up code for pretty-printer by
6338 "#if HAVE_PYTHON" and "#endif".
6339 (update_dynamic_varobj_children): Likewise.
6340
827f100c
YQ
63412014-06-12 Pedro Alves <pedro@codesourcery.com>
6342 Yao Qi <yao@codesourcery.com>
6343
6344 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6345 gdb_python_initialized is false. Move some code from varobj.c.
6346 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6347 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6348 (struct varobj_item): Moved to varobj-iter.h".
6349 (varobj_clear_saved_item): New function.
6350 (update_dynamic_varobj_children): Move python-related code to
6351 py-varobj.c.
6352 (free_variable): Call varobj_clear_saved_item and
6353 varobj_iter_delete.
6354
e5250216
YQ
63552014-06-12 Pedro Alves <pedro@codesourcery.com>
6356 Yao Qi <yao@codesourcery.com>
6357
6358 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6359 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6360 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6361 (py-varobj.o): New rule.
6362 * python/py-varobj.c: New file.
6363 * python/python-internal.h (py_varobj_get_iterator): Declare.
6364 * varobj-iter.h: New file.
6365 * varobj.c: Include "varobj-iter.h"
6366 (struct varobj) <child_iter>: Change its type from "PyObject *"
6367 to "struct varobj_iter *".
6368 <saved_item>: Likewise.
6369 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6370 [HAVE_PYTHON] (varobj_get_iterator): New function.
6371 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6372 python-specific code to python/py-varobj.c.
6373 (install_visualizer): Call varobj_iter_delete instead of
6374 Py_XDECREF.
6375 * varobj.h (varobj_ensure_python_env): Declare.
6376
5a2e0d6e
YQ
63772014-06-12 Yao Qi <yao@codesourcery.com>
6378
6379 * varobj.c (struct varobj_item): New structure.
6380 (create_child_with_value): Update declaration.
6381 (varobj_add_child): Replace arguments 'name' and 'value' with
6382 'item'. All callers updated.
6383 (install_dynamic_child): Likewise.
6384 (update_dynamic_varobj_children): Likewise.
6385 (varobj_add_child): Likewise.
6386 (create_child_with_value): Likewise.
6387
919b9a93
JB
63882014-06-11 Joel Brobecker <brobecker@adacore.com>
6389
6390 * NEWS: Create a new section for the next release branch.
6391 Rename the section of the current branch, now that it has
6392 been cut.
6393
71a55bdf
JB
63942014-06-11 Joel Brobecker <brobecker@adacore.com>
6395
6396 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6397 * version.in: Bump version to 7.8.50.DATE-cvs.
6398
364fe1f7
PA
63992014-06-11 Pedro Alves <palves@redhat.com>
6400
6401 PR remote/17028
6402 * ser-mingw.c (net_windows_socket_check_pending): New function.
6403 (net_windows_select_thread): Ignore spurious wakeups. Use
6404 net_windows_socket_check_pending.
6405 (net_windows_wait_handle): Check for pending events with
6406 ioctlsocket, through net_windows_socket_check_pending, instead of
6407 checking the socket's event.
6408
5a6c7709
SC
64092014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6410
6411 * python/python-internal.h (gdb_PyObject_GetAttrString)
6412 (gdb_PyObject_HasAttrString): New inline function definitions.
6413 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6414 char * of the second argument to PyObject_GetAttrString.
74228e77 6415
0e58ee40
JB
64162014-06-10 Joel Brobecker <brobecker@adacore.com>
6417
6418 * serial.c (serial_write): Fix index of character to be printed
6419 in call to serial_logchar when serial debug traces are enabled.
6420
d190df30
JB
64212014-06-10 Joel Brobecker <brobecker@adacore.com>
6422
6423 * gdbtypes (resolve_dynamic_range): Add function description.
6424
b4b01d36
PA
64252014-06-09 Pedro Alves <palves@redhat.com>
6426
6427 * linux-nat.c (linux_child_follow_fork): Initialize status with
6428 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6429 inner block. Only pass the signal to PTRACE_DETACH if in pass
6430 state.
6431
3657956b
GB
64322014-06-09 Gary Benson <gbenson@redhat.com>
6433
6434 * common/signals.c (gdb_signal_from_host): Reorder to separate
6435 the always-available ANSI-standard signals from the signals that
6436 require checking.
6437 (do_gdb_signal_to_host): Likewise.
6438 * proc-events.c (signal_table): Likewise.
6439
c077881a
HZ
64402014-06-08 Hui Zhu <hui@codesourcery.com>
6441
6442 * common/linux-ptrace.c (linux_disable_event_reporting): New
6443 function.
6444 * common/linux-ptrace.h (linux_disable_event_reporting): New
6445 declaration.
6446 * linux-nat.c (linux_child_follow_fork): Do a single step before
6447 detach.
6448
4186eb54
KS
64492014-06-07 Keith Seitz <keiths@redhat.com>
6450
6451 Revert:
6452 PR c++/16253
6453 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6454 from symbol_matches_domain in symtab.c. All local callers
6455 of symbol_matches_domain updated.
6456 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6457 search STRUCT_DOMAIN.
6458 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6459 independently. standard_lookup will do that automatically.
6460 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6461 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6462 (cp_lookup_symbol_in_namespace): Likewise.
6463 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6464 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6465 may return a STRUCT_DOMAIN match.
6466 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6467 * cp-support.c: Include language.h.
6468 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6469 VAR_DOMAIN.
6470 * psymtab.c (match_partial_symbol): Compare the requested
6471 domain with the symbol's domain directly.
6472 (lookup_partial_symbol): Likewise.
6473 * symtab.c (lookup_symbol_in_language): Explain when/why
6474 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6475 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6476 appropriate languages.
6477 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6478 and moved to ada-lang.c
6479 (lookup_block_symbol): Explain that this function only returns
6480 symbol matching the requested DOMAIN.
6481 Compare the requested domain with the symbol's domain directly.
6482 (iterate_over_symbols): Compare the requested domain with the
6483 symbol's domain directly.
6484 * symtab.h (symbol_matches_domain): Remove.
6485
25326a28 64862014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6487
6488 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6489 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6490 (gdbscm_guile_version_is_at_least): Declare.
6491 (gdbscm_scm_string_to_int): Declare.
6492 * guile/guile.c (gdbscm_guile_major_version): New global.
6493 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6494 (guile_datadir): New static global.
6495 (gdbscm_guile_data_directory): New function.
6496 (initialize_scheme_side): Update.
6497 (misc_guile_functions): Add guile-data-directory.
6498 (initialize_gdb_module): Fetch guile version number.
6499 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6500 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6501 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6502 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6503 comments.
6504 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6505 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6506 * guile/scm-value.c (gdbscm_value_to_string): Only call
6507 scm_port_conversion_strategy if Guile version >= 2.0.6.
6508
0a770bb2 65092014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6510
6511 * main.c (print_gdb_help): Add -q and --silent.
6512
73ba372c
GB
65132014-06-06 Gary Benson <gbenson@redhat.com>
6514
6515 * common/signals.c: Remove preprocessor conditionals for
6516 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6517 SIGSEGV and SIGTERM.
6518 * proc-events.c: Likewise.
6519
c33b2f12
MM
65202014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6521
6522 * symfile.c (symfile_free_objfile): Remove restriction to
6523 OBJF_USERLOADED.
6524 * symfile-mem.c (symbol_file_add_from_memory): Call
6525 add_target_sections_of_objfile.
6526
fb934770
LC
65272014-06-05 Ludovic Courtès <ludo@gnu.org>
6528
6529 * guile/scm-value.c (gdbscm_history_append_x): Use
6530 'vlscm_get_value_smob_arg_unsafe' instead of
6531 'vlscm_scm_to_value'.
6532
6ef284bd
SM
65332014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6534
6535 PR mi/15806
6536 * utils.c (printchar): Don't escape at all if quoter is NUL.
6537 Update function documentation to clarify effect of parameter
6538 QUOTER.
6539 * remote.c (escape_buffer): Pass '\\' as the quoter to
6540 fputstrn_unfiltered.
6541 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6542 generate the output.
6543 (mi_solib_unloaded): Same.
6544
270c9937
JB
65452014-06-05 Joel Brobecker <brobecker@adacore.com>
6546
6547 * development.sh: Delete.
6548 * Makefile.in (config.status): Adjust dependency on development.sh.
6549 * configure.ac: Adjust development.sh source call.
6550 * configure: Regenerate.
6551
16f691fb
DE
65522014-06-04 Doug Evans <xdje42@gmail.com>
6553
6554 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6555 is_scheme_bkpt, spec.
6556 (bpscm_make_breakpoint_smob): Initialize new members.
6557 (gdbscm_create_breakpoint_x): Split into two ...
6558 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6559 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6560 (scheme_function breakpoint_functions): Update.
6561 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6562 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6563 register-breakpoint!.
6564
ef7cab6b
JB
65652014-06-04 Joel Brobecker <brobecker@adacorer.com>
6566
6567 PR server/17023
6568 * mem-break.c (z_type_supported): Return zero if
6569 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6570
012370f6
TT
65712014-06-04 Tom Tromey <tromey@redhat.com>
6572
6573 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6574 value_from_contents_and_address_unresolved.
6575 (ada_template_to_fixed_record_type_1): Likewise.
6576 (ada_which_variant_applies): Likewise.
6577 * value.h (value_from_contents_and_address_unresolved): Declare.
6578 * value.c (value_from_contents_and_address_unresolved): New
6579 function.
6580 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6581 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6582 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6583
92e2a17f
TT
65842014-06-04 Tom Tromey <tromey@redhat.com>
6585
6586 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6587
c0939df1
TT
65882014-06-04 Tom Tromey <tromey@redhat.com>
6589
6590 * procfs.c (procfs_attach): Make "args" const.
6591 * windows-nat.c (windows_attach): Make "args" const.
6592 * nto-procfs.c (procfs_attach): Make "args" const.
6593 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6594 * go32-nat.c (go32_attach): Make "args" const.
6595 * gnu-nat.c (gnu_attach): Make "args" const.
6596 * darwin-nat.c (darwin_attach): Make "args" const.
6597 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6598 * linux-nat.c (linux_nat_attach): Make "args" const.
6599 * remote.c (extended_remote_attach_1, extended_remote_attach):
6600 Make "args" const.
6601 * target.h (struct target_ops) <to_attach>: Make "args" const.
6602 (find_default_attach): Likewise.
6603 * utils.c (parse_pid_to_attach): Make "args" const.
6604 * utils.h (parse_pid_to_attach): Update.
6605
8eaff7cd
TT
66062014-06-04 Tom Tromey <tromey@redhat.com>
6607
6608 * target-delegates.c: Rebuild.
6609 * target.c (default_thread_address_space): New function.
6610 (target_thread_address_space): Simplify.
6611 * target.h (struct target_ops) <to_thread_address_space>: Add
6612 TARGET_DEFAULT_FUNC.
6613
1913f160
DE
66142014-06-04 Doug Evans <xdje42@gmail.com>
6615
6616 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6617
70ad5bff
MM
66182014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6619
6620 * record-btrace.c: Include event-loop.h and inf-loop.h.
6621 (record_btrace_resume_exec_dir)
6622 (record_btrace_async_inferior_event_handler)
6623 (record_btrace_handle_async_inferior_event): New.
6624 (record_btrace_open): Create async event handler.
6625 (record_btrace_close): Delete async event handler.
6626 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6627 Mark async event handler.
6628 (record_btrace_execution_direction): New.
6629 (init_record_btrace_ops): Initialize to_execution_direction.
6630
b6210538
DE
66312014-06-03 Doug Evans <xdje42@gmail.com>
6632
6633 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6634 (gdbscm_make_parameter): Ditto.
6635
a5b1fd27
DE
66362014-06-03 Doug Evans <dje@google.com>
6637
6638 * exec.c (exec_close_1): Call clear_section_table instead of
6639 resize_section_table.
6640 (clear_section_table): New function.
6641 (resize_section_table): Make static. Rename arg num_added to
6642 adjustment.
6643 * exec.h (clear_section_table): Declare.
6644 (resize_section_table): Delete.
6645 * progspace.c (release_program_space): Call clear_section_table
6646 instead of resize_section_table.
6647
0c6e92a5
SC
66482014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6649
6650 * NEWS (Python Scripting): Add entry about the new xmethods
6651 feature.
6652
883964a7
SC
66532014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6654
6655 * python/py-xmethods.c: New file.
6656 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6657 (objfpy_dealloc): XDECREF on the new xmethods field.
6658 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6659 field.
6660 (objfpy_get_xmethods): New function.
6661 (objfile_getset): New entry 'xmethods'.
6662 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6663 (pspy_dealloc): XDECREF on the new xmethods field.
6664 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6665 field.
6666 (pspy_get_xmethods): New function.
6667 (pspace_getset): New entry 'xmethods'.
6668 * python/python-internal.h: Add declarations for new functions.
6669 * python/python.c (_initialize_python): Invoke
6670 gdbpy_initialize_xmethods.
6671 * python/lib/gdb/__init__.py (xmethods): New
6672 attribute.
6673 * python/lib/gdb/xmethod.py: New file.
6674 * python/lib/gdb/command/xmethods.py: New file.
6675
58992dc5
SC
66762014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6677
6678 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6679 best match method returned by find_overload_match is an xmethod.
6680 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6681 the best matching operator returned by find_overload_match is an
6682 xmethod.
6683 * valops.c: #include "extension.h".
6684 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6685 Return void. The list of matching source methods is returned in
6686 "fn_list" and a vector of matching debug method workers is
6687 returned in "xm_worker_vec". Update all callers.
6688 (value_find_oload_method_list): Likewise.
6689 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6690 non-NULL, then the index of the best matching method in this
6691 vector is returned. Update all callers.
6692 (find_overload_match): Include xmethods while performing overload
6693 resolution.
6694
e81e7f5e
SC
66952014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6696
6697 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6698 * extension-priv.h (struct extension_language_ops): Add the
6699 xmethod interface.
6700 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6701 get_matching_xmethod_workers, get_xmethod_argtypes,
6702 invoke_xmethod, free_xmethod_worker,
6703 free_xmethod_worker_vec): New functions.
6704 * extension.h: #include "common/vec.h".
6705 New function declarations.
6706 (struct xmethod_worker): New struct.
6707 (VEC (xmethod_worker_ptr)): New vector type.
6708 (xmethod_worker_ptr): New typedef.
6709 (xmethod_worker_vec): Likewise.
6710 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6711 builtin_type.
6712 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6713 (struct builtin_type): New field "xmethod".
6714 * valarith.c (value_ptradd): Assert that the value argument is not
6715 lval_xcallable.
6716 * valops.c (value_must_coerce_to_target): Return 0 for
6717 lval_xcallable values.
6718 * value.c (struct value): New field XM_WORKER in the field
6719 LOCATION.
6720 (value_address, value_raw_address): Return 0 for lval_xcallable
6721 values.
6722 (set_value_address): Assert that the value is not an
6723 lval_xcallable.
6724 (value_free): Free the associated xmethod worker when freeing
6725 lval_xcallable values.
6726 (set_value_component_location): Assert that the WHOLE value is not
6727 lval_xcallable.
6728 (value_of_xmethod, call_xmethod): New functions.
6729 * value.h: Declare "struct xmethod_worker".
6730 Declare new functions value_of_xmethod, call_xmethod.
6731
ef370185
JB
67322014-06-03 Joel Brobecker <brobecker@adacore.com>
6733 Pedro Alves <palves@redhat.com>
6734
6735 PR breakpoints/17000
6736 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6737 New function, extracted from software_breakpoint_inserted_here_p.
6738 (software_breakpoint_inserted_here_p): Replace factored out code
6739 by call to find_non_raw_software_breakpoint_inserted_here.
6740 (bp_target_info_copy_insertion_state): New function.
6741 (bkpt_insert_location): Handle the case of a single-step
6742 breakpoint already inserted at the same address.
6743 (bkpt_remove_location): Handle the case of a single-step
6744 breakpoint still inserted at the same address.
6745 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6746 breakpoint already inserted at the same address.
6747 (deprecated_remove_raw_breakpoint): Handle the case of a
6748 non-raw breakpoint still inserted at the same address.
6749 (find_single_step_breakpoint): New function, extracted from
6750 single_step_breakpoint_inserted_here_p.
6751 (find_single_step_breakpoint): New function,
6752 factored out from single_step_breakpoint_inserted_here_p.
6753 (single_step_breakpoint_inserted_here_p): Reimplement.
6754
1e2ccb61
BM
67552014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6756
6757 Pushed by Joel Brobecker <brobecker@adacore.com>
6758 * source.c (show_substitute_path_command): Fix display of matching
6759 substitution rules.
6760
d3448d85
GB
67612014-06-03 Gary Benson <gbenson@redhat.com>
6762
6763 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6764
06eb1586
DE
67652014-06-02 Doug Evans <xdje42@gmail.com>
6766
6767 Add parameter support for Guile.
6768 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6769 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6770 (scm-param.o): New rule.
6771 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6772 (gdbscm_misc_error): Declare.
6773 (gdbscm_canonicalize_command_name): Declare.
6774 (gdbscm_scm_to_host_string): Declare.
6775 (gdbscm_scm_from_host_string): Declare.
6776 (gdbscm_initialize_parameters): Declare.
6777 * guile/guile.c (initialize_gdb_module): Call
6778 gdbscm_initialize_parameters.
6779 * guile/lib/gdb.scm: Export parameter symbols.
6780 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6781 cmdscm_canonicalize_name and made public. All callers updated.
6782 * guile/scm-exception.c (gdbscm_misc_error): New function.
6783 * guile/scm-param.c: New file.
6784 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6785 (gdbscm_scm_to_host_string): New function.
6786 (gdbscm_scm_from_host_string): New function.
6787 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6788
e698b8c4
DE
67892014-06-02 Doug Evans <xdje42@gmail.com>
6790
6791 Add command support for Guile.
6792 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6793 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6794 (scm-cmd.o): New rule.
6795 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6796 (gdbscm_user_error_p): Declare.
6797 (gdbscm_parse_command_name): Declare.
6798 (gdbscm_valid_command_class_p): Declare.
6799 (gdbscm_initialize_commands): Declare.
6800 * guile/guile.c (initialize_gdb_module): Call
6801 gdbscm_initialize_commands.
6802 * guile/lib/gdb.scm: Export command symbols.
6803 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6804 (throw-user-error): New function.
6805 * guile/scm-cmd.c: New file.
6806 * guile/scm-exception.c (user_error_symbol): New static global.
6807 (gdbscm_user_error_p): New function.
6808 (gdbscm_initialize_exceptions): Set user_error_symbol.
6809 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6810
fb1f94b0
PM
68112014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6812
6813 * top.c (command_loop): Handle comments here...
6814 (command_line_input): ... not here.
6815
ded03782
DE
68162014-06-02 Doug Evans <xdje42@gmail.com>
6817
6818 Add progspace support for Guile.
6819 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6820 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6821 (scm-progspace.o): New rule.
6822 * guile/guile-internal.h (pspace_smob): New typedef.
6823 (psscm_pspace_smob_pretty_printers): Declare.
6824 (psscm_pspace_smob_from_pspace): Declare.
6825 (psscm_scm_from_pspace): Declare.
6826 * guile/guile.c (initialize_gdb_module): Call
6827 gdbscm_initialize_pspaces.
6828 * guile/lib/gdb.scm: Export progspace symbols.
6829 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6830 support.
6831 (append-pretty-printer!): Ditto.
6832 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6833 Implement.
6834 * guile/scm-progspace.c: New file.
6835
397998fc
AM
68362014-06-03 Alan Modra <amodra@gmail.com>
6837
6838 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6839 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6840
6aa5f3a6
DE
68412014-06-02 Doug Evans <dje@google.com>
6842
6843 Add support for skeletonless type units.
6844 * dwarf2read.c (struct dwarf2_per_objfile): New member
6845 n_allocated_type_units.
6846 (struct dwarf2_per_objfile) <tu_stats>: New member
6847 nr_all_type_units_reallocs.
6848 (create_signatured_type_table_from_index): Initialize
6849 n_allocated_type_units
6850 (create_all_type_units): Ditto.
6851 (add_type_unit): Move up in file. New arg slot.
6852 All callers updated. Increase space for all_type_units more
6853 efficiently.
6854 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6855 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6856 (lookup_dwp_signatured_type): Ditto.
6857 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6858 All callers updated.
6859 (build_type_psymtabs_1): Leave type_unit_groups as
6860 NULL if no TUs present.
6861 (print_tu_stats): New function.
6862 (process_skeletonless_type_unit): New function.
6863 (process_dwo_file_for_skeletonless_type_units): New
6864 function.
6865 (process_skeletonless_type_units): New function.
6866 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6867 Call print tu_stats if debugging enabled.
6868
41fac0cf
PA
68692014-06-02 Pedro Alves <palves@redhat.com>
6870
6871 * breakpoint.c (build_target_command_list): Don't build a command
6872 list if we have any duplicate location that isn't a dprintf.
6873
cd1608cc
PA
68742014-06-02 Pedro Alves <palves@redhat.com>
6875
6876 * breakpoint.c (dprintf_breakpoint_hit): New function.
6877 (initialize_breakpoint_ops): Install it as dprintf's
6878 breakpoint_hit method.
6879
486ef3b9
JB
68802014-06-02 Joel Brobecker <brobecker@adacore.com>
6881
6882 * source.c (substitute_path_rule_matches): Simplify using
6883 filename_ncmp instead of FILENAME_CMP.
6884
230cd560
JB
68852014-06-02 Joel Brobecker <brobecker@adacore.com>
6886
6887 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6888
16954d5d
LC
68892014-06-01 Ludovic Courtès <ludo@gnu.org>
6890
6891 * configure.ac: When Guile is available, check for the
6892 availability of 'scm_new_smob'.
6893 * configure, config.h.in: Regenerate.
6894 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6895 function.
6896
53e8a631
AB
68972014-05-30 Andrew Burgess <aburgess@broadcom.com>
6898
6899 * frame.c (struct frame_info): Add stop_string field.
6900 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6901 (get_prev_frame_always): Old content moved into
6902 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6903 TRY_CATCH, handle MEMORY_ERROR exceptions.
6904 (frame_stop_reason_string): New function definition.
6905 * frame.h (unwind_stop_reason_to_string): Extend comment to
6906 mention frame_stop_reason_string.
6907 (frame_stop_reason_string): New function declaration.
6908 * stack.c (frame_info): Switch to frame_stop_reason_string.
6909 (backtrace_command_1): Switch to frame_stop_reason_string.
6910 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6911 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6912 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6913
70e38b8e
AB
69142014-05-30 Andrew Burgess <aburgess@broadcom.com>
6915
6916 * frame.c (frame_stop_reason_string): Rename to ...
6917 (unwind_stop_reason_to_string): this.
6918 * frame.h (frame_stop_reason_string): Rename to ...
6919 (unwind_stop_reason_to_string): this.
6920 * stack.c (frame_info): Update call to frame_stop_reason_string.
6921 (backtrace_command_1): Likewise.
6922 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6923 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6924
938f0e2f
AB
69252014-05-30 Andrew Burgess <aburgess@broadcom.com>
6926
6927 * frame.c (remove_prev_frame): New function.
6928 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6929 remove_prev_frame.
6930
a09dd441
PA
69312014-05-29 Pedro Alves <palves@redhat.com>
6932
6933 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6934 and make it const. When a single-step decays to a continue,
6935 clear 'step', not 'hw_step'. Pass whether the caller wanted
6936 to step to user_visible_resume_ptid, not what we ask the
6937 target to do.
6938
bdc36728
PA
69392014-05-29 Pedro Alves <palves@redhat.com>
6940
6941 * infrun.c (process_event_stop_test, handle_step_into_function)
6942 (handle_step_into_function_backward): Adjust.
6943 Don't set the even thread's stop_step and call stop_waiting before
6944 calling end_stepping_range. Instead do that ...
6945 (end_stepping_range): ... here. Take an ecs pointer parameter.
6946
22bcd14b
PA
69472014-05-29 Pedro Alves <palves@redhat.com>
6948
6949 * infrun.c (stop_stepping): Rename to ...
6950 (stop_waiting): ... this.
6951 (proceed): Update comment.
6952 (process_event_stop_test, handle_inferior_event)
6953 (handle_signal_stop, handle_step_into_function)
6954 (handle_step_into_function_backward): Update.
6955
4ae57c05
PA
69562014-05-29 Pedro Alves <palves@redhat.com>
6957
6958 * infcall.c (run_inferior_call): Don't check whether the current
6959 thread is running after the proceed call.
6960
329ea579
PA
69612014-05-29 Pedro Alves <palves@redhat.com>
6962 Tom Tromey <tromey@redhat.com>
6963
6964 * NEWS: Mention "maint set target-async", "set mi-async", and that
6965 background execution commands are now always available.
6966 * target.h (target_async_permitted): Update comment.
6967 * target.c (target_async_permitted, target_async_permitted_1):
6968 Default to 1.
6969 (set_target_async_command): Rename to ...
6970 (maint_set_target_async_command): ... this.
6971 (show_target_async_command): Rename to ...
6972 (maint_show_target_async_command): ... this.
6973 (_initialize_target): Adjust.
6974 * infcmd.c (prepare_execution_command): Make extern.
6975 * inferior.h (prepare_execution_command): Declare.
6976 * infrun.c (set_observer_mode): Leave target async alone.
6977 * mi/mi-interp.c (mi_interpreter_init): Install
6978 mi_on_sync_execution_done as sync_execution_done observer.
6979 (mi_on_sync_execution_done): New function.
6980 (mi_execute_command_input_handler): Don't print the prompt if we
6981 just started a synchronous command with an async target.
6982 (mi_on_resume): Check sync_execution before printing prompt.
6983 * mi/mi-main.h (mi_async_p): Declare.
6984 * mi/mi-main.c: Include gdbcmd.h.
6985 (mi_async_p): New function.
6986 (mi_async, mi_async_1): New globals.
6987 (set_mi_async_command, show_mi_async_command, mi_async): New
6988 functions.
6989 (exec_continue): Call prepare_execution_command.
6990 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6991 (mi_execute_async_cli_command): Use mi_async_p.
6992 (_initialize_mi_main): Install "set mi-async". Make
6993 "target-async" a deprecated alias.
6994
92bcb5f9
PA
69952014-05-29 Pedro Alves <palves@redhat.com>
6996
6997 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6998 (_initialize_cli_interp): Adjust.
6999 * event-loop.c: Include "observer.h".
7000 (start_event_loop): Notify 'command_error' observers instead of
7001 calling display_gdb_prompt. Remove FIXME comment.
7002 * event-top.c (display_gdb_prompt): Remove call into the
7003 interpreters.
7004 * inf-loop.c: Include "observer.h".
7005 (inferior_event_handler): Notify 'command_error' observers instead
7006 of calling display_gdb_prompt.
7007 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7008 observers instead of calling display_gdb_prompt.
7009 * interps.c (interp_set): Don't call display_gdb_prompt.
7010 (current_interp_display_prompt_p): Delete.
7011 * interps.h (interp_prompt_p): Delete declaration.
7012 (interp_prompt_p_ftype): Delete.
7013 (struct interp_procs) <prompt_proc_p>: Delete field.
7014 (current_interp_display_prompt_p): Delete declaration.
7015 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7016 (_initialize_mi_interp): Adjust.
7017 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7018 'command_error' observers.
7019 (tui_on_sync_execution_done, tui_on_command_error): New
7020 functions.
7021 (tui_display_prompt_p): Delete.
7022 (_initialize_tui_interp): Adjust.
7023
fd664c91
PA
70242014-05-29 Pedro Alves <palves@redhat.com>
7025
7026 PR gdb/13860
7027 * cli/cli-interp.c: Include infrun.h and observer.h.
7028 (cli_uiout, cli_interp): New globals.
7029 (cli_on_signal_received, cli_on_end_stepping_range)
7030 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7031 functions.
7032 (cli_interpreter_init): Install them as 'end_stepping_range',
7033 'signal_received' 'signal_exited', 'exited' and 'no_history'
7034 observers.
7035 (_initialize_cli_interp): Remove cli_interp local.
7036 * infrun.c (handle_inferior_event): Call the several stop reason
7037 observers instead of printing the stop reason directly.
7038 (end_stepping_range): New function.
7039 (print_end_stepping_range_reason, print_signal_exited_reason)
7040 (print_exited_reason, print_signal_received_reason)
7041 (print_no_history_reason): Make static, and add an uiout
7042 parameter. Print to that instead of to CURRENT_UIOUT.
7043 * infrun.h (print_end_stepping_range_reason)
7044 (print_signal_exited_reason, print_exited_reason)
7045 (print_signal_received_reason print_no_history_reason): New
7046 declarations.
7047 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7048 'mi_uiout'.
7049 <cli_uiout>: New field.
7050 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7051 uiout for CLI output. Install 'signal_received',
7052 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7053 observers.
7054 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7055 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7056 (mi_on_no_history): New functions.
7057 (ui_out_free_cleanup): Delete function.
7058 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7059 instead use the one already stored in the MI interpreter data.
7060 (mi_ui_out): Adjust.
7061 * tui/tui-interp.c: Include infrun.h and observer.h.
7062 (tui_interp): New global.
7063 (tui_on_signal_received, tui_on_end_stepping_range)
7064 (tui_on_signal_exited, tui_on_exited)
7065 (tui_on_no_history): New functions.
7066 (tui_init): Install them as 'end_stepping_range',
7067 'signal_received' 'signal_exited', 'exited' and 'no_history'
7068 observers.
7069 (_initialize_tui_interp): Delete tui_interp local.
7070
8817a6f2
PA
70712014-05-29 Pedro Alves <palves@redhat.com>
7072
7073 PR gdb/15713
7074 * linux-nat.c (linux_nat_resume_callback): Rename the second
7075 parameter to 'except'. Skip LP if it points to EXCEPT.
7076 (linux_nat_resume): Don't mark the event lwp as not stopped
7077 before resuming sibling lwps. Instead ask
7078 linux_nat_resume_callback to skip the event lwp. Mark it as not
7079 stopped after actually resuming it.
7080 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7081 resuming it.
7082 (wait_lwp): Mark the lwp as stopped here.
7083 (stop_wait_callback): Mark the lwp as not stopped right after
7084 resuming it. Don't mark lwps as stopped here.
7085 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7086 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7087
251bde03
PA
70882014-05-29 Pedro Alves <palves@redhat.com>
7089
7090 PR PR15693
7091 * infrun.c (resume): Determine how much to resume depending on
7092 whether the caller wanted a step, not whether we can hardware step
7093 the target. Mark all threads that we intend to run as running,
7094 unless we're calling an inferior function.
7095 (normal_stop): If the thread is running an infcall, don't finish
7096 thread state.
7097 * target.c (target_resume): Don't mark threads as running here.
7098
7f3c0343
JB
70992014-05-28 Joel Brobecker <brobecker@adacore.com>
7100
7101 * serial.c (_initialize_serial): Remove support for
7102 the "set remotebaud" and "show remotebaud" commands.
7103 * NEWS: Add entry documenting the removal of that command.
7104
ee34b3f9
YQ
71052014-05-28 Yao Qi <yao@codesourcery.com>
7106
7107 * charset.c: Fix typo in comments.
7108
add6c04d
GB
71092014-05-27 Gary Benson <gbenson@redhat.com>
7110
7111 * utils.c (internal_vproblem): Prompt for a bug report.
7112
92c48fc5
AW
71132014-05-26 Andy Wingo <wingo@igalia.com>
7114
7115 * guile/scm-arch.c (arscm_mark_arch_smob):
7116 * guile/scm-block.c (bkscm_mark_block_smob)
7117 (bkscm_mark_block_syms_progress_smob):
7118 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7119 * guile/scm-exception.c (exscm_mark_exception_smob):
7120 * guile/scm-frame.c (frscm_mark_frame_smob):
7121 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7122 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7123 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7124 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7125 (ppscm_mark_pretty_printer_worker_smob):
7126 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7127 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7128 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7129 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7130 mark functions.
7131 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7132 function.
7133
b2715b27
AW
71342014-05-26 Andy Wingo <wingo@igalia.com>
7135 Doug Evans <xdje42@gmail.com>
7136
7137 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7138 empty_base_class. All uses updated.
7139 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7140 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7141 Adapt all callers.
7142 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7143 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7144 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7145 (gdbscm_gsmob_has_property_p, add_property_name)
7146 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7147 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7148 (gdb-object-has-property?, gdb-object-properties): Remove.
7149 (gdb-object-kind): Renamed from gsmob-kind.
7150
214ab2da
AW
71512014-05-26 Andy Wingo <wingo@igalia.com>
7152
7153 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7154 * configure: Regenerate.
7155
589fdceb
MM
71562014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7157
7158 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7159
67b5c0c1
MM
71602014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7161
7162 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7163 (replay_memory_access_read_only, replay_memory_access_read_write)
7164 (replay_memory_access_types, replay_memory_access)
7165 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7166 (cmd_set_record_btrace, cmd_show_record_btrace)
7167 (cmd_show_replay_memory_access): New.
7168 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7169 (record_btrace_remove_breakpoint): Replace
7170 record_btrace_allow_memory_access with replay_memory_access.
7171 (_initialize_record_btrace): Add commands.
7172 * NEWS: Announce it.
7173
036cd381
RR
71742014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7175
7176 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7177
c77c1e42
RR
71782014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7179
7180 * MAINTAINERS (Write After Approval): Move self back from
7181 paper trail.
7182
45741a9c
PA
71832014-05-22 Pedro Alves <palves@redhat.com>
7184
7185 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7186 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7187 (disable_randomization, enum exec_direction_kind)
7188 (execution_direction, stop_registers, start_remote)
7189 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7190 (wait_for_inferior, normal_stop, get_last_target_status)
7191 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7192 (insert_step_resume_breakpoint_at_sal)
7193 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7194 (set_step_info, print_stop_event, signal_stop_state)
7195 (signal_print_state, signal_pass_state, signal_stop_update)
7196 (signal_print_update, signal_pass_update)
7197 (update_signals_program_target, clear_exit_convenience_vars)
7198 (displaced_step_dump_bytes, update_observer_mode)
7199 (signal_catch_update, gdb_signal_from_command): Move
7200 declarations ...
7201 * infrun.h: ... to this new file.
7202 * amd64-tdep.c: Include infrun.h.
7203 * annotate.c: Include infrun.h.
7204 * arch-utils.c: Include infrun.h.
7205 * arm-linux-tdep.c: Include infrun.h.
7206 * arm-tdep.c: Include infrun.h.
7207 * break-catch-sig.c: Include infrun.h.
7208 * breakpoint.c: Include infrun.h.
7209 * common/agent.c: Include infrun.h instead of inferior.h.
7210 * corelow.c: Include infrun.h.
7211 * event-top.c: Include infrun.h.
7212 * go32-nat.c: Include infrun.h.
7213 * i386-tdep.c: Include infrun.h.
7214 * inf-loop.c: Include infrun.h.
7215 * infcall.c: Include infrun.h.
7216 * infcmd.c: Include infrun.h.
7217 * infrun.c: Include infrun.h.
7218 * linux-fork.c: Include infrun.h.
7219 * linux-nat.c: Include infrun.h.
7220 * linux-thread-db.c: Include infrun.h.
7221 * monitor.c: Include infrun.h.
7222 * nto-tdep.c: Include infrun.h.
7223 * procfs.c: Include infrun.h.
7224 * record-btrace.c: Include infrun.h.
7225 * record-full.c: Include infrun.h.
7226 * remote-m32r-sdi.c: Include infrun.h.
7227 * remote-mips.c: Include infrun.h.
7228 * remote-notif.c: Include infrun.h.
7229 * remote-sim.c: Include infrun.h.
7230 * remote.c: Include infrun.h.
7231 * reverse.c: Include infrun.h.
7232 * rs6000-tdep.c: Include infrun.h.
7233 * s390-linux-tdep.c: Include infrun.h.
7234 * solib-irix.c: Include infrun.h.
7235 * solib-osf.c: Include infrun.h.
7236 * solib-svr4.c: Include infrun.h.
7237 * target.c: Include infrun.h.
7238 * top.c: Include infrun.h.
7239 * windows-nat.c: Include infrun.h.
7240 * mi/mi-interp.c: Include infrun.h.
7241 * mi/mi-main.c: Include infrun.h.
7242 * python/py-threadevent.c: Include infrun.h.
7243
98eb56a4
PA
72442014-05-22 Pedro Alves <palves@redhat.com>
7245
7246 * infrun.c (handle_inferior_event): Store the exit code for
7247 --return-child-result here, instead of ...
7248 (print_exited_reason): ... here.
7249
17b2616c
PA
72502014-05-21 Pedro Alves <palves@redhat.com>
7251
7252 PR gdb/13860
7253 * gdbthread.h (struct thread_control_state): New field
7254 `command_interp'.
7255 * infrun.c (follow_fork): Copy the new thread control field to the
7256 child fork thread.
7257 (clear_proceed_status_thread): Clear the new thread control field.
7258 (proceed): Set the new thread control field.
7259 * interps.h (command_interp): Declare.
7260 * interps.c (command_interpreter): New global.
7261 (command_interp): New function.
7262 (interp_exec): Set `command_interpreter' while here.
7263 * cli-out.c (cli_uiout_dtor): New function.
7264 (cli_ui_out_impl): Install it.
7265 * mi/mi-interp.c: Include cli-out.h.
7266 (mi_cmd_interpreter_exec): Add comment.
7267 (restore_current_uiout_cleanup): New function.
7268 (ui_out_free_cleanup): New function.
7269 (mi_on_normal_stop): If finishing an execution command started by
7270 a CLI command, or any kind of breakpoint-like event triggered,
7271 print the stop event to the output (CLI) stream.
7272 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7273
5166082f
PA
72742014-05-21 Pedro Alves <palves@redhat.com>
7275
7276 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7277 current source line having changed.
7278 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7279 * infrun.c (normal_stop): Adjust call to
7280 set_current_sal_from_frame.
7281 * source.c (clear_lines_listed_range): New function.
7282 (set_current_source_symtab_and_line, identify_source_line): Clear
7283 the lines listed range.
7284 (line_info): Handle the first "info line" after the current source
7285 line having changed.
7286 * stack.c (print_stack_frame): Remove center handling.
7287 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7288 center sal.line.
7289
c1ee2fb3
PA
72902014-05-21 Pedro Alves <palves@redhat.com>
7291
7292 * inf-child.c (inf_child_mourn_inferior): New function.
7293 * inf-child.h (inf_child_mourn_inferior): New declaration.
7294 * darwin-nat.c (darwin_mourn_inferior): Use
7295 inf_child_mourn_inferior.
7296 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7297 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7298 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7299 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7300 * windows-nat.c (windows_mourn_inferior): Likewise.
7301
5c6d4fb2
DE
73022014-05-21 Doug Evans <xdje42@gmail.com>
7303
250748cb 7304 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7305
4a2722c5
DE
73062014-05-21 Doug Evans <xdje42@gmail.com>
7307
17292b30 7308 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7309 (gdbscm_out_of_range_error): Ditto.
7310 (gdbscm_memory_error): Ditto.
250748cb
DE
7311 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7312 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7313 (gdbscm_out_of_range_error): Update.
7314 (gdbscm_memory_error): Update.
7315 (gdbscm_scm_to_target_string_unsafe): Delete.
7316
6a3cb8e8
PA
73172014-05-21 Pedro Alves <palves@redhat.com>
7318
7319 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7320 globals.
7321 (inf_child_open_target): New function.
7322 (inf_child_open): Use inf_child_open_target to push the target
7323 instead of erroring out.
7324 (inf_child_disconnect, inf_child_close)
7325 (inf_child_maybe_unpush_target): New functions.
7326 (inf_child_target): Install inf_child_disconnect and
7327 inf_child_close. Store a pointer to the returned object.
7328 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7329 declarations.
7330 * target.c (auto_connect_native_target): New global.
7331 (show_default_run_target): New function.
7332 (find_default_run_target): Return NULL if automatically connecting
7333 to the native target is disabled.
7334 (_initialize_target): Install set/show auto-connect-native-target.
7335 * NEWS: Mention "set auto-connect-native-target", and "target
7336 native".
7337 * linux-nat.c (super_close): New global.
7338 (linux_nat_close): Call super_close.
7339 (linux_nat_add_target): Store a pointer to the base class's
7340 to_close method.
7341 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7342 inf_child_maybe_unpush.
7343 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7344 already pushed.
7345 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7346 the inferior. Use inf_child_maybe_unpush_target.
7347 (inf_ttrace_attach): Don't push the target if it is already
7348 pushed.
7349 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7350 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7351 after mourning the inferior. Use inf_child_maybe_unpush_target.
7352 (darwin_attach_pid): Don't push the target if it is already
7353 pushed.
7354 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7355 mourning the inferior. Use inf_child_maybe_unpush_target.
7356 (gnu_detach): Use inf_child_maybe_unpush_target.
7357 * go32-nat.c (go32_create_inferior): Don't push the target if it
7358 is already pushed.
7359 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7360 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7361 (procfs_open): Rename to ...
7362 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7363 comments. Can target_preopen before changing node. Call
7364 inf_child_open_target to push the target explicitly.
7365 (procfs_attach): Don't push the target if it is already pushed.
7366 (procfs_detach): Use inf_child_maybe_unpush_target.
7367 (procfs_create_inferior): Don't push the target if it is already
7368 pushed.
7369 (nto_native_ops): New global.
7370 (procfs_open): Reimplement.
7371 (procfs_native_open): New function.
7372 (init_procfs_targets): Install procfs_native_open as to_open of
7373 "target native". Store a pointer to the "native" target in
7374 nto_native_ops.
7375 * procfs.c (procfs_attach): Don't push the target if it is already
7376 pushed.
7377 (procfs_detach): Use inf_child_maybe_unpush_target.
7378 (procfs_mourn_inferior): Only unpush the target after mourning the
7379 inferior. Use inf_child_maybe_unpush_target.
7380 (procfs_init_inferior): Don't push the target if it is already
7381 pushed.
7382 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7383 if it is already pushed.
7384
930ee1b1
PA
73852014-05-21 Pedro Alves <palves@redhat.com>
7386
7387 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7388 and "procfs" targets are now called "native" instead.
7389
1f5d1b13
PA
73902014-05-21 Pedro Alves <palves@redhat.com>
7391
7392 * go32-nat.c (go32_open): Delete.
7393 (go32_target): Don't override the to_open method.
7394
132f8e03
PA
73952014-05-21 Pedro Alves <palves@redhat.com>
7396
7397 * nto-procfs.c (procfs_can_run): New function.
7398 (nto_procfs_ops): New global.
7399 (init_procfs_targets): New, based on procfs_target. Install
7400 "target native" in addition to "target procfs".
7401 (_initialize_procfs): Call init_procfs_targets instead of adding
7402 the target here.
7403
03c136c3
PA
74042014-05-21 Pedro Alves <palves@redhat.com>
7405
7406 * windows-nat.c (windows_target): Don't override to_shortname,
7407 to_longname or to_doc.
7408
a635d0f3
PA
74092014-05-21 Pedro Alves <palves@redhat.com>
7410
7411 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7412 to_doc.
7413
4f9b5133
PA
74142014-05-21 Pedro Alves <palves@redhat.com>
7415
7416 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7417 to_shortname, to_longname or to_doc.
7418
bc85afde
PA
74192014-05-21 Pedro Alves <palves@redhat.com>
7420
7421 * go32-nat.c (go32_target): Don't override to_shortname,
7422 to_longname or to_doc.
7423
4ebfc96e
PA
74242014-05-21 Pedro Alves <palves@redhat.com>
7425
7426 * inf-child.c (inf_child_open): Remove mention of "child".
7427 (inf_child_target): Rename target to "native" instead of "child".
7428
2648dfed
AA
74292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7430
7431 * Makefile.in (SFILES): Delete "regset.c".
7432 (COMMON_OBS): Delete "regset.o".
7433 * regset.c: Remove.
7434 * regset.h (regset_alloc): Delete prototype.
7435
b13feb94
AA
74362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7437
7438 * sparc-linux-tdep.c (sparc32_linux_gregset)
7439 (sparc32_linux_fpregset): New static regset structures.
7440 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7441 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7442 'fpregset' fields.
7443 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7444 (sparc64_linux_fpregset): New static regset structures.
7445 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7446 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7447 New static regset structures.
7448 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7449 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7450 New static regset structures.
7451 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7452 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7453 New static regset structures.
7454 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7455 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7456 New static regset structures.
7457 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7458
b4fd25c9
AA
74592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7460
7461 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7462 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7463 register maps ("regmaps") from "*regset" to "*regmap". Do this
7464 for all regmap types and variables.
7465 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7466 (sparc32_linux_supply_core_gregset)
7467 (sparc32_linux_collect_core_gregset)
7468 (sparc32_linux_supply_core_fpregset)
7469 (sparc32_linux_collect_core_fpregset): Likewise.
7470 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7471 (sparc_gregmap, sparc_fpregmap): ... these.
7472 (sparc_supply_gregset, sparc_collect_gregset)
7473 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7474 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7475 (_initialize_sparc_nat): Rename regmaps.
7476 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7477 (sparc_gregmap, sparc_fpregmap): ... these.
7478 (sparc_supply_gregset, sparc_collect_gregset)
7479 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7480 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7481 Rename macros to...
7482 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7483 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7484 Likewise.
7485 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7486 Rename to...
7487 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7488 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7489 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7490 regmaps.
7491 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7492 (sparc32_bsd_fpregset): Rename to...
7493 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7494 (sparc32_bsd_fpregmap): ... these.
7495 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7496 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7497 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7498 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7499 (struct sparc_gregmap, struct sparc_fpregmap)
7500 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7501 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7502 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7503 (sparc32_supply_regset, sparc32_collect_gregset)
7504 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7505 prototypes.
7506 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7507 (sparc64_linux_ptrace_gregmap): ... this.
7508 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7509 (_initialize_sparc64_linux_nat): Rename regmaps.
7510 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7511 (sparc64_linux_core_gregmap): ... this.
7512 (sparc64_linux_supply_core_gregset)
7513 (sparc64_linux_collect_core_gregset)
7514 (sparc64_linux_supply_core_fpregset)
7515 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7516 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7517 (sparc64_sol2_fpregset): Rename to...
7518 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7519 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7520 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7521 regmaps.
7522 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7523 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7524 (sparc64_bsd_fpregset): Rename to...
7525 (struct sparc_gregmap, sparc64_sol2_gregmap)
7526 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7527 (sparc64_bsd_fpregmap): ... these.
7528 (sparc64_supply_gregset, sparc64_collect_gregset)
7529 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7530 prototypes.
7531 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7532 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7533 (sparc64fbsd_gregmap): ... this.
7534 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7535 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7536 Rename regmaps.
7537 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7538 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7539 (sparc64nbsd_collect_fpregset): Likewise.
7540 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7541 (sparc64nbsd_gregmap): ... this.
7542 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7543 regmaps.
7544 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7545 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7546 (sparc64obsd_gregmap): ... this.
7547 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7548 regmaps.
7549 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7550 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7551 (sparc32nbsd_gregmap): ... this.
7552 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7553 regmaps.
7554
8fea3224
AA
75552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7556
7557 * score-tdep.c (score7_linux_gregset): New static regset
7558 structure.
7559 (score7_linux_regset_from_core_section): Remove dynamic regset
7560 allocation.
7561 (score_gdbarch_init): Drop allocation of tdep structure.
7562 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7563
24534243
AA
75642014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7565
7566 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7567 regset structures.
7568 (am33_regset_from_core_section): Remove dynamic regset
7569 allocations.
7570
b7195f27
AA
75712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7572
7573 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7574 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7575 structures.
7576 (mips_linux_regset_from_core_section): Remove dynamic regset
7577 allocations.
7578 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7579 'gregset64', 'fpregset', and 'fpregset64'.
7580 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7581 deleted tdep fields.
7582
ecc37a5a
AA
75832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7584
7585 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7586 regset structures.
7587 (amd64_regset_from_core_section): Remove dynamic regset
7588 allocations.
7589 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7590 structure.
7591 (amd64obsd_regset_from_core_section): Remove dynamic regset
7592 allocation.
7593 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7594 Likewise.
7595 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7596 x86-common regset supply function.
7597 * i386-tdep.c (i386_collect_gregset): Make static.
7598 (i386_gregset): New global regset structure.
7599 (i386_fpregset, i386_xstateregset): New static regset structures.
7600 (i386_regset_from_core_section): Remove dynamic regset
7601 allocations.
7602 (i386_gdbarch_init): Remove initialization of tdep fields
7603 'gregset', 'fpregset', and 'xstateregset'.
7604 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7605 'fpregset', and 'xstateregset'.
7606 (i386_collect_gregset): Remove prototype.
7607 (i386_gregset): New declaration.
7608 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7609 structure.
7610 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7611 allocation.
7612
b7611c43
AA
76132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7614
7615 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7616 (arm_linux_vfpregset): New static regset structures.
7617 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7618 regset structures.
7619 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7620 and 'vfpregset' fields.
7621
a069a2bd
AA
76222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7623
7624 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7625 (aarch64_linux_fpregset): New static regset structures.
7626 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7627 of regset structures.
7628 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7629 'fpregset' fields.
7630
09424cff
AA
76312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7632
7633 * regset.h (struct regset): Remove gdbarch field.
7634 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7635 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7636 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7637 Likewise.
7638 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7639 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7640 (ppc32_linux_vsxregset): Likewise.
7641 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7642 via the regcache instead of the regset.
7643 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7644 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7645 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7646 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7647 Likewise.
7648
3ca7dae4
AA
76492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7650
7651 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7652 Constify structures.
7653 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7654 (alphanbsd_aout_gregset): Likewise.
7655 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7656 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7657 Likewise.
7658 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7659 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7660 Likewise.
7661 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7662 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7663 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7664 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7665 * m88k-tdep.c (m88k_gregset): Likewise.
7666 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7667 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7668 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7669 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7670 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7671 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7672 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7673 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7674 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7675 Likewise.
7676 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7677 * sh-tdep.h (sh_corefile_gregset): Likewise.
7678 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7679 * vax-tdep.c (vax_gregset): Likewise.
7680
5876f503
JK
76812014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7682
7683 Fix TLS access for -static -pthread.
7684 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7685 (try_thread_db_load_1): Initialize it.
7686 (thread_db_get_thread_local_address): Call it if LM is zero.
7687 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7688 * target.h (struct target_ops) (to_get_thread_local_address): Add
7689 load_module_addr comment.
7690
0256a6ac
PA
76912014-05-21 Pedro Alves <palves@redhat.com>
7692
7693 * dcache.c (dcache_read_memory_partial): If reading the cache line
7694 fails, fallback to reading just the memory the caller wanted.
7695
227533ac
DE
76962014-05-20 Doug Evans <dje@google.com>
7697
7698 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7699 instead of get_current_arch.
7700
936d2992
PA
77012014-05-20 Pedro Alves <palves@redhat.com>
7702
7703 * NEWS: Mention that compare-sections now works with all targets.
7704
7705 * remote.c (PACKET_qCRC): New enum value.
7706 (remote_verify_memory): Don't send qCRC if the target has no
7707 execution. Use packet_support/packet_ok. If the target doesn't
7708 support the qCRC packet, fallback to a deep memory copy.
7709 (compare_sections_command): Say "target image" instead of "remote
7710 executable".
7711 (_initialize_remote): Add PACKET_qCRC to the list of config
7712 packets that have no associated command. Extend comment.
7713 * target.c (simple_verify_memory, default_verify_memory): New
7714 function.
7715 * target.h (struct target_ops) <to_verify_memory>: Default to
7716 default_verify_memory.
7717 (simple_verify_memory): New declaration.
7718 * target-delegates.c: Regenerate.
7719
e59fa00f
MM
77202014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7721
7722 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7723
f2205de0
HZ
77242014-05-20 Hui Zhu <hui@codesourcery.com>
7725 Yao Qi <yao@codesourcery.com>
7726
7727 PR backtrace/16558
7728 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7729 and change address of sp and pc.
7730
c4e54771
TT
77312014-05-19 Tom Tromey <tromey@redhat.com>
7732
7733 * gdbtypes.c (rank_function): Use XNEWVEC.
7734 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7735
73051182
DE
77362014-05-19 Doug Evans <dje@google.com>
7737
7738 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7739 build_type_unit_groups and moved closer to only caller. Remove
7740 arguments. All references updated. Remove outdated .gdb_index
7741 comment.
7742 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7743 build_type_psymtabs_1.
7744
8832e7e3
DE
77452014-05-19 Doug Evans <dje@google.com>
7746
7747 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7748 n_type_unit_groups, all_type_unit_groups. All uses removed.
7749 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7750 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7751 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7752 (add_type_unit_group_to_table): Delete.
7753
cd8ae15e
DE
77542014-05-19 Doug Evans <dje@google.com>
7755
7756 * eval.c (evaluate_subexp_standard): Add some comments.
7757
08f4850b
DE
77582014-05-17 Doug Evans <xdje42@gmail.com>
7759
7760 * progspace.c (remove_program_space): Delete, unused.
7761 * progspace.h (remove_program_space): Ditto.
7762
bed8455c
DE
77632014-05-17 Doug Evans <xdje42@gmail.com>
7764
7765 * inferior.c (prune_inferiors): Fix comment.
7766 (remove_inferior_command): Call prune_program_spaces.
7767
8d551b02
DE
77682014-05-16 Doug Evans <dje@google.com>
7769
7770 New command line option -D.
7771 * NEWS: Mention it.
7772 * main.c (set_gdb_data_directory): New function.
7773 (captured_main): Recognize -D. Flag error for --data-directory "".
7774 Call set_gdb_data_directory.
7775 (print_gdb_help): Print --data-directory, -D.
7776 * main.h (set_gdb_data_directory): Declare.
7777 * top.c (staged_gdb_datadir): New static global.
7778 (set_gdb_datadir): Call set_gdb_data_directory
7779 (show_gdb_datadir): New function.
7780 (init_main): Update init of data-directory parameter.
7781
18848e28
GF
77822014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7783
7784 Import the "dirfd" gnulib module.
7785 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7786 * gnulib/aclocal.m4: Update.
7787 * gnulib/config.in: Update.
7788 * gnulib/configure: Update.
7789 * gnulib/import/Makefile.am: Update.
7790 * gnulib/import/Makefile.in: Update.
7791 * gnulib/import/dirfd.c: New.
7792 * gnulib/import/m4/dirfd.m4: New.
7793 * gnulib/import/m4/gnulib-cache.m4: Update.
7794 * gnulib/import/m4/gnulib-comp.m4: Update.
7795
95c64f92
YQ
77962014-05-16 Pierre Muller <muller@sourceware.org>
7797 Yao Qi <yao@codesourcery.com>
7798
7799 * valprint.c (print_wchar): Move the code on checking whether
7800 W is a printable wide char to the default branch of switch
7801 statement below. Call wchar_printable instead of gdb_iswprint.
7802
cac395ea
TM
78032014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7804
19679eca 7805 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7806 ldr.w and ldrd instructions.
7807
83655187
DE
78082014-05-15 Doug Evans <dje@google.com>
7809
7810 * dwarf2read.c (read_structure_type): Delete outdated comments.
7811
dd756689
TT
78122014-05-14 Tom Tromey <tromey@redhat.com>
7813
7814 * macrocmd.c (print_macro_definition): Reindent.
7815
75ddda77
DE
78162014-05-13 Doug Evans <xdje42@gmail.com>
7817
7818 * python/py-cmd.c (cmdpy_completer): Add comment.
7819 (completers): Make const.
7820
b0f16a3e
SM
78212014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7822
7823 * infrun.c (resume): Remove should_resume (unused). Move up
7824 declaration of resume_ptid.
7825
033c3379
TT
78262014-05-13 Tom Tromey <tromey@redhat.com>
7827
7828 * language.h (unop_type_check): Remove.
7829 (binop_type_check): Don't declare.
7830
9b44a3a5
AA
78312014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7832
7833 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7834 call to regcache_raw_collect.
7835
303a33fa
SM
78362014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7837
7838 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7839 mi_console->quote as the quoting character.
7840
196100a0
SM
78412014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7842
7843 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7844
f989a1c8
TT
78452014-04-29 Tom Tromey <tromey@redhat.com>
7846
7847 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7848 "show debug varobj".
7849
9404b58f
KM
78502014-05-07 Kyle McMartin <kyle@redhat.com>
7851
7852 Pushed by Joel Brobecker <brobecker@adacore.com>.
7853 * aarch64-tdep.c (aarch64_software_single_step): New function.
7854 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7855 with aarch64_software_single_step.
7856
5e49ba57
JB
78572014-05-05 Joel Brobecker <brobecker@adacore.com>
7858
7859 GDB 7.7.1 released.
7860
c888a17d
KS
78612014-05-05 Keith Seitz <keiths@redhat.com>
7862
7863 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7864 variable or history value is successfully parsed.
7865
290a839c
YQ
78662014-05-05 Yao Qi <yao@codesourcery.com>
7867 Pedro Alves <palves@redhat.com>
7868
7869 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7870 address of blocks that intersects the requested range. Trim
7871 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7872 sections.
7873 * ctf.c (ctf_xfer_partial): Likewise.
7874
91256dc2
YQ
78752014-05-05 Yao Qi <yao@codesourcery.com>
7876
7877 * printcmd.c (display_command): Remove the check to
7878 target_has_execution.
7879
07284463
MK
78802014-05-03 Mark Kettenis <kettenis@gnu.org>
7881
7882 * ppcobsd-nat.c: Include "obsd-nat.h".
7883 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7884 add_target.
7885 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7886
30a1e6cc
SDJ
78872014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7888
7889 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7890 and 16-bit signed and unsigned arguments. Update comment.
7891 (stap_parse_probe_arguments): Extend code to handle such
7892 arguments. Use warning instead of complaint to notify about
7893 unrecognized bitness.
7894
f33da99a
SDJ
78952014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7896
7897 PR breakpoints/16889
7898 * stap-probe.c (stap_parse_probe_arguments): Simplify
7899 check for non-prefixed probes (i.e., probes whose
7900 arguments do not start with "N@"). Always set the
7901 argument type to a sane value.
7902
95cf3b38
DT
79032014-05-01 David Taylor <dtaylor@emc.com>
7904
7905 * remote.c (compare_sections_command): Add -r option to compare
7906 all loadable read-only sections.
7907
1cfdf534
SC
79082014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7909
7910 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7911 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7912 Update all callers.
7913 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7914 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7915 Remove unused CORE_ADDR argument. Update all callers.
7916
ca4f7f8b
PA
79172014-04-29 Pedro Alves <palves@redhat.com>
7918
7919 * remote.c (struct packet_config) <detect>: Extend comment.
7920 (add_packet_config_cmd): Don't set the config's detect or support
7921 fields here.
7922 (init_all_packet_configs): Also initialize the config's 'detect'
7923 field.
7924 (reset_all_packet_configs_support): New function.
7925 (remote_open_1): Call reset_all_packet_configs_support instead of
7926 init_all_packet_configs.
7927 (_initialize_remote): Initialize all packet configs. Assert that
7928 all packets have an associated command, except a few known
7929 outliers.
7930
11c1ba78
JB
79312014-04-28 Joel Brobecker <brobecker@adacore.com>
7932
7933 * dwarf2read.c (read_subrange_type): Handle dynamic
7934 DW_AT_lower_bound attributes.
7935
8739bc53
JB
79362014-04-28 Joel Brobecker <brobecker@adacore.com>
7937
7938 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7939 dynamic bounds before computing its upper bound.
7940 (ada_discrete_type_low_bound): Same as above with the lower bound.
7941
6f8a3220
JB
79422014-04-28 Joel Brobecker <brobecker@adacore.com>
7943
7944 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7945 range types. Adjust the array handling implementation to
7946 take advantage of this change.
7947 (resolve_dynamic_range): New function, mostly extracted from
7948 resolve_dynamic_bounds.
7949 (resolve_dynamic_array): New function, mostly extracted from
7950 resolve_dynamic_bounds.
7951 (resolve_dynamic_bounds): Delete.
7952 (resolve_dynamic_type): Reimplement. Add handling of
7953 TYPE_CODE_RANGE types.
7954
4d072ce4
JB
79552014-04-28 Joel Brobecker <brobecker@adacore.com>
7956
7957 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7958 handling of parallel ___XA types.
7959
52865325
JB
79602014-04-28 Joel Brobecker <brobecker@adacore.com>
7961
7962 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7963 unnecessary second call to static_unwrap_type.
7964
433e77fa
HZ
79652014-04-27 Hui Zhu <hui@codesourcery.com>
7966
7967 * stack.c (print_frame_info): Call do_gdb_disassembly with
7968 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7969
b51a69ee
DE
79702014-04-26 Doug Evans <xdje42@gmail.com>
7971
7972 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7973
7ae1a6a6
PA
79742014-04-25 Pedro Alves <palves@redhat.com>
7975
7976 PR server/16255
7977 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7978 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7979 and newline from built string.
7980 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7981 (linux_ptrace_attach_fail_reason): ... this.
7982 * linux-nat.c (linux_nat_attach): Adjust to use
7983 linux_ptrace_attach_fail_reason.
7984
4082afcc
PA
79852014-04-25 Pedro Alves <palves@redhat.com>
7986
7987 * remote.c (struct remote_state): Remove multi_process_aware,
7988 non_stop_aware, cond_tracepoints, cond_breakpoints,
7989 breakpoint_commands, fast_tracepoints, static_tracepoints,
7990 install_in_trace, disconnected_tracing,
7991 enable_disable_tracepoints, string_tracing, and
7992 augmented_libraries_svr4_read fields.
7993 (remote_multi_process_p): Move further below in the file.
7994 (struct packet_config): Add comments.
7995 (update_packet_config): Delete function.
7996 (show_packet_config_cmd): Use packet_config_support.
7997 (add_packet_config_cmd): Use NULL as set callback.
7998 (packet_ok): "set remote foo-packet"-style commands no longer
7999 change config->supported -- adjust.
8000 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8001 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8002 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8003 (PACKET_QNonStop, PACKET_multiprocess_feature)
8004 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8005 (PACKET_DisconnectedTracing_feature)
8006 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8007 (set_remote_protocol_packet_cmd): Delete function.
8008 (packet_config_support, packet_support): New functions.
8009 (set_remote_protocol_Z_packet_cmd): Don't call
8010 update_packet_config.
8011 (remote_query_attached, remote_pass_signals)
8012 (remote_program_signals, remote_threads_info)
8013 (remote_threads_extra_info, remote_start_remote): Use
8014 packet_support.
8015 (remote_start_remote): Use packet_config_support and
8016 packet_support.
8017 (init_all_packet_configs): Set all packets to unknown support,
8018 instead of calling update_packet_config.
8019 (remote_check_symbols): Use packet_support.
8020 (remote_supported_packet): Unconditionally set the packet config's
8021 support status.
8022 (remote_multi_process_feature, remote_non_stop_feature)
8023 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8024 (remote_breakpoint_commands_feature)
8025 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8026 (remote_install_in_trace_feature)
8027 (remote_disconnected_tracing_feature)
8028 (remote_enable_disable_tracepoint_feature)
8029 (remote_string_tracing_feature)
8030 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8031 (remote_protocol_features): Adjust to use remote_supported_packet
8032 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8033 "ConditionalTracepoints", "ConditionalBreakpoints",
8034 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8035 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8036 "EnableDisableTracepoints", and "tracenz".
8037 (remote_query_supported): Use packet_support.
8038 (remote_open_1): Adjust.
8039 (extended_remote_attach_1): Use packet_support. Switch on the
8040 result of packet_ok instead of checking whether the packet ended
8041 up disabled.
8042 (remote_vcont_resume): Use packet_support.
8043 (remote_resume, remote_stop_ns, fetch_register_using_p)
8044 (remote_prepare_to_store, store_register_using_P)
8045 (check_binary_download, remote_write_bytes): Use packet_support.
8046 (remote_vkill): Use packet_support. Switch on the result of
8047 packet_ok instead of checking whether the packet ended up
8048 disabled.
8049 (extended_remote_supports_disable_randomization): Use
8050 packet_support.
8051 (extended_remote_run): Switch on the result of packet_ok instead
8052 of checking whether the packet ended up disabled.
8053 (remote_insert_breakpoint, remote_remove_breakpoint)
8054 (remote_insert_watchpoint, remote_remove_watchpoint)
8055 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8056 packet_support.
8057 (remote_search_memory): Use packet_config_support.
8058 (remote_get_thread_local_address, remote_get_tib_address)
8059 (remote_hostio_send_command, remote_can_execute_reverse): Use
8060 packet_support.
8061 (remote_supports_cond_tracepoints)
8062 (remote_supports_cond_breakpoints)
8063 (remote_supports_fast_tracepoints)
8064 (remote_supports_static_tracepoints)
8065 (remote_supports_install_in_trace)
8066 (remote_supports_enable_disable_tracepoint)
8067 (remote_supports_string_tracing)
8068 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8069 the packet config says the feature is enabled or disabled.
8070 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8071 (remote_get_trace_status): Use packet_support.
8072 (remote_set_disconnected_tracing): Adjust to check whether the
8073 feature is enabled with packet_support.
8074 (remote_set_trace_buffer_size, remote_use_agent)
8075 (remote_can_use_agent, remote_supports_btrace): Use
8076 packet_support.
8077 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8078 Use packet_config_support.
8079 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8080 the packet config says the feature is enabled or disabled.
8081 (set_range_stepping): Use packet_support.
8082
bdb52a22
TT
80832014-04-25 Tom Tromey <tromey@redhat.com>
8084
8085 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8086 argument.
8087
e9475ead
SA
80882014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8089
8090 * NEWS: Mention support for C99 variable length arrays.
8091
82eacd52
JB
80922014-04-24 Joel Brobecker <brobecker@adacore.com>
8093
8094 * ada-lang.c (standard_exc): Expand introductory comment.
8095
01f9f808
MS
80962014-04-24 Michael Sturm <michael.sturm@mintel.com>
8097 Walfred Tedeschi <walfred.tedeschi@intel.com>
8098
8099 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8100 AVX512 registers.
8101 (amd64_linux_read_description): Add code to handle AVX512 xstate
8102 mask and return respective tdesc.
8103 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8104 and features/i386/x32-avx512-linux.c.
8105 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8106 (amd64_linux_core_read_description): Add code to handle AVX512
8107 xstate mask and return respective tdesc.
8108 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8109 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8110 calculation.
8111 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8112 (tdesc_amd64_avx512_linux): New prototype.
8113 (tdesc_x32_avx512_linux): Likewise.
8114 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8115 features/i386/x32-avx512.c.
8116 (amd64_ymm_avx512_names): New register names for pseudo
8117 registers YMM16-31.
8118 (amd64_ymmh_avx512_names): New register names for raw registers
8119 YMMH16-31.
8120 (amd64_k_names): New register names for K registers.
8121 (amd64_zmmh_names): New register names for ZMM raw registers.
8122 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8123 (amd64_xmm_avx512_names): New register names for XMM16-31
8124 registers.
8125 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8126 registers.
8127 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8128 if feature is present.
8129 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8130 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8131 (AMD64_NUM_REGS): Adjust to new number of registers.
8132 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8133 registers supplied via XSTATE by AVX512 registers.
8134 (i386_linux_read_description): Add case for AVX512.
8135 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8136 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8137 (i386_linux_core_read_description): Add case for AVX512.
8138 (i386_linux_init_abi): Install supported register note section
8139 for AVX512.
8140 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8141 AVX512.
8142 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8143 registers to be number of zmm7h + 1.
8144 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8145 * i386-tdep.c: Include features/i386/i386-avx512.c.
8146 (i386_zmm_names): Add ZMM pseudo register names array.
8147 (i386_zmmh_names): Add ZMM raw register names array.
8148 (i386_k_names): Add K raw register names array.
8149 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8150 registers. AVX512 has 16 more ZMM registers than there are YMM
8151 registers.
8152 (i386_zmmh_regnum_p): Add function to look up register number of
8153 ZMM raw registers.
8154 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8155 (i386_k_regnum_p): Likewise for K raw registers.
8156 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8157 registers added by AVX512.
8158 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8159 registers added by AVX512.
8160 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8161 added by AVX512.
8162 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8163 (i386_pseudo_register_name): Add ZMM pseudo registers.
8164 (i386_zmm_type): Construct and return vector registers type for ZMM
8165 registers.
8166 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8167 ZMM0-31 pseudo registers and K registers.
8168 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8169 and YMM16-31 registers from register cache.
8170 (i386_pseudo_register_write): Add code to write K, ZMM and
8171 YMM16-31 registers.
8172 (i386_register_reggroup_p): Add code to include/exclude AVX512
8173 registers in/from respective register groups.
8174 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8175 registers if feature is present in xcr0.
8176 (i386_gdbarch_init): Add code to initialize AVX512 feature
8177 variables in tdep structure, wire in pseudo registers and call
8178 initialize_tdesc_i386_avx512.
8179 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8180 variables.
8181 (i386_regnum): Add AVX512 registers.
8182 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8183 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8184 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8185 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8186 512 bits wide.
8187 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8188 (i386_ymm_avx512_regnum_p): Likewise.
8189 (i386_k_regnum_p): Likewise.
8190 (i386_zmm_regnum_p): Likewise.
8191 (i386_zmmh_regnum_p): Likewise.
8192 * i387-tdep.c : Update year in copyright notice.
8193 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8194 XSAVE buffer.
8195 (XSAVE_YMM_AVX512_ADDR): New macro.
8196 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8197 XSAVE buffer.
8198 (XSAVE_XMM_AVX512_ADDR): New macro.
8199 (xsave_avx512_k_offset): New table for K register offsets in
8200 XSAVE buffer.
8201 (XSAVE_AVX512_K_ADDR): New macro.
8202 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8203 in XSAVE buffer.
8204 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8205 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8206 buffer.
8207 (i387_collect_xsave): Add code to collect AVX512 registers from
8208 XSAVE buffer.
8209 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8210 of XMM16-31 registers.
8211 (I387_NUM_K_REGS): New define for number of K registers.
8212 (I387_K0_REGNUM): New define for K0 register number.
8213 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8214 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8215 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8216 registers.
8217 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8218 (I387_XMM16_REGNUM): New define for XMM16 register number.
8219 (I387_YMM0_REGNUM): New define for YMM0 register number.
8220 (I387_KEND_REGNUM): New define for last K register number.
8221 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8222 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8223 number.
8224 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8225 number.
8226 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8227 size.
8228 * features/Makefile: Add AVX512 related files.
8229 * features/i386/32bit-avx512.xml: New file.
8230 * features/i386/64bit-avx512.xml: Likewise.
8231 * features/i386/amd64-avx512-linux.c: Likewise.
8232 * features/i386/amd64-avx512-linux.xml: Likewise.
8233 * features/i386/amd64-avx512.c: Likewise.
8234 * features/i386/amd64-avx512.xml: Likewise.
8235 * features/i386/i386-avx512-linux.c: Likewise.
8236 * features/i386/i386-avx512-linux.xml: Likewise.
8237 * features/i386/i386-avx512.c: Likewise.
8238 * features/i386/i386-avx512.xml: Likewise.
8239 * features/i386/x32-avx512-linux.c: Likewise.
8240 * features/i386/x32-avx512-linux.xml: Likewise.
8241 * features/i386/x32-avx512.c: Likewise.
8242 * features/i386/x32-avx512.xml: Likewise.
8243 * regformats/i386/amd64-avx512-linux.dat: New file.
8244 * regformats/i386/amd64-avx512.dat: Likewise.
8245 * regformats/i386/i386-avx512-linux.dat: Likewise.
8246 * regformats/i386/i386-avx512.dat: Likewise.
8247 * regformats/i386/x32-avx512-linux.dat: Likewise.
8248 * regformats/i386/x32-avx512.dat: Likewise.
8249 * NEWS: Add note about new support for AVX512.
8250
8251
08351840
PA
82522014-04-23 Pedro Alves <palves@redhat.com>
8253
8254 * breakpoint.c (insert_bp_location): Tolerate errors if the
8255 breakpoint is set in a user-loaded objfile.
8256 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8257 location is marked shlib_disabled. If the breakpoint is set in a
8258 user-loaded objfile is a GDB-side memory breakpoint, validate it
8259 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8260 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8261 flag.
8262 * mem-break.c (memory_validate_breakpoint): New function.
8263 * objfiles.c (userloaded_objfile_contains_address_p): New
8264 function.
8265 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8266 * target.h (memory_validate_breakpoint): New declaration.
8267
076855f9
PA
82682014-04-23 Pedro Alves <palves@redhat.com>
8269
8270 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8271 the breakpoint is set in a shared library, only suppress
8272 errors for software breakpoints, not hardware breakpoints.
8273
483805cf
PA
82742014-04-22 Pedro Alves <palves@redhat.com>
8275
8276 * infrun.c (schedlock_applies): New function, factored out from
8277 find_thread_needs_step_over.
8278 (find_thread_needs_step_over): Use it.
8279 (switch_back_to_stepped_thread): Always clear trap_expected if the
8280 step over is finished. Return early if scheduler locking applies.
8281 Look for the stepping thread and a potential step-over thread with
8282 a single loop.
8283 (currently_stepping_or_nexting_callback): Delete.
8284
a75fef0e
NC
82852014-04-22 Nick Clifton <nickc@redhat.com>
8286
8287 * NEWS: Mention that ARM sim now supports tracing.
8288
48b6e87e
YQ
82892014-04-22 Yao Qi <yao@codesourcery.com>
8290
8291 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8292 to ...
8293 * tracefile.c (tracefile_fetch_registers): ... it. New
8294 function.
8295 * tracefile.h (tracefile_fetch_registers): Declare.
8296 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8297 tracefile_fetch_registers.
8298
17617f2d
EZ
82992014-04-19 Eli Zaretskii <eliz@gnu.org>
8300
8301 PR gdb/14018
8302 * windows-nat.c (thread_rec): Don't display a warning when
8303 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8304 fails for any reason, set th->suspended to -1, so that we don't
8305 try to resume such a thread. Also, don't return NULL in these
8306 cases, to avoid completely ruin the session due to "PC register is
8307 not available" error.
8308 (do_windows_fetch_inferior_registers): Check errors in
8309 GetThreadContext call.
8310 (windows_continue): Accept an additional argument KILLED; if not
8311 zero, ignore errors in the SetThreadContext call, since the
8312 inferior was killed and is shutting down.
8313 (windows_resume, get_windows_debug_event)
8314 (windows_create_inferior, windows_mourn_inferior)
8315 (windows_kill_inferior): All callers of windows_continue changed
8316 to adjust to its new calling sequence.
8317
5723a6fd
YQ
83182014-04-19 Yao Qi <yao@codesourcery.com>
8319
8320 * ctf.c (ctf_open): Call post_create_inferior.
8321
614d5099
YQ
83222014-04-19 Yao Qi <yao@codesourcery.com>
8323
8324 * ctf.c (handle_id): New static variable.
8325 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8326 value. Get the declaration of event "register" and get length
8327 of field "contents".
8328
dac3e710
YQ
83292014-04-19 Yao Qi <yao@codesourcery.com>
8330
8331 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8332
2bca57ba
SC
83332014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8334
8335 * valops.c (oload_method_static): Remove unnecessary argument
8336 METHOD. Update all callers.
8337
51d48146
PA
83382014-04-18 Pedro alves <palves@redhat.com>
8339 Tom Tromey <tromey@redhat.com>
8340
8341 PR backtrace/15558
8342 * frame.c (get_prev_frame_1): Rename to ...
8343 (get_prev_frame_always): ... this, and make extern. Adjust.
8344 (skip_artificial_frames): Use get_prev_frame_always.
8345 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8346 (get_frame_unwind_stop_reason): Adjust to rename.
8347 * frame.h (get_prev_frame_always): Declare.
8348 * inline-frame.c: Include frame.h.
8349 (inline_frame_this_id): Use get_prev_frame_always.
8350
1bdad2e0
TG
83512014-04-18 Tristan Gingold <gingold@adacore.com>
8352
8353 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8354 code by using bfd_mach_o_get_base_address.
8355
7ce16bd4
UW
83562014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8357
8358 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8359 (spu_ax_pseudo_register_collect): New function.
8360 (spu_ax_pseudo_register_push_stack): Likewise.
8361 (spu_dwarf_reg_to_regnum): Likewise.
8362 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8363
2ed3c037
UW
83642014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8365
8366 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8367 Replace FRAME argument with FRAME_ID.
8368 * gdbarch.c, gdbarch.h: Regenerate.
8369 * findvar.c (default_value_from_register): Add GDBARCH argument;
8370 replace FRAME by FRAME_ID. No longer call get_frame_id.
8371 (value_from_register): Update call to gdbarch_value_from_register.
8372 * value.h (default_value_from_register): Update prototype.
8373 * s390-linux-tdep.c (s390_value_from_register): Update interface
8374 and call to default_value_from_register.
8375 * spu-tdep.c (spu_value_from_register): Likewise.
8376
8377 * findvar.c (address_from_register): Remove TYPE argument.
8378 Do not call value_from_register; use gdbarch_value_from_register
8379 with null_frame_id instead.
8380 * value.h (address_from_register): Update prototype.
8381 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8382 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8383 address_from_register interface change.
8384
71e50e83
YQ
83852014-04-17 Yao Qi <yao@codesourcery.com>
8386
8387 * gdbtypes.h: Update comments to link to types and macros'
8388 definitions.
8389
7a23c549
SC
83902014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8391
8392 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8393
22869d73
KS
83942014-04-16 Keith Seitz <keiths@redhat.com>
8395
8396 PR gdb/15827
8397 * dwarf2read.c (skip_one_die): Check that all relative-offset
8398 sibling DIEs fall within range of the current reader's buffer.
8399 (read_partial_die): Likewise.
8400
c4f87ca6
KS
84012014-04-16 Keith Seitz <keiths@redhat.com>
8402
8403 PR c++/16597
8404 * cp-namespace.c (lookup_symbol_file): If the type name of
8405 `this' is NULL, return immediately.
8406
b50c8614
KS
84072014-04-14 Keith Seitz <keiths@redhat.com>
8408
8409 PR c++/16253
8410 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8411 from symbol_matches_domain in symtab.c. All local callers
8412 of symbol_matches_domain updated.
8413 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8414 search STRUCT_DOMAIN.
8415 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8416 independently. standard_lookup will do that automatically.
8417 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8418 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8419 (cp_lookup_symbol_in_namespace): Likewise.
8420 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8421 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8422 may return a STRUCT_DOMAIN match.
8423 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8424 * cp-support.c: Include language.h.
8425 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8426 VAR_DOMAIN.
8427 * psymtab.c (match_partial_symbol): Compare the requested
8428 domain with the symbol's domain directly.
8429 (lookup_partial_symbol): Likewise.
8430 * symtab.c (lookup_symbol_in_language): Explain when/why
8431 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8432 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8433 appropriate languages.
8434 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8435 and moved to ada-lang.c
8436 (lookup_block_symbol): Explain that this function only returns
8437 symbol matching the requested DOMAIN.
8438 Compare the requested domain with the symbol's domain directly.
8439 (iterate_over_symbols): Compare the requested domain with the
8440 symbol's domain directly.
8441 * symtab.h (symbol_matches_domain): Remove.
8442
3d567982
TT
84432014-04-14 Tom Tromey <tromey@redhat.com>
8444
8445 PR c++/15246:
8446 * c-exp.y (type_aggregate_p): New function.
8447 (qualified_name, classify_inner_name): Use it.
8448 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8449 and TYPE_TARGET_TYPE of an enum type.
8450 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8451 an enum type.
8452 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8453 handle TYPE_DECLARED_CLASS.
8454 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8455 types.
8456 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8457 * valops.c (enum_constant_from_type): New function.
8458 (value_aggregate_elt): Use it.
8459 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8460 TYPE_CODE_ENUM.
8461
c848d642
TT
84622014-04-14 Tom Tromey <tromey@redhat.com>
8463
8464 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8465 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8466 const.
8467 * value.h (value_aggregate_elt): Update.
8468
0626fc76
TT
84692014-04-14 Tom Tromey <tromey@redhat.com>
8470
8471 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8472
5ecaaa66
SA
84732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8474
8475 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8476 (evaluate_subexp_standard): Pass noside argument.
8477 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8478 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8479 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8480 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8481 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8482
1612e0c0
SA
84832014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8484
8485 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8486 points to a constant blob.
8487
c451ebe5
SA
84882014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8489
8490 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8491 property and store it as the high bound and flag the range accordingly.
8492 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8493 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8494 * gdbtypes.h (enum range_flags): New enum.
8495 (struct range_bounds): Add flags member.
8496
1d42e4c4
SA
84972014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8498
8499 * c-typeprint.c (c_type_print_varspec_suffix): Added
8500 check for not yet resolved high bound. If unresolved, print
8501 "variable length" string to the console instead of random
8502 length.
8503
9f1f738a
SA
85042014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8505
8506 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8507 value.
8508 (ada_template_to_fixed_record_type_1): Likewise.
8509 (ada_to_fixed_type_1): Likewise.
8510 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8511 (cp_print_value): Likewise.
8512 * d-valprint.c (dynamic_array_type): Likewise.
8513 * findvar.c (address_of_variable): Likewise.
8514 * jv-valprint.c (java_value_print): Likewise.
8515 * valops.c (value_ind): Likewise.
8516 * value.c (coerce_ref): Likewise.
8517
3c8452d4
SA
85182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8519
8520 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8521 value and retrieve the dynamic type size.
8522
4ad88275
SA
85232014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8524
8525 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8526 passed to sizeof is dynamic evaluate the argument to compute the length.
8527
80180f79
SA
85282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8529 Joel Brobecker <brobecker@adacore.com>
8530
8531 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8532 (dwarf2_evaluate_property): New function.
8533 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8534 * dwarf2read.c (attr_to_dynamic_prop): New function.
8535 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8536 attribute.
8537 * gdbtypes.c: Include dwarf2loc.h.
8538 (is_dynamic_type): New function.
8539 (resolve_dynamic_type): New function.
8540 (resolve_dynamic_bounds): New function.
8541 (get_type_length): New function.
8542 (check_typedef): Use get_type_length to compute type length.
8543 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8544 (TYPE_LOW_BOUND_KIND): New macro.
8545 (is_dynamic_type): New function prototype.
8546 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8547 to resolve dynamic properties of the type. Update comment.
8548 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8549
a1556843
RH
85502014-04-14 Richard Henderson <rth@redhat.com>
8551
8552 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8553
0be03e84
DE
85542014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8555 Doug Evans <xdje42@gmail.com>
8556
8557 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8558 dereference TYPE_CODE_REF values.
8559
6b662e19
JB
85602014-04-11 Joel Brobecker <brobecker@adacore.com>
8561
8562 Revert the following changes due to regressions:
8563
8564 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8565 (dwarf2_evaluate_property): New function.
8566 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8567 * dwarf2read.c (attr_to_dynamic_prop): New function.
8568 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8569 attribute.
8570 * gdbtypes.c: Include dwarf2loc.h.
8571 (is_dynamic_type): New function.
8572 (resolve_dynamic_type): New function.
8573 (resolve_dynamic_bounds): New function.
8574 (get_type_length): New function.
8575 (check_typedef): Use get_type_length to compute type length.
8576 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8577 (TYPE_LOW_BOUND_KIND): New macro.
8578 (is_dynamic_type): New function prototype.
8579 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8580 to resolve dynamic properties of the type. Update comment.
8581 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8582
8583 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8584 passed to sizeof is dynamic evaluate the argument to compute the length.
8585
8586 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8587 value and retrieve the dynamic type size.
8588
8589 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8590 (ada_template_to_fixed_record_type_1): Likewise.
8591 (ada_to_fixed_type_1): Likewise.
8592 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8593 (cp_print_value): Likewise.
8594 * d-valprint.c (dynamic_array_type): Likewise.
8595 * eval.c (evaluate_subexp_with_coercion): Likewise.
8596 * findvar.c (address_of_variable): Likewise.
8597 * jv-valprint.c (java_value_print): Likewise.
8598 * valops.c (value_ind): Likewise.
8599 * value.c (coerce_ref): Likewise.
8600
8601 * c-typeprint.c (c_type_print_varspec_suffix): Added
8602 check for not yet resolved high bound. If unresolved, print
8603 "variable length" string to the console instead of random
8604 length.
8605
8606 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8607 property and store it as the high bound and flag the range accordingly.
8608 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8609 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8610 * gdbtypes.h (enum range_flags): New enum.
8611 (struct range_bounds): Add flags member.
8612
8613 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8614 points to a constant blob.
8615
8616 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8617 (evaluate_subexp_standard): Pass noside argument.
8618 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8619 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8620 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8621 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8622 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8623
245a5f0b
KS
86242014-04-11 Keith Seitz <keiths@redhat.com>
8625
8626 PR c++/16675
8627 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8628 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8629 reference types.
8630
3bce8237
SA
86312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8632
8633 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8634 (evaluate_subexp_standard): Pass noside argument.
8635 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8636 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8637 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8638 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8639 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8640
92b09522
SA
86412014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8642
8643 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8644 points to a constant blob.
8645
e1969afb
SA
86462014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8647
8648 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8649 property and store it as the high bound and flag the range accordingly.
8650 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8651 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8652 * gdbtypes.h (enum range_flags): New enum.
8653 (struct range_bounds): Add flags member.
8654
b86138fb
SA
86552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8656
8657 * c-typeprint.c (c_type_print_varspec_suffix): Added
8658 check for not yet resolved high bound. If unresolved, print
8659 "variable length" string to the console instead of random
8660 length.
8661
bcd629a4
SA
86622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8663
8664 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8665 (ada_template_to_fixed_record_type_1): Likewise.
8666 (ada_to_fixed_type_1): Likewise.
8667 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8668 (cp_print_value): Likewise.
8669 * d-valprint.c (dynamic_array_type): Likewise.
8670 * eval.c (evaluate_subexp_with_coercion): Likewise.
8671 * findvar.c (address_of_variable): Likewise.
8672 * jv-valprint.c (java_value_print): Likewise.
8673 * valops.c (value_ind): Likewise.
8674 * value.c (coerce_ref): Likewise.
8675
04b19544
SA
86762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8677
8678 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8679 value and retrieve the dynamic type size.
8680
26cb189f
SA
86812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8682
8683 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8684 passed to sizeof is dynamic evaluate the argument to compute the length.
8685
37c1ab67
SA
86862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8687
8688 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8689 (dwarf2_evaluate_property): New function.
8690 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8691 * dwarf2read.c (attr_to_dynamic_prop): New function.
8692 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8693 attribute.
8694 * gdbtypes.c: Include dwarf2loc.h.
8695 (is_dynamic_type): New function.
8696 (resolve_dynamic_type): New function.
8697 (resolve_dynamic_bounds): New function.
8698 (get_type_length): New function.
8699 (check_typedef): Use get_type_length to compute type length.
8700 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8701 (TYPE_LOW_BOUND_KIND): New macro.
8702 (is_dynamic_type): New function prototype.
8703 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8704 to resolve dynamic properties of the type. Update comment.
8705 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8706
729efb13
SA
87072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8708
8709 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8710 declaring high/low bounds and change uses accordingly. Call
8711 create_range_type instead of create_static_range_type.
8712 * gdbtypes.c (create_range_type): New function.
8713 (create_range_type): Convert bounds into struct bound_prop and pass
8714 them to create_range_type.
8715 * gdbtypes.h (struct bound_prop): New struct.
8716 (create_range_type): New function prototype.
8717 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8718 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8719 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8720 part of the bound.
8721 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8722
0c9c3474
SA
87232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8724
8725 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8726 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8727 * ada-lang.c: All uses of create_range_type updated.
8728 * coffread.c: All uses of create_range_type updated.
8729 * dwarf2read.c: All uses of create_range_type updated.
8730 * f-exp.y: All uses of create_range_type updated.
8731 * m2-valprint.c: All uses of create_range_type updated.
8732 * mdebugread.c: All uses of create_range_type updated.
8733 * stabsread.c: All uses of create_range_type updated.
8734 * valops.c: All uses of create_range_type updated.
8735 * valprint.c: All uses of create_range_type updated.
8736
9d497a19
PA
87372014-04-10 Pedro Alves <palves@redhat.com>
8738
8739 * breakpoint.c (single_step_breakpoints)
8740 (single_step_gdbarch): Move up in the file.
8741 (one_breakpoint_xfer_memory): New function, factored out from ...
8742 (breakpoint_xfer_memory): ... here. Also process single-step
8743 breakpoints.
8744
15a9128a
TG
87452014-04-09 Tristan Gingold <gingold@adacore.com>
8746
8747 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8748 comments.
8749 (darwin_decode_exception_message): Free port only after use.
8750
9c97a070
PL
87512014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8752
8753 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8754 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8755 when setting the size of call_length.
8756
7af389b8
SC
87572014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8758
8759 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8760 dereference TYPE_CODE_REF values.
8761
86ad98c3
JB
87622014-04-07 Joel Brobecker <brobecker@adacore.com>
8763
8764 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8765 end of warning message.
8766
b0aeadb3
DE
87672014-04-03 Doug Evans <dje@google.com>
8768
8769 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8770 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8771
5979d6b6
AM
87722014-04-02 Alan Modra <amodra@gmail.com>
8773
8774 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8775 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8776 (struct symbol_file_add_from_memory_args): Add size field.
8777 (find_vdso_size): New function.
8778 (add_vsyscall_page): Attempt to find vdso size.
8779
0d60c288
DE
87802014-04-01 Doug Evans <dje@google.com>
8781
8782 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8783
a41f2563
TG
87842014-04-01 Tristan Gingold <gingold@adacore.com>
8785
8786 * darwin-nat.c (darwin_encode_reply): Add prototype.
8787 (darwin_decode_exception_message): Reply to unknown inferiors.
8788 (darwin_decode_message): Handle message by id. Ignore message
8789 to unknown inferior.
8790 (darwin_wait): Discard unknown messages, add debug trace.
8791
11a865c8
DE
87922014-03-31 Doug Evans <dje@google.com>
8793
8794 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8795 comp_dir_string.
8796
770e7fc7
DE
87972014-03-31 Doug Evans <dje@google.com>
8798
8799 New option "set print symbol-loading".
8800 * NEWS: Mention it.
8801 * solib.c (solib_read_symbols): Only print symbol loading messages
8802 if requested.
8803 (solib_add): If symbol loading is in "brief" mode, notify user
8804 symbols are being loaded.
8805 (reload_shared_libraries_1): Ditto.
8806 * symfile.c (print_symbol_loading_off): New static global.
8807 (print_symbol_loading_brief): New static global.
8808 (print_symbol_loading_full): New static global.
8809 (print_symbol_loading_enums): New static global.
8810 (print_symbol_loading): New static global.
8811 (print_symbol_loading_p): New function.
8812 (symbol_file_add_with_addrs): Only print symbol loading messages
8813 if requested.
8814 (_initialize_symfile): Register "print symbol-loading" set/show
8815 command.
8816 * symfile.h (print_symbol_loading_p): Declare.
8817
c32c64b7
DE
88182014-03-30 Doug Evans <xdje42@gmail.com>
8819
8820 * infrun.c (set_last_target_status): New function.
8821 (handle_inferior_event): Call it.
8822
7c0bc051
DE
88232014-03-30 Doug Evans <xdje42@gmail.com>
8824
8825 * inferior.h (enum stop_kind): Improve comment.
8826
8776cfe9
JB
88272014-03-28 Joel Brobecker <brobecker@adacore.com>
8828
8829 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8830 a reference, strip the reference layer before calling
8831 the lang_ops value_has_mutated callback.
8832
410a0ff2
SDJ
88332014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8834
8835 Remove some globals from our parser.
8836 * language.c (unk_lang_parser): Add "struct parser_state"
8837 argument.
8838 * language.h (struct language_defn) <la_parser>: Likewise.
8839 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8840 (initialize_expout): Add "struct parser_state" argument.
8841 Rewrite function to use the parser state.
8842 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8843 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8844 write_exp_elt_longcst, write_exp_elt_dblcst,
8845 write_exp_elt_decfloatcst, write_exp_elt_type,
8846 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8847 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8848 write_dollar_variable): Likewise.
8849 (parse_exp_in_context_1): Use parser state.
8850 (insert_type_address_space): Add "struct parser_state" argument.
8851 Use parser state.
8852 (increase_expout_size): New function.
8853 * parser-defs.h: Forward declare "struct language_defn" and
8854 "struct parser_state".
8855 (expout, expout_size, expout_ptr): Remove extern declarations.
8856 (parse_gdbarch, parse_language): Rewrite macro declarations to
8857 accept the parser state.
8858 (struct parser_state): New struct.
8859 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8860 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8861 write_exp_elt_decfloatcst, write_exp_elt_type,
8862 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8863 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8864 write_exp_msymbol, write_dollar_variable,
8865 mark_struct_expression, insert_type_address_space): Add "struct
8866 parser_state" argument.
8867 (increase_expout_size): New function.
8868 * utils.c (do_clear_parser_state): New function.
8869 (make_cleanup_clear_parser_state): Likewise.
8870 * utils.h (make_cleanup_clear_parser_state): New function
8871 prototype.
8872 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8873 Update calls to write_exp* in order to pass the parser state.
8874 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8875 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8876 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8877 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8878 * stap-probe.c (stap_parse_register_operand): Likewise.
8879 (stap_parse_single_operand): Likewise.
8880 (stap_parse_argument_1): Likewise.
8881 (stap_parse_argument): Use parser state.
8882 * stap-probe.h: Include "parser-defs.h".
8883 (struct stap_parse_info) <pstate>: New field.
8884 * c-exp.y (parse_type): Rewrite to use parser state.
8885 (yyparse): Redefine to c_parse_internal.
8886 (pstate): New global variable.
8887 (parse_number): Add "struct parser_state" argument.
8888 (write_destructor_name): Likewise.
8889 (type_exp): Update calls to write_exp* and similars in order to
8890 use parser state.
8891 (exp1, exp, variable, qualified_name, space_identifier,
8892 typename, typebase): Likewise.
8893 (write_destructor_name, parse_number, lex_one_token,
8894 classify_name, classify_inner_name, c_parse): Add "struct
8895 parser_state" argument. Update function to use parser state.
8896 * c-lang.h: Forward declare "struct parser_state".
8897 (c_parse): Add "struct parser_state" argument.
8898 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8899 (yyparse): Redefine macro to ada_parse_internal.
8900 (pstate): New variable.
8901 (write_int, write_object_renaming, write_var_or_type,
8902 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8903 type_int, type_long, type_long_long, type_float, type_double,
8904 type_long_double, type_char, type_boolean, type_system_address):
8905 Add "struct parser_state" argument.
8906 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8907 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8908 var_or_type, aggregate, aggregate_component_list,
8909 positional_list, others, component_group,
8910 component_associations): Update calls to write_exp* and similar
8911 functions in order to use parser state.
8912 (ada_parse, write_var_from_sym, write_int,
8913 write_exp_op_with_string, write_object_renaming,
8914 find_primitive_type, write_selectors, write_ambiguous_var,
8915 write_var_or_type, write_name_assoc, type_int, type_long,
8916 type_long_long, type_float, type_double, type_long_double,
8917 type_char, type_boolean, type_system_address): Add "struct
8918 parser_state" argument. Adjust function to use parser state.
8919 * ada-lang.c (parse): Likewise.
8920 * ada-lang.h: Forward declare "struct parser_state".
8921 (ada_parse): Add "struct parser_state" argument.
8922 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8923 calls to both functions.
8924 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8925 parser state.
8926 (yyparse): Redefine macro to f_parse_internal.
8927 (pstate): New variable.
8928 (parse_number): Add "struct parser_state" argument.
8929 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8930 and similars in order to use parser state.
8931 (parse_number): Adjust code to use parser state.
8932 (yylex): Likewise.
8933 (f_parse): New function.
8934 * f-lang.h: Forward declare "struct parser_state".
8935 (f_parse): Add "struct parser_state" argument.
8936 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8937 parser state.
8938 (yyparse): Redefine macro for java_parse_internal.
8939 (pstate): New variable.
8940 (push_expression_name, push_expression_name, insert_exp): Add
8941 "struct parser_state" argument.
8942 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8943 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8944 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8945 PostIncrementExpression, PostDecrementExpression,
8946 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8947 UnaryExpressionNotPlusMinus, CastExpression,
8948 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8949 RelationalExpression, EqualityExpression, AndExpression,
8950 ExclusiveOrExpression, InclusiveOrExpression,
8951 ConditionalAndExpression, ConditionalOrExpression,
8952 ConditionalExpression, Assignment, LeftHandSide): Update
8953 calls to write_exp* and similars in order to use parser state.
8954 (parse_number): Ajust code to use parser state.
8955 (yylex): Likewise.
8956 (java_parse): New function.
8957 (push_variable): Add "struct parser_state" argument. Adjust
8958 code to user parser state.
8959 (push_fieldnames, push_qualified_expression_name,
8960 push_expression_name, insert_exp): Likewise.
8961 * jv-lang.h: Forward declare "struct parser_state".
8962 (java_parse): Add "struct parser_state" argument.
8963 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8964 parser state.
8965 (yyparse): Redefine macro to m2_parse_internal.
8966 (pstate): New variable.
8967 (type_exp, exp, fblock, variable, type): Update calls to
8968 write_exp* and similars to use parser state.
8969 (yylex): Likewise.
8970 (m2_parse): New function.
8971 * m2-lang.h: Forward declare "struct parser_state".
8972 (m2_parse): Add "struct parser_state" argument.
8973 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8974 * objc-lang.h: Forward declare "struct parser_state".
8975 (end_msglist): Add "struct parser_state" argument.
8976 * p-exp.y (parse_type): Rewrite macro to use parser state.
8977 (yyparse): Redefine macro to pascal_parse_internal.
8978 (pstate): New variable.
8979 (parse_number): Add "struct parser_state" argument.
8980 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8981 write_exp* and similars in order to use parser state.
8982 (parse_number, yylex): Adjust code to use parser state.
8983 (pascal_parse): New function.
8984 * p-lang.h: Forward declare "struct parser_state".
8985 (pascal_parse): Add "struct parser_state" argument.
8986 * go-exp.y (parse_type): Rewrite macro to use parser state.
8987 (yyparse): Redefine macro to go_parse_internal.
8988 (pstate): New variable.
8989 (parse_number): Add "struct parser_state" argument.
8990 (type_exp, exp1, exp, variable, type): Update calls to
8991 write_exp* and similars in order to use parser state.
8992 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8993 to use parser state.
8994 (go_parse): Likewise.
8995 * go-lang.h: Forward declare "struct parser_state".
8996 (go_parse): Add "struct parser_state" argument.
8997
342587c4
DE
89982014-03-27 Doug Evans <dje@google.com>
8999
9000 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9001
33e80786
DE
90022014-03-27 Doug Evans <dje@google.com>
9003
9004 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9005 Remove argument abbrev_section. All callers updated.
9006
1dbab08b
DE
90072014-03-27 Doug Evans <dje@google.com>
9008
9009 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9010 addr_base, ranges_base.
9011
318d3177
KS
90122014-03-26 Keith Seitz <keiths@redhat.com>
9013
9014 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9015 types, not VAR_DOMAIN.
9016
1e54db15
SL
90172014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9018
9019 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9020 "ra" registers.
9021 * features/nios2-linux.c: Regenerated.
9022 * features/nios2.c: Regenerated.
9023
d3839ede
PA
90242014-03-25 Pedro Alves <palves@redhat.com>
9025
9026 * cli/cli-script.c (script_from_file): Force the interpreter to
9027 sync mode.
9028
7588d2ec
PL
90292014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9030
9031 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9032 small stack allocation.
9033
a6290449
TG
90342014-03-24 Tristan Gingold <gingold@adacore.com>
9035
9036 * darwin-nat.c (exc_server): Remove unused prototype.
9037 (darwin_dump_message): Correctly display data on x86_64.
9038 (darwin_encode_reply): Fix style.
9039 Add comments and fix indentation.
9040
31ae9d24 90412014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9042
9043 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9044
6339bfc4
DE
90452014-03-22 Doug Evans <xdje42@gmail.com>
9046
9047 * infcmd.c: Whitespace fixes.
9048 (interrupt_command): Merge two function comments into one.
9049
0a07590b
DE
90502014-03-22 Doug Evans <xdje42@gmail.com>
9051
9052 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9053 All uses updated.
9054
b55fbac4
YQ
90552014-03-22 Yao Qi <yao@codesourcery.com>
9056
9057 * remote.c (target_read_live_memory): Remove.
9058 (memory_xfer_live_readonly_partial): Rename it to
9059 remote_xfer_live_readonly_partial. Remove argument 'object'.
9060 All callers updated. Call remote_read_bytes_1
9061 instead of target_read_live_memory.
9062 * tracepoint.c (set_traceframe_number): Remove.
9063 (make_cleanup_restore_traceframe_number): Likewise .
9064 * tracepoint.h (set_traceframe_number): Remove declaration.
9065 (make_cleanup_restore_traceframe_number): Likewise.
9066
9217e74e
YQ
90672014-03-22 Yao Qi <yao@codesourcery.com>
9068
9069 * remote.c (remote_read_bytes): Move code on reading from the
9070 remote stub to ...
9071 (remote_read_bytes_1): ... here. New function.
9072
8acf9577
YQ
90732014-03-22 Yao Qi <yao@codesourcery.com>
9074
9075 * ctf.c (ctf_xfer_partial): Check the return value of
9076 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9077 return TARGET_XFER_UNAVAILABLE.
9078 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9079 * target.c (target_read_live_memory): Move it to remote.c.
9080 (memory_xfer_live_readonly_partial): Likewise.
9081 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9082 * remote.c (target_read_live_memory): Moved from target.c.
9083 (memory_xfer_live_readonly_partial): Likewise.
9084 (remote_read_bytes): Factored out from
9085 memory_xfer_partial_1.
9086
feef67ab
DE
90872014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9088
9089 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9090 NULL pointer.
9091
b65dc60b
PA
90922014-03-21 Pedro Alves <palves@redhat.com>
9093
9094 * infrun.c (normal_stop): Extend comment.
9095
b4ab256d
HZ
90962014-03-21 Hui Zhu <hui@codesourcery.com>
9097 Pedro Alves <palves@redhat.com>
9098
9099 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9100 static buffer.
9101 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9102 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9103 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9104
deba7593
MR
91052014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9106
9107 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9108 `z' formatted output modifier.
9109
1bff71c3
SDJ
91102014-03-20 Tom Tromey <tromey@redhat.com>
9111 Sergio Durigan Junior <sergiodj@redhat.com>
9112
9113 * probe.c (parse_probes): Turn assert into an ordinary error.
9114 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9115 exceptions when parsing probes. Rearrange the code for clarity.
9116
90e28950
TT
91172014-03-20 Tom Tromey <tromey@redhat.com>
9118
9119 PR gdb/14135
9120 * top.c (execute_command): Only dispatch events if the command
9121 started the target.
9122
beb460e8
PA
91232014-03-20 Tom Tromey <tromey@redhat.com>
9124
9125 PR cli/15718
9126 * infcall.c: Include event-top.h.
9127 (run_inferior_call): Call async_disable_stdin if needed.
9128
99619bea
PA
91292014-03-20 Pedro Alves <palves@redhat.com>
9130
9131 * infrun.c (prepare_to_proceed): Delete.
9132 (thread_still_needs_step_over): New function.
9133 (find_thread_needs_step_over): New function.
9134 (proceed): If the current thread needs a step-over, set its
9135 steping_over_breakpoint flag. Adjust to use
9136 find_thread_needs_step_over instead of prepare_to_proceed.
9137 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9138 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9139 breakpoint.
9140 (switch_back_to_stepped_thread): Step over breakpoints of all
9141 threads not the stepping thread, before switching back to the
9142 stepping thread.
9143
2adfaa28
PA
91442014-03-20 Pedro Alves <palves@redhat.com>
9145
9146 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9147 extern.
9148 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9149 * infrun.c (saved_singlestep_ptid)
9150 (stepping_past_singlestep_breakpoint): Delete.
9151 (resume): Remove stepping_past_singlestep_breakpoint handling.
9152 (proceed): Store the prev_pc of the stepping thread too.
9153 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9154 singlestep_pc.
9155 (enum infwait_states): Delete infwait_thread_hop_state.
9156 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9157 field.
9158 (handle_inferior_event): Adjust.
9159 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9160 handling and the thread-hop code. Before removing single-step
9161 breakpoints, check whether the thread hit a single-step breakpoint
9162 of another thread. If it did, the trap is not a random signal.
9163 (switch_back_to_stepped_thread): If the event thread hit a
9164 single-step breakpoint, unblock it before switching to the
9165 stepping thread. Handle the case of the stepped thread having
9166 advanced already.
9167 (keep_going): Handle the case of the current thread moving past a
9168 single-step breakpoint.
9169
31e77af2
PA
91702014-03-20 Pedro Alves <palves@redhat.com>
9171
9172 PR breakpoints/7143
9173 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9174 are being stepped over.
9175 (breakpoint_address_match): Make extern.
9176 * breakpoint.h (breakpoint_address_match): New declaration.
9177 * inferior.h (stepping_past_instruction_at): New declaration.
9178 * infrun.c (struct step_over_info): New type.
9179 (step_over_info): New global.
9180 (set_step_over_info, clear_step_over_info)
9181 (stepping_past_instruction_at): New functions.
9182 (handle_inferior_event): Clear the step-over info when
9183 trap_expected is cleared.
9184 (resume): Remove now stale comment.
9185 (clear_proceed_status): Clear step-over info.
9186 (proceed): Adjust step-over handling to set or clear the step-over
9187 info instead of removing all breakpoints.
9188 (handle_signal_stop): When setting up a thread-hop, don't remove
9189 breakpoints here.
9190 (stop_stepping): Clear step-over info.
9191 (keep_going): Adjust step-over handling to set or clear step-over
9192 info and then always inserting breakpoints, instead of removing
9193 all breakpoints when stepping over one.
9194
b9f437de
PA
91952014-03-20 Pedro Alves <palves@redhat.com>
9196
9197 * infrun.c (previous_inferior_ptid): Adjust comment.
9198 (deferred_step_ptid): Delete.
9199 (infrun_thread_ptid_changed, prepare_to_proceed)
9200 (init_wait_for_inferior): Adjust.
9201 (handle_signal_stop): Delete deferred_step_ptid handling.
9202
06c868a8
JK
92032014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9204
9205 PR gdb/15358
9206 * defs.h (sync_quit_force_run): New declaration.
9207 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9208 * event-top.c (async_sigterm_handler): New declaration.
9209 (async_sigterm_token): New variable.
9210 (async_init_signals): Create also async_sigterm_token.
9211 (async_sigterm_handler): New function.
9212 (sync_quit_force_run): New variable.
9213 (handle_sigterm): Replace quit_force call by other calls.
9214 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9215
dea80df0
MR
92162014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9217
9218 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9219 offset into SPE pseudo registers.
9220
0c7e1a46
PA
92212014-03-18 Pedro Alves <palves@redhat.com>
9222
9223 PR gdb/13860
9224 * inferior.h (print_stop_event): Declare.
9225 * infrun.c (print_stop_event): New, factored out from ...
9226 (normal_stop): ... this.
9227 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9228 of bpstat_print/print_stack_frame.
9229
9c1fcd01
TT
92302014-03-17 Tom Tromey <tromey@redhat.com>
9231
9232 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9233
11aa919a
PMR
92342014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9235
9236 * ada-lang.c (decode_constrained_packed_array): Perform a
9237 minimal coercion for reference with coerce_ref instead of
9238 ada_coerce_ref.
9239
d4ccb5e0
TG
92402014-03-17 Tristan Gingold <gingold@adacore.com>
9241
9242 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9243 (darwin_solib_create_inferior_hook): Emit a warning if version
9244 is unhandled.
9245
49840f2a
UW
92462014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9247
9248 * python/py-value.c (get_field_flag): Cast flag_name argument to
9249 PyObject_GetAttrString to support Python 2.4.
9250
ed4123e5
JK
92512014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9252
9253 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9254 (Global Maintainers): Remove Jan Kratochvil.
9255
d6b64346
PA
92562014-03-14 Pedro Alves <palves@redhat.com>
9257
9258 * inferior.h (terminal_ours_for_output): Rename to ...
9259 (child_terminal_ours_for_output): ... this.
9260 (terminal_save_ours): Rename to ...
9261 (child_terminal_save_ours): ... this.
9262 (terminal_ours): Rename to ...
9263 (child_terminal_ours): ... this.
9264 (terminal_inferior): Rename to ...
9265 (child_terminal_inferior): ... this.
9266 (terminal_init_inferior): Rename to ...
9267 (child_terminal_init_inferior): ... this.
9268 (terminal_init_inferior_with_pgrp): Rename to ...
9269 (child_terminal_init_inferior_with_pgrp): ... this.
9270 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9271 (child_terminal_init_with_pgrp): ... this.
9272 (terminal_save_ours): Rename to ...
9273 (child_terminal_save_ours): ... this.
9274 (terminal_init_inferior): Rename to ...
9275 (child_terminal_init): ... this. Adjust.
9276 (terminal_inferior): Rename to ...
9277 (child_terminal_inferior): ... this.
9278 (terminal_ours_for_output): Rename to ...
9279 (child_terminal_ours_for_output): ... this. Adjust.
9280 (terminal_ours): Rename to ...
9281 (child_terminal_ours): ... this.
9282 (terminal_ours_1): Rename to ...
9283 (child_terminal_ours_1): ... this. Adjust.
9284 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9285 * windows-nat.c (do_initial_windows_stuff): Adjust.
9286 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9287 (gnu_terminal_init): ... this. Adjust.
9288 (gnu_target): Adjust.
9289 * inf-child.c (inf_child_target): Adjust.
9290
5a1e8c7a
DE
92912014-03-13 Doug Evans <xdje42@gmail.com>
9292
9293 PR guile/16612
9294 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9295 new eq?-hashtab.
9296
350e1a76
DE
92972014-03-13 Doug Evans <xdje42@gmail.com>
9298
9299 * value.c (record_latest_value): Call release_value_or_incref
9300 instead of release_value.
9301
a69900ae
PA
93022014-03-13 Pedro Alves <palves@redhat.com>
9303
9304 * procfs.c (procfs_target): Don't override to_shortname,
9305 to_longname or to_doc.
9306
5db9f0bd
PA
93072014-03-13 Pedro Alves <palves@redhat.com>
9308
9309 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9310 Unix in user visible strings.
9311
5e3a2c38
SS
93122014-03-12 Stan Shebs <stan@codesourcery.com>
9313
9314 * gdbtypes.h: Annotate comments for Doxygen, add a page
9315 block comment with some general info.
9316
8bc2fe48
PA
93172014-03-12 Pedro Alves <palves@redhat.com>
9318
9319 * infcmd.c (prepare_execution_command): New function, factored out
9320 from several execution commands.
9321 (run_command_1, continue_command, step_1, jump_command)
9322 (signal_command, until_command, advance_command, finish_command)
9323 (attach_command): Use prepare_execution_command.
9324
638c5f49
OJ
93252014-03-12 Omair Javaid <omair.javaid@linaro.org>
9326
9327 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9328 (MAX_BPTS): Define.
9329 (MAX_WPTS): Define.
9330 (struct arm_linux_thread_points): Removed.
9331 (struct arm_linux_process_info): New.
9332 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9333 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9334 (arm_linux_find_breakpoints_by_tid): Removed.
9335 (struct arch_lwp_info): New.
9336 (arm_linux_find_process_pid): New functions.
9337 (arm_linux_add_process): New functions.
9338 (arm_linux_process_info_get): New functions.
9339 (arm_linux_forget_process): New function.
9340 (arm_linux_get_debug_reg_state): New function.
9341 (struct update_registers_data): New.
9342 (update_registers_callback): New function.
9343 (arm_linux_insert_hw_breakpoint1): Updated.
9344 (arm_linux_remove_hw_breakpoint1): Updated.
9345 (arm_linux_insert_hw_breakpoint): Updated.
9346 (arm_linux_remove_hw_breakpoint): Updated.
9347 (arm_linux_insert_watchpoint): Updated.
9348 (arm_linux_remove_watchpoint): Updated.
9349 (arm_linux_new_thread): Updated.
9350 (arm_linux_prepare_to_resume): New function.
9351 (arm_linux_new_fork): New function.
9352 (_initialize_arm_linux_nat): Updated.
9353
6d03af93
PA
93542014-03-12 Pedro Alves <palves@redhat.com>
9355
9356 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9357
b3ccfe11
TT
93582014-03-12 Tom Tromey <tromey@redhat.com>
9359
9360 * inf-child.c (return_zero): New function.
9361 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9362 * aix-thread.c (aix_thread_inferior_created): New function.
9363 (aix_thread_attach): Remove.
9364 (init_aix_thread_ops): Don't set to_attach.
9365 (_initialize_aix_thread): Register inferior_created observer.
9366 * corelow.c (init_core_ops): Don't set to_attach or
9367 to_create_inferior.
9368 * exec.c (init_exec_ops): Don't set to_attach or
9369 to_create_inferior.
9370 * infcmd.c (run_command_1): Use find_run_target. Make direct
9371 target calls.
9372 (attach_command): Use find_attach_target. Make direct target
9373 calls.
9374 * record-btrace.c (init_record_btrace_ops): Don't set
9375 to_create_inferior.
9376 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9377 Remove.
9378 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9379 set to_create_inferior.
9380 * target.c (complete_target_initialization): Add assertion.
9381 (target_create_inferior): Remove.
9382 (find_default_attach, find_default_create_inferior): Remove.
9383 (find_attach_target, find_run_target): New functions.
9384 (find_default_is_async_p, find_default_can_async_p)
9385 (target_supports_non_stop, target_attach): Remove.
9386 (init_dummy_target): Don't set to_create_inferior or
9387 to_supports_non_stop.
9388 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9389 TARGET_DEFAULT_FUNC.
9390 <to_create_inferior>: Add comment.
9391 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9392 TARGET_DEFAULT_RETURN.
9393 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9394 (find_attach_target, find_run_target): Declare.
9395 (target_create_inferior): Remove.
9396 (target_has_execution_1): Update comment.
9397 (target_supports_non_stop): Remove.
9398 * target-delegates.c: Rebuild.
9399
91f83b02
PA
94002014-03-12 Pedro Alves <palves@redhat.com>
9401
9402 * inf-child.h: Update comment to not mention Unix.
9403
f1aea813
PA
94042014-03-12 Pedro Alves <palves@redhat.com>
9405
9406 * inf-child.c: Update top comment to not mention Unix. Add
9407 generic comment describing how this target is meant to be used.
9408 (inf_child_post_attach, inf_child_post_startup_inferior)
9409 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9410 Unix in comment.
9411
ee8e9165
PA
94122014-03-12 Pedro Alves <palves@redhat.com>
9413
9414 * nto-procfs.c: Include inf-child.h.
9415 (procfs_ops): Delete global.
9416 (procfs_can_run): Delete method.
9417 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9418 target pointer instead of referencing procfs_ops.
9419 (procfs_prepare_to_store): Delete.
9420 (init_procfs_ops): Delete function.
9421 (procfs_target): New function, based on init_procfs_ops, but
9422 inherit inf_child_target.
9423 (_initialize_procfs): Use procfs_target.
9424
51a9c8c5
PA
94252014-03-12 Pedro Alves <palves@redhat.com>
9426
9427 * windows-nat.c: Include inf-child.h.
9428 (windows_ops): Delete global.
9429 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9430 methods.
9431 (init_windows_ops): Delete function.
9432 (windows_target): New function, based on init_windows_ops, but
9433 inherit inf_child_target.
9434 (_initialize_windows_nat): Use windows_target. Install x86
9435 specific target methods here.
9436
c1966e26
DE
94372014-03-10 Doug Evans <xdje42@gmail.com>
9438
9439 * guile/guile.c (call_initialize_gdb_module): New function.
9440 (initialize_guile): Replace call to scm_init_guile with call to
9441 scm_with_guile.
9442
023db19c
JB
94432014-03-10 Joel Brobecker <brobecker@adacore.com>
9444
9445 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9446 in call to TYPE_CODE macro.
9447
5ec18f2b
JG
94482014-03-10 Jerome Guitton <guitton@adacore.com>
9449
8668be63
JB
9450 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9451 Resolve tagged types to full view.
5ec18f2b 9452
7d03f2eb
HZ
94532014-03-10 Hui Zhu <hui@codesourcery.com>
9454
9455 * target.h (target_insert_breakpoint): Remove "hardware" from its
9456 comments.
9457
c5164cbc
DE
94582014-03-07 Doug Evans <dje@google.com>
9459
9460 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9461
c4a3fee2
DE
94622014-03-07 Doug Evans <dje@google.com>
9463
9464 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9465 Remove unused local comp_dir_attr. Assert exactly one of
9466 stub_comp_unit_die, stub_comp_dir is non-NULL.
9467
3156469c
JB
94682014-03-07 Joel Brobecker <brobecker@adacore.com>
9469
9470 * target.h (complete_target_initialization, add_target):
9471 Add comment.
9472
c1a7b7c6
PA
94732014-03-07 Pedro Alves <palves@redhat.com>
9474
9475 * go32-nat.c: Include inf-child.h.
9476 (go32_ops): Delete global.
9477 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9478 Delete methods.
9479 (go32_create_inferior): Push the passed in target pointer instead
9480 of referencing go32_ops.
9481 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9482 (go32_target): New function, based on init_go32_ops, but inherit
9483 inf_child_target.
9484 (_initialize_go32_nat): Use go32_target. Move parts of
9485 init_go32_ops here.
9486
d3c1a85f
JB
94872014-03-06 Joel Brobecker <brobecker@adacore.com>
9488
9489 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9490 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9491 SYMBOL_VALUE_ADDRESS.
9492 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9493
5fa1d40e
YQ
94942014-03-06 Yao Qi <yao@codesourcery.com>
9495
9496 * breakpoint.c (get_tracepoint_by_number): Remove argument
9497 optional_p. All callers updated. Adjust comments. Update
9498 output message.
9499 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9500
0c13193f
YQ
95012014-03-06 Yao Qi <yao@codesourcery.com>
9502
9503 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9504 early if get_number returns zero. Use 'p' instead of 'args'.
9505
2217da06
YQ
95062014-03-06 Yao Qi <yao@codesourcery.com>
9507
9508 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9509 message.
9510
cc3da688
YQ
95112014-03-06 Yao Qi <yao@codesourcery.com>
9512
9513 PR breakpoints/16508
9514 * tracepoint.c (check_trace_running): New function.
9515 (trace_find_command): Move code to check_trace_running and
9516 call check_trace_running.
9517 (trace_find_pc_command): Likewise.
9518 (trace_find_tracepoint_command): Likewise.
9519 (trace_find_line_command): Likewise.
9520 (trace_find_range_command): Likewise.
9521 * tracepoint.h (check_trace_running): Likewise.
9522 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9523
6a5f844b
YQ
95242014-03-06 Yao Qi <yao@codesourcery.com>
9525
9526 * target.h (struct target_ops) <to_traceframe_info>: Use
9527 TARGET_DEFAULT_NORETURN (tcomplain ()).
9528 * target-delegates.c: Regenerated.
9529
0f26cec1
PA
95302014-03-05 Pedro Alves <palves@redhat.com>
9531
9532 PR gdb/16575
9533 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9534 void. Update comment.
9535 (dcache_xfer_memory): Delete.
9536 (dcache_read_memory_partial): New, based on the read bits of
9537 dcache_xfer_memory.
9538 (dcache_update): Add status parameter. Use ULONGEST for len, and
9539 adjust. Discard cache lines if the reason for the update was
9540 error.
9541 * dcache.h (dcache_xfer_memory): Delete declaration.
9542 (dcache_read_memory_partial): New declaration.
9543 (dcache_update): Update prototype.
9544 * target.c (raw_memory_xfer_partial): Update the dcache here.
9545 (memory_xfer_partial_1): Don't handle dcache writes here.
9546
b2b255bd
MF
95472014-03-05 Mike Frysinger <vapier@gentoo.org>
9548
9549 * remote-sim.c (gdbsim_load): Add const to prog.
9550
5d9cf8a4
TT
95512014-03-03 Tom Tromey <tromey@redhat.com>
9552
9553 * elfread.c (probe_key): Change to bfd_data.
9554 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9555 now per-BFD, not per-objfile.
9556 * stap-probe.c (stap_probe_destroy): Update comment.
9557 (handle_stap_probe): Allocate on the per-BFD obstack.
9558
729662a5
TT
95592014-03-03 Tom Tromey <tromey@redhat.com>
9560
9561 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9562 * breakpoint.c (create_longjmp_master_breakpoint): Use
9563 get_probe_address.
9564 (add_location_to_breakpoint, bkpt_probe_insert_location)
9565 (bkpt_probe_remove_location): Update.
9566 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9567 * elfread.c (elf_symfile_relocate_probe): Remove.
9568 (elf_probe_fns): Update.
9569 (insert_exception_resume_breakpoint): Change type of "probe"
9570 parameter to bound_probe.
9571 (check_exception_resume): Update.
9572 * objfiles.c (objfile_relocate1): Don't relocate probes.
9573 * probe.c (bound_probe_s): New typedef.
9574 (parse_probes): Use get_probe_address. Set sal's objfile.
9575 (find_probe_by_pc): Return a bound_probe.
9576 (collect_probes): Return a VEC(bound_probe_s).
9577 (compare_probes): Update.
9578 (gen_ui_out_table_header_info): Change type of "probes"
9579 parameter. Update.
9580 (info_probes_for_ops): Update.
9581 (get_probe_address): New function.
9582 (probe_safe_evaluate_at_pc): Update.
9583 * probe.h (struct probe_ops) <get_probe_address>: New field.
9584 <set_semaphore, clear_semaphore>: Add objfile parameter.
9585 (struct probe) <objfile>: Remove field.
9586 <arch>: New field.
9587 <address>: Update comment.
9588 (struct bound_probe): New.
9589 (find_probe_by_pc): Return a bound_probe.
9590 (get_probe_address): Declare.
9591 * solib-svr4.c (struct probe_and_action) <address>: New field.
9592 (hash_probe_and_action, equal_probe_and_action): Update.
9593 (register_solib_event_probe): Add address parameter.
9594 (solib_event_probe_at): Update.
9595 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9596 get_probe_address.
9597 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9598 (stap_get_probe_address): New function.
9599 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9600 (compile_probe_arg): Update.
9601 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9602 address.
9603 (handle_stap_probe): Don't relocate the probe.
9604 (stap_relocate): Remove.
9605 (stap_gen_info_probes_table_values): Update.
9606 (stap_probe_ops): Remove stap_relocate.
9607 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9608 (debug_sym_probe_fns): Update.
9609 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9610 * symtab.c (init_sal): Use memset.
9611 * symtab.h (struct symtab_and_line) <objfile>: New field.
9612 * tracepoint.c (start_tracing, stop_tracing): Update.
9613
ff887920
TT
96142014-03-03 Tom Tromey <tromey@redhat.com>
9615
9616 * probe.h (parse_probes, find_probe_by_pc)
9617 (find_probes_in_objfile): Fix comments.
9618
f0407826
DE
96192014-03-02 Doug Evans <xdje42@gmail.com>
9620
9621 * infrun.c (handle_signal_stop): Replace test for
9622 TARGET_WAITKIND_STOPPED with an assert.
9623
35e6a711
DE
96242014-03-02 Doug Evans <xdje42@gmail.com>
9625
9626 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9627
667f9d0b
DE
96282014-03-02 Doug Evans <xdje42@gmail.com>
9629
9630 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9631
dc92ace0
MK
96322014-03-01 Mark Kettenis <kettenis@gnu.org>
9633
9634 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9635
a900370f
MK
96362014-03-01 Mark Kettenis <kettenis@gnu.org>
9637
9638 * i386obsd-nat.c: Include "obsd-nat.h".
9639 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9640 add_target.
9641 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9642
b72a7981
MK
96432014-03-01 Mark Kettenis <kettenis@gnu.org>
9644
9645 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9646
96c70aba
MK
96472014-03-01 Mark Kettenis <kettenis@gnu.org>
9648
9649 * mips64obsd-nat.c: Include "obsd-nath".
9650 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9651 add_target
9652 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9653
874a80af
MK
96542014-03-01 Mark Kettenis <kettenis@gnu.org>
9655
8fd408f1
MK
9656 * amd64obsd-nat.c: Include "obsd-nat,h.
9657 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9658 add_target.
874a80af
MK
9659 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9660
9cf95373
SC
96612014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9662
9663 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9664 (find_overload_match): Update call to find_oload_champ.
9665 (find_oload_champ_namespace_loop): Likewise
9666
863e4da4
MK
96672014-02-28 Mark Kettenis <kettenis@gnu.org>
9668
025cac40
MK
9669 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9670
1ed586ce
MK
9671 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9672 * config/sparc/obsd64.mh: New file.
9673 * sparc64obsd-nat.c: New file.
9674
863e4da4
MK
9675 * obsd-nat.h: New file.
9676 * obsd-nat.c: New file.
9677 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9678 (ALLDEPFILES): Add obsd-nat.c.
9679
89de4da4
TT
96802014-02-28 Tom Tromey <tromey@redhat.com>
9681
9682 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9683 * cli-out.h (cli_ui_out_impl): Now const.
9684 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9685 * ui-out.c (struct ui_out) <impl>: Now const.
9686 (default_ui_out_impl): Now const.
9687 (ui_out_new): Make 'impl' parameter const.
9688 * ui-out.h (ui_out_new): Update.
9689
c725e7b6
MK
96902014-02-27 Mark Kettenis <kettenis@gnu.org>
9691
9692 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9693
670b46b3
MK
96942014-02-27 Mark Kettenis <kettenis@gnu.org>
9695
9696 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9697
c91550fc
JK
96982014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9699
9700 Additional PR 8882 fix.
9701 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9702
2fa0369e
PA
97032014-02-27 Pedro Alves <palves@redhat.com>
9704
9705 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9706 isn't set.
9707
d632a097
PA
97082014-02-27 Pedro Alves <palves@redhat.com>
9709
9710 PR 12702
9711 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9712 * nat/linux-waitpid.c: Include string.h.
9713 (status_to_str): Moved here and made extern.
9714 * nat/linux-waitpid.h (status_to_str): New declaration.
9715
2ebd5a35
HZ
97162014-02-27 Hui Zhu <hui@codesourcery.com>
9717
9718 PR 12702
9719 * infrun.c (ptid_match): Move ...
9720 * common/ptid.c (ptid_match): ... here.
9721 * inferior.h (ptid_match): Move ...
9722 * common/ptid.h (ptid_match): ... here.
9723
3cdd631f
MK
97242014-02-27 Mark Kettenis <kettenis@gnu.org>
9725
9726 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9727 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9728 gdb_target_obs.
9729
bee30a64
MK
97302014-02-27 Mark Kettenis <kettenis@gnu.org>
9731
9732 * obsd-tdep.c (obsd_auxv_parse): New function.
9733 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9734
9735 * gdbarch.sh (auxv_parse): New.
9736 * gdbarch.h: Regenerated.
9737 * gdbarch.c: Regenerated.
9738 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9739
7a5a839f
LC
97402014-02-26 Ludovic Courtès <ludo@gnu.org>
9741
9742 * guile/scm-value.c (gdbscm_history_append_x): New function.
9743 (value_functions): Add it.
9744
31aa7e4e
JB
97452014-02-27 Joel Brobecker <brobecker@adacore.com>
9746
9747 * dwarf2read.c (attr_value_as_address): New function.
9748 (dwarf2_find_base_address, read_call_site_scope): Use
9749 attr_value_as_address in place of DW_ADDR.
9750 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9751 the low and high addresses. Slight rework of the handling
9752 of the high pc being a constant form, and limit it to
9753 DWARF verson 4 or higher.
9754 (dwarf2_record_block_ranges): Likewise.
9755 (read_partial_die): Likewise.
9756 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9757
9b333ba3
TT
97582014-02-26 Tom Tromey <tromey@redhat.com>
9759
9760 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9761
5f6cac40
TT
97622014-02-26 Tom Tromey <tromey@redhat.com>
9763
9764 * elfread.c (elf_read_minimal_symbols): Return early if
9765 minimal symbols have already been read. Add "ei" parameter.
9766 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9767 * minsyms.c (prim_record_minimal_symbol_full): Update.
9768 * objfiles.h (struct objstats) <n_minsyms>: Move...
9769 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9770 * symmisc.c (print_objfile_statistics): Update.
9771
2750ef27
TT
97722014-02-26 Tom Tromey <tromey@redhat.com>
9773
9774 * elfread.c (elf_read_minimal_symbols): New function, from
9775 elf_symfile_read.
9776 (elf_symfile_read): Call it.
9777
34643a32
TT
97782014-02-26 Tom Tromey <tromey@redhat.com>
9779
9780 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9781 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9782 (lookup_minimal_symbol_solib_trampoline)
9783 (lookup_minimal_symbol_by_pc_section_1)
9784 (lookup_minimal_symbol_and_objfile): Update.
9785 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9786 Don't allocate a minimal symbol if minsyms have already been read.
9787 (build_minimal_symbol_hash_tables): Update.
9788 (install_minimal_symbols): Do nothing if minsyms already read.
9789 Use the per-BFD obstack.
9790 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9791 * objfiles.c (allocate_objfile): Call
9792 terminate_minimal_symbol_table later.
9793 (have_minimal_symbols): Update.
9794 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9795 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9796 Move from struct objfile.
9797 <minsyms_read>: New field.
9798 (struct objfile) <msymbols, minimal_symbol_count,
9799 msymbol_hash, msymbol_demangled_hash>: Move.
9800 (ALL_OBJFILE_MSYMBOLS): Update.
9801 * symfile.c (read_symbols): Set minsyms_read.
9802 (reread_symbols): Update.
9803 * symmisc.c (dump_objfile, dump_msymbols): Update.
9804
2273f0ac
TT
98052014-02-26 Tom Tromey <tromey@redhat.com>
9806
9807 * minsyms.c (msymbols_sort): Remove.
9808 * minsyms.h (msymbols_sort): Remove.
9809 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9810 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9811 * elfread.c (elf_symtab_read): Don't add section offsets.
9812 * xcoffread.c (record_minimal_symbol): Don't add section offset
9813 to minimal symbol address.
9814 * somread.c (text_offset, data_offset): Remove.
9815 (som_symtab_read): Don't add section offsets to minimal symbol
9816 addresses.
9817 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9818 Don't add section offsets to minimal symbols.
9819 * coffread.c (coff_symtab_read): Don't add section offsets
9820 to minimal symbol addresses.
9821 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9822 to minimal symbol addresses.
9823 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9824 section offset to minimal symbol addresses.
9825 * mdebugread.c (parse_partial_symbols): Don't add section
9826 offset to minimal symbol addresses.
9827 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9828 offset to minimal symbol addresses.
9829
77e371c0
TT
98302014-02-26 Tom Tromey <tromey@redhat.com>
9831
9832 * ada-lang.c (ada_main_name): Update.
9833 (ada_add_standard_exceptions): Update.
9834 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9835 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9836 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9837 * auxv.c (ld_so_xfer_auxv): Update.
9838 * avr-tdep.c (avr_scan_prologue): Update.
9839 * ax-gdb.c (gen_var_ref): Update.
9840 * blockframe.c (get_pc_function_start)
9841 (find_pc_partial_function_gnu_ifunc): Update.
9842 * breakpoint.c (create_overlay_event_breakpoint)
9843 (create_longjmp_master_breakpoint)
9844 (create_std_terminate_master_breakpoint)
9845 (create_exception_master_breakpoint): Update.
9846 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9847 * c-valprint.c (c_val_print): Update.
9848 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9849 * common/agent.c (agent_look_up_symbols): Update.
9850 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9851 * dwarf2loc.c (call_site_to_target_addr): Update.
9852 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9853 * elfread.c (elf_gnu_ifunc_record_cache)
9854 (elf_gnu_ifunc_resolve_by_got): Update.
9855 * findvar.c (default_read_var_value): Update.
9856 * frame.c (inside_main_func): Update.
9857 * frv-tdep.c (frv_frame_this_id): Update.
9858 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9859 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9860 Update.
9861 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9862 (hppa_hpux_find_dummy_bpaddr): Update.
9863 * hppa-tdep.c (hppa_symbol_address): Update.
9864 * infcmd.c (until_next_command): Update.
9865 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9866 Update.
9867 * linespec.c (minsym_found, add_minsym): Update.
9868 * linux-nat.c (get_signo): Update.
9869 * linux-thread-db.c (inferior_has_bug): Update.
9870 * m32c-tdep.c (m32c_return_value)
9871 (m32c_m16c_address_to_pointer): Update.
9872 * m32r-tdep.c (m32r_frame_this_id): Update.
9873 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9874 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9875 * maint.c (maintenance_translate_address): Update.
9876 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9877 (frob_address): New function.
9878 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9879 frob_address. Rename parameter to "pc_in".
9880 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9881 addresses.
9882 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9883 Update.
9884 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9885 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9886 * objc-lang.c (find_objc_msgsend): Update.
9887 * objfiles.c (objfile_relocate1): Update.
9888 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9889 * p-valprint.c (pascal_val_print): Update.
9890 * parse.c (write_exp_msymbol): Update.
9891 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9892 (ppc_elfv2_skip_entrypoint): Update.
9893 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9894 * printcmd.c (build_address_symbolic, msym_info)
9895 (address_info): Update.
9896 * proc-service.c (ps_pglobal_lookup): Update.
9897 * psymtab.c (find_pc_sect_psymtab_closer)
9898 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9899 Change msymbol parameter to bound_minimal_symbol.
9900 * ravenscar-thread.c (get_running_thread_id): Update.
9901 * remote.c (remote_check_symbols): Update.
9902 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9903 address.
9904 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9905 * solib-dsbt.c (lm_base): Update.
9906 * solib-frv.c (lm_base, main_got): Update.
9907 * solib-irix.c (locate_base): Update.
9908 * solib-som.c (som_solib_create_inferior_hook)
9909 (link_map_start): Update.
9910 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9911 * solib-svr4.c (elf_locate_base, enable_break): Update.
9912 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9913 (flush_ea_cache): Update.
9914 * stabsread.c (define_symbol, scan_file_globals): Update.
9915 * stack.c (find_frame_funname): Update.
9916 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9917 (debug_qf_find_pc_sect_symtab): Update.
9918 * symfile.c (simple_read_overlay_table)
9919 (simple_overlay_update): Update.
9920 * symfile.h (struct quick_symbol_functions)
9921 <find_pc_sect_symtab>: Change type of msymbol to
9922 bound_minimal_symbol.
9923 * symmisc.c (dump_msymbols): Update.
9924 * symtab.c (find_pc_sect_symtab_via_partial)
9925 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9926 (search_symbols, print_msymbol_info): Update.
9927 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9928 (MSYMBOL_VALUE_ADDRESS): Redefine.
9929 (BMSYMBOL_VALUE_ADDRESS): New macro.
9930 * tracepoint.c (scope_info): Update.
9931 * tui/tui-disasm.c (tui_find_disassembly_address)
9932 (tui_get_begin_asm_address): Update.
9933 * valops.c (find_function_in_inferior): Update.
9934 * value.c (value_static_field, value_fn_field): Update.
9935
3b7344d5
TT
99362014-02-26 Tom Tromey <tromey@redhat.com>
9937
9938 * ada-lang.c (ada_update_initial_language): Update.
9939 (ada_main_name, ada_has_this_exception_support): Update.
9940 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9941 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9942 * arm-tdep.c (arm_skip_stub): Update.
9943 * auxv.c (ld_so_xfer_auxv): Update.
9944 * avr-tdep.c (avr_scan_prologue): Update.
9945 * ax-gdb.c (gen_var_ref): Update.
9946 * breakpoint.c (struct breakpoint_objfile_data)
9947 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9948 type to bound_minimal_symbol.
9949 (create_overlay_event_breakpoint)
9950 (create_longjmp_master_breakpoint)
9951 (create_std_terminate_master_breakpoint)
9952 (create_exception_master_breakpoint): Update.
9953 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9954 * c-exp.y (classify_name): Update.
9955 * coffread.c (coff_symfile_read): Update.
9956 * common/agent.c (agent_look_up_symbols): Update.
9957 * d-lang.c (d_main_name): Update.
9958 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9959 * dec-thread.c (enable_dec_thread): Update.
9960 * dwarf2loc.c (call_site_to_target_addr): Update.
9961 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9962 * eval.c (evaluate_subexp_standard): Update.
9963 * findvar.c (struct minsym_lookup_data) <result>: Change type
9964 to bound_minimal_symbol.
9965 <objfile>: Remove.
9966 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9967 * frame.c (inside_main_func): Update.
9968 * frv-tdep.c (frv_frame_this_id): Update.
9969 * gcore.c (call_target_sbrk): Update.
9970 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9971 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9972 Update.
9973 * go-lang.c (go_main_name): Update.
9974 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9975 (hppa_hpux_find_import_stub_for_addr): Update.
9976 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9977 Update. Change return type.
9978 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9979 type.
9980 * jit.c (jit_breakpoint_re_set_internal): Update.
9981 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9982 Update.
9983 * linux-nat.c (get_signo): Update.
9984 * linux-thread-db.c (inferior_has_bug): Update
9985 * m32c-tdep.c (m32c_return_value)
9986 (m32c_m16c_address_to_pointer): Update.
9987 * m32r-tdep.c (m32r_frame_this_id): Update.
9988 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9989 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9990 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9991 lookup_minimal_symbol. Change return type.
9992 (lookup_minimal_symbol): Remove.
9993 (lookup_bound_minimal_symbol): Update.
9994 (lookup_minimal_symbol_text): Change return type.
9995 (lookup_minimal_symbol_solib_trampoline): Change return type.
9996 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9997 (lookup_minimal_symbol_solib_trampoline): Change return type.
9998 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9999 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10000 (value_nsstring, find_imps): Update.
10001 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10002 * p-lang.c (pascal_main_name): Update.
10003 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10004 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10005 * proc-service.c (ps_pglobal_lookup): Update.
10006 * ravenscar-thread.c (get_running_thread_msymbol): Change
10007 return type.
10008 (has_ravenscar_runtime, get_running_thread_id): Update.
10009 * remote.c (remote_check_symbols): Update.
10010 * sol-thread.c (ps_pglobal_lookup): Update.
10011 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10012 * solib-dsbt.c (lm_base): Update.
10013 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10014 Update.
10015 * solib-irix.c (locate_base): Update.
10016 * solib-som.c (som_solib_create_inferior_hook)
10017 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10018 Update.
10019 * solib-spu.c (spu_enable_break): Update.
10020 * solib-svr4.c (elf_locate_base, enable_break): Update.
10021 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10022 (flush_ea_cache): Update.
10023 * stabsread.c (define_symbol): Update.
10024 * symfile.c (simple_read_overlay_table): Update.
10025 * symtab.c (find_pc_sect_line): Update.
10026 * tracepoint.c (scope_info): Update.
10027 * tui-disasm.c (tui_get_begin_asm_address): Update.
10028 * value.c (value_static_field): Update.
10029
40c1a007
TT
100302014-02-26 Tom Tromey <tromey@redhat.com>
10031
10032 * minsyms.c (prim_record_minimal_symbol_full): Use
10033 SET_MSYMBOL_VALUE_ADDRESS.
10034 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10035 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10036 SET_MSYMBOL_VALUE_ADDRESS.
10037 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10038 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10039
efd66ac6
TT
100402014-02-26 Tom Tromey <tromey@redhat.com>
10041
10042 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10043 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10044 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10045 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10046 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10047 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10048 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10049 * ada-lang.c (ada_main_name): Update.
10050 (ada_lookup_simple_minsym): Update.
10051 (ada_make_symbol_completion_list): Update.
10052 (ada_add_standard_exceptions): Update.
10053 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10054 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10055 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10056 * arm-tdep.c (skip_prologue_function): Update.
10057 (arm_skip_stack_protector, arm_skip_stub): Update.
10058 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10059 (arm_wince_skip_main_prologue): Update.
10060 * auxv.c (ld_so_xfer_auxv): Update.
10061 * avr-tdep.c (avr_scan_prologue): Update.
10062 * ax-gdb.c (gen_var_ref): Update.
10063 * block.c (call_site_for_pc): Update.
10064 * blockframe.c (get_pc_function_start): Update.
10065 (find_pc_partial_function_gnu_ifunc): Update.
10066 * breakpoint.c (create_overlay_event_breakpoint): Update.
10067 (create_longjmp_master_breakpoint): Update.
10068 (create_std_terminate_master_breakpoint): Update.
10069 (create_exception_master_breakpoint): Update.
10070 (resolve_sal_pc): Update.
10071 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10072 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10073 Update.
10074 * c-valprint.c (c_val_print): Update.
10075 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10076 * coffread.c (coff_symfile_read): Update.
10077 * common/agent.c (agent_look_up_symbols): Update.
10078 * dbxread.c (find_stab_function_addr): Update.
10079 (end_psymtab): Update.
10080 * dwarf2loc.c (call_site_to_target_addr): Update.
10081 (func_verify_no_selftailcall): Update.
10082 (tailcall_dump): Update.
10083 (call_site_find_chain_1): Update.
10084 (dwarf_expr_reg_to_entry_parameter): Update.
10085 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10086 (elf_gnu_ifunc_resolve_by_got): Update.
10087 * f-valprint.c (info_common_command): Update.
10088 * findvar.c (read_var_value): Update.
10089 * frame.c (get_prev_frame_1): Update.
10090 (inside_main_func): Update.
10091 * frv-tdep.c (frv_skip_main_prologue): Update.
10092 (frv_frame_this_id): Update.
10093 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10094 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10095 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10096 (gnuv3_skip_trampoline): Update.
10097 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10098 (hppa64_hpux_in_solib_call_trampoline): Update.
10099 (hppa_hpux_skip_trampoline_code): Update.
10100 (hppa64_hpux_search_dummy_call_sequence): Update.
10101 (hppa_hpux_find_import_stub_for_addr): Update.
10102 (hppa_hpux_find_dummy_bpaddr): Update.
10103 * hppa-tdep.c (hppa_symbol_address)
10104 (hppa_lookup_stub_minimal_symbol): Update.
10105 * i386-tdep.c (i386_skip_main_prologue): Update.
10106 (i386_pe_skip_trampoline_code): Update.
10107 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10108 * infcall.c (get_function_name): Update.
10109 * infcmd.c (until_next_command): Update.
10110 * jit.c (jit_breakpoint_re_set_internal): Update.
10111 (jit_inferior_init): Update.
10112 * linespec.c (minsym_found): Update.
10113 (add_minsym): Update.
10114 * linux-fork.c (info_checkpoints_command): Update.
10115 * linux-nat.c (get_signo): Update.
10116 * linux-thread-db.c (inferior_has_bug): Update.
10117 * m32c-tdep.c (m32c_return_value): Update.
10118 (m32c_m16c_address_to_pointer): Update.
10119 (m32c_m16c_pointer_to_address): Update.
10120 * m32r-tdep.c (m32r_frame_this_id): Update.
10121 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10122 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10123 * maint.c (maintenance_translate_address): Update.
10124 * minsyms.c (add_minsym_to_hash_table): Update.
10125 (add_minsym_to_demangled_hash_table): Update.
10126 (msymbol_objfile): Update.
10127 (lookup_minimal_symbol): Update.
10128 (iterate_over_minimal_symbols): Update.
10129 (lookup_minimal_symbol_text): Update.
10130 (lookup_minimal_symbol_by_pc_name): Update.
10131 (lookup_minimal_symbol_solib_trampoline): Update.
10132 (lookup_minimal_symbol_by_pc_section_1): Update.
10133 (lookup_minimal_symbol_and_objfile): Update.
10134 (prim_record_minimal_symbol_full): Update.
10135 (compare_minimal_symbols): Update.
10136 (compact_minimal_symbols): Update.
10137 (build_minimal_symbol_hash_tables): Update.
10138 (install_minimal_symbols): Update.
10139 (terminate_minimal_symbol_table): Update.
10140 (find_solib_trampoline_target): Update.
10141 (minimal_symbol_upper_bound): Update.
10142 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10143 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10144 (mips_skip_pic_trampoline_code): Update.
10145 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10146 * objc-lang.c (selectors_info): Update.
10147 (classes_info): Update.
10148 (find_methods): Update.
10149 (find_imps): Update.
10150 (find_objc_msgsend): Update.
10151 * objfiles.c (objfile_relocate1): Update.
10152 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10153 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10154 * p-valprint.c (pascal_val_print): Update.
10155 * parse.c (write_exp_msymbol): Update.
10156 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10157 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10158 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10159 * printcmd.c (build_address_symbolic): Update.
10160 (sym_info): Update.
10161 (address_info): Update.
10162 * proc-service.c (ps_pglobal_lookup): Update.
10163 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10164 (find_pc_sect_psymtab): Update.
10165 * python/py-framefilter.c (py_print_frame): Update.
10166 * ravenscar-thread.c (get_running_thread_id): Update.
10167 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10168 Update.
10169 * remote.c (remote_check_symbols): Update.
10170 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10171 (rs6000_skip_trampoline_code): Update.
10172 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10173 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10174 * solib-dsbt.c (lm_base): Update.
10175 * solib-frv.c (lm_base): Update.
10176 (main_got): Update.
10177 * solib-irix.c (locate_base): Update.
10178 * solib-som.c (som_solib_create_inferior_hook): Update.
10179 (som_solib_desire_dynamic_linker_symbols): Update.
10180 (link_map_start): Update.
10181 * solib-spu.c (spu_enable_break): Update.
10182 (ocl_enable_break): Update.
10183 * solib-svr4.c (elf_locate_base): Update.
10184 (enable_break): Update.
10185 * spu-tdep.c (spu_get_overlay_table): Update.
10186 (spu_catch_start): Update.
10187 (flush_ea_cache): Update.
10188 * stabsread.c (define_symbol): Update.
10189 (scan_file_globals): Update.
10190 * stack.c (find_frame_funname): Update.
10191 (frame_info): Update.
10192 * symfile.c (simple_read_overlay_table): Update.
10193 (simple_overlay_update): Update.
10194 * symmisc.c (dump_msymbols): Update.
10195 * symtab.c (fixup_section): Update.
10196 (find_pc_sect_line): Update.
10197 (skip_prologue_sal): Update.
10198 (search_symbols): Update.
10199 (print_msymbol_info): Update.
10200 (rbreak_command): Update.
10201 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10202 (completion_list_objc_symbol): Update.
10203 (default_make_symbol_completion_list_break_on): Update.
10204 * tracepoint.c (scope_info): Update.
10205 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10206 (tui_get_begin_asm_address): Update.
10207 * valops.c (find_function_in_inferior): Update.
10208 * value.c (value_static_field): Update.
10209 (value_fn_field): Update.
10210
50e65b17
TT
102112014-02-26 Tom Tromey <tromey@redhat.com>
10212
10213 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10214 bound minimal symbols. Move code that knows about minsym
10215 table layout...
10216 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10217 function.
10218 * minsyms.h (minimal_symbol_upper_bound): Declare.
10219 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10220 minimal_symbol_upper_bound.
10221
1b588015
JB
102222014-02-27 Joel Brobecker <brobecker@adacore.com>
10223
10224 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10225 Use the type's name if its basic type does not have a tag.
10226
dbb9c2b1
JB
102272014-02-27 Joel Brobecker <brobecker@adacore.com>
10228
10229 * dwarf2read.c (read_subrange_type): Add comment.
10230
55426c9d
JB
102312014-02-27 Joel Brobecker <brobecker@adacore.com>
10232
10233 * dwarf2read.c (update_enumeration_type_from_children): New
10234 function, mostly extracted from process_structure_scope.
10235 (read_enumeration_type): Call update_enumeration_type_from_children.
10236 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10237 and flag_flag_enum fields.
10238
f2fce0ca
PA
102392014-02-26 Pedro Alves <palves@redhat.com>
10240
10241 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10242 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10243 to_xfer_partial method.
10244
7a44e40e
PA
102452014-02-26 Pedro Alves <palves@redhat.com>
10246
10247 * target.c (complete_target_initialization): Don't install
10248 default_xfer_partial as to_xfer_partial hook.
10249 (nomemory): Delete.
10250 (update_current_target): Don't INHERIT nor de_fault
10251 deprecated_xfer_memory. Delete de_fault macro.
10252 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10253 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10254 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10255 field.
10256
bd265cd0
PA
102572014-02-26 Pedro Alves <palves@redhat.com>
10258
10259 * go32-nat.c (my_write_child): New function.
10260 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10261 (go32_xfer_partial): New function.
10262 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10263 Instead install a to_xfer_partial hook.
10264
9d46c4e5
PA
102652014-02-26 Pedro Alves <palves@redhat.com>
10266
10267 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10268 to_xfer_partial helper. Rewrite.
10269 (procfs_xfer_partial): New function.
10270 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10271 Install a to_xfer_partial hook.
10272
a1583b1f
PA
102732014-02-26 Pedro Alves <palves@redhat.com>
10274
10275 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10276 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10277 (m32r_xfer_partial): New function.
10278 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10279 Install a to_xfer_partial hook.
10280
6df1b29f
PA
102812014-02-26 Pedro Alves <palves@redhat.com>
10282
10283 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10284 helper.
10285 (mips_xfer_partial): New function.
10286 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10287 hook. Install a to_xfer_partial hook.
10288
dc53a7ad
JB
102892014-02-26 Joel Brobecker <brobecker@adacore.com>
10290
10291 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10292 * gdbtypes.c (create_array_type_with_stride): New function,
10293 renaming create_array_type, but with an added parameter
10294 called "bit_stride".
10295 (create_array_type): Re-implement using
10296 create_array_type_with_stride.
10297 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10298 and DW_AT_bit_stride attributes.
10299
12ab52e9
PA
103002014-02-26 Pedro Alves <palves@redhat.com>
10301
10302 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10303 task-specific breakpoints.
10304
d16461ae
PA
103052014-02-25 Pedro Alves <palves@redhat.com>
10306
10307 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10308 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10309
a8b16220
SS
103102014-02-25 Stan Shebs <stan@codesourcery.com>
10311
10312 * defs.h: Annotate comments for Doxygen.
10313
b9e795ee
TT
103142014-02-25 Tom Tromey <tromey@redhat.com>
10315
10316 * target.h (target_ignore): Don't declare.
10317 * target.c (target_ignore): Remove.
10318
849c862e
JK
103192014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10320
10321 PR gdb/16626
10322 * auto-load.c (auto_load_objfile_script_1): Change filename to
10323 debugfile.
10324
475109d8
JB
103252014-02-25 Joel Brobecker <brobecker@adacore.com>
10326
10327 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10328 documentation. Adjust prototype to match the target_ops
10329 to_xfer_partial method. Adjust implementation accordingly.
10330
e186c3bd
HZ
103312014-02-25 Hui Zhu <hui@codesourcery.com>
10332
10333 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10334 to_traceframe_info.
10335
6d451942
KB
103362014-02-25 Kevin Buettner <kevinb@redhat.com>
10337
041ab8b4 10338 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10339 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10340 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10341 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10342 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10343 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10344 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10345 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10346 New constants.
10347 (rl78_register_type): Use a data pointer type for SP and
10348 new pseudo registers mentioned above. Use a 16 bit integer
10349 type for all other register pairs.
10350 (rl78_register_name, rl78_g10_register_name): Update for
10351 new pseudo registers.
10352 (rl78_pseudo_register_read): Likewise.
10353 (rl78_pseudo_register_write): Likewise.
10354 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10355 to the newly added pseudo registers.
10356
eddf0bae
DE
103572014-02-24 Doug Evans <dje@google.com>
10358
10359 * value.c (record_latest_value): Fix comment.
10360 * printcmd.c (print_command_1): Remove code to handle -1 return from
10361 record_latest_value.
10362
e96027e0
PA
103632014-02-24 Pedro Alves <palves@redhat.com>
10364
10365 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10366 deprecated_xfer_memory hook.
10367 (procfs_xfer_partial): Call procfs_xfer_memory instead
10368 of the deprecated_xfer_memory target hook.
10369 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10370 helper.
10371
0837c976
YZ
103722014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10373
10374 * windows-nat.c (windows_xfer_shared_libraries): Return
10375 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10376 requested object is TARGET_OBJECT_LIBRARIES.
10377
bc113b4e
YQ
103782014-02-24 Yao Qi <yao@codesourcery.com>
10379
10380 * target.h (enum target_xfer_status)
10381 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10382 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10383 explicitly. New.
10384 * corefile.c (memory_error_message): User updated.
10385 * exec.c (section_table_read_available_memory): Likewise.
10386 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10387 * target.c (target_xfer_status_to_string): Likewise.
10388 (raw_memory_xfer_partial): Likewise.
10389 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10390 * valops.c (read_value_memory): Likewise.
10391 * exec.h: Update comments.
10392
01cb8804
YQ
103932014-02-24 Yao Qi <yao@codesourcery.com>
10394
10395 * target.c (target_xfer_status_to_string): Rename argument err
10396 to status.
10397 * target.h (target_xfer_status_to_string): Update declaration.
10398 Replace target_xfer_error_to_string with
10399 target_xfer_status_to_string in comment.
10400
93063aa6
YQ
104012014-02-24 Yao Qi <yao@codesourcery.com>
10402
10403 * mips-linux-nat.c (super_close): Update its type.
10404 (mips_linux_close): Pass 'self' to super_close.
10405
5c328c05
YQ
104062014-02-24 Yao Qi <yao@codesourcery.com>
10407
10408 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10409 * corefile.c (read_memory): Adjusted.
10410 * target.c (target_write_with_progress): Adjusted.
10411
f73023dd
YQ
104122014-02-23 Yao Qi <yao@codesourcery.com>
10413
10414 Revert two patches:
10415
10416 2013-10-25 Yao Qi <yao@codesourcery.com>
10417
10418 * remote.c (remote_traceframe_info): Return early if
10419 traceframe is not selected.
10420
10421 2013-07-19 Yao Qi <yao@codesourcery.com>
10422
10423 * target.c (update_current_target): Change the default action
10424 of 'to_traceframe_info' from tcomplain to return_zero.
10425 * target.h (struct target_ops) <to_traceframe_info>: Add more
10426 comments.
10427
5a2eb0ef
YQ
104282014-02-23 Yao Qi <yao@codesourcery.com>
10429
10430 * valops.c (read_value_memory): Rewrite it. Call
10431 target_xfer_partial in a loop.
10432 * exec.h (section_table_available_memory): Remove declaration.
10433 Move comments to ...
10434 * exec.c (section_table_available_memory): ... here. Make it
10435 static.
10436
1ee79381
YQ
104372014-02-23 Yao Qi <yao@codesourcery.com>
10438
10439 * exec.c (section_table_read_available_memory): New function.
10440 * exec.h (section_table_read_available_memory): Declare.
10441 * ctf.c (ctf_xfer_partial): Call
10442 section_table_read_available_memory.
10443 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10444
1ca49d37
YQ
104452014-02-23 Yao Qi <yao@codesourcery.com>
10446
10447 * ctf.c (ctf_xfer_partial): Move code to ...
10448 * exec.c (exec_read_partial_read_only): ... it. New function.
10449 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10450 * tracefile.c: Include "exec.h".
10451 * exec.h (exec_read_partial_read_only): Declare.
10452
a283690e
YQ
104532014-02-23 Yao Qi <yao@codesourcery.com>
10454
10455 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10456 (tfile_has_memory): Remove.
10457 (init_tfile_ops): Don't set fields to_has_all_memory and
10458 to_has_memory of tfile_ops.
10459 * tracefile.c (tracefile_has_all_memory): New function.
10460 (tracefile_has_memory): New function.
10461 (init_tracefile_ops): Initialize fields to_has_all_memory and
10462 to_has_memory of 'ops'.
10463
12e03cd0
YQ
104642014-02-23 Yao Qi <yao@codesourcery.com>
10465
10466 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10467 (ctf_thread_alive, ctf_get_trace_status): Remove.
10468 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10469 init_tracefile_ops.
10470 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10471 (tfile_has_stack, tfile_has_registers): Remove.
10472 (tfile_thread_alive): Remove.
10473 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10474 init_tracefile_ops.
10475 * tracefile.c (tracefile_has_stack): New function.
10476 (tracefile_has_registers): New function.
10477 (tracefile_thread_alive): New function.
10478 (tracefile_get_trace_status): New function.
10479 (init_tracefile_ops): New function.
10480 * tracefile.h (init_tracefile_ops): Declare.
10481
11395323
YQ
104822014-02-23 Yao Qi <yao@codesourcery.com>
10483
10484 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10485 (O_LARGEFILE): Likewise.
10486 (tfile_ops): Likewise.
10487 (TRACE_HEADER_SIZE): Likewise.
10488 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10489 (cur_data_size): Likewise.
10490 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10491 (tfile_close, tfile_files_info): Likewise.
10492 (tfile_get_trace_status): Likewise.
10493 (tfile_get_tracepoint_status): Likewise.
10494 (tfile_get_traceframe_address): Likewise.
10495 (tfile_trace_find, match_blocktype): Likewise.
10496 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10497 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10498 (tfile_get_trace_state_variable_value): Likewise.
10499 (tfile_has_all_memory, tfile_has_memory): Likewise.
10500 (tfile_has_stack, tfile_has_registers): Likewise.
10501 (tfile_thread_alive, build_traceframe_info): Likewise.
10502 (tfile_traceframe_info, init_tfile_ops): Likewise.
10503 (_initialize_tracepoint): Don't call init_tfile_ops
10504 and add_target_with_completer.
10505 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10506 exec.h, completer.h and filenames.h.
10507 (_initialize_tracefile_tfile): New function.
10508
7951c4eb
YQ
105092014-02-23 Yao Qi <yao@codesourcery.com>
10510
10511 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10512 tracefile-tfile.o.
10513 (HFILES_NO_SRCDIR): Add tracefile.h.
10514 * ctf.c: Include "tracefile.h".
10515 * tracefile.h: New file.
10516 * tracefile.c: New file
10517 * tracefile-tfile.c: New file.
10518 * tracepoint.c: Include "tracefile.h".
10519 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10520 (stop_reason_names): Add const.
10521 (trace_file_writer_xfree): Move it to tracefile.c.
10522 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10523 (trace_save_ctf): Likewise.
10524 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10525 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10526 (tfile_write_header, tfile_write_regblock_type): Likewise.
10527 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10528 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10529 (tfile_write_raw_data, tfile_end): Likewise.
10530 (tfile_trace_file_writer_new): Likewise.
10531 (free_uploaded_tp): Make it extern.
10532 (free_uploaded_tsv): Make it extern.
10533 (_initialize_tracepoint): Move code to register command 'tsave'
10534 to tracefile.c.
10535 * tracepoint.h (stop_reason_names): Declare.
10536 (struct trace_frame_write_ops): Move it to tracefile.h.
10537 (struct trace_file_write_ops): Likewise.
10538 (struct trace_file_writer): Likewise.
10539 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10540
184cd072
JK
105412014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10542
10543 PR gdb/16594
10544 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10545 process name.
10546 (get_cores_used_by_process): New parameter num_cores, use it.
10547 (linux_xfer_osdata_processes): Pass num_cores to it.
10548 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10549 process name.
10550
c63528fc
AK
105512014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10552
10553 * target.c (memory_xfer_partial): Fix length arg in call to
10554 breakpoint_xfer_memory.
10555
d7b30f67
SDJ
105562014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10557
10558 PR tdep/16397
10559 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10560 number comes after the + or - signs. Adjust length of register
10561 name to be extracted.
10562
8838afaf
TT
105632014-02-20 Tom Tromey <tromey@redhat.com>
10564
10565 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10566 (ada_varobj_ops): Mark "extern".
10567
05227d14
TT
105682014-02-20 Tom Tromey <tromey@redhat.com>
10569
10570 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10571
1254eefc
DE
105722014-02-20 Doug Evans <xdje42@gmail.com>
10573
10574 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10575 All callers updated.
10576 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10577 All callers updated.
10578 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10579 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10580
adde2bff
DE
105812014-02-20 lin zuojian <manjian2006@gmail.com>
10582 Joel Brobecker <brobecker@adacore.com>
10583 Doug Evans <xdje42@gmail.com>
10584
10585 PR symtab/16581
10586 * dwarf2read.c (struct die_info): New member in_process.
10587 (reset_die_in_process): New function.
10588 (process_die): Set it at the start, reset when returning.
10589 (inherit_abstract_dies): Only call process_die if origin_child_die
10590 not already being processed.
10591
3be75f87
JB
105922014-02-20 Joel Brobecker <brobecker@adacore.com>
10593
10594 * windows-nat.c (handle_unload_dll): Add function documentation.
10595 (do_initial_windows_stuff): Add comment explaining why we wait
10596 until after inferior initialization has finished before
10597 processing all DLLs.
10598
47f7ffdb
JB
105992014-02-20 Joel Brobecker <brobecker@adacore.com>
10600
10601 * windows-nat.c (get_module_name): Delete.
10602 (windows_get_exec_module_filename): New function, mostly
10603 inspired from get_module_name.
10604 (windows_pid_to_exec_file): Replace call to get_module_name
10605 by call to windows_get_exec_module_filename.
10606
1cd9feab
JB
106072014-02-20 Joel Brobecker <brobecker@adacore.com>
10608
10609 * windows-nat.c (handle_load_dll): Rewrite this function's
10610 introductory comment. Remove code using get_module_name
10611 to get the DLL's name.
10612
ea39ad35
JB
106132014-02-20 Joel Brobecker <brobecker@adacore.com>
10614
10615 * windows-nat.c (get_windows_debug_event): Ignore
10616 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10617 if windows_initialization_done == 0.
10618 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10619 Adjust implementation to always load all DLLs.
10620 (do_initial_windows_stuff): Replace call to
10621 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10622
95060284
JB
106232014-02-20 Joel Brobecker <brobecker@adacore.com>
10624
10625 * windows-nat.c (_initialize_windows_nat): Deprecate the
10626 "dll-symbols" command. Turn the "add-shared-symbol-files"
10627 and "assf" aliases into commands, and deprecate them as well.
10628 * NEWS: Add entry explaining that "dll-symbols" and its two
10629 aliases are now deprecated.
10630
8d4fdb12
JB
106312014-02-20 Joel Brobecker <brobecker@adacore.com>
10632
10633 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10634 new-line in debug string. Remove trailing spaces.
10635
1b281443
SS
106362014-02-19 Stan Shebs <stan@codesourcery.com>
10637
10638 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10639
f7bd0f78
SC
106402014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10641
10642 * NEWS: Add entry for the new feature
10643 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10644 and class values.
10645
399ebc3d
SS
106462014-02-19 Stan Shebs <stan@codesourcery.com>
10647
10648 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10649
c658158d
PA
106502014-02-19 Pedro Alves <palves@redhat.com>
10651
10652 * common/ptid.h (struct ptid): Mention that process_stratum
10653 targets should prefer ptid.lwp.
10654
ba348170
PA
106552014-02-19 Pedro Alves <palves@redhat.com>
10656
10657 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10658 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10659 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10660 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10661 store remote thread ids rather than ptid.tid.
10662 (_initialize_remote): Adjust.
10663
ac01945b
TT
106642014-02-19 Tom Tromey <tromey@redhat.com>
10665
10666 * target.c (target_get_unwinder): Rewrite.
10667 (target_get_tailcall_unwinder): Rewrite.
10668 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10669 (record_btrace_to_get_tailcall_unwinder): New function.
10670 (init_record_btrace_ops): Update.
10671 * target.h (struct target_ops) <to_get_unwinder,
10672 to_get_tailcall_unwinder>: Now function pointers. Use
10673 TARGET_DEFAULT_RETURN.
10674
8476dc92
TT
106752014-02-19 Tom Tromey <tromey@redhat.com>
10676
10677 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10678 argument.
10679 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10680
c0eca49f
TT
106812014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10684 directly.
10685 * target-delegates.c: Rebuild.
10686 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10687 TARGET_DEFAULT_FUNC.
10688 * target.c (default_target_decr_pc_after_break): Rename from
10689 forward_target_decr_pc_after_break. Simplify.
10690 (target_decr_pc_after_break): Rely on delegation.
10691
596b6b39
TT
106922014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * target.c (update_current_target): Do not INHERIT to_doc or
10695 to_magic. Do not de_fault to_open or to_close.
10696
b427c1bc
TT
106972014-02-19 Tom Tromey <tromey@redhat.com>
10698
10699 * gcore.h (objfile_find_memory_regions): Declare.
10700 * gcore.c (objfile_find_memory_regions): No longer static. Add
10701 "self" argument.
10702 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10703 * exec.c: Include gcore.h.
10704 (exec_set_find_memory_regions): Remove.
10705 (exec_find_memory_regions): Remove.
10706 (exec_do_find_memory_regions): Remove.
10707 (init_exec_ops): Update.
10708 * defs.h (exec_set_find_memory_regions): Remove.
10709
9b144037
TT
107102014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target-delegates.c: Rebuild.
10713 * target.h (struct target_ops) <to_extra_thread_info,
10714 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10715 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10716 not 0, in TARGET_DEFAULT_RETURN.
10717
555bbdeb
TT
107182014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target.c (complete_target_initialization): Remove casts. Use
10721 return_zero_has_execution.
10722 (return_zero): Add "ignore" argument.
10723 (return_zero_has_execution): New function.
10724 (init_dummy_target): Remove casts. Use
10725 return_zero_has_execution.
10726
be4ddd36
TT
107272014-02-19 Tom Tromey <tromey@redhat.com>
10728
10729 * target.c (update_current_target): Update comments. Do not
10730 INHERIT to_stratum.
10731
2117c711
TT
107322014-02-19 Tom Tromey <tromey@redhat.com>
10733
10734 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10735 needed.
10736 * corelow.c (core_read_description): Delegate when needed.
10737 * remote.c (remote_read_description): Delegate when needed.
10738 * target-delegates.c: Rebuild.
10739 * target.c (target_read_description): Rewrite.
10740 * target.h (struct target_ops) <to_read_description>: Update
10741 comment. Use TARGET_DEFAULT_RETURN.
10742
e88ef65c
TT
107432014-02-19 Tom Tromey <tromey@redhat.com>
10744
10745 * target-delegates.c: Rebuild.
10746 * target.c (update_current_target): Don't inherit or default
10747 to_can_run.
10748 (find_default_run_target): Check against delegate_can_run.
10749 * target.h (struct target_ops) <to_can_run>: Use
10750 TARGET_DEFAULT_RETURN.
10751
86a0854a
TT
107522014-02-19 Tom Tromey <tromey@redhat.com>
10753
10754 * target-delegates.c: Rebuild.
10755 * target.c (target_disconnect): Unconditionally delegate.
10756 * target.h (struct target_ops) <to_disconnect>: Use
10757 TARGET_DEFAULT_NORETURN.
10758
ee97f592
TT
107592014-02-19 Tom Tromey <tromey@redhat.com>
10760
10761 * record.c (record_stop): Unconditionally delegate.
10762 * target-delegates.c: Rebuild.
10763 * target.c (target_stop_recording): Unconditionally delegate.
10764 * target.h (struct target_ops) <to_stop_recording>: Use
10765 TARGET_DEFAULT_IGNORE.
10766
6dc7fcf4
TT
107672014-02-19 Tom Tromey <tromey@redhat.com>
10768
10769 * target-delegates.c: Rebuild.
10770 * target.c (target_enable_btrace): Unconditionally delegate.
10771 * target.h (struct target_ops) <to_enable_btrace>: Use
10772 TARGET_DEFAULT_NORETURN.
10773
eb5b20d4
TT
107742014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target-delegates.c: Rebuild.
10777 * target.c (target_read_btrace): Unconditionally delegate.
10778 * target.h (struct target_ops) <to_read_btrace>: Use
10779 TARGET_DEFAULT_NORETURN.
10780
9ace480d
TT
107812014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target-delegates.c: Rebuild.
10784 * target.c (target_teardown_btrace): Unconditionally delegate.
10785 * target.h (struct target_ops) <to_teardown_btrace>: Use
10786 TARGET_DEFAULT_NORETURN.
10787
8dc292d3
TT
107882014-02-19 Tom Tromey <tromey@redhat.com>
10789
10790 * target-delegates.c: Rebuild.
10791 * target.c (target_disable_btrace): Unconditionally delegate.
10792 * target.h (struct target_ops) <to_disable_btrace>: Use
10793 TARGET_DEFAULT_NORETURN.
10794
58a5184e
TT
107952014-02-19 Tom Tromey <tromey@redhat.com>
10796
10797 * target-delegates.c: Rebuild.
10798 * target.c (default_search_memory): New function.
10799 (simple_search_memory): Update comment.
10800 (target_search_memory): Unconditionally delegate.
10801 * target.h (struct target_ops) <to_search_memory>: Use
10802 TARGET_DEFAULT_FUNC.
10803
8de71aab
TT
108042014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * auxv.c (default_auxv_parse): No longer static.
10807 (target_auxv_parse): Unconditionally delegate.
10808 * auxv.h (default_auxv_parse): Declare.
10809 * target-delegates.c: Rebuild.
10810 * target.c: Include auxv.h.
10811 * target.h (struct target_ops) <to_auxv_parse>: Use
10812 TARGET_DEFAULT_FUNC.
10813
6b2c5a57
TT
108142014-02-19 Tom Tromey <tromey@redhat.com>
10815
10816 * target-delegates.c: Rebuild.
10817 * target.c (target_memory_map): Unconditionally delegate.
10818 * target.h (struct target_ops) <to_memory_map>: Use
10819 TARGET_DEFAULT_RETURN.
10820
cbffc065
TT
108212014-02-19 Tom Tromey <tromey@redhat.com>
10822
10823 * target-delegates.c: Rebuild.
10824 * target.c (target_thread_alive): Unconditionally delegate.
10825 * target.h (struct target_ops) <to_thread_alive>: Use
10826 TARGET_DEFAULT_RETURN.
10827
f09e2107
TT
108282014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * target-delegates.c: Rebuild.
10831 * target.c (target_save_record): Unconditionally delegate.
10832 * target.h (struct target_ops) <to_save_record>: Use
10833 TARGET_DEFAULT_NORETURN.
10834
07366925
TT
108352014-02-19 Tom Tromey <tromey@redhat.com>
10836
10837 * target-delegates.c: Rebuild.
10838 * target.c (target_delete_record): Unconditionally delegate.
10839 * target.h (struct target_ops) <to_delete_record>: Use
10840 TARGET_DEFAULT_NORETURN.
10841
dd2e9d25
TT
108422014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 * target-delegates.c: Rebuild.
10845 * target.c (target_record_is_replaying): Unconditionally
10846 delegate.
10847 * target.h (struct target_ops) <to_record_is_replaying>: Use
10848 TARGET_DEFAULT_RETURN.
10849
671e76cc
TT
108502014-02-19 Tom Tromey <tromey@redhat.com>
10851
10852 * target-delegates.c: Rebuild.
10853 * target.c (target_goto_record_begin): Unconditionally delegate.
10854 * target.h (struct target_ops) <to_goto_record_begin>: Use
10855 TARGET_DEFAULT_NORETURN.
10856
e9179bb3
TT
108572014-02-19 Tom Tromey <tromey@redhat.com>
10858
10859 * target-delegates.c: Rebuild.
10860 * target.c (target_goto_record_end): Unconditionally delegate.
10861 * target.h (struct target_ops) <to_goto_record_end>: Use
10862 TARGET_DEFAULT_NORETURN.
10863
05969c84
TT
108642014-02-19 Tom Tromey <tromey@redhat.com>
10865
10866 * target-delegates.c: Rebuild.
10867 * target.c (target_goto_record): Unconditionally delegate.
10868 * target.h (struct target_ops) <to_goto_record>: Use
10869 TARGET_DEFAULT_NORETURN.
10870
3679abfa
TT
108712014-02-19 Tom Tromey <tromey@redhat.com>
10872
10873 * target-delegates.c: Rebuild.
10874 * target.c (target_insn_history): Unconditionally delegate.
10875 * target.h (struct target_ops) <to_insn_history>: Use
10876 TARGET_DEFAULT_NORETURN.
10877
8444ab58
TT
108782014-02-19 Tom Tromey <tromey@redhat.com>
10879
10880 * target-delegates.c: Rebuild.
10881 * target.c (target_insn_history_from): Unconditionally delegate.
10882 * target.h (struct target_ops) <to_insn_history_from>: Use
10883 TARGET_DEFAULT_NORETURN.
10884
c29302cc
TT
108852014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target-delegates.c: Rebuild.
10888 * target.c (target_insn_history_range): Unconditionally delegate.
10889 * target.h (struct target_ops) <to_insn_history_range>: Use
10890 TARGET_DEFAULT_NORETURN.
10891
170049d4
TT
108922014-02-19 Tom Tromey <tromey@redhat.com>
10893
10894 * target-delegates.c: Rebuild.
10895 * target.c (target_call_history): Unconditionally delegate.
10896 * target.h (struct target_ops) <to_call_history>: Use
10897 TARGET_DEFAULT_NORETURN.
10898
16fc27d6
TT
108992014-02-19 Tom Tromey <tromey@redhat.com>
10900
10901 * target-delegates.c: Rebuild.
10902 * target.c (target_call_history_from): Unconditionally delegate.
10903 * target.h (struct target_ops) <to_call_history_from>: Use
10904 TARGET_DEFAULT_NORETURN.
10905
115d9817
TT
109062014-02-19 Tom Tromey <tromey@redhat.com>
10907
10908 * target-delegates.c: Rebuild.
10909 * target.c (target_call_history_range): Unconditionally delegate.
10910 * target.h (struct target_ops) <to_call_history_range>: Use
10911 TARGET_DEFAULT_NORETURN.
10912
eb276a6b
TT
109132014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * target-delegates.c: Rebuild.
10916 * target.c (target_verify_memory): Unconditionally delegate.
10917 * target.h (struct target_ops) <to_verify_memory>: Use
10918 TARGET_DEFAULT_NORETURN.
10919
9e538d0d
TT
109202014-02-19 Tom Tromey <tromey@redhat.com>
10921
10922 * target-delegates.c: Rebuild.
10923 * target.c (target_core_of_thread): Unconditionally delegate.
10924 * target.h (struct target_ops) <to_core_of_thread>: Use
10925 TARGET_DEFAULT_RETURN.
10926
f6fb2925
TT
109272014-02-19 Tom Tromey <tromey@redhat.com>
10928
10929 * target-delegates.c: Rebuild.
10930 * target.c (target_flash_done): Unconditionally delegate.
10931 * target.h (struct target_ops) <to_flash_done>: Use
10932 TARGET_DEFAULT_NORETURN.
10933
e8a6c6ac
TT
109342014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target-delegates.c: Rebuild.
10937 * target.c (target_flash_erase): Unconditionally delegate.
10938 * target.h (struct target_ops) <to_flash_erase>: Use
10939 TARGET_DEFAULT_NORETURN.
10940
7e35c012
TT
109412014-02-19 Tom Tromey <tromey@redhat.com>
10942
10943 * target-delegates.c: Rebuild.
10944 * target.c (target_get_section_table): Unconditionally delegate.
10945 * target.h (struct target_ops) <to_get_section_table>: Use
10946 TARGET_DEFAULT_RETURN.
10947
770234d3
TT
109482014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * target-delegates.c: Rebuild.
10951 * target.c (target_pid_to_str): Unconditionally delegate.
10952 (init_dummy_target): Don't initialize to_pid_to_str.
10953 (default_pid_to_str): Rename from dummy_pid_to_str.
10954 * target.h (struct target_ops) <to_pid_to_str>: Use
10955 TARGET_DEFAULT_FUNC.
10956
09b0dc2b
TT
109572014-02-19 Tom Tromey <tromey@redhat.com>
10958
10959 * target-delegates.c: Rebuild.
10960 * target.c (target_find_new_threads): Unconditionally delegate.
10961 * target.h (struct target_ops) <to_find_new_threads>: Use
10962 TARGET_DEFAULT_RETURN.
10963
7d4f8efa
TT
109642014-02-19 Tom Tromey <tromey@redhat.com>
10965
10966 * target-delegates.c: Rebuild.
10967 * target.c (target_program_signals): Unconditionally delegate.
10968 * target.h (struct target_ops) <to_program_signals>: Use
10969 TARGET_DEFAULT_IGNORE.
10970
035cad7f
TT
109712014-02-19 Tom Tromey <tromey@redhat.com>
10972
10973 * target-delegates.c: Rebuild.
10974 * target.c (target_pass_signals): Unconditionally delegate.
10975 * target.h (struct target_ops) <to_pass_signals>: Use
10976 TARGET_DEFAULT_IGNORE.
10977
8d657035
TT
109782014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target-delegates.c: Rebuild.
10981 * target.c (default_mourn_inferior): New function.
10982 (target_mourn_inferior): Unconditionally delegate.
10983 * target.h (struct target_ops) <to_mourn_inferior>: Use
10984 TARGET_DEFAULT_FUNC.
10985
098dba18
TT
109862014-02-19 Tom Tromey <tromey@redhat.com>
10987
10988 * target-delegates.c: Rebuild.
10989 * target.c (default_follow_fork): New function.
10990 (target_follow_fork): Unconditionally delegate.
10991 * target.h (struct target_ops) <to_follow_fork>: Use
10992 TARGET_DEFAULT_FUNC.
10993
423a4807
TT
109942014-02-19 Tom Tromey <tromey@redhat.com>
10995
10996 * target-delegates.c: Rebuild.
10997 * target.c (target_kill): Unconditionally delegate.
10998 * target.h (struct target_ops) <to_kill>: Use
10999 TARGET_DEFAULT_NORETURN.
11000
6c7e5e5c
TT
110012014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * target-delegates.c: Rebuild.
11004 * target.c (target_masked_watch_num_registers): Unconditionally
11005 delegate.
11006 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11007 Use TARGET_DEFAULT_RETURN.
11008
8b1c364c
TT
110092014-02-19 Tom Tromey <tromey@redhat.com>
11010
11011 * target-delegates.c: Rebuild.
11012 * target.c (target_remove_mask_watchpoint): Unconditionally
11013 delegate.
11014 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11015 TARGET_DEFAULT_RETURN.
11016
cd4ae029
TT
110172014-02-19 Tom Tromey <tromey@redhat.com>
11018
11019 * target-delegates.c: Rebuild.
11020 * target.c (target_insert_mask_watchpoint): Unconditionally
11021 delegate.
11022 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11023 TARGET_DEFAULT_RETURN.
11024
a134316b
TT
110252014-02-19 Tom Tromey <tromey@redhat.com>
11026
11027 * target-delegates.c: Rebuild.
11028 * target.c (target_ranged_break_num_registers): Unconditionally
11029 delegate.
11030 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11031 Use TARGET_DEFAULT_RETURN.
11032
ad5989bd
TT
110332014-02-19 Tom Tromey <tromey@redhat.com>
11034
11035 * target-delegates.c: Rebuild.
11036 * target.c (target_fetch_registers): Unconditionally delegate.
11037 * target.h (struct target_ops) <to_fetch_registers>: Use
11038 TARGET_DEFAULT_NORETURN.
11039
46ee7e8d
TT
110402014-02-19 Tom Tromey <tromey@redhat.com>
11041
11042 * target-delegates.c: Rebuild.
11043 * target.c (update_current_target): Don't inherit or default
11044 to_stop.
11045 * target.h (struct target_ops) <to_stop>: Use
11046 TARGET_DEFAULT_IGNORE.
11047
843f59ed
TT
110482014-02-19 Tom Tromey <tromey@redhat.com>
11049
11050 * target-delegates.c: Rebuild.
11051 * target.c (update_current_target): Don't inherit or default
11052 to_can_run_breakpoint_commands.
11053 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11054 Use TARGET_DEFAULT_RETURN.
11055
ccfde2a0
TT
110562014-02-19 Tom Tromey <tromey@redhat.com>
11057
11058 * target-delegates.c: Rebuild.
11059 * target.c (update_current_target): Don't inherit or default
11060 to_supports_evaluation_of_breakpoint_conditions.
11061 * target.h (struct target_ops)
11062 <to_supports_evaluation_of_breakpoint_conditions>: Use
11063 TARGET_DEFAULT_RETURN.
11064
0de91722
TT
110652014-02-19 Tom Tromey <tromey@redhat.com>
11066
11067 * target-delegates.c: Rebuild.
11068 * target.c (update_current_target): Don't inherit or default
11069 to_augmented_libraries_svr4_read.
11070 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11071 Use TARGET_DEFAULT_RETURN.
11072
9a7d8b48
TT
110732014-02-19 Tom Tromey <tromey@redhat.com>
11074
11075 * target-delegates.c: Rebuild.
11076 * target.c (update_current_target): Don't inherit or default
11077 to_can_use_agent.
11078 * target.h (struct target_ops) <to_can_use_agent>: Use
11079 TARGET_DEFAULT_RETURN.
11080
d9db5b21
TT
110812014-02-19 Tom Tromey <tromey@redhat.com>
11082
11083 * target-delegates.c: Rebuild.
11084 * target.c (update_current_target): Don't inherit or default
11085 to_use_agent.
11086 * target.h (struct target_ops) <to_use_agent>: Use
11087 TARGET_DEFAULT_NORETURN.
11088
92155eeb
TT
110892014-02-19 Tom Tromey <tromey@redhat.com>
11090
11091 * target-delegates.c: Rebuild.
11092 * target.c (update_current_target): Don't inherit or default
11093 to_traceframe_info.
11094 (return_null): Remove.
11095 * target.h (struct target_ops) <to_traceframe_info>: Use
11096 TARGET_DEFAULT_RETURN.
11097
d6522a22
TT
110982014-02-19 Tom Tromey <tromey@redhat.com>
11099
11100 * target-delegates.c: Rebuild.
11101 * target.c (update_current_target): Don't inherit or default
11102 to_static_tracepoint_markers_by_strid.
11103 * target.h (struct target_ops)
11104 <to_static_tracepoint_markers_by_strid>: Use
11105 TARGET_DEFAULT_NORETURN.
11106
4c3e4425
TT
111072014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * target-delegates.c: Rebuild.
11110 * target.c (update_current_target): Don't inherit or default
11111 to_static_tracepoint_marker_at.
11112 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11113 Use TARGET_DEFAULT_RETURN.
11114
dcd6917f
TT
111152014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * target-delegates.c: Rebuild.
11118 * target.c (update_current_target): Don't inherit or default
11119 to_set_permissions.
11120 * target.h (struct target_ops) <to_set_permissions>: Use
11121 TARGET_DEFAULT_IGNORE.
11122
22bcceee
TT
111232014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target-delegates.c: Rebuild.
11126 * target.c (update_current_target): Don't inherit or default
11127 to_get_tib_address.
11128 * target.h (struct target_ops) <to_get_tib_address>: Use
11129 TARGET_DEFAULT_NORETURN.
11130
8586ccaa
TT
111312014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target-delegates.c: Rebuild.
11134 * target.c (update_current_target): Don't inherit or default
11135 to_set_trace_notes.
11136 * target.h (struct target_ops) <to_set_trace_notes>: Use
11137 TARGET_DEFAULT_RETURN.
11138
91df8d1d
TT
111392014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target-delegates.c: Rebuild.
11142 * target.c (update_current_target): Don't initialize
11143 to_set_trace_buffer_size.
11144 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11145 TARGET_DEFAULT_IGNORE.
11146
8d526939
TT
111472014-02-19 Tom Tromey <tromey@redhat.com>
11148
11149 * target-delegates.c: Rebuild.
11150 * target.c (update_current_target): Don't inherit or default
11151 to_set_circular_trace_buffer.
11152 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11153 TARGET_DEFAULT_IGNORE.
11154
0bcfeddf
TT
111552014-02-19 Tom Tromey <tromey@redhat.com>
11156
11157 * target-delegates.c: Rebuild.
11158 * target.c (update_current_target): Don't inherit or default
11159 to_set_disconnected_tracing.
11160 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11161 TARGET_DEFAULT_IGNORE.
11162
9249843f
TT
111632014-02-19 Tom Tromey <tromey@redhat.com>
11164
11165 * target-delegates.c: Rebuild.
11166 * target.c (update_current_target): Don't inherit or default
11167 to_get_min_fast_tracepoint_insn_len.
11168 (return_minus_one): Remove.
11169 * target.h (struct target_ops)
11170 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11171
ace92e7d
TT
111722014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target-delegates.c: Rebuild.
11175 * target.c (update_current_target): Don't inherit or default
11176 to_get_raw_trace_data.
11177 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11178 TARGET_DEFAULT_NORETURN.
11179
08120467
TT
111802014-02-19 Tom Tromey <tromey@redhat.com>
11181
11182 * target-delegates.c: Rebuild.
11183 * target.c (update_current_target): Don't inherit or default
11184 to_upload_trace_state_variables.
11185 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11186 Use TARGET_DEFAULT_RETURN.
11187
1e949b00
TT
111882014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * target-delegates.c: Rebuild.
11191 * target.c (update_current_target): Don't inherit or default
11192 to_upload_tracepoints.
11193 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11194 TARGET_DEFAULT_RETURN.
11195
a2e6c147
TT
111962014-02-19 Tom Tromey <tromey@redhat.com>
11197
11198 * target-delegates.c: Rebuild.
11199 * target.c (update_current_target): Don't inherit or default
11200 to_save_trace_data.
11201 * target.h (struct target_ops) <to_save_trace_data>: Use
11202 TARGET_DEFAULT_NORETURN.
11203
959bcd0b
TT
112042014-02-19 Tom Tromey <tromey@redhat.com>
11205
11206 * target-delegates.c: Rebuild.
11207 * target.c (update_current_target): Don't inherit or default
11208 to_get_trace_state_variable_value.
11209 * target.h (struct target_ops)
11210 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11211
afc94e66
TT
112122014-02-19 Tom Tromey <tromey@redhat.com>
11213
11214 * target-delegates.c: Rebuild.
11215 * target.c (update_current_target): Don't inherit or default
11216 to_trace_find.
11217 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11218
e51c07ea
TT
112192014-02-19 Tom Tromey <tromey@redhat.com>
11220
11221 * target-delegates.c: Rebuild.
11222 * target.c (update_current_target): Don't inherit or default
11223 to_trace_stop.
11224 * target.h (struct target_ops) <to_trace_stop>: Use
11225 TARGET_DEFAULT_NORETURN.
11226
6fea14cd
TT
112272014-02-19 Tom Tromey <tromey@redhat.com>
11228
11229 * target-delegates.c: Rebuild.
11230 * target.c (update_current_target): Don't inherit or default
11231 to_get_tracepoint_status.
11232 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11233 TARGET_DEFAULT_NORETURN.
11234
4072d4ff
TT
112352014-02-19 Tom Tromey <tromey@redhat.com>
11236
11237 * target-delegates.c: Rebuild.
11238 * target.c (update_current_target): Don't inherit or default
11239 to_get_trace_status.
11240 * target.h (struct target_ops) <to_get_trace_status>: Use
11241 TARGET_DEFAULT_RETURN.
11242
25da2e80
TT
112432014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * target-delegates.c: Rebuild.
11246 * target.c (update_current_target): Don't inherit or default
11247 to_trace_start.
11248 * target.h (struct target_ops) <to_trace_start>: Use
11249 TARGET_DEFAULT_NORETURN.
11250
86dd181d
TT
112512014-02-19 Tom Tromey <tromey@redhat.com>
11252
11253 * target-delegates.c: Rebuild.
11254 * target.c (update_current_target): Don't inherit or default
11255 to_trace_set_readonly_regions.
11256 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11257 Use TARGET_DEFAULT_NORETURN.
11258
05c41993
TT
112592014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target-delegates.c: Rebuild.
11262 * target.c (update_current_target): Don't inherit or default
11263 to_disable_tracepoint.
11264 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11265 TARGET_DEFAULT_NORETURN.
11266
151f70f1
TT
112672014-02-19 Tom Tromey <tromey@redhat.com>
11268
11269 * target-delegates.c: Rebuild.
11270 * target.c (update_current_target): Don't inherit or default
11271 to_enable_tracepoint.
11272 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11273 TARGET_DEFAULT_NORETURN.
11274
94eb98b9
TT
112752014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target-delegates.c: Rebuild.
11278 * target.c (update_current_target): Don't inherit or default
11279 to_download_trace_state_variable.
11280 * target.h (struct target_ops) <to_download_trace_state_variable>:
11281 Use TARGET_DEFAULT_NORETURN.
11282
719acc4a
TT
112832014-02-19 Tom Tromey <tromey@redhat.com>
11284
11285 * target-delegates.c: Rebuild.
11286 * target.c (update_current_target): Don't inherit or default
11287 to_can_download_tracepoint.
11288 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11289 TARGET_DEFAULT_RETURN.
11290
9a980a22
TT
112912014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * target-delegates.c: Rebuild.
11294 * target.c (update_current_target): Don't inherit or default
11295 to_download_tracepoint.
11296 * target.h (struct target_ops) <to_download_tracepoint>: Use
11297 TARGET_DEFAULT_NORETURN.
11298
5536135b
TT
112992014-02-19 Tom Tromey <tromey@redhat.com>
11300
11301 * target-delegates.c: Rebuild.
11302 * target.c (update_current_target): Don't inherit or default
11303 to_trace_init.
11304 * target.h (struct target_ops) <to_trace_init>: Use
11305 TARGET_DEFAULT_RETURN.
11306
9409d39e
TT
113072014-02-19 Tom Tromey <tromey@redhat.com>
11308
11309 * target-delegates.c: Rebuild.
11310 * target.c (update_current_target): Don't inherit or default
11311 to_supports_string_tracing.
11312 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11313 TARGET_DEFAULT_RETURN.
11314
aab1b22d
TT
113152014-02-19 Tom Tromey <tromey@redhat.com>
11316
11317 * target-delegates.c: Rebuild.
11318 * target.c (update_current_target): Don't inherit or default
11319 to_supports_enable_disable_tracepoint.
11320 * target.h (struct target_ops)
11321 <to_supports_enable_disable_tracepoint>: Use
11322 TARGET_DEFAULT_RETURN.
11323
a7304748
TT
113242014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target-delegates.c: Rebuild.
11327 * target.c (update_current_target): Don't inherit or default
11328 to_supports_multi_process.
11329 * target.h (struct target_ops) <to_supports_multi_process>: Use
11330 TARGET_DEFAULT_RETURN.
11331
4229b31d
TT
113322014-02-19 Tom Tromey <tromey@redhat.com>
11333
11334 * target-delegates.c: Rebuild.
11335 * target.c (update_current_target): Don't inherit or default
11336 to_get_ada_task_ptid.
11337 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11338 TARGET_DEFAULT_FUNC.
11339
43eba180
TT
113402014-02-19 Tom Tromey <tromey@redhat.com>
11341
11342 * target-delegates.c: Rebuild.
11343 * target.c (update_current_target): Don't inherit or default
11344 to_thread_architecture.
11345 * target.h (struct target_ops) <to_thread_architecture>: Use
11346 TARGET_DEFAULT_FUNC.
11347
fe31bf5b
TT
113482014-02-19 Tom Tromey <tromey@redhat.com>
11349
11350 * target-delegates.c: Rebuild.
11351 * target.c (update_current_target): Don't inherit or default
11352 to_execution_direction.
11353 * target.h (struct target_ops) <to_execution_direction>: Use
11354 TARGET_DEFAULT_FUNC.
11355
53e1cfc7
TT
113562014-02-19 Tom Tromey <tromey@redhat.com>
11357
11358 * target-delegates.c: Rebuild.
11359 * target.c (update_current_target): Don't inherit or default
11360 to_can_execute_reverse.
11361 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11362 TARGET_DEFAULT_RETURN.
11363 (target_can_execute_reverse): Unconditionally delegate.
11364
9bb9d61d
TT
113652014-02-19 Tom Tromey <tromey@redhat.com>
11366
11367 * target-delegates.c: Rebuild.
11368 * target.c (update_current_target): Don't inherit or default
11369 to_goto_bookmark.
11370 (dummy_goto_bookmark): Remove.
11371 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11372 * target.h (struct target_ops) <to_goto_bookmark>: Use
11373 TARGET_DEFAULT_NORETURN.
11374
3dbafbbb
TT
113752014-02-19 Tom Tromey <tromey@redhat.com>
11376
11377 * target-delegates.c: Rebuild.
11378 * target.c (update_current_target): Don't inherit or default
11379 to_get_bookmark.
11380 (dummy_get_bookmark): Remove.
11381 (init_dummy_target): Don't inherit or default to_get_bookmark.
11382 * target.h (struct target_ops) <to_get_bookmark>: Use
11383 TARGET_DEFAULT_NORETURN
11384
16f796b1
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_make_corefile_notes.
11390 (init_dummy_target): Don't initialize to_make_corefile_notes.
11391 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11392 TARGET_DEFAULT_FUNC.
11393
0b5a2719
TT
113942014-02-19 Tom Tromey <tromey@redhat.com>
11395
11396 * target-delegates.c: Rebuild.
11397 * target.c (update_current_target): Don't inherit or default
11398 to_find_memory_regions.
11399 (init_dummy_target): Don't initialize to_find_memory_regions.
11400 * target.h (struct target_ops) <to_find_memory_regions>: Use
11401 TARGET_DEFAULT_FUNC.
11402
d9cb0195
TT
114032014-02-19 Tom Tromey <tromey@redhat.com>
11404
11405 * target-delegates.c: Rebuild.
11406 * target.c (update_current_target): Don't inherit or default
11407 to_log_command.
11408 * target.h (struct target_ops) <to_log_command>: Use
11409 TARGET_DEFAULT_IGNORE.
11410 (target_log_command): Unconditionally delegate.
11411
830ca330
TT
114122014-02-19 Tom Tromey <tromey@redhat.com>
11413
11414 * target-delegates.c: Rebuild.
11415 * target.c (update_current_target): Don't inherit or default
11416 to_pid_to_exec_file.
11417 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11418 TARGET_DEFAULT_RETURN.
11419
825828fc
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_thread_name.
11425 (target_thread_name): Unconditionally delegate.
11426 * target.h (struct target_ops) <to_thread_name>: Use
11427 TARGET_DEFAULT_RETURN.
11428
4a7e6dda
TT
114292014-02-19 Tom Tromey <tromey@redhat.com>
11430
11431 * target-delegates.c: Rebuild.
11432 * target.c (update_current_target): Don't inherit or default
11433 to_extra_thread_info.
11434 * target.h (struct target_ops) <to_extra_thread_info>: Use
11435 TARGET_DEFAULT_RETURN.
11436
0db88c1d
TT
114372014-02-19 Tom Tromey <tromey@redhat.com>
11438
11439 * target-delegates.c: Rebuild.
11440 * target.c (update_current_target): Don't inherit or default
11441 to_has_exited.
11442 * target.h (struct target_ops) <to_has_exited>: Use
11443 TARGET_DEFAULT_RETURN..
11444
6a9fa051
TT
114452014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * target-delegates.c: Rebuild.
11448 * target.c (update_current_target): Don't inherit or default
11449 to_set_syscall_catchpoint.
11450 (return_one): Remove.
11451 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11452 TARGET_DEFAULT_RETURN.
11453
62f64d7a
TT
114542014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target-delegates.c: Rebuild.
11457 * target.c (update_current_target): Don't inherit or default
11458 to_insert_exec_catchpoint.
11459 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11460 TARGET_DEFAULT_RETURN.
11461
cda0f38c
TT
114622014-01-08 Tom Tromey <tromey@redhat.com>
11463
11464 * target-delegates.c: Rebuild.
11465 * target.c (update_current_target): Don't inherit or default
11466 to_insert_exec_catchpoint.
11467 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11468 TARGET_DEFAULT_RETURN.
11469
95c3375e
TT
114702014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target-delegates.c: Rebuild.
11473 * target.c (update_current_target): Don't inherit or default
11474 to_remove_vfork_catchpoint.
11475 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11476 TARGET_DEFAULT_RETURN.
11477
7e18a8dc
TT
114782014-02-19 Tom Tromey <tromey@redhat.com>
11479
11480 * target-delegates.c: Rebuild.
11481 * target.c (update_current_target): Don't inherit or default
11482 to_insert_vfork_catchpoint.
11483 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11484 TARGET_DEFAULT_RETURN.
11485
e1a21fb7
TT
114862014-02-19 Tom Tromey <tromey@redhat.com>
11487
11488 * target-delegates.c: Rebuild.
11489 * target.c (update_current_target): Don't inherit or default
11490 to_remove_fork_catchpoint.
11491 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11492 TARGET_DEFAULT_RETURN.
11493
5958ebeb
TT
114942014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * target-delegates.c: Rebuild.
11497 * target.c (update_current_target): Don't inherit or default
11498 to_insert_fork_catchpoint.
11499 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11500 TARGET_DEFAULT_RETURN.
11501
340ba4bf
TT
115022014-02-19 Tom Tromey <tromey@redhat.com>
11503
11504 * target-delegates.c: Rebuild.
11505 * target.c (update_current_target): Don't inherit or default
11506 to_post_startup_inferior.
11507 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11508 TARGET_DEFAULT_IGNORE.
11509
7634da87
TT
115102014-02-19 Tom Tromey <tromey@redhat.com>
11511
11512 * target-delegates.c: Rebuild.
11513 * target.c (update_current_target): Don't inherit or default
11514 to_load.
11515 * target.h (struct target_ops) <to_load>: Use
11516 TARGET_DEFAULT_NORETURN.
11517
e19e919f
TT
115182014-02-19 Tom Tromey <tromey@redhat.com>
11519
11520 * target-delegates.c: Rebuild.
11521 * target.c (update_current_target): Don't inherit or default
11522 to_terminal_info.
11523 * target.h (struct target_ops) <to_terminal_info>: Use
11524 TARGET_DEFAULT_FUNC.
11525
c6ea8f79
TT
115262014-02-19 Tom Tromey <tromey@redhat.com>
11527
11528 * target-delegates.c: Rebuild.
11529 * target.c (update_current_target): Don't inherit or default
11530 to_terminal_save_ours.
11531 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11532 TARGET_DEFAULT_IGNORE.
11533
e4a733f1
TT
115342014-02-19 Tom Tromey <tromey@redhat.com>
11535
11536 * target-delegates.c: Rebuild.
11537 * target.c (update_current_target): Don't inherit or default
11538 to_terminal_ours.
11539 * target.h (struct target_ops) <to_terminal_ours>: Use
11540 TARGET_DEFAULT_IGNORE.
11541
74fcbef9
TT
115422014-02-19 Tom Tromey <tromey@redhat.com>
11543
11544 * target-delegates.c: Rebuild.
11545 * target.c (update_current_target): Don't inherit or default
11546 to_terminal_ours_for_output.
11547 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11548 TARGET_DEFAULT_IGNORE.
11549
ddeaacc9
TT
115502014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * target-delegates.c: Rebuild.
11553 * target.c (update_current_target): Don't inherit or default
11554 to_terminal_inferior.
11555 * target.h (struct target_ops) <to_terminal_inferior>: Use
11556 TARGET_DEFAULT_IGNORE.
11557
0343661d
TT
115582014-02-19 Tom Tromey <tromey@redhat.com>
11559
11560 * target-delegates.c: Rebuild.
11561 * target.c (update_current_target): Don't inherit or default
11562 to_terminal_init.
11563 * target.h (struct target_ops) <to_terminal_init>: Use
11564 TARGET_DEFAULT_IGNORE.
11565
77cdffe9
TT
115662014-02-19 Tom Tromey <tromey@redhat.com>
11567
11568 * target-delegates.c: Rebuild.
11569 * target.c (update_current_target): Don't inherit or default
11570 to_can_accel_watchpoint_condition.
11571 * target.h (struct target_ops)
11572 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11573
d03655e4
TT
115742014-02-19 Tom Tromey <tromey@redhat.com>
11575
11576 * target-delegates.c: Rebuild.
11577 * target.c (update_current_target): Don't inherit or default
11578 to_region_ok_for_hw_watchpoint.
11579 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11580 Use TARGET_DEFAULT_FUNC.
11581
65f160a9
TT
115822014-02-19 Tom Tromey <tromey@redhat.com>
11583
11584 * target-delegates.c: Rebuild.
11585 * target.c (update_current_target): Don't inherit or default
11586 to_watchpoint_addr_within_range.
11587 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11588 Use TARGET_DEFAULT_FUNC.
11589
61dd109f
TT
115902014-02-19 Tom Tromey <tromey@redhat.com>
11591
11592 * target-delegates.c: Rebuild.
11593 * target.c (update_current_target): Don't inherit or default
11594 to_remove_watchpoint.
11595 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11596 TARGET_DEFAULT_NORETURN.
11597
016facd4
TT
115982014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target-delegates.c: Rebuild.
11601 * target.c (update_current_target): Don't inherit or default
11602 to_insert_watchpoint.
11603 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11604 TARGET_DEFAULT_RETURN.
11605
418dabac
TT
116062014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * target-delegates.c: Rebuild.
11609 * target.c (update_current_target): Don't inherit or default
11610 to_remove_hw_breakpoint.
11611 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11612 TARGET_DEFAULT_RETURN.
11613
61b371f9
TT
116142014-02-19 Tom Tromey <tromey@redhat.com>
11615
11616 * target-delegates.c: Rebuild.
11617 * target.c (update_current_target): Don't inherit or default
11618 to_insert_hw_breakpoint.
11619 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11620 TARGET_DEFAULT_RETURN.
11621
52b51d06
TT
116222014-02-19 Tom Tromey <tromey@redhat.com>
11623
11624 * target-delegates.c: Rebuild.
11625 * target.c (update_current_target): Don't inherit or default
11626 to_can_use_hw_breakpoint.
11627 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11628 TARGET_DEFAULT_RETURN.
11629
f86e59b2
TT
116302014-02-19 Tom Tromey <tromey@redhat.com>
11631
11632 * target-delegates.c: Rebuild.
11633 * target.c (update_current_target): Don't inherit or default
11634 to_files_info.
11635 * target.h (struct target_ops) <to_files_info>: Use
11636 TARGET_DEFAULT_IGNORE.
11637
6c628163
TT
116382014-02-19 Tom Tromey <tromey@redhat.com>
11639
11640 * target-delegates.c: Rebuild.
11641 * target.c (update_current_target): Don't inherit or default
11642 to_store.
11643 * target.h (struct target_ops) <to_store>: Use
11644 TARGET_DEFAULT_NORETURN.
11645
bebd3233
TT
116462014-02-19 Tom Tromey <tromey@redhat.com>
11647
11648 * target-delegates.c: Rebuild.
11649 * target.c (update_current_target): Don't inherit or default
11650 to_post_attach.
11651 * target.h (struct target_ops) <to_post_attach>: Use
11652 TARGET_DEFAULT_IGNORE.
11653
a53f3625
TT
116542014-02-19 Tom Tromey <tromey@redhat.com>
11655
11656 * target-delegates.c: Rebuild.
11657 * target.c (update_current_target): Don't inherit or default
11658 to_rcmd.
11659 (default_rcmd): New function.
11660 (do_monitor_command): Unconditionally delegate.
11661 * target.h (struct target_ops) <to_rmcd>: Use
11662 TARGET_DEFAULT_FUNC.
11663
e9a29200
TT
116642014-02-19 Tom Tromey <tromey@redhat.com>
11665
11666 * target-delegates.c: Rebuild.
11667 * target.c (init_dummy_target): Don't initialize to_attach.
11668 (target_attach): Unconditionally delegate.
11669 * target.h (struct target_ops) <to_attach>: Use
11670 TARGET_DEFAULT_FUNC.
11671
09da0d0a
TT
116722014-02-19 Tom Tromey <tromey@redhat.com>
11673
11674 * target-delegates.c: Rebuild.
11675 * target.c (target_detach): Unconditionally delegate.
11676 (init_dummy_target): Don't initialize to_detach.
11677 * target.h (struct target_ops) <to_detach>: Use
11678 TARGET_DEFAULT_IGNORE.
11679
5436ff03
TT
116802014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11683 Add argument.
11684 (target_augmented_libraries_svr4_read): Add argument.
11685 * target.c (update_current_target): Update.
11686 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11687 argument.
11688
f0d960ea
TT
116892014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target.h (struct target_ops) <to_call_history_range>: Add
11692 argument.
11693 * target.c (target_call_history_range): Add argument.
11694 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11695 argument.
11696 (record_btrace_call_history_from): Update.
11697
ec0aea04
TT
116982014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target.h (struct target_ops) <to_call_history_from>: Add
11701 argument.
11702 * target.c (target_call_history_from): Add argument.
11703 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11704 argument.
11705
5df2fcba
TT
117062014-02-19 Tom Tromey <tromey@redhat.com>
11707
11708 * target.h (struct target_ops) <to_call_history>: Add argument.
11709 * target.c (target_call_history): Add argument.
11710 * record-btrace.c (record_btrace_call_history): Add 'self'
11711 argument.
11712
4e99c6b7
TT
117132014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target.h (struct target_ops) <to_insn_history_range>: Add
11716 argument.
11717 * target.c (target_insn_history_range): Add argument.
11718 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11719 argument.
11720 (record_btrace_insn_history_from): Update.
11721
9abc3ff3
TT
117222014-02-19 Tom Tromey <tromey@redhat.com>
11723
11724 * target.h (struct target_ops) <to_insn_history_from>: Add
11725 argument.
11726 * target.c (target_insn_history_from): Add argument.
11727 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11728 argument.
11729
7a6c5609
TT
117302014-02-19 Tom Tromey <tromey@redhat.com>
11731
11732 * target.h (struct target_ops) <to_insn_history>: Add argument.
11733 * target.c (target_insn_history): Add argument.
11734 * record-btrace.c (record_btrace_insn_history): Add 'self'
11735 argument.
11736
606183ac
TT
117372014-02-19 Tom Tromey <tromey@redhat.com>
11738
11739 * target.h (struct target_ops) <to_goto_record>: Add argument.
11740 * target.c (target_goto_record): Add argument.
11741 * record-full.c (record_full_goto): Add 'self' argument.
11742 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11743
307a1b91
TT
117442014-02-19 Tom Tromey <tromey@redhat.com>
11745
11746 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11747 * target.c (target_goto_record_end): Add argument.
11748 * record-full.c (record_full_goto_end): Add 'self' argument.
11749 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11750
08475817
TT
117512014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * target.h (struct target_ops) <to_goto_record_begin>: Add
11754 argument.
11755 * target.c (target_goto_record_begin): Add argument.
11756 * record-full.c (record_full_goto_begin): Add 'self' argument.
11757 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11758 argument.
11759
1c63c994
TT
117602014-02-19 Tom Tromey <tromey@redhat.com>
11761
11762 * target.h (struct target_ops) <to_record_is_replaying>: Add
11763 argument.
11764 * target.c (target_record_is_replaying): Add argument.
11765 * record-full.c (record_full_is_replaying): Add 'self' argument.
11766 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11767 argument.
11768 (record_btrace_xfer_partial, record_btrace_store_registers)
11769 (record_btrace_prepare_to_store, record_btrace_resume)
11770 (record_btrace_wait, record_btrace_decr_pc_after_break)
11771 (record_btrace_find_new_threads, record_btrace_thread_alive):
11772 Update.
11773
d1b55219
TT
117742014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * target.h (struct target_ops) <to_delete_record>: Add argument.
11777 * target.c (target_delete_record): Add argument.
11778 * record-full.c (record_full_delete): Add 'self' argument.
11779
1390f529
TT
117802014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * target.h (struct target_ops) <to_save_record>: Add argument.
11783 * target.c (target_save_record): Add argument.
11784 * record-full.c (record_full_save): Add 'self' argument.
11785 (record_full_save): Add 'self' argument.
11786
630d6a4a
TT
117872014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target.h (struct target_ops) <to_info_record>: Add argument.
11790 * target.c (target_info_record): Add argument.
11791 * record.c (info_record_command): Add argument.
11792 * record-full.c (record_full_info): Add 'self' argument.
11793 * record-btrace.c (record_btrace_info): Add 'self' argument.
11794
c6cd7c02
TT
117952014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11798 * target.c (target_stop_recording): Add argument.
11799 * record.c (record_stop): Add argument.
11800 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11801 argument.
11802
39c49f83
TT
118032014-02-19 Tom Tromey <tromey@redhat.com>
11804
11805 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11806 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11807 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11808 argument.
11809 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11810 (_initialize_amd64_linux_nat): Use it.
11811 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11812 (_initialize_i386_linux_nat): Use it.
11813
1777056d
TT
118142014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11817 * target.c (target_teardown_btrace): Add argument.
11818 * remote.c (remote_teardown_btrace): Add 'self' argument.
11819 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11820 argument.
11821 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11822 argument.
11823
25e95349
TT
118242014-02-19 Tom Tromey <tromey@redhat.com>
11825
11826 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11827 * target.c (target_disable_btrace): Add argument.
11828 * remote.c (remote_disable_btrace): Add 'self' argument.
11829 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11830 argument.
11831 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11832 argument.
11833
e3c49f88
TT
118342014-02-19 Tom Tromey <tromey@redhat.com>
11835
11836 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11837 * target.c (target_enable_btrace): Add argument.
11838 * remote.c (remote_enable_btrace): Add 'self' argument.
11839 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11840 argument.
11841 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11842 argument.
11843
fe38f897
TT
118442014-02-19 Tom Tromey <tromey@redhat.com>
11845
11846 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11847 (target_can_use_agent): Add argument.
11848 * target.c (update_current_target): Update.
11849 * remote.c (remote_can_use_agent): Add 'self' argument.
11850 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11851
2c152180
TT
118522014-02-19 Tom Tromey <tromey@redhat.com>
11853
11854 * target.h (struct target_ops) <to_use_agent>: Add argument.
11855 (target_use_agent): Add argument.
11856 * target.c (update_current_target): Update.
11857 * remote.c (remote_use_agent): Add 'self' argument.
11858 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11859
a893e81f
TT
118602014-02-19 Tom Tromey <tromey@redhat.com>
11861
11862 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11863 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11864 (target_traceframe_info): Add argument.
11865 * target.c (update_current_target): Update.
11866 * remote.c (remote_traceframe_info): Add 'self' argument.
11867 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11868
c686c57f
TT
118692014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target.h (target_static_tracepoint_markers_by_strid): Add
11872 argument.
11873 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11874 'self' argument.
11875 * target.c (update_current_target): Update.
11876 * remote.c (struct target_ops)
11877 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11878 * linux-nat.c (struct target_ops)
11879 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11880
61fc905d
TT
118812014-02-19 Tom Tromey <tromey@redhat.com>
11882
11883 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11884 Add argument.
11885 (target_static_tracepoint_marker_at): Add argument.
11886 * target.c (update_current_target): Update.
11887 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11888 argument.
11889
c378d69d
TT
118902014-02-19 Tom Tromey <tromey@redhat.com>
11891
11892 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11893 (target_set_permissions): Add argument.
11894 * target.c (update_current_target): Update.
11895 * remote.c (remote_set_permissions): Add 'self' argument.
11896 (remote_start_remote): Update.
11897
bd7ae0f5
TT
118982014-02-19 Tom Tromey <tromey@redhat.com>
11899
11900 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11901 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11902 (target_get_tib_address): Add argument.
11903 * target.c (update_current_target): Update.
11904 * remote.c (remote_get_tib_address): Add 'self' argument.
11905
d9e68a2c
TT
119062014-02-19 Tom Tromey <tromey@redhat.com>
11907
11908 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11909 (target_set_trace_notes): Add argument.
11910 * target.c (update_current_target): Update.
11911 * remote.c (remote_set_trace_notes): Add 'self' argument.
11912
4da384be
TT
119132014-02-19 Tom Tromey <tromey@redhat.com>
11914
11915 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11916 argument.
11917 (target_set_trace_buffer_size): Add argument.
11918 * target.c (update_current_target): Update.
11919 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11920
736d5b1f
TT
119212014-02-19 Tom Tromey <tromey@redhat.com>
11922
11923 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11924 argument.
11925 (target_set_circular_trace_buffer): Add argument.
11926 * target.c (update_current_target): Update.
11927 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11928 argument.
11929
37b25738
TT
119302014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11933 argument.
11934 (target_set_disconnected_tracing): Add argument.
11935 * target.c (update_current_target): Update.
11936 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11937
0e67620a
TT
119382014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * target.h (struct target_ops)
11941 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11942 (target_get_min_fast_tracepoint_insn_len): Add argument.
11943 * target.c (update_current_target): Update.
11944 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11945 argument.
11946
88ee6f45
TT
119472014-02-19 Tom Tromey <tromey@redhat.com>
11948
11949 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11950 argument.
11951 (target_get_raw_trace_data): Add argument.
11952 * target.c (update_current_target): Update.
11953 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11954
181e3713
TT
119552014-02-19 Tom Tromey <tromey@redhat.com>
11956
11957 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11958 Add argument.
11959 (target_upload_trace_state_variables): Add argument.
11960 * target.c (update_current_target): Update.
11961 * remote.c (remote_upload_trace_state_variables): Add 'self'
11962 argument.
11963 (remote_start_remote): Update.
11964
ab6617cc
TT
119652014-02-19 Tom Tromey <tromey@redhat.com>
11966
11967 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11968 argument.
11969 (target_upload_tracepoints): Add argument.
11970 * target.c (update_current_target): Update.
11971 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11972 (remote_start_remote): Update.
11973
dc3decaf
TT
119742014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11977 (target_save_trace_data): Add argument.
11978 * target.c (update_current_target): Update.
11979 * remote.c (remote_save_trace_data): Add 'self' argument.
11980
4011015b
TT
119812014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11984 argument.
11985 * target.h (struct target_ops)
11986 <to_get_trace_state_variable_value>: Add argument.
11987 (target_get_trace_state_variable_value): Add argument.
11988 * target.c (update_current_target): Update.
11989 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11990 argument.
11991 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11992
bd4c6793
TT
119932014-02-19 Tom Tromey <tromey@redhat.com>
11994
11995 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11996 * target.h (struct target_ops) <to_trace_find>: Add argument.
11997 (target_trace_find): Add argument.
11998 * target.c (update_current_target): Update.
11999 * remote.c (remote_trace_find): Add 'self' argument.
12000 * ctf.c (ctf_trace_find): Add 'self' argument.
12001
74499f1b
TT
120022014-02-19 Tom Tromey <tromey@redhat.com>
12003
12004 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12005 (target_trace_stop): Add argument.
12006 * target.c (update_current_target): Update.
12007 * remote.c (remote_trace_stop): Add 'self' argument.
12008
db90e85c
TT
120092014-02-19 Tom Tromey <tromey@redhat.com>
12010
12011 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12012 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12013 argument.
12014 (target_get_tracepoint_status): Add argument.
12015 * target.c (update_current_target): Update.
12016 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12017
8bd200f1
TT
120182014-02-19 Tom Tromey <tromey@redhat.com>
12019
12020 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12021 * target.h (struct target_ops) <to_get_trace_status>: Add
12022 argument.
12023 (target_get_trace_status): Add argument.
12024 * target.c (update_current_target): Update.
12025 * remote.c (remote_get_trace_status): Add 'self' argument.
12026 (remote_start_remote, remote_can_download_tracepoint): Update.
12027 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12028
e2d1aae3
TT
120292014-02-19 Tom Tromey <tromey@redhat.com>
12030
12031 * target.h (struct target_ops) <to_trace_start>: Add argument.
12032 (target_trace_start): Add argument.
12033 * target.c (update_current_target): Update.
12034 * remote.c (remote_trace_start): Add 'self' argument.
12035
583f9a86
TT
120362014-02-19 Tom Tromey <tromey@redhat.com>
12037
12038 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12039 Add argument.
12040 (target_trace_set_readonly_regions): Add argument.
12041 * target.c (update_current_target): Update.
12042 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12043 argument.
12044
780b049c
TT
120452014-02-19 Tom Tromey <tromey@redhat.com>
12046
12047 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12048 argument.
12049 (target_disable_tracepoint): Add argument.
12050 * target.c (update_current_target): Update.
12051 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12052
46670d57
TT
120532014-02-19 Tom Tromey <tromey@redhat.com>
12054
12055 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12056 argument.
12057 (target_enable_tracepoint): Add argument.
12058 * target.c (update_current_target): Update.
12059 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12060
559d2b81
TT
120612014-02-19 Tom Tromey <tromey@redhat.com>
12062
12063 * target.h (struct target_ops) <to_download_trace_state_variable>:
12064 Add argument.
12065 (target_download_trace_state_variable): Add argument.
12066 * target.c (update_current_target): Update.
12067 * remote.c (remote_download_trace_state_variable): Add 'self'
12068 argument.
12069
a52a8357
TT
120702014-02-19 Tom Tromey <tromey@redhat.com>
12071
12072 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12073 argument.
12074 (target_can_download_tracepoint): Add argument.
12075 * target.c (update_current_target): Update.
12076 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12077
548f7808
TT
120782014-02-19 Tom Tromey <tromey@redhat.com>
12079
12080 * target.h (struct target_ops) <to_download_tracepoint>: Add
12081 argument.
12082 (target_download_tracepoint): Add argument.
12083 * target.c (update_current_target): Update.
12084 * remote.c (remote_download_tracepoint): Add 'self' argument.
12085
ecae04e1
TT
120862014-02-19 Tom Tromey <tromey@redhat.com>
12087
12088 * target.h (struct target_ops) <to_trace_init>: Add argument.
12089 (target_trace_init): Add argument.
12090 * target.c (update_current_target): Update.
12091 * remote.c (remote_trace_init): Add 'self' argument.
12092
fab5aa7c
TT
120932014-02-19 Tom Tromey <tromey@redhat.com>
12094
12095 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12096 * target.c (target_fileio_readlink): Add argument.
12097 * remote.c (remote_hostio_readlink): Add 'self' argument.
12098 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12099
dbbca37d
TT
121002014-02-19 Tom Tromey <tromey@redhat.com>
12101
12102 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12103 * target.c (target_fileio_unlink): Add argument.
12104 * remote.c (remote_hostio_unlink): Add 'self' argument.
12105 (remote_file_delete): Update.
12106 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12107
df39ea25
TT
121082014-02-19 Tom Tromey <tromey@redhat.com>
12109
12110 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12111 * target.c (target_fileio_close): Add argument.
12112 * remote.c (remote_hostio_close): Add 'self' argument.
12113 (remote_hostio_close_cleanup): Update.
12114 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12115 Update.
12116 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12117
a3be983c
TT
121182014-02-19 Tom Tromey <tromey@redhat.com>
12119
12120 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12121 * target.c (target_fileio_pread): Add argument.
12122 * remote.c (remote_hostio_pread): Add 'self' argument.
12123 (remote_bfd_iovec_pread, remote_file_get): Update.
12124 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12125
0d866f62
TT
121262014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12129 * target.c (target_fileio_pwrite): Add argument.
12130 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12131 (remote_file_put): Update.
12132 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12133
cd897586
TT
121342014-02-19 Tom Tromey <tromey@redhat.com>
12135
12136 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12137 * target.c (target_fileio_open): Add argument.
12138 * remote.c (remote_hostio_open): Add 'self' argument.
12139 (remote_bfd_iovec_open): Add 'self' argument.
12140 (remote_file_put): Add 'self' argument.
12141 (remote_file_get): Add 'self' argument.
12142 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12143
78eff0ec
TT
121442014-02-19 Tom Tromey <tromey@redhat.com>
12145
12146 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12147 Add argument.
12148 (target_can_run_breakpoint_commands): Add argument.
12149 * target.c (update_current_target): Update.
12150 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12151 argument.
12152 (remote_insert_breakpoint): Add 'self' argument.
12153 (remote_insert_hw_breakpoint): Add 'self' argument.
12154 (remote_can_run_breakpoint_commands): Add 'self' argument.
12155
efcc2da7
TT
121562014-02-19 Tom Tromey <tromey@redhat.com>
12157
12158 * target.h (struct target_ops)
12159 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12160 (target_supports_evaluation_of_breakpoint_conditions): Add
12161 argument.
12162 * target.c (update_current_target): Update.
12163 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12164 argument.
12165 (remote_insert_breakpoint): Add 'self' argument.
12166 (remote_insert_hw_breakpoint): Add 'self' argument.
12167 (remote_supports_cond_breakpoints): Add 'self' argument.
12168
6de37a3a
TT
121692014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12172 argument.
12173 (target_supports_string_tracing): Add argument.
12174 * target.c (update_current_target): Update.
12175 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12176
2bfc0540
TT
121772014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * target.h (struct target_ops)
12180 <to_supports_disable_randomization>: Add argument.
12181 * target.c (find_default_supports_disable_randomization): Add
12182 argument.
12183 (target_supports_disable_randomization): Add argument.
12184 (find_default_supports_disable_randomization): Add 'self'
12185 argument.
12186 * remote.c (extended_remote_supports_disable_randomization): Add
12187 'self' argument.
12188 (remote_supports_disable_randomization): Add 'self' argument.
12189 (extended_remote_create_inferior): Update.
12190 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12191 'self' argument.
12192
7d178d6a
TT
121932014-02-19 Tom Tromey <tromey@redhat.com>
12194
12195 * target.h (struct target_ops)
12196 <to_supports_enable_disable_tracepoint>: Add argument.
12197 (target_supports_enable_disable_tracepoint): Add argument.
12198 * target.c (update_current_target): Update.
12199 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12200 argument.
12201
86ce2668
TT
122022014-02-19 Tom Tromey <tromey@redhat.com>
12203
12204 * target.h (struct target_ops) <to_supports_multi_process>: Add
12205 argument.
12206 (target_supports_multi_process): Add argument.
12207 * target.c (update_current_target): Update.
12208 * remote.c (remote_supports_multi_process): Add 'self' argument.
12209 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12210 argument.
12211 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12212 argument.
12213
4c612759
TT
122142014-02-19 Tom Tromey <tromey@redhat.com>
12215
12216 * target.h (struct target_ops) <to_execution_direction>: Add
12217 argument.
12218 (target_execution_direction): Add argument.
12219 * target.c (default_execution_direction): Add 'self' argument.
12220 * record-full.c (record_full_execution_direction): Add 'self'
12221 argument.
12222
19db3e69
TT
122232014-02-19 Tom Tromey <tromey@redhat.com>
12224
12225 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12226 argument.
12227 (target_can_execute_reverse): Add argument.
12228 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12229 * record-full.c (record_full_can_execute_reverse): Add 'self'
12230 argument.
12231 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12232 argument.
12233
1e6b91a4
TT
122342014-02-19 Tom Tromey <tromey@redhat.com>
12235
12236 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12237 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12238 argument.
12239 (target_get_ada_task_ptid): Add argument.
12240 * target.c (update_current_target): Update.
12241 (default_get_ada_task_ptid): Add 'self' argument.
12242 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12243 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12244 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12245 argument.
12246 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12247 argument.
12248 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12249 argument.
12250 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12251 argument.
12252 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12253 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12254 argument.
12255
3c80fb48
TT
122562014-02-19 Tom Tromey <tromey@redhat.com>
12257
12258 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12259 (target_goto_bookmark): Add argument.
12260 * target.c (dummy_goto_bookmark): Add 'self' argument.
12261 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12262
dd0e2830
TT
122632014-02-19 Tom Tromey <tromey@redhat.com>
12264
12265 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12266 (target_get_bookmark): Add argument.
12267 * target.c (dummy_get_bookmark): Add 'self' argument.
12268 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12269
fc6691b2
TT
122702014-02-19 Tom Tromey <tromey@redhat.com>
12271
12272 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12273 argument.
12274 (target_make_corefile_notes): Add argument.
12275 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12276 * procfs.c (procfs_make_note_section): Add 'self' argument.
12277 (procfs_make_note_section): Add 'self' argument.
12278 (procfs_make_note_section): Add 'self' argument.
12279 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12280 argument.
12281 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12282 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12283 * exec.c (exec_make_note_section): Add 'self' argument.
12284 (exec_make_note_section): Add 'self' argument.
12285
2e73927c
TT
122862014-02-19 Tom Tromey <tromey@redhat.com>
12287
12288 * target.h (struct target_ops) <to_find_memory_regions>: Add
12289 argument.
12290 (target_find_memory_regions): Add argument.
12291 * target.c (dummy_find_memory_regions): Add 'self' argument.
12292 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12293 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12294 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12295 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12296 * exec. (exec_do_find_memory_regions): New global.
12297 (exec_set_find_memory_regions): Rewrite.
12298 (exec_find_memory_regions): New function.
12299 (init_exec_ops): Use exec_find_memory_regions.
12300
2a9a2795
TT
123012014-02-19 Tom Tromey <tromey@redhat.com>
12302
12303 * target.h (struct target_ops) <to_supports_non_stop>: Add
12304 argument.
12305 * target.c (find_default_supports_non_stop): Add argument.
12306 (target_supports_non_stop): Add argument.
12307 (find_default_supports_non_stop): Add 'self' argument.
12308 * remote.c (remote_supports_non_stop): Add 'self' argument.
12309 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12310
4ab76ea3
TT
123112014-02-19 Tom Tromey <tromey@redhat.com>
12312
12313 * target.h (struct target_ops) <to_log_command>: Add argument.
12314 (target_log_command): Add argument.
12315 * serial.h (serial_log_command): Add 'self' argument.
12316 * serial.c (serial_log_command): Add 'self' argument.
12317
8dd27370
TT
123182014-02-19 Tom Tromey <tromey@redhat.com>
12319
12320 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12321 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12322 argument.
12323 (target_pid_to_exec_file): Add argument.
12324 * target.c (debug_to_pid_to_exec_file): Add argument.
12325 (update_current_target): Update.
12326 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12327 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12328 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12329 (linux_handle_extended_wait): Update.
12330 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12331 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12332 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12333 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12334
1aac633b
TT
123352014-02-19 Tom Tromey <tromey@redhat.com>
12336
12337 * target.h (struct target_ops) <to_rcmd>: Add argument.
12338 (target_rcmd): Add argument.
12339 * target.c (debug_to_rcmd): Add argument.
12340 (update_current_target, do_monitor_command): Update.
12341 * remote.c (remote_rcmd): Add 'self' argument.
12342 * monitor.c (monitor_rcmd): Add 'self' argument.
12343
1eab8a48
TT
123442014-02-19 Tom Tromey <tromey@redhat.com>
12345
12346 * windows-nat.c (windows_stop): Add 'self' argument.
12347 * target.h (struct target_ops) <to_stop>: Add argument.
12348 * target.c (target_stop): Add argument.
12349 (debug_to_stop): Add argument.
12350 (update_current_target): Update.
12351 * remote.c (remote_stop): Add 'self' argument.
12352 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12353 (gdbsim_cntrl_c): Update.
12354 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12355 * procfs.c (procfs_stop): Add 'self' argument.
12356 * nto-procfs.c (procfs_stop): Add 'self' argument.
12357 * monitor.c (monitor_stop): Add 'self' argument.
12358 (monitor_open): Update.
12359 * linux-nat.c (linux_nat_stop): Add argument.
12360 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12361 * gnu-nat.c (gnu_stop): Add 'self' argument.
12362 * darwin-nat.c (darwin_stop): Add 'self' argument.
12363
503a628d
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * target.h (struct target_ops) <to_thread_name>: Add argument.
12367 * target.c (target_thread_name): Add argument.
12368 (update_current_target): Update.
12369 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12370
c15906d8
TT
123712014-02-19 Tom Tromey <tromey@redhat.com>
12372
12373 * target.h (struct target_ops) <to_extra_thread_info>: Add
12374 argument.
12375 (target_extra_thread_info): Add argument.
12376 * target.c (update_current_target): Update.
12377 * remote.c (remote_threads_extra_info): Add 'self' argument.
12378 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12379 argument.
12380 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12381 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12382 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12383 argument.
12384 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12385 argument.
12386 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12387 argument.
12388 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12389 argument.
12390
daf5e9b6
TT
123912014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target.h (struct target_ops) <to_program_signals>: Add argument.
12394 * target.c (target_program_signals): Add argument.
12395 * remote.c (remote_program_signals): Add 'self' argument.
12396
94bedb42
TT
123972014-02-19 Tom Tromey <tromey@redhat.com>
12398
12399 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12400 * target.c (target_pass_signals): Add argument.
12401 * remote.c (remote_pass_signals): Add 'self' argument.
12402 (remote_start_remote): Update.
12403 * procfs.c (procfs_pass_signals): Add 'self' argument.
12404 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12405 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12406 (linux_nat_create_inferior, linux_nat_attach): Update.
12407
da82bd6b
TT
124082014-02-19 Tom Tromey <tromey@redhat.com>
12409
12410 * windows-nat.c (windows_can_run): Add 'self' argument.
12411 * target.h (struct target_ops) <to_can_run>: Add argument.
12412 (target_can_run): Add argument.
12413 * target.c (debug_to_can_run): Add argument.
12414 (update_current_target): Update.
12415 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12416 * inf-child.c (inf_child_can_run): Add 'self' argument.
12417 * go32-nat.c (go32_can_run): Add 'self' argument.
12418
d796e1d6
TT
124192014-02-19 Tom Tromey <tromey@redhat.com>
12420
12421 * target.h (struct target_ops) <to_has_exited>: Add argument.
12422 (target_has_exited): Add argument.
12423 * target.c (debug_to_has_exited): Add argument.
12424 (update_current_target): Update.
12425
ff214e67
TT
124262014-02-19 Tom Tromey <tromey@redhat.com>
12427
12428 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12429 argument.
12430 (target_set_syscall_catchpoint): Add argument.
12431 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12432 argument.
12433 * target.c (update_current_target): Update.
12434
758e29d2
TT
124352014-02-19 Tom Tromey <tromey@redhat.com>
12436
12437 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12438 argument.
12439 (target_remove_exec_catchpoint): Add argument.
12440 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12441 (update_current_target): Update.
12442 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12443 argument.
12444
ba025e51
TT
124452014-02-19 Tom Tromey <tromey@redhat.com>
12446
12447 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12448 argument.
12449 (target_insert_exec_catchpoint): Add argument.
12450 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12451 (update_current_target): Update.
12452 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12453 argument.
12454
e98cf0cd
TT
124552014-02-19 Tom Tromey <tromey@redhat.com>
12456
12457 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12458 argument.
12459 (target_remove_vfork_catchpoint): Add argument.
12460 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12461 (update_current_target): Update.
12462 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12463 argument.
12464
3ecc7da0
TT
124652014-02-19 Tom Tromey <tromey@redhat.com>
12466
12467 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12468 argument.
12469 (target_insert_vfork_catchpoint): Add argument.
12470 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12471 (update_current_target): Update.
12472 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12473 argument.
12474
973fc227
TT
124752014-02-19 Tom Tromey <tromey@redhat.com>
12476
12477 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12478 argument.
12479 (target_remove_fork_catchpoint): Add argument.
12480 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12481 (update_current_target): Update.
12482 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12483 argument.
12484
a863b201
TT
124852014-02-19 Tom Tromey <tromey@redhat.com>
12486
12487 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12488 argument.
12489 (target_insert_fork_catchpoint): Add argument.
12490 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12491 (update_current_target): Update.
12492 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12493 argument.
12494
2e97a79e
TT
124952014-02-19 Tom Tromey <tromey@redhat.com>
12496
12497 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12498 argument.
12499 (target_post_startup_inferior): Add argument.
12500 * target.c (debug_to_post_startup_inferior): Add argument.
12501 (update_current_target): Update.
12502 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12503 argument.
12504 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12505 argument.
12506 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12507 argument.
12508 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12509 argument.
12510 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12511 'self' argument.
12512 (super_post_startup_inferior): Likewise.
12513 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12514 'self' argument.
12515 (super_post_startup_inferior): Likewise.
12516 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12517 Add 'self' argument.
12518 (super_post_startup_inferior): Likewise.
12519
71a9f134
TT
125202014-02-19 Tom Tromey <tromey@redhat.com>
12521
12522 * target.h (struct target_ops) <to_load>: Add argument.
12523 * target.c (target_load): Add argument.
12524 (debug_to_load): Add argument.
12525 (update_current_target): Update.
12526 * remote.c (remote_load): Add 'self' argument.
12527 * remote-sim.c (gdbsim_load): Add 'self' argument.
12528 * remote-mips.c (mips_load): Add 'self' argument.
12529 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12530 * monitor.c (monitor_load): Add 'self' argument.
12531 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12532
0a4f40a2
TT
125332014-02-19 Tom Tromey <tromey@redhat.com>
12534
12535 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12536 (target_terminal_info): Add argument.
12537 * target.c (debug_to_terminal_info): Add argument.
12538 (default_terminal_info): Likewise.
12539 * inflow.c (child_terminal_info): Add 'self' argument.
12540 * inferior.h (child_terminal_info): Add 'self' argument.
12541 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12542
ae3bd431
TT
125432014-02-19 Tom Tromey <tromey@redhat.com>
12544
12545 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12546 argument.
12547 (target_terminal_save_ours): Add argument.
12548 * target.c (debug_to_terminal_save_ours): Add argument.
12549 (update_current_target): Update.
12550 * inflow.c (terminal_save_ours): Add 'self' argument.
12551 * inferior.h (terminal_save_ours): Add 'self' argument.
12552
e3594fd1
TT
125532014-02-19 Tom Tromey <tromey@redhat.com>
12554
12555 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12556 (target_terminal_ours): Add argument.
12557 * target.c (debug_to_terminal_ours): Add argument.
12558 (update_current_target): Update.
12559 * remote.c (remote_terminal_ours): Add 'self' argument.
12560 (remote_close): Update.
12561 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12562 * inflow.c (terminal_ours): Add 'self' argument.
12563 * inferior.h (terminal_ours): Add 'self' argument.
12564 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12565
2e1e1a19
TT
125662014-02-19 Pedro Alves <palves@redhat.com>
12567 Tom Tromey <tromey@redhat.com>
12568
12569 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12570 argument.
12571 (target_terminal_ours_for_output): Add argument.
12572 * target.c (debug_to_terminal_ours_for_output): Add argument.
12573 (update_current_target): Update.
12574 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12575 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12576 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12577
d2f640d4
TT
125782014-02-19 Tom Tromey <tromey@redhat.com>
12579
12580 * target.h (struct target_ops) <to_terminal_inferior>: Add
12581 argument.
12582 * target.c (target_terminal_inferior): Add argument.
12583 (update_current_target): Update.
12584 * remote.c (remote_terminal_inferior): Add 'self' argument.
12585 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12586 * inflow.c (terminal_inferior): Add 'self' argument.
12587 * inferior.h (terminal_inferior): Add 'self' argument.
12588 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12589 (go32_terminal_inferior): Add 'self' argument.
12590
c42bf286
TT
125912014-02-19 Tom Tromey <tromey@redhat.com>
12592
12593 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12594 (target_terminal_init): Add argument.
12595 * target.c (debug_to_terminal_init): Add argument.
12596 (update_current_target): Update.
12597 * inflow.c (terminal_init_inferior): Add 'self' argument.
12598 * inferior.h (terminal_init_inferior): Add 'self' argument.
12599 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12600 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12601
c3a5ff89
TT
126022014-02-19 Tom Tromey <tromey@redhat.com>
12603
12604 * target.h (struct target_ops)
12605 <to_can_accel_watchpoint_condition>: Add argument.
12606 (target_can_accel_watchpoint_condition): Add argument.
12607 * target.c (debug_to_can_accel_watchpoint_condition): Add
12608 argument.
12609 (update_current_target): Update.
12610 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12611 'self' argument.
12612
31568a15
TT
126132014-02-19 Tom Tromey <tromey@redhat.com>
12614
12615 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12616 Add argument.
12617 (target_region_ok_for_hw_watchpoint): Add argument.
12618 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12619 (default_region_ok_for_hw_watchpoint): Add argument.
12620 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12621 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12622 argument.
12623 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12624 argument.
12625 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12626 argument.
12627 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12628 'self' argument.
12629 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12630 'self' argument.
12631 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12632 'self' argument.
12633 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12634 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12635 'self' argument.
12636 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12637 Add 'self' argument.
12638
7bb99c53
TT
126392014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12642 argument.
12643 (target_insert_watchpoint): Add argument.
12644 * target.c (debug_to_insert_watchpoint): Add argument.
12645 (update_current_target): Update.
12646 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12647 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12648 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12649 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12650 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12651 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12652 argument.
12653 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12654 (procfs_insert_hw_watchpoint): Add 'self' argument.
12655 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12656 argument.
12657 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12658 argument.
12659 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12660 argument.
12661 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12662 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12663 argument.
12664 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12665 'self' argument.
12666
11b5219a
TT
126672014-02-19 Tom Tromey <tromey@redhat.com>
12668
12669 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12670 argument.
12671 (target_remove_watchpoint): Add argument.
12672 * target.c (debug_to_remove_watchpoint): Add argument.
12673 (update_current_target): Update.
12674 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12675 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12676 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12677 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12678 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12679 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12680 argument.
12681 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12682 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12683 argument.
12684 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12685 argument.
12686 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12687 argument.
12688 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12689 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12690 argument.
12691 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12692 'self' argument.
12693
a64dc96c
TT
126942014-02-19 Tom Tromey <tromey@redhat.com>
12695
12696 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12697 argument.
12698 (target_remove_hw_breakpoint): Add argument.
12699 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12700 (update_current_target): Update.
12701 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12702 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12703 argument.
12704 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12705 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12706 argument.
12707 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12708 'self' argument.
12709
23a26771
TT
127102014-02-19 Tom Tromey <tromey@redhat.com>
12711
12712 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12713 argument.
12714 (target_insert_hw_breakpoint): Add argument.
12715 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12716 (update_current_target): Update.
12717 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12718 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12719 argument.
12720 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12721 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12722 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12723 argument.
12724 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12725 'self' argument.
12726
5461485a
TT
127272014-02-19 Tom Tromey <tromey@redhat.com>
12728
12729 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12730 argument.
12731 (target_can_use_hardware_watchpoint): Add argument.
12732 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12733 (update_current_target): Update.
12734 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12735 argument.
12736 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12737 argument.
12738 * remote.c (remote_check_watch_resources): Add 'self' argument.
12739 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12740 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12741 argument.
12742 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12743 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12744 argument.
12745 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12746 argument.
12747 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12748 argument.
12749 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12750 argument.
12751 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12752 argument.
12753 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12754 argument.
12755 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12756 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12757 argument.
12758 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12759 'self' argument.
12760
f045800c
TT
127612014-02-19 Tom Tromey <tromey@redhat.com>
12762
12763 * target.h (struct target_ops) <to_post_attach>: Add argument.
12764 (target_post_attach): Add argument.
12765 * target.c (debug_to_post_attach): Add argument.
12766 (update_current_target): Update.
12767 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12768 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12769 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12770 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12771 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12772
de90e03d
TT
127732014-02-19 Tom Tromey <tromey@redhat.com>
12774
12775 * windows-nat.c (windows_close): Add 'self' argument.
12776 * tracepoint.c (tfile_close): Add 'self' argument.
12777 * target.h (struct target_ops) <to_close>: Add argument.
12778 * target.c (target_close): Add argument.
12779 (update_current_target): Update.
12780 * remote.c (remote_close): Add 'self' argument.
12781 * remote-sim.c (gdbsim_close): Add 'self' argument.
12782 * remote-mips.c (mips_close): Add 'self' argument.
12783 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12784 * record-full.c (record_full_close): Add 'self' argument.
12785 * record-btrace.c (record_btrace_close): Add 'self' argument.
12786 * monitor.h (monitor_close): Add 'self' argument.
12787 * monitor.c (monitor_close): Add 'self' argument.
12788 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12789 * linux-nat.c (linux_nat_close): Add argument.
12790 * go32-nat.c (go32_close): Add 'self' argument.
12791 * exec.c (exec_close_1): Add 'self' argument.
12792 * ctf.c (ctf_close): Add 'self' argument.
12793 * corelow.c (core_close): Add 'self' argument.
12794 (core_close_cleanup): Update.
12795 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12796 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12797
9dd130a0
TT
127982014-02-19 Tom Tromey <tromey@redhat.com>
12799
12800 * remote.c (remote_load): New function.
12801 (init_remote_ops): Use it.
12802
46917d26
TT
128032014-02-19 Tom Tromey <tromey@redhat.com>
12804
12805 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12806 argument.
12807 * common/linux-btrace.h (linux_supports_btrace): Update.
12808 * remote.c (remote_supports_btrace): Add "self" argument.
12809 * target-delegates.c: Rebuild.
12810 * target.c (target_supports_btrace): Remove.
12811 * target.h (struct target_ops) <to_supports_btrace>: Add
12812 target_ops argument.
12813 (target_supports_btrace): New define.
12814
6b84065d
TT
128152014-02-19 Tom Tromey <tromey@redhat.com>
12816
12817 * record-full.c (record_full_beneath_to_resume_ops)
12818 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12819 (record_full_beneath_to_wait)
12820 (record_full_beneath_to_store_registers_ops)
12821 (record_full_beneath_to_store_registers)
12822 (record_full_beneath_to_xfer_partial_ops)
12823 (record_full_beneath_to_xfer_partial)
12824 (record_full_beneath_to_insert_breakpoint_ops)
12825 (record_full_beneath_to_insert_breakpoint)
12826 (record_full_beneath_to_remove_breakpoint_ops)
12827 (record_full_beneath_to_remove_breakpoint)
12828 (record_full_beneath_to_stopped_by_watchpoint)
12829 (record_full_beneath_to_stopped_data_address)
12830 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12831 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12832 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12833 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12834 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12835 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12836 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12837 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12838 (record_full_resume, record_full_wait_1)
12839 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12840 (record_full_store_registers, record_full_xfer_partial)
12841 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12842 (record_full_async, record_full_core_xfer_partial): Use target
12843 delegation.
12844 * target-delegates.c: Rebuild.
12845 * target.c (current_xfer_partial): Remove.
12846 (update_current_target): Do not INHERIT or de_fault
12847 to_insert_breakpoint, to_remove_breakpoint,
12848 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12849 to_is_async_p, to_async. Do not set to_xfer_partial field.
12850 (default_xfer_partial): Simplify.
12851 (current_xfer_partial): Remove.
12852 (target_wait, target_resume): Simplify.
12853 (find_default_can_async_p, find_default_is_async_p): Update.
12854 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12855 to_xfer_partial, to_stopped_by_watchpoint,
12856 to_stopped_data_address.
12857 (target_store_registers): Simplify.
12858 (forward_target_remove_breakpoint)
12859 (forward_target_insert_breakpoint): Remove.
12860 (target_remove_breakpoint, target_insert_breakpoint)
12861 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12862 * target.h (struct target_ops) <to_resume, to_wait,
12863 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12864 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12865 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12866 markup.
12867 (forward_target_remove_breakpoint)
12868 (forward_target_insert_breakpoint): Remove.
12869 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12870 directly.
12871 (record_btrace_insert_breakpoint): Delegate directly.
12872
1101cb7b
TT
128732014-02-19 Tom Tromey <tromey@redhat.com>
12874
12875 PR build/7701:
12876 * target-delegates.c: New file.
12877 * target.c: Include target-delegates.c.
12878 (init_dummy_target): Call install_dummy_methods.
12879 (complete_target_initialization): Call install_delegators.
12880 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12881 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12882 * make-target-delegates: New file.
12883
8b06beed
TT
128842014-02-19 Tom Tromey <tromey@redhat.com>
12885
12886 * record.c (find_record_target): Use find_target_at.
12887 * target.c (find_target_at): New function.
12888 * target.h (find_target_at): Declare.
12889
6a109b6b
TT
128902014-02-19 Tom Tromey <tromey@redhat.com>
12891
12892 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12893 Add 'ops' argument.
12894 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12895 'ops' argument.
12896 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12897 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12898 'ops' argument.
12899 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12900 argument.
12901 * linux-nat.c (save_sigtrap): Update.
12902 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12903 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12904 (linux_nat_close): Update.
12905 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12906 argument.
12907 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12908 argument.
12909 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12910 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12911 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12912 (tmp_to_async): Add 'ops' argument.
12913 (record_full_stopped_by_watchpoint, record_full_async)
12914 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12915 argument.
12916 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12917 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12918 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12919 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12920 (remote_is_async_p, remote_async): Add 'ops' argument.
12921 (remote_stopped_data_address): Update.
12922 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12923 * target.c (update_current_target)
12924 (find_default_can_async_p, find_default_is_async_p): Update.
12925 (init_dummy_target): Update.
12926 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12927 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12928 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12929 (target_can_async_p, target_is_async_p, target_async)
12930 (target_stopped_by_watchpoint): Update.
12931
e095146b
YQ
129322014-02-19 Yao Qi <yao@codesourcery.com>
12933
12934 PR gdb/16220
12935 * gdbarch.sh: Remove startup_gdbarch.
12936 * gdbarch.c: Regenerated.
12937 * gdbarch.h: Likewise.
12938
bc3c6b36
KB
129392014-02-17 Kevin Buettner <kevinb@redhat.com>
12940
12941 * rl78-tdep.c (rl78_g10_register_name): New function.
12942 (rl78_return_value): Add g10 support.
12943 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12944 g10.
12945
98dc0167 129462014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12947
12948 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12949 (SUBDIR_GUILE_SRCS): Ditto.
12950 (scm-gsmob.o): Ditto.
12951
842c05cd
YQ
129522014-02-17 Yao Qi <yao@codesourcery.com>
12953
12954 * gnu-nat.c (ILL_RPC): Declare defined function.
12955
25c0bd04
YQ
129562014-02-17 Yao Qi <yao@codesourcery.com>
12957
12958 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12959 mach_msg_type_number_t.
12960 (gnu_write_inferior): Likewise.
12961
a9a758e3
YQ
129622014-02-17 Yao Qi <yao@codesourcery.com>
12963
12964 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12965 in format string.
12966 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12967 (inf_validate_procs, inf_signal): Likewise.
12968 (S_exception_raise_request): Likewise.
12969 (do_mach_notify_dead_name): Likewise.
12970 (steal_exc_port): Likewise.
12971 (gnu_read_inferior): Change 'copy_count''s type to
12972 mach_msg_type_number_t.
12973 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12974 format string.
12975
bae8023e
TS
129762014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12977
c82f56d9
TS
12978 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12979 flag. Adjust all users; in particular...
12980 (gnu_wait): ..., don't decrement its value in here...
12981 (gnu_create_inferior): ..., and instead set the flag in here,
12982 around the startup_inferior call, and call that one with
12983 START_INFERIOR_TRAPS_EXPECTED.
12984
3398af6a
TS
12985 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12986 (ILL_RPC): ... new macro.
12987 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12988 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12989 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12990 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12991 functions with ILL_RPC macro.
12992 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12993 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12994 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12995 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12996 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12997 (S_proc_getlogin_reply, S_proc_getsid_reply)
12998 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12999 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13000 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13001 (S_proc_getnports_reply, S_proc_is_important_reply)
13002 (S_proc_get_code_reply): New stub functions, generated with
13003 ILL_RPC macro.
13004
d47642c9
TS
13005 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13006 collected the type check structures.
13007
bae8023e
TS
13008 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13009
8a55ffb0
DE
130102014-02-14 Doug Evans <dje@google.com>
13011
13012 * target.c (target_write_partial): Fix result type.
13013
c2853f3d
JM
130142014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13015
13016 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13017 the proper offsets to access fpregset_t.
13018
ac61d2db
SA
130192014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13020
13021 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13022 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13023 * h8300-tdep.c (setmachinelist): Remove global.
13024 * hppa-tdep.c (hppa_sigtramp): Remove global.
13025 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13026 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13027 * ravenscar-thread.c (update_target_observer): Remove global.
13028 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13029
9d2d0b8b
TT
130302014-02-12 Tom Tromey <tromey@redhat.com>
13031
13032 * common/rsp-low.c: Update comments.
13033 * common/rsp-low.h: Update comments.
13034
a7191e8b
TT
130352014-02-12 Tom Tromey <tromey@redhat.com>
13036
13037 * common/rsp-low.c (convert_ascii_to_int): Remove.
13038 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13039
ff0e980e
TT
130402014-02-12 Tom Tromey <tromey@redhat.com>
13041
13042 * common/rsp-low.h (unhexify): Don't declare.
13043 * common/rsp-low.c (unhexify): Remove.
13044
e9371aff
TT
130452014-02-12 Tom Tromey <tromey@redhat.com>
13046
13047 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13048 * common/rsp-low.c (convert_int_to_ascii): Remove.
13049
971dc0b8
TT
130502014-02-12 Tom Tromey <tromey@redhat.com>
13051
13052 * common/rsp-low.h (hexify): Don't declare.
13053 * common/rsp-low.c (hexify): Remove.
13054
0a822afb
TT
130552014-02-12 Tom Tromey <tromey@redhat.com>
13056
13057 * common/rsp-low.c (hexify): Never take strlen of argument.
13058
9f1b45b0
TT
130592014-02-12 Tom Tromey <tromey@redhat.com>
13060
13061 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13062 * remote.c (extended_remote_run, remote_rcmd)
13063 (remote_download_trace_state_variable, remote_save_trace_data)
13064 (remote_set_trace_notes): Update.
13065 * tracepoint.c (encode_source_string, tfile_write_status)
13066 (tfile_write_uploaded_tsv): Update.
13067
9c3d6531
TT
130682014-02-12 Tom Tromey <tromey@redhat.com>
13069
13070 * tracepoint.c: Include rsp-low.h.
13071 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13072 * remote.c: Include rsp-low.h.
13073 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13074 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13075 (remote_unescape_input): Move to common/rsp-low.c.
13076 * common/rsp-low.h: New file.
13077 * common/rsp-low.c: New file.
13078 * Makefile.in (SFILES): Add common/rsp-low.c.
13079 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13080 (COMMON_OBS): Add rsp-low.o.
13081 (rsp-low.o): New target.
13082
01fd3ea5
TT
130832014-02-12 Tom Tromey <tromey@redhat.com>
13084
13085 * utils.h: Include print-utils.h.
13086 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13087 (int_string, core_addr_to_string, core_addr_to_string_nz)
13088 (hex_string, hex_string_custom): Don't declare.
13089 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13090 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13091 (hex_string_custom, int_string, core_addr_to_string)
13092 (core_addr_to_string_nz, host_address_to_string): Move to
13093 common/print-utils.c.
13094 * common/print-utils.h: New file.
13095 * common/print-utils.c: New file
13096 * Makefile.in (SFILES): Add common/print-utils.c.
13097 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13098 (COMMON_OBS): Add print-utils.o.
13099 (print-utils.o): New target.
13100
9fb50108
TT
131012014-02-12 Tom Tromey <tromey@redhat.com>
13102
13103 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13104
0548b5db
MK
131052014-02-12 Mark Kettenis <kettenis@gnu.org>
13106
13107 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13108
493443a4
MK
131092014-02-12 Mark Kettenis <kettenis@gnu.org>
13110
13111 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13112 if a PT_IO ptrace request returns sucessfully but indicates that 0
13113 bytes were transferred.
13114
706d0883
PA
131152014-02-12 Pedro Alves <palves@redhat.com>
13116 Kevin Buettner <kevinb@redhat.com>
13117
13118 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13119 TYPE_INSTANCE_FLAG_CODE_SPACE.
13120
5caa2f0b
PA
131212014-02-12 Pedro Alves <palves@redhat.com>
13122
13123 * h8300-tdep.c (pseudo_from_raw_register)
13124 (raw_from_pseudo_register): New functions.
13125 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13126 them.
13127
76fd5f74
PA
131282014-02-12 Pedro Alves <palves@redhat.com>
13129
13130 * h8300-tdep.c (h8300_register_sim_regno): New function.
13131 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13132 gdbarch_register_sim_regno hook.
13133
8f008406
SA
131342014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13135
13136 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13137
195abc10
SA
131382014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13139
13140 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13141
93ffa5b9
MK
131422014-02-12 Mark Kettenis <kettenis@gnu.org>
13143
13144 * obsd-tdep.h (obsd_init_abi): New prototype.
13145 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13146 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13147 (obsd_init_abi): New functions.
13148 * i386obsd-tdep.c: Include "obsd-tdep.h".
13149 (i386obsd_init_abi): Call obsd_init_abi.
13150 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13151 (amd64obsd_init_abi): Call obsd_init_abi.
13152 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13153 obsd-tdep.c to gdb_target_obs.
13154
49caec94
JM
131552014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13156
13157 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13158 double float arguments to 16-byte in the argument slots.
13159
e1402065
DE
131602014-02-11 Doug Evans <xdje42@gmail.com>
13161
13162 * configure.ac: Don't crash if pkg-config is not found and guile
13163 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13164 in guile checks.
13165 * configure: Regenerate.
13166
edcc890f
YQ
131672014-02-11 Yao Qi <yao@codesourcery.com>
13168
13169 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13170 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13171 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13172 * gnu-nat.c (gnu_xfer_memory): Likewise.
13173 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13174 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13175 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13176 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13177
9b409511
YQ
131782014-02-11 Yao Qi <yao@codesourcery.com>
13179
13180 * target.h (enum target_xfer_error): Rename to ...
13181 (enum target_xfer_status): ... it. New. All users updated.
13182 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13183 New.
13184 (TARGET_XFER_STATUS_ERROR_P): New macro.
13185 (target_xfer_error_to_string): Remove declaration.
13186 (target_xfer_status_to_string): Declare.
13187 (target_xfer_partial_ftype): Adjust it.
13188 (struct target_ops) <to_xfer_partial>: Return
13189 target_xfer_status. Add argument xfered_len. Update
13190 comments.
13191 * target.c (target_xfer_error_to_string): Rename to ...
13192 (target_xfer_status_to_string): ... it. New. All callers
13193 updated.
13194 (target_read_live_memory): Likewise. Call target_xfer_partial
13195 instead of target_read.
13196 (memory_xfer_live_readonly_partial): Return
13197 target_xfer_status. Add argument xfered_len.
13198 (raw_memory_xfer_partial): Likewise.
13199 (memory_xfer_partial_1): Likewise.
13200 (memory_xfer_partial): Likewise.
13201 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13202 properly. Update debug message.
13203 (default_xfer_partial, current_xfer_partial): Likewise.
13204 (target_write_partial): Likewise.
13205 (target_read_partial): Likewise. All callers updated.
13206 (read_whatever_is_readable): Likewise.
13207 (target_write_with_progress): Likewise.
13208 (target_read_alloc_1): Likewise.
13209
13210 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13211 * auxv.c (procfs_xfer_auxv): Likewise.
13212 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13213 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13214 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13215 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13216 * corefile.c (read_memory): Adjust.
13217 * corelow.c (core_xfer_partial): Likewise.
13218 * ctf.c (ctf_xfer_partial): Likewise.
13219 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13220 updated.
13221 (darwin_xfer_partial): Likewise.
13222 * exec.c (section_table_xfer_memory_partial): Likewise. All
13223 callers updated.
13224 (exec_xfer_partial): Likewise.
13225 * exec.h (section_table_xfer_memory_partial): Update
13226 declaration.
13227 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13228 negative.
13229 (gnu_xfer_partial): Likewise.
13230 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13231 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13232 (ia64_hpux_xfer_solib_got): Likewise.
13233 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13234 type of 'partial_len' to ULONGEST.
13235 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13236 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13237 (linux_nat_xfer_partial): Likewise.
13238 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13239 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13240 * monitor.c (monitor_xfer_memory): Likewise.
13241 (monitor_xfer_partial): Likewise.
13242 * procfs.c (procfs_xfer_partial): Likewise.
13243 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13244 * record-full.c (record_full_xfer_partial): Likewise.
13245 (record_full_core_xfer_partial): Likewise.
13246 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13247 (gdbsim_xfer_partial): Likewise.
13248 * remote.c (remote_write_bytes_aux): Likewise. All callers
13249 updated.
13250 (remote_write_bytes, remote_read_bytes): Likewise. All
13251 callers updated.
13252 (remote_flash_erase): Likewise. All callers updated.
13253 (remote_write_qxfer): Likewise. All callers updated.
13254 (remote_read_qxfer): Likewise. All callers updated.
13255 (remote_xfer_partial): Likewise.
13256 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13257 (rs6000_xfer_shared_libraries): Likewise.
13258 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13259 (sol_thread_xfer_partial): Likewise.
13260 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13261 (sparc_xfer_partial): Likewise.
13262 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13263 updated.
13264 (spu_xfer_partial): Likewise.
13265 * spu-multiarch.c (spu_xfer_partial): Likewise.
13266 * tracepoint.c (tfile_xfer_partial): Likewise.
13267 * windows-nat.c (windows_xfer_memory): Likewise.
13268 (windows_xfer_shared_libraries): Likewise.
13269 (windows_xfer_partial): Likewise.
13270 * valprint.c: Replace 'target_xfer_error' with
13271 'target_xfer_status' in comments.
13272
a8e63083
JB
132732014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13274
13275 Checked in by Joel Brobecker <brobecker@adacore.com>.
13276 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13277
e86b67d3
JB
132782014-02-11 Joel Brobecker <brobecker@adacore.com>
13279
13280 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13281 function parameters.
13282
4b7d1f7f
WN
132832014-02-10 Will Newton <will.newton@linaro.org>
13284
13285 * elfread.c (elf_rel_plt_read): Look for a .got section if
13286 looking up .got.plt fails.
13287 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13288 on address passed to elf_gnu_ifunc_record_cache.
13289 (elf_gnu_ifunc_resolve_addr): Likewise.
13290 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13291
961842b2
JM
132922014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13293
13294 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13295 (X_RETTURN): New macro.
13296 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13297
13298 * sparc64-tdep.c (sparc64_init_abi): Hook
13299 sparc_in_function_epilogue_p.
13300
3f03e7b1
GB
133012014-02-10 Gary Benson <gbenson@redhat.com>
13302
13303 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13304 Rename name_matcher to symbol_matcher.
13305
96f861ef
GB
133062014-02-10 Gary Benson <gbenson@redhat.com>
13307
13308 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13309 Use expand_symtabs_file_matcher_ftype and
13310 expand_symtabs_symbol_matcher_ftype.
13311
ee01b665
JB
133122014-02-10 Joel Brobecker <brobecker@adacore.com>
13313
13314 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13315 (struct ada_symbol_cache): New.
13316 (ada_free_symbol_cache): Forward declare.
13317 (struct ada_pspace_data): New.
13318 (ada_pspace_data_handle): New static global.
13319 (get_ada_pspace_data, ada_pspace_data_cleanup)
13320 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13321 (cache_space, cache): Delete, now folded inside struct
13322 ada_pspace_data.
13323 (ada_get_symbol_cache): New function.
13324 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13325 implementation.
13326 (_initialize_ada_language): Remove initialization of cache_space.
13327 Move call to observer_attach_inferior_exit up, grouping it
13328 with the other observer registrations inside this function.
13329 Rename command to be more general. Add call to
13330 register_program_space_data_with_cleanup.
13331
143adbbf
JB
133322014-02-10 Joel Brobecker <brobecker@adacore.com>
13333
13334 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13335 ada_new_objfile_observer.
13336 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13337 (_initialize_tasks): Update uses of ada_new_objfile_observer
13338 and ada_tasks_normal_stop_observer.
13339
aa4fb036
JB
133402014-02-10 Joel Brobecker <brobecker@adacore.com>
13341
13342 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13343 returned by the 'Length attribute to integer.
13344
9dee8cc6
JB
133452014-02-10 Joel Brobecker <brobecker@adacore.com>
13346
13347 * ada-lang.c (_initialize_ada_language): Initialize
13348 cache_space obstack.
13349
3d9434b5
JB
133502014-02-10 Joel Brobecker <brobecker@adacore.com>
13351
13352 * ada-lang.c (HASH_SIZE): New macro.
13353 (struct cache_entry): New type.
13354 (cache_space, cache): New static globals.
13355 (ada_clear_symbol_cache, find_entry): New functions.
13356 (lookup_cached_symbol, cache_symbol): Implement.
13357 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13358 (_initialize_ada_language): Attach ada_new_objfile_observer
13359 and ada_free_objfile_observer.
13360
f0c5f9b2
JB
133612014-02-10 Joel Brobecker <brobecker@adacore.com>
13362
13363 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13364 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13365 struct block * parameter.
13366 (ada_lookup_symbol_list_worker): Constify local variable "block".
13367 Remove cast which is no longer necessary.
13368
ed3ef339
DE
133692014-02-10 Doug Evans <xdje42@gmail.com>
13370
13371 Add Guile as an extension language.
13372 * NEWS: Mention Guile scripting.
13373 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13374 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13375 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13376 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13377 (CLIBS): Add GUILE_LIBS.
13378 (install-guile): New rule.
13379 (guile.o): New rule.
13380 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13381 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13382 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13383 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13384 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13385 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13386 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13387 * configure.ac: New option --with-guile.
13388 * configure: Regenerate.
13389 * config.in: Regenerate.
13390 * auto-load.c: Remove #include "python/python.h". Add #include
13391 "gdb/section-scripts.h".
13392 (source_section_scripts): Handle Guile scripts.
13393 (_initialize_auto_load): Add name of Guile objfile script to
13394 scripts-directory help text.
13395 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13396 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13397 (struct breakpoint): New member scm_bp_object.
13398 * defs.h (enum command_control_type): New value guile_control.
13399 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13400 "extension.h".
13401 (show_user): Update comment.
13402 (_initialize_cli_cmds): Update help text for "show user". Update help
13403 text for max-user-call-depth.
13404 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13405 "extension.h".
13406 (multi_line_command_p): Add guile_control.
13407 (print_command_lines): Handle guile_control.
13408 (execute_control_command, recurse_read_control_structure): Ditto.
13409 (process_next_line): Recognize "guile" commands.
13410 * disasm.c (gdb_disassemble_info): Make non-static.
13411 * disasm.h: #include "dis-asm.h".
13412 (struct gdbarch): Add forward decl.
13413 (gdb_disassemble_info): Declare.
13414 * extension.c: #include "guile/guile.h".
13415 (extension_languages): Add guile.
13416 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13417 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13418 * gdbtypes.c (get_unsigned_type_max): New function.
13419 (get_signed_type_minmax): New function.
13420 * gdbtypes.h (get_unsigned_type_max): Declare.
13421 (get_signed_type_minmax): Declare.
13422 * guile/README: New file.
13423 * guile/guile-internal.h: New file.
13424 * guile/guile.c: New file.
13425 * guile/guile.h: New file.
13426 * guile/scm-arch.c: New file.
13427 * guile/scm-auto-load.c: New file.
13428 * guile/scm-block.c: New file.
13429 * guile/scm-breakpoint.c: New file.
13430 * guile/scm-disasm.c: New file.
13431 * guile/scm-exception.c: New file.
13432 * guile/scm-frame.c: New file.
13433 * guile/scm-gsmob.c: New file.
13434 * guile/scm-iterator.c: New file.
13435 * guile/scm-lazy-string.c: New file.
13436 * guile/scm-math.c: New file.
13437 * guile/scm-objfile.c: New file.
13438 * guile/scm-ports.c: New file.
13439 * guile/scm-pretty-print.c: New file.
13440 * guile/scm-safe-call.c: New file.
13441 * guile/scm-string.c: New file.
13442 * guile/scm-symbol.c: New file.
13443 * guile/scm-symtab.c: New file.
13444 * guile/scm-type.c: New file.
13445 * guile/scm-utils.c: New file.
13446 * guile/scm-value.c: New file.
13447 * guile/lib/gdb.scm: New file.
13448 * guile/lib/gdb/boot.scm: New file.
13449 * guile/lib/gdb/experimental.scm: New file.
13450 * guile/lib/gdb/init.scm: New file.
13451 * guile/lib/gdb/iterator.scm: New file.
13452 * guile/lib/gdb/printing.scm: New file.
13453 * guile/lib/gdb/types.scm: New file.
13454 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13455 (VPATH): Add $(GUILE_SRCDIR).
13456 (GUILE_DIR): New variable.
13457 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13458 (all): Add stamp-guile dependency.
13459 (stamp-guile): New rule.
13460 (clean-guile, install-guile, uninstall-guile): New rules.
13461 (install-only): Add install-guile dependency.
13462 (uninstall): Add uninstall-guile dependency.
13463 (clean): Add clean-guile dependency.
13464
ac020ec5
DE
134652014-02-09 Doug Evans <xdje42@gmail.com>
13466
13467 Revert this patch (which I approved, mea culpa).
13468
13469 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13470
13471 * Makefile.in (all-lib): Remove.
13472 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13473
2a081c59
JK
134742014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13475
13476 Fix Python stack corruption.
13477 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13478 gdb_py_longest.
13479
0a6bd22d
MK
134802014-02-08 Mark Kettenis <kettenis@gnu.org>
13481
13482 * Makefile.in (all-lib): Remove.
13483 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13484
1a860409
DE
134852014-02-07 Doug Evans <dje@google.com>
13486
13487 * extension-priv.h (extension_language_script_ops): Add comment.
13488 (extension_language_ops): Add comment.
caf5a491 13489 (active_ext_lang_state): Fix typo in comment.
1a860409 13490
d137e6dc
PA
134912014-02-07 Pedro Alves <palves@redhat.com>
13492
0dcb32c3 13493 PR breakpoints/16292
d137e6dc
PA
13494 * infrun.c (handle_signal_stop) <signal arrives while stepping
13495 over a breakpoint>: Switch back to the stepping thread.
13496
ce6d0892
YQ
134972014-02-07 Yao Qi <yao@codesourcery.com>
13498
13499 * target.c (target_xfer_partial): Return zero if LEN is zero.
13500
2ed4b548
YQ
135012014-02-07 Yao Qi <yao@codesourcery.com>
13502
13503 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13504 (ld_so_xfer_auxv): Likewise.
13505 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13506 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13507 * corelow.c (core_xfer_partial): Likewise.
13508 * ctf.c (ctf_xfer_partial): Likewise.
13509 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13510 (darwin_xfer_partial): Likewise.
13511 * exec.c (exec_xfer_partial): Likewise.
13512 * gnu-nat.c (gnu_xfer_partial): Likewise.
13513 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13514 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13515 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13516 * linux-nat.c (linux_xfer_siginfo): Likewise.
13517 (linux_proc_xfer_spu): Likewise.
13518 * procfs.c (procfs_xfer_partial): Likewise.
13519 * record-full.c (record_full_xfer_partial): Likewise.
13520 (record_full_core_xfer_partial): Likewise.
13521 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13522 * remote.c (remote_write_qxfer): Likewise.
13523 (remote_write_qxfer, remote_read_qxfer): Likewise.
13524 (remote_xfer_partial): Likewise.
13525 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13526 (rs6000_xfer_shared_libraries): Likewise.
13527 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13528 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13529 (spu_xfer_partial): Likewise.
13530 * target.c (memory_xfer_partial_1): Likewise.
13531 * tracepoint.c (tfile_xfer_partial): Likewise.
13532 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13533 (windows_xfer_partial): Likewise.
13534
c09f20e4
YQ
135352014-02-07 Yao Qi <yao@codesourcery.com>
13536
13537 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13538 comments.
13539 (core_xfer_shared_libraries_aix): Likewise.
13540 * gdbarch.c, gdbarch.h: Regenerated.
13541 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13542 ULONGEST. Change 'len_avail' type to ULONGEST.
13543 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13544 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13545 declaration.
13546 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13547
8635b3bf
YQ
135482014-02-07 Yao Qi <yao@codesourcery.com>
13549
13550 * corefile.c (memory_error): Get 'exception' from ERR and pass
13551 'exception' to throw_error.
13552
6dddc817
DE
135532014-02-06 Doug Evans <xdje42@gmail.com>
13554
13555 * configure.ac (libpython checking): Remove all but python.o from
13556 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13557 * configure: Regenerate.
13558
13559 * Makefile.in (SFILES): Add extension.c.
13560 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13561 (COMMON_OBS): Add extension.o.
13562 * extension.h: New file.
13563 * extension-priv.h: New file.
13564 * extension.c: New file.
13565
13566 * python/python-internal.h: #include "extension.h".
13567 (gdbpy_auto_load_enabled): Declare.
13568 (gdbpy_apply_val_pretty_printer): Declare.
13569 (gdbpy_apply_frame_filter): Declare.
13570 (gdbpy_preserve_values): Declare.
13571 (gdbpy_breakpoint_cond_says_stop): Declare.
13572 (gdbpy_breakpoint_has_cond): Declare.
13573 (void source_python_script_for_objfile): Delete.
13574 * python/python.c: #include "extension-priv.h".
13575 Delete inclusion of "observer.h".
13576 (extension_language_python): Moved here and renamed from
13577 script_language_python in py-auto-load.c.
13578 Redefined to be of type extension_language_defn.
13579 (python_extension_script_ops): New global.
13580 (python_extension_ops): New global.
13581 (struct python_env): New member previous_active.
13582 (restore_python_env): Call restore_active_ext_lang.
13583 (ensure_python_env): Call set_active_ext_lang.
13584 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13585 New arg extlang.
13586 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13587 New arg extlang.
13588 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13589 New arg extlang.
13590 (gdbpy_eval_from_control_command): Renamed from
13591 eval_python_from_control_command, made static. New arg extlang.
13592 (gdbpy_source_script) Renamed from source_python_script, made static.
13593 New arg extlang.
13594 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13595 result to int. New arg extlang.
13596 (gdbpy_source_objfile_script): Renamed from
13597 source_python_script_for_objfile, made static. New arg extlang.
13598 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13599 static. New args extlang, extlang_printers. Change result type to
13600 "void".
13601 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13602 static. New arg extlang. Rename arg printers to extlang_printers
13603 and change type to ext_lang_type_printers *.
13604 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13605 static. Replace argument arg with extlang, extlang_printers.
13606 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13607 (!HAVE_PYTHON, source_python_script): Delete.
13608 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13609 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13610 (!HAVE_PYTHON, start_type_printers): Delete.
13611 (!HAVE_PYTHON, apply_type_printers): Delete.
13612 (!HAVE_PYTHON, free_type_printers): Delete.
13613 (_initialize_python): Delete call to observer_attach_before_prompt.
13614 (finalize_python): Set/restore active extension language.
13615 (gdbpy_finish_initialization) Renamed from
13616 finish_python_initialization, made static. New arg extlang.
13617 (gdbpy_initialized): New function.
13618 * python/python.h: #include "extension.h". Delete #include
13619 "value.h", "mi/mi-cmds.h".
13620 (extension_language_python): Declare.
13621 (GDBPY_AUTO_FILE_NAME): Delete.
13622 (enum py_bt_status): Moved to extension.h and renamed to
13623 ext_lang_bt_status.
13624 (enum frame_filter_flags): Moved to extension.h.
13625 (enum py_frame_args): Moved to extension.h and renamed to
13626 ext_lang_frame_args.
13627 (finish_python_initialization): Delete.
13628 (eval_python_from_control_command): Delete.
13629 (source_python_script): Delete.
13630 (apply_val_pretty_printer): Delete.
13631 (apply_frame_filter): Delete.
13632 (preserve_python_values): Delete.
13633 (gdbpy_script_language_defn): Delete.
13634 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13635 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13636
13637 * auto-load.c: #include "extension.h".
13638 (GDB_AUTO_FILE_NAME): Delete.
13639 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13640 (script_language_gdb): Delete, moved to extension.c and renamed to
13641 extension_language_gdb.
13642 (source_gdb_script_for_objfile): Delete.
13643 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13644 (loaded_script): Change type of language member to
13645 struct extension_language_defn *.
13646 (init_loaded_scripts_info): Initialize
13647 unsupported_script_warning_printed.
13648 (maybe_add_script): Make static. Change type of language arg to
13649 struct extension_language_defn *.
13650 (clear_section_scripts): Reset unsupported_script_warning_printed.
13651 (auto_load_objfile_script_1): Rewrite to use extension language API.
13652 (auto_load_objfile_script): Make public. Remove support-compiled-in
13653 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13654 (source_section_scripts): Rewrite to use extension language API.
13655 (load_auto_scripts_for_objfile): Rewrite to use
13656 auto_load_scripts_for_objfile.
13657 (collect_matching_scripts_data): Change type of language member to
13658 struct extension_language_defn *.
13659 (auto_load_info_scripts): Change type of language arg to
13660 struct extension_language_defn *.
13661 (unsupported_script_warning_print): New function.
13662 (script_not_found_warning_print): Make static.
13663 (_initialize_auto_load): Rewrite construction of scripts-directory
13664 help.
13665 * auto-load.h (struct objfile): Add forward decl.
13666 (struct script_language): Delete.
13667 (struct auto_load_pspace_info): Add forward decl.
13668 (struct extension_language_defn): Add forward decl.
13669 (maybe_add_script): Delete.
13670 (auto_load_objfile_script): Declare.
13671 (script_not_found_warning_print): Delete.
13672 (auto_load_info_scripts): Update prototype.
13673 (auto_load_gdb_scripts_enabled): Declare.
13674 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13675 auto_load_python_scripts_enabled and made public.
13676 (script_language_python): Delete, moved to python.c.
13677 (gdbpy_script_language_defn): Delete.
13678 (info_auto_load_python_scripts): Update to use
13679 extension_language_python.
13680
13681 * breakpoint.c (condition_command): Replace call to
13682 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13683 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13684 with call to breakpoint_ext_lang_cond_says_stop.
13685 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13686 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13687 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13688 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13689 New arg slang.
13690 (local_setattro): Print name of extension language with existing
13691 stop condition.
13692
13693 * valprint.c (val_print, value_print): Update to call
13694 apply_ext_lang_val_pretty_printer.
13695 * cp-valprint.c (cp_print_value): Update call to
13696 apply_ext_lang_val_pretty_printer.
13697 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13698 (gdbpy_apply_val_pretty_printer): Renamed from
13699 apply_val_pretty_printer. New arg extlang.
13700 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13701
13702 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13703 extension language API.
13704 * cli/cli-script.c (execute_control_command): Update to call
13705 eval_ext_lang_from_control_command.
13706
13707 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13708 enum ext_lang_bt_status values. Update call to
13709 apply_ext_lang_frame_filter.
13710 (mi_cmd_stack_list_locals): Ditto.
13711 (mi_cmd_stack_list_args): Ditto.
13712 (mi_cmd_stack_list_variables): Ditto.
13713 * mi/mi-main.c: Delete #include "python/python-internal.h".
13714 Add #include "extension.h".
13715 (mi_cmd_list_features): Replace reference to python internal variable
13716 gdb_python_initialized with call to ext_lang_initialized_p.
13717
13718 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13719 Update to use enum ext_lang_frame_args. Update to call
13720 apply_ext_lang_frame_filter.
13721 * python/py-framefilter.c (extract_sym): Update to use enum
13722 ext_lang_bt_status.
13723 (extract_value, py_print_type, py_print_value): Ditto.
13724 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13725 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13726 (py_print_frame): Ditto.
13727 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13728 New arg extlang. Update to use enum ext_lang_bt_status.
13729
13730 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13731 finish_python_initialization. Replace with call to
13732 finish_ext_lang_initialization.
13733
13734 * typeprint.c (do_free_global_table): Update to call
13735 free_ext_lang_type_printers.
13736 (create_global_typedef_table): Update to call
13737 start_ext_lang_type_printers.
13738 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13739 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13740 (type_print_options): Change type of global_printers from "void *"
13741 to "struct ext_lang_type_printers *".
13742
13743 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13744 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13745 (gdbpy_preserve_values): Renamed from preserve_python_values.
13746 New arg extlang.
13747 (!HAVE_PYTHON, preserve_python_values): Delete.
13748
13749 * utils.c (quit_flag): Delete, moved to extension.c.
13750 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13751 extension.c.
13752
13753 * eval.c: Delete #include "python/python.h".
13754 * main.c: Delete #include "python/python.h".
13755
13756 * defs.h: Update comment.
13757
6af79985
JB
137582014-02-06 Joel Brobecker <brobecker@adacore.com>
13759
13760 GDB 7.7 released.
13761
12c5175d
MK
137622014-02-05 Mark Kettenis <kettenis@gnu.org>
13763
13764 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13765 defined.
13766
8dc5b319
YQ
137672014-02-05 Yao Qi <yao@codesourcery.com>
13768
13769 * remote.c (remote_pass_signals): Remove local 'buf' and use
13770 rs->buf.
13771 (remote_program_signals): Likewise.
13772
de7b2893
YQ
137732014-02-05 Yao Qi <yao@codesourcery.com>
13774
13775 * ctf.c: Include "inferior.h" and "gdbthread.h".
13776 (CTF_PID): A new macro.
13777 (ctf_open): Call inferior_appeared and add_thread_silent.
13778 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13779 (ctf_thread_alive): New function.
13780 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13781
66d032ac
YQ
137822014-02-05 Yao Qi <yao@codesourcery.com>
13783
13784 Revert this patch:
13785
13786 2013-05-24 Yao Qi <yao@codesourcery.com>
13787
13788 * tracepoint.c (TFILE_PID): Remove.
13789 (tfile_open): Don't add thread and inferior.
13790 (tfile_close): Don't set 'inferior_ptid'. Don't call
13791 exit_inferior_silent.
13792 (tfile_thread_alive): Remove.
13793 (init_tfile_ops): Don't set field 'to_thread_alive' of
13794 tfile_ops.
13795
f4ccffad
CE
137962014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13797
13798 * remote.c (remote_start_remote): Call remote_check_symbols even
13799 if only symbol-file (not file) has been given.
13800
591a12a1
UW
138012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13802
13803 * gdbarch.sh (skip_entrypoint): New callback.
13804 * gdbarch.c, gdbarch.h: Regenerate.
13805 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13806 * infrun.c (fill_in_stop_func): Likewise.
13807 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13808 (ppc_elfv2_elf_make_msymbol_special): New function.
13809 (ppc_elfv2_skip_entrypoint): Likewise.
13810 (ppc_linux_init_abi): Install them for ELFv2.
13811
cc0e89c5
UW
138122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13813
13814 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13815 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13816 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13817 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13818 structures returned in GPRs.
13819
52f548e4
UW
138202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13821
13822 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13823 offset to the stack parameter list for the ELFv2 ABI.
13824
d4094b6a
UW
138252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13826
13827 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13828 set_gdbarch_convert_from_func_ptr_addr and
13829 set_gdbarch_elf_make_msymbol_special for ELFv1.
13830 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13831 function descriptors on ELFv1.
13832 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13833 set up r12 at function entry.
13834
cd453cd0
UW
138352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13836
13837 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13838 (struct gdbarch_tdep): New member elf_abi.
13839
13840 * rs6000-tdep.c: Include "elf/ppc64.h".
13841 (rs6000_gdbarch_init): Detect ELF ABI version.
13842
0ff3e01f
UW
138432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13844
13845 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13846 within a register pair holding a DFP 128-bit value on little-endian.
13847 (ppc64_sysv_abi_return_value_base): Likewise.
13848 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13849 (dfp_pseudo_register_write): Likewise.
13850
5b757e5d
UW
138512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13852
13853 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13854 offset on little-endian when passing _Decimal32.
13855 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13856
084ee545
UW
138572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13858
13859 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13860 of the overlapped FP register within the VSX register on little-
13861 endian platforms.
13862 (efpr_pseudo_register_write): Likewise.
13863
d63167af
UW
138642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13865
13866 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13867 offset on little-endian when passing small structures.
13868
e765b44c
UW
138692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13870
13871 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13872 (struct ppc64_sysv_argpos): New data structure.
13873 (ppc64_sysv_abi_push_float): Remove.
13874 (ppc64_sysv_abi_push_val): New function.
13875 (ppc64_sysv_abi_push_integer): Likewise.
13876 (ppc64_sysv_abi_push_freg): Likewise.
13877 (ppc64_sysv_abi_push_vreg): Likewise.
13878 (ppc64_sysv_abi_push_param): Likewise.
13879 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13880 (ppc64_sysv_abi_return_value_base): New function.
13881 (ppc64_sysv_abi_return_value): Refactor to use it.
13882
36c24d95
UW
138832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13884
13885 * NEWS: Document new target powerpc64le-*-linux*.
13886
26fd9228
MK
138872014-02-04 Mark Kettenis <kettenis@gnu.org>
13888
13889 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13890 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13891 core dumps.
13892 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13893 register set used in ELF core dumps. Add floating-point register set.
13894
c5bb7362
KB
138952014-02-03 Kevin Buettner <kevinb@redhat.com>
13896
74228e77 13897 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13898 dwarf2_to_gdb[] table using symbolic constants. Adjust
13899 penultimate entry from number representing the PC register
13900 to symbolic constant representing the MDR register. Add
13901 constant for the PC register to the end of the table.
13902
af09351e
MK
139032014-02-03 Mark Kettenis <kettenis@gnu.org>
13904
13905 * bsd-kvm.c: Include <sys/param.h>
13906
8507e05d
MK
139072014-02-03 Mark Kettenis <kettenis@gnu.org>
13908
13909 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13910
ae56bfb8
JB
139112014-01-31 Joel Brobecker <brobecker@adacore.com>
13912
13913 * ada-lang.h (clear_ada_sym_cache): Delete.
13914
718ee4dc
UW
139152014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13916
13917 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13918
401e27fd
JM
139192014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13920
13921 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13922 the sigreturn register save area only if the syscall is
13923 sigreturn.
13924
a7c88acd
JB
139252014-01-29 Joel Brobecker <brobecker@adacore.com>
13926
13927 * valops.c (value_slice): Minor reformatting.
13928
fa0079ea
UW
139292014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13930
13931 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13932
c6044dd1
JB
139332014-01-28 Joel Brobecker <brobecker@adacore.com>
13934
13935 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13936 New static globals.
13937 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13938 (ada_ignore_descriptive_types_p): New static global.
13939 (find_parallel_type_by_descriptive_type): Return immediately
13940 if ada_ignore_descriptive_types_p is set.
13941 (_initialize_ada_language): Register new commands "maintenance
13942 set ada", "maintenance show ada", "maintenance set ada
13943 ignore-descriptive-types" and "maintenance show ada
13944 ignore-descriptive-types".
13945 * NEWS: Add entry for new "maint ada set/show
13946 ignore-descriptive-types" commands.
13947
568e808b
MM
139482014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13949
13950 * record-btrace.c (record_btrace_close): Call btrace_teardown
13951 for all threads.
13952
467d141b
JB
139532014-01-27 Joel Brobecker <brobecker@adacore.com>
13954
13955 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13956 "ui-out.h".
13957
fb151210
JB
139582014-01-27 Joel Brobecker <brobecker@adacore.com>
13959
13960 * ada-typeprint (type_is_full_subrange_of_target_type):
13961 New function.
13962 (print_range): Add parameter bounds_prefered_p. If not set,
13963 try printing range types using the name of their base type.
13964 (print_range_type): Add parameter bounds_prefered_p.
13965 Use it in call to print_range.
13966 (print_array_type, ada_print_type): Update calls to print_range
13967 and print_range_type.
13968
aba02109
JB
139692014-01-27 Joel Brobecker <brobecker@adacore.com>
13970
13971 * ada-typeprint.c (print_array_type, print_choices, print_range)
13972 (print_range_bound, print_dynamic_range_bound, print_range_type):
13973 Remove declaration.
13974
e62e21fd
JB
139752014-01-27 Joel Brobecker <brobecker@adacore.com>
13976
13977 * ada-typeprint.c (print_range): Add missing empty line
13978 after local declaration.
13979
859cf5d1
JB
139802014-01-27 Joel Brobecker <brobecker@adacore.com>
13981
13982 * ada-valprint.c (print_optional_low_bound): Get index_type's
13983 target type for as long as it is a TYPE_CODE_RANGE.
13984
25790f6f
JB
139852014-01-27 Joel Brobecker <brobecker@adacore.com>
13986
13987 * procfs.c (procfs_make_note_section): Remove assertion and
13988 associated comment.
13989
6b6aa828
YQ
139902014-01-24 Yao Qi <yao@codesourcery.com>
13991
13992 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13993 * corelow.c (get_core_siginfo): Likewise.
13994
5d6df423
YQ
139952014-01-24 Yao Qi <yao@codesourcery.com>
13996
13997 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13998 ULONGEST. Don't check 'len' is negative.
13999 (remote_write_bytes): Change type of 'len' to ULONGEST.
14000
83b645b8
TT
140012014-01-23 Tom Tromey <tromey@redhat.com>
14002
14003 PR python/16485:
14004 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14005 Handle exception from frame.block.
14006 (FrameVars.fetch_frame_locals): Likewise.
14007
0740f8d8
TT
140082014-01-23 Tom Tromey <tromey@redhat.com>
14009
14010 PR python/16487:
14011 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14012 on a NULL pointer. Move "goto error" to correct place.
14013
21909fa1
TT
140142014-01-23 Tom Tromey <tromey@redhat.com>
14015
14016 PR python/16491:
14017 * python/py-framefilter.c (apply_frame_filter): Call
14018 ensure_python_env after computing gdbarch.
14019
17fde6d0
YQ
140202014-01-23 Yao Qi <yao@codesourcery.com>
14021
14022 * target.c (raw_memory_xfer_partial): Change argument type
14023 from void * to gdb_byte *.
14024 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14025
87ce2a04
DE
140262014-01-22 Doug Evans <dje@google.com>
14027
14028 New gdbserver option --debug-format=timestamp.
14029 * NEWS: Mention it.
14030
237b092b
AA
140312014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14032
14033 * syscalls/s390x-linux.xml: New file.
14034 * syscalls/s390-linux.xml: New file.
14035 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14036 (XML_SYSCALL_FILENAME_S390X): Likewise.
14037 (op_svc): New enum value for SVC opcode.
14038 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14039 (s390_linux_get_syscall_number): New function.
14040 (s390_gdbarch_init): Register '*get_syscall_number' and the
14041 syscall xml file name.
14042 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14043 "s390-linux.xml" and "s390x-linux.xml".
14044 * NEWS: Announce new feature.
14045
54bff650
BS
140462014-01-22 Baruch Siach <baruch@tkos.co.il>
14047
14048 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14049
14e361d7
PA
140502014-01-22 Pedro Alves <palves@redhat.com>
14051
14052 * xtensa-config.c: Include defs.h.
14053
46bbb3ed
JB
140542014-01-22 Joel Brobecker <brobecker@adacore.com>
14055
14056 * common/common-utils.h: Add "ARI:" comment beside __func__
14057 reference.
14058
3a80edfc
JB
140592014-01-22 Joel Brobecker <brobecker@adacore.com>
14060
14061 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14062 documentation a bit.
14063
4869db5e
RM
140642014-01-21 Roland McGrath <mcgrathr@google.com>
14065
14066 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14067 * configure: Regenerate.
14068 * aclocal.m4: Regenerate.
14069 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14070 New substituted variables.
14071 (install-strip): New target.
14072 (INSTALL_SCRIPT): New substituted variable.
14073 (FLAGS_TO_PASS): Add it.
14074 (install-only): Use $(INSTALL_SCRIPT) rather than
14075 $(INSTALL_PROGRAM) for gcore.
14076
9ea4267d
TT
140772014-01-20 Tom Tromey <tromey@redhat.com>
14078
14079 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14080 together.
14081
1f2bdf09
TT
140822014-01-20 Tom Tromey <tromey@redhat.com>
14083
14084 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14085 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14086 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14087 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14088 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14089 (struct cmd_list_element) <flags>: Remove.
14090 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14091 doc_allocated>: New fields.
14092 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14093 bitfields.
14094 * maint.c (maintenance_do_deprecate): Update.
14095 * top.c (execute_command): Update.
14096
e671835b
BS
140972014-01-20 Baruch Siach <baruch@tkos.co.il>
14098
14099 * xtensa-linux-nat.c: Include asm/ptrace.h.
14100
50367cd2
IB
141012014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14102
14103 * Makefile.in (SFILES): Add d-support.c.
14104 (COMMON_OBS): Add d-support.o.
14105 * d-lang.h (d_parse_symbol): Add comment, now defined in
14106 d-support.c.
14107 * d-lang.c (parse_call_convention)
14108 (parse_attributes, parse_function_types)
14109 (parse_function_args, parse_type, parse_identifier)
14110 (call_convention_p, d_parse_symbol): Move functions to ...
14111 * d-support.c: ... New file.
14112
ec9f644a
IB
141132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14114
14115 * d-lang.h (d_parse_symbol): Add declaration.
14116 * d-lang.c (extract_identifiers)
14117 (extract_type_info): Remove functions.
14118 (parse_call_convention, parse_attributes)
14119 (parse_function_types, parse_function_args)
14120 (parse_type, parse_identifier, call_convention_p)
14121 (d_parse_symbol): New functions.
14122 (d_demangle): Use d_parse_symbol to demangle D symbols.
14123
94b1b47e
IB
141242014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14125
14126 * d-lang.h (struct builtin_d_type): New data type.
14127 (builtin_d_type): Add declaration.
14128 * d-lang.c (d_language_arch_info, build_d_types)
14129 (builtin_d_type): New functions.
14130 (enum d_primitive_types): New data type.
14131 (d_language_defn): Change c_language_arch_info to
14132 d_language_arch_info.
14133 (d_type_data): New static variable.
14134 (_initialize_d_language): Initialize d_type_data.
14135
63778547
IB
141362014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14137
14138 * d-lang.h (d_main_name): Add declaration.
14139 * d-lang.c (d_main_name): New function.
14140 * symtab.c (find_main_name): Add call to d_main_name.
14141
3271ba66
IB
141422014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14143
14144 * d-lang.c (d_language_defn): Change macro_expansion_c to
14145 macro_expansion_no.
14146
d36b3012
IB
141472014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14148
14149 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14150
c90a6fb7
SDJ
141512014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14152
14153 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14154 gdb_exception" declaration.
14155 * remote.c (getpkt_or_notif_sane): Likewise.
14156
749234e5
DE
141572014-01-17 Doug Evans <dje@google.com>
14158
14159 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14160 function, contents of dirnames_to_char_ptr_vec_append moved here.
14161 (delim_string_to_char_ptr_vec): New function.
14162 (dirnames_to_char_ptr_vec_append): Rewrite.
14163 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14164
df049a58
DE
141652014-01-17 Doug Evans <dje@google.com>
14166
14167 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14168 and moved here ...
14169 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14170 #include "common-utils.h".
14171 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14172 * common/vec.h (VEC_ASSERT_PASS): Update.
14173 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14174 (MACH_CHECK_ERROR): Update.
14175
69f97648
SM
141762014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14177
14178 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14179 comments.
14180 * gdbarch.h: Regenerate.
14181
98b1cfdc
TT
141822014-01-16 Tom Tromey <tromey@redhat.com>
14183
14184 * value.c (struct value) <regnum>: Move earlier.
14185
77a19445
TT
141862014-01-16 Tom Tromey <tromey@redhat.com>
14187
14188 * remote.c (extended_remote_create_inferior): Rename from
14189 extended_remote_create_inferior_1. Add "ops" argument. Remove
14190 old implementation.
14191
62261490
PA
141922014-01-16 Pedro Alves <palves@redhat.com>
14193
14194 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14195 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14196 the backchain.
14197
4d65956b
DE
141982014-01-16 Doug Evans <dje@google.com>
14199
14200 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14201
52834460
MM
142022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14203
14204 * btrace.h (btrace_thread_flag): New.
14205 (struct btrace_thread_info) <flags>: New.
14206 * record-btrace.c (record_btrace_resume_thread)
14207 (record_btrace_find_thread_to_move, btrace_step_no_history)
14208 (btrace_step_stopped, record_btrace_start_replaying)
14209 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14210 (record_btrace_find_resume_thread): New.
14211 (record_btrace_resume, record_btrace_wait): Extend.
14212 (record_btrace_can_execute_reverse): New.
14213 (record_btrace_open): Fail in non-stop mode.
14214 (record_btrace_set_replay): Split into this, ...
14215 (record_btrace_stop_replaying): ... this, ...
14216 (record_btrace_clear_histories): ... and this.
14217 (init_record_btrace_ops): Init to_can_execute_reverse.
14218 * NEWS: Announce it.
14219
118e6252
MM
142202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14221
14222 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14223 (forward_target_decr_pc_after_break)
14224 (target_decr_pc_after_break): New.
14225 * target.c (forward_target_decr_pc_after_break)
14226 (target_decr_pc_after_break): New.
14227 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14228 instead of gdbarch_decr_pc_after_break.
14229 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14230 instead of gdbarch_decr_pc_after_break.
14231 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14232 instead of gdbarch_decr_pc_after_break.
14233 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14234 instead of gdbarch_decr_pc_after_break.
14235 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14236 instead of gdbarch_decr_pc_after_break.
14237 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14238 instead of gdbarch_decr_pc_after_break.
14239
6e07b1d2
MM
142402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14241
14242 * btrace.c: Include regcache.h.
14243 (btrace_add_pc): New.
14244 (btrace_enable): Call btrace_add_pc.
14245 (btrace_is_empty): New.
14246 * btrace.h (btrace_is_empty): New.
14247 * record-btrace.c (require_btrace, record_btrace_info): Call
14248 btrace_is_empty.
14249
969c39fb
MM
142502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14251
14252 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14253 Support delta reads.
14254 (linux_disable_btrace): Change return type.
14255 * common/linux-btrace.h (linux_read_btrace): Change parameters
14256 and return type to allow error reporting. Update users.
14257 (linux_disable_btrace): Change return type. Update users.
14258 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14259 New.
14260 (btrace_error): New.
14261 (btrace_block) <begin>: Comment on BEGIN == 0.
14262 * btrace.c (btrace_compute_ftrace): Start from the end of
14263 the current trace.
14264 (btrace_stitch_trace, btrace_clear_history): New.
14265 (btrace_fetch): Read delta trace, return if replaying.
14266 (btrace_clear): Move clear history code to btrace_clear_history.
14267 (parse_xml_btrace): Throw an error if parsing failed.
14268 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14269 and return type to allow error reporting.
14270 (target_read_btrace): Change parameters and return type to allow
14271 error reporting.
14272 * target.c (target_read_btrace): Update.
14273 * remote.c (remote_read_btrace): Support delta reads. Pass
14274 errors on.
14275 * NEWS: Announce it.
14276
0b722aec
MM
142772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14278
14279 * record.h (record_btrace_frame_unwind)
14280 (record_btrace_tailcall_frame_unwind): New declarations.
14281 * dwarf2-frame: Include record.h
14282 (dwarf2_frame_cfa): Throw an error for btrace frames.
14283 * record-btrace.c: Include hashtab.h.
14284 (btrace_get_bfun_name): New.
14285 (btrace_call_history): Call btrace_get_bfun_name.
14286 (struct btrace_frame_cache): New.
14287 (bfcache): New.
14288 (bfcache_hash, bfcache_eq, bfcache_new): New.
14289 (btrace_get_frame_function): New.
14290 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14291 (record_btrace_frame_this_id): Compute own id.
14292 (record_btrace_frame_prev_register): Provide PC, throw_error
14293 for all other registers.
14294 (record_btrace_frame_sniffer): Detect btrace frames.
14295 (record_btrace_tailcall_frame_sniffer): New.
14296 (record_btrace_frame_dealloc_cache): New.
14297 (record_btrace_frame_unwind): Add new functions.
14298 (record_btrace_tailcall_frame_unwind): New.
14299 (_initialize_record_btrace): Allocate cache.
14300 * btrace.c (btrace_clear): Call reinit_frame_cache.
14301 * NEWS: Announce it.
14302
066ce621
MM
143032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14304
14305 * record-btrace.c (record_btrace_set_replay)
14306 (record_btrace_goto_begin, record_btrace_goto_end)
14307 (record_btrace_goto): New.
14308 (init_record_btrace_ops): Initialize them.
14309 * NEWS: Announce it.
14310
e2887aa3
MM
143112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14312
14313 * record-btrace.c (record_btrace_find_new_threads)
14314 (record_btrace_thread_alive): New.
14315 (init_record_btrace_ops): Initialize to_find_new_threads and
14316 to_thread_alive.
14317
b2f4cfde
MM
143182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14319
14320 * record-btrace.c (record_btrace_resume): New.
14321 (record_btrace_wait): New.
14322 (init_record_btrace_ops): Initialize to_wait and to_resume.
14323
633785ff
MM
143242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14325
14326 * record-btrace.c (record_btrace_xfer_partial)
14327 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14328 (record_btrace_allow_memory_access): New.
14329 (init_record_btrace_ops): Initialize new methods.
14330 * target.c (raw_memory_xfer_partial): Bail out if target reports
14331 that this memory is not available.
14332
3db08215
MM
143332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14334
14335 * target.h (target_ops) <to_insert_breakpoint>
14336 <to_remove_breakpoint>: Add target_ops parameter.
14337 (forward_target_insert_breakpoint): New.
14338 (forward_target_remove_breakpoint): New.
14339 (memory_remove_breakpoint, memory_insert_breakpoint):
14340 Add target_ops parameter.
14341 * target.c (target_insert_breakpoint): Split into this and ...
14342 (forward_target_insert_breakpoint): ... this.
14343 (target_remove_breakpoint): Split into this and ...
14344 (forward_target_remove_breakpoint): ... this.
14345 (debug_to_insert_breakpoint): Add target_ops parameter.
14346 Call forward_target_insert_breakpoint.
14347 (debug_to_remove_breakpoint): Add target_ops parameter.
14348 Call forward_target_remove_breakpoint.
14349 (update_current_target): Do not inherit or default to_insert_breakpoint
14350 and to_remove_breakpoint.
14351 * corelow.c (ignore): Add target_ops parameter.
14352 * exec.c (ignore): Add target_ops parameter.
14353 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14354 Add target_ops parameter.
14355 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14356 Add target_ops parameter.
14357 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14358 Add target_ops parameter.
14359 * record-full.c (record_full_beneath_to_insert_breakpoint)
14360 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14361 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14362 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14363 (record_full_core_remove_breakpoint): Add target_ops parameter.
14364 Update users.
14365 (record_full_beneath_to_insert_breakpoint_ops)
14366 (record_full_beneath_to_remove_breakpoint_ops)
14367 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14368 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14369 tmp_to_remove_breakpoint_ops,
14370 record_full_beneath_to_insert_breakpoint_ops, and
14371 record_full_beneath_to_remove_breakpoint_ops.
14372 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14373 (m32r_remove_breakpoint): Add target_ops parameter.
14374 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14375 Add target_ops parameter.
14376 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14377 Add target_ops parameter.
14378
cecac1ab
MM
143792014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14380 Markus Metzger <markus.t.metzger@intel.com>
14381
14382 * record-btrace.c: Include frame-unwind.h.
14383 (record_btrace_frame_unwind_stop_reason)
14384 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14385 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14386 New.
14387 (init_record_btrace_ops): Install it.
14388
824344ca
MM
143892014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14390
14391 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14392 get_prev_frame_1.
14393
32261e52
MM
143942014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14395
14396 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14397 earlier.
14398
ea001bdc
MM
143992014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14400
14401 * frame-unwind.c: Include target.h.
14402 (frame_unwind_try_unwinder): New function with code from ...
14403 (frame_unwind_find_by_frame): ... here. New variable
14404 unwinder_from_target, call also target_get_unwinder)
14405 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14406 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14407 * target.h (struct target_ops): New fields to_get_unwinder and
14408 to_get_tailcall_unwinder.
14409 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14410
1f3ef581
MM
144112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14412
14413 * record-btrace.c (record_btrace_fetch_registers)
14414 (record_btrace_store_registers)
14415 (record_btrace_to_prepare_to_store): New.
14416 (init_record_btrace_ops): Add the above.
14417
f32dbf8c
MM
144182014-01-16 Tom Tromey <tromey@redhat.com>
14419
14420 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14421 * target.h (struct target_ops) <to_prepare_to_store>: Add
14422 argument.
14423 (target_prepare_to_store): Add argument.
14424 * target.c (debug_to_prepare_to_store): Add argument.
14425 (update_current_target): Update.
14426 * remote.c (remote_prepare_to_store): Add 'self' argument.
14427 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14428 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14429 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14430 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14431 argument.
14432 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14433 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14434 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14435 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14436 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14437
07bbe694
MM
144382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14439
14440 * btrace.h (replay) <replay>: New.
14441 (btrace_is_replaying): New.
14442 * btrace.c (btrace_clear): Free replay iterator.
14443 (btrace_is_replaying): New.
14444 * record-btrace.c (record_btrace_is_replaying): New.
14445 (record_btrace_info): Print insn number if replaying.
14446 (record_btrace_insn_history): Start at replay position.
14447 (record_btrace_call_history): Start at replay position.
14448 (init_record_btrace_ops): Init to_record_is_replaying.
14449
0688d04e
MM
144502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14451
14452 * record-btrace.c (record_btrace_insn_history_range): Include
14453 end.
14454 (record_btrace_insn_history_from): Adjust range.
14455 (record_btrace_call_history_range): Include
14456 end.
14457 (record_btrace_call_history_from): Adjust range.
14458 * NEWS: Announce changes.
14459
8710b709
MM
144602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14461
14462 * record.h (enum record_print_flag)
14463 <record_print_indent_calls>: New.
14464 * record.c (get_call_history_modifiers): Recognize /c modifier.
14465 (_initialize_record): Document /c modifier.
14466 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14467 Reorder fields. Optionally indent the function name. Update
14468 all users.
14469 * NEWS: Announce changes.
14470
d0fa7535
MM
144712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14472
14473 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14474
5de9129b
MM
144752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14476
14477 * btrace.c (ftrace_new_function): Start counting at one.
14478 * record-btrace.c (record_btrace_info): Adjust number of calls
14479 and insns.
14480 * NEWS: Announce it.
14481
7acbe133
MM
144822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14483
14484 * record-btrace.c (btrace_call_history_insn_range): Print
14485 insn range as [begin, end].
14486
23a7fe75
MM
144872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14488
14489 * btrace.h (struct btrace_func_link): New.
14490 (enum btrace_function_flag): New.
14491 (struct btrace_inst): Rename to ...
14492 (struct btrace_insn): ...this. Update all users.
14493 (struct btrace_func) <ibegin, iend>: Remove.
14494 (struct btrace_func_link): New.
14495 (struct btrace_func): Rename to ...
14496 (struct btrace_function): ...this. Update all users.
14497 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14498 (number, level, flags>: New.
14499 (struct btrace_insn_iterator): Rename to ...
14500 (struct btrace_insn_history): ...this.
14501 Update all users.
14502 (struct btrace_insn_iterator, btrace_call_iterator): New.
14503 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14504 (struct btrace_target_info) <begin, end, level>
14505 <insn_history, call_history>: New.
14506 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14507 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14508 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14509 (btrace_call_number, btrace_call_begin, btrace_call_end)
14510 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14511 (btrace_find_function_by_number, btrace_set_insn_history)
14512 (btrace_set_call_history): New.
14513 * btrace.c (btrace_init_insn_iterator)
14514 (btrace_init_func_iterator, compute_itrace): Remove.
14515 (ftrace_print_function_name, ftrace_print_filename)
14516 (ftrace_skip_file): Change
14517 parameter to const.
14518 (ftrace_init_func): Remove.
14519 (ftrace_debug): Use new btrace_function fields.
14520 (ftrace_function_switched): Also consider gaining and
14521 losing symbol information).
14522 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14523 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14524 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14525 New.
14526 (ftrace_new_function): Move. Remove debug print.
14527 (ftrace_update_lines, ftrace_update_insns): New.
14528 (ftrace_update_function): Check for call, ret, and jump.
14529 (compute_ftrace): Renamed to ...
14530 (btrace_compute_ftrace): ...this. Rewritten to compute call
14531 stack.
14532 (btrace_fetch, btrace_clear): Updated.
14533 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14534 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14535 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14536 (btrace_call_number, btrace_call_begin, btrace_call_end)
14537 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14538 (btrace_find_function_by_number, btrace_set_insn_history)
14539 (btrace_set_call_history): New.
14540 * record-btrace.c (require_btrace): Use new btrace thread
14541 info fields.
14542 (record_btrace_info, btrace_insn_history)
14543 (record_btrace_insn_history, record_btrace_insn_history_range):
14544 Use new btrace thread info fields and new iterator.
14545 (btrace_func_history_src_line): Rename to ...
14546 (btrace_call_history_src_line): ...this. Use new btrace
14547 thread info fields.
14548 (btrace_func_history): Rename to ...
14549 (btrace_call_history): ...this. Use new btrace thread info
14550 fields and new iterator.
14551 (record_btrace_call_history, record_btrace_call_history_range):
14552 Use new btrace thread info fields and new iterator.
14553
8372a7cb
MM
145542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14555
14556 * frame.h (frame_id_build_unavailable_stack_special): New.
14557 * frame.c (frame_id_build_unavailable_stack_special): New.
14558
c2170eef
MM
145592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14560
14561 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14562 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14563 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14564 to gdbarch.
14565 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14566 (i386_insn_is_jump, i386_jmp_p): New.
14567 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14568 insn_is_jump to gdbarch.
14569 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14570 * gdbarch.h: Regenerated.
14571 * gdbarch.c: Regenerated.
14572 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14573 (default_insn_is_jump): New.
14574 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14575 (default_insn_is_jump): New.
14576
864089d2
MM
145772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14578
14579 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14580 Change to ...
14581 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14582 (btrace_read_type) <btrace_read_new>: Change to ...
14583 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14584
ed9edfb5
MM
145852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14586
14587 * common/linux-btrace.c (linux_read_btrace): Free trace from
14588 previous iteration.
14589
fbcbc3fd
DE
145902014-01-15 Doug Evans <dje@google.com>
14591
14592 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14593 uint32_t.
14594
3d548a53
TT
145952014-01-15 Tom Tromey <tromey@redhat.com>
14596
14597 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14598 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14599 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14600 (set_objfile_main_name): New function.
14601 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14602 language_of_main>: New fields.
14603 (set_objfile_main_name): Declare.
14604 * symtab.c (find_main_name): Loop over objfiles to find the main
14605 name and language.
14606 (set_main_name): Now static.
14607 (get_main_info): Add comment.
14608 * symtab.h (set_main_name): Don't declare.
14609
32ac0d11
TT
146102014-01-15 Tom Tromey <tromey@redhat.com>
14611
14612 * symtab.c (main_progspace_key): New global.
14613 (struct main_info): New.
14614 (name_of_main, language_of_main): Remove.
14615 (get_main_info, main_info_cleanup): New function.
14616 (set_main_name, main_name, main_language): Use get_main_info.
14617 (_initialize_symtab): Initialize main_progspace_key.
14618
9e6c82ad
TT
146192014-01-15 Tom Tromey <tromey@redhat.com>
14620
14621 * dbxread.c (process_one_symbol): Update.
14622 * dwarf2read.c (read_partial_die): Update.
14623 * symfile.c (set_initial_language): Call main_language.
14624 * symtab.c (language_of_main): Now static.
14625 (set_main_name): Add 'lang' parameter.
14626 (find_main_name): Update.
14627 (main_language): New function.
14628 (symtab_observer_executable_changed): Update.
14629 * symtab.h (set_main_name): Update.
14630 (language_of_main): Remove.
14631 (main_language): Declare.
14632
6ef55de7
TT
146332014-01-15 Tom Tromey <tromey@redhat.com>
14634
14635 * symfile.c (init_entry_point_info): Use new "initialized" field.
14636 Update.
14637 * objfiles.h (struct entry_point) <initialized>: New field.
14638 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14639 (struct objfile) <ei>: ...here. Remove.
14640 * objfiles.c (entry_point_address_query): Update.
14641
53eddfa6
TT
146422014-01-15 Tom Tromey <tromey@redhat.com>
14643
14644 * objfiles.c (entry_point_address_query): Relocate entry point
14645 address.
14646 (objfile_relocate1): Do not relocate entry point address.
14647 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14648 <the_bfd_section_index>: New field.
14649 * symfile.c (init_entry_point_info): Find the entry point's
14650 section.
14651
d56e56aa
TT
146522014-01-15 Tom Tromey <tromey@redhat.com>
14653
14654 * solib-frv.c (enable_break): Use entry_point_address_query.
14655
33a97bbe
OJ
146562014-01-15 Omair Javaid <omair.javaid@linaro.org>
14657
14658 * NEWS: Add note on improved process record-replay on
14659 arm*-linux* targets.
14660
c6ec2b30
OJ
146612014-01-15 Omair Javaid <omair.javaid@linaro.org>
14662
14663 * arm-tdep.c (enum arm_record_result): New enum.
14664 (arm_record_unsupported_insn): New function.
14665 (arm_record_coproc_data_proc): Removed.
14666 (thumb2_record_ld_st_multiple): New function.
14667 (thumb2_record_ld_st_dual_ex_tbb): New function.
14668 (thumb2_record_data_proc_sreg_mimm): New function.
14669 (thumb2_record_ps_dest_generic): New function.
14670 (thumb2_record_branch_misc_cntrl): New function.
14671 (thumb2_record_str_single_data): New function.
14672 (thumb2_record_ld_mem_hints): New function.
14673 (thumb2_record_ld_word): New function.
14674 (thumb2_record_lmul_lmla_div): New function.
14675 (thumb2_record_decode_insn_handler): New function.
14676 (decode_insn): Add thumb32 instruction handlers.
14677
97dfe206
OJ
146782014-01-15 Omair Javaid <omair.javaid@linaro.org>
14679
14680 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14681 (struct arm_linux_record_tdep): Declare.
14682 (arm_canonicalize_syscall): New function.
14683 (arm_all_but_pc_registers_record): New function.
14684 (arm_linux_syscall_record): New function.
14685 (arm_linux_init_abi): Add syscall recording constructs.
14686 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14687 decoding. (arm_record_coproc_data_proc): Update arm syscall
14688 decoding.
14689 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14690 <arm_syscall_record>: New field.
14691 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14692 gdb_target_obs.
14693
9904a494
OJ
146942014-01-15 Omair Javaid <omair.javaid@linaro.org>
14695
14696 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14697 register for push instruction recording.
14698
f969241e
OJ
146992014-01-15 Omair Javaid <omair.javaid@linaro.org>
14700
14701 * arm-tdep.c (thumb_record_misc): Update to correct logical
14702 error while recording ldm, ldmia and pop instructions.
14703
bfbbec00
OJ
147042014-01-15 Omair Javaid <omair.javaid@linaro.org>
14705
14706 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14707
e40adcc9
PA
147082014-01-15 Pedro Alves <palves@redhat.com>
14709
14710 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14711 (go32_resume, go32_fetch_registers, store_register)
14712 (go32_store_registers, go32_prepare_to_store)
14713 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14714 (go32_create_inferior, go32_can_run, go32_terminal_init)
14715 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14716 declarations.
14717
b0a16e66
TT
147182014-01-15 Tom Tromey <tromey@redhat.com>
14719
14720 * target.h (async_callback_ftype): New typedef.
14721 (struct target_ops) <to_async>: Use it.
14722
bf7105a4
JB
147232014-01-15 Joel Brobecker <brobecker@adacore.com>
14724
14725 * python/py-value.c (get_field_type): Remove unnecessary curly
14726 braces for single-statement if block.
14727
a8f35c2e
JB
147282014-01-15 Joel Brobecker <brobecker@adacore.com>
14729
14730 * python/py-type.c (convert_field): Add missing empty line
14731 after declarations.
14732
bb4142cf
DE
147332014-01-14 Doug Evans <dje@google.com>
14734
14735 * symfile.h (expand_symtabs_matching): Renamed from
14736 expand_partial_symbol_names. Update prototype.
14737 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14738 * symfile.c (expand_symtabs_matching): Renamed from
14739 expand_partial_symbol_names. New args file_matcher, kind.
14740 Rename arg fun to symbol_matcher.
14741 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14742 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14743 ada_expand_partial_symbol_name.
14744 (ada_make_symbol_completion_list): Update to call
14745 expand_symtabs_matching.
14746 (ada_add_global_exceptions): Call expand_symtabs_matching.
14747 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14748 call map_symbol_filenames.
14749 * symtab.c (sources_info): Update to call map_symbol_filenames.
14750 (search_symbols): Call expand_symtabs_matching.
14751 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14752 (default_make_symbol_completion_list_break_on): Update to call
14753 expand_symtabs_matching.
14754 (make_source_files_completion_list): Update to call
14755 map_symbol_filenames.
14756
206f2a57
DE
147572014-01-14 Doug Evans <dje@google.com>
14758
14759 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14760 (expand_symtabs_symbol_matcher_ftype): New typedef.
14761 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14762 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14763 * symfile.c (expand_partial_symbol_names): Update to use
14764 expand_symtabs_symbol_matcher_ftype.
14765 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14766 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14767 Arg name_matcher renamed to symbol_matcher.
14768 * psymtab.c (recursively_search_psymtabs): Update to use
14769 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14770 sym_matcher.
14771 (expand_symtabs_matching_via_partial): Update to use
14772 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14773 Arg name_matcher renamed to symbol_matcher.
14774
540c2971
DE
147752014-01-14 Doug Evans <dje@google.com>
14776
14777 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14778 (map_partial_symbol_filenames): Ditto.
14779 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14780 (map_partial_symbol_filenames): Ditto.
14781 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14782 (map_partial_symbol_filenames): Ditto.
14783 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14784 (map_partial_symbol_filenames): Ditto.
14785 * symtab.c: Delete #include "psymtab.h".
14786
8213266a
PA
147872014-01-14 Pedro Alves <palves@redhat.com>
14788 Tom Tromey <tromey@redhat.com>
14789
14790 * infrun.c (use_displaced_stepping): Use find_record_target
14791 instead of RECORD_IS_USED.
14792 (adjust_pc_after_break): Use record_full_is_used instead of
14793 RECORD_IS_USED.
14794 * record-btrace.c (record_btrace_open): Call record_preopen
14795 instead of checking RECORD_IS_USED.
14796 * record-full.c (record_full_shortname)
14797 (record_full_core_shortname): New globals.
14798 (record_full_is_used): New function.
14799 (find_full_open): Call record_preopen instead of checking
14800 RECORD_IS_USED.
14801 (init_record_full_ops): Set the target's shortname to
14802 record_full_shortname.
14803 (init_record_full_core_ops): Set the target's shortname to
14804 record_full_core_shortname.
14805 * record-full.h (record_full_is_used): Declare.
14806 * record.c (find_record_target): Make extern.
14807 (record_preopen): New function.
14808 * record.h (RECORD_IS_USED): Delete macro.
14809 (find_record_target, record_preopen): Declare functions.
14810
7ec1862d
YQ
148112014-01-14 Yao Qi <yao@codesourcery.com>
14812
14813 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14814 'len''s type to ULONGEST.
14815 (core_xfer_shared_libraries_aix): Likewise.
14816 * gdbarch.c, gdbarch.h: Regenerated.
14817 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14818 Change type of 'len' to ULONGEST.
14819 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14820 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14821
dea80a27
YQ
148222014-01-14 Yao Qi <yao@codesourcery.com>
14823
14824 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14825 type of 'len' to ULONGEST.
14826 (linux_xfer_osdata_processgroups): Likewise.
14827 (linux_xfer_osdata_threads): Likewise.
14828 (linux_xfer_osdata_fds): Likewise.
14829 (linux_xfer_osdata_isockets): Likewise.
14830 (linux_xfer_osdata_shm): Likewise.
14831 (linux_xfer_osdata_sem): Likewise.
14832 (linux_xfer_osdata_msg): Likewise.
14833 (linux_common_xfer_osdata): Likewise.
14834 (struct osdata_type) <getter>: Likewise.
14835 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14836 the declaration.
14837
b55e14c7
YQ
148382014-01-14 Yao Qi <yao@codesourcery.com>
14839
14840 * target.h (target_xfer_partial_ftype): Update.
14841 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14842 ULONGEST.
14843 * aix-thread.c (aix_thread_xfer_partial): Change type of
14844 argument 'len' to ULONGEST.
14845 * auxv.c (procfs_xfer_auxv): Likewise.
14846 (ld_so_xfer_auxv): Likewise.
14847 (memory_xfer_auxv): Likewise.
14848 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14849 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14850 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14851 * corelow.c (core_xfer_partial): Likewise.
14852 * ctf.c (ctf_xfer_partial): Likewise.
14853 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14854 '%u'.
14855 (darwin_read_dyld_info): Likewise.
14856 (darwin_xfer_partial): Likewise.
14857 * exec.c (section_table_xfer_memory_partial): Likewise.
14858 (exec_xfer_partial): Likewise.
14859 * exec.h (section_table_xfer_memory_partial): Update
14860 declaration.
14861 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14862 instead of plongest.
14863 (gnu_xfer_partial): Likewise.
14864 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14865 (ia64_hpux_xfer_solib_got): Likewise.
14866 (ia64_hpux_xfer_partial): Likewise.
14867 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14868 * inf-ptrace.c (inf_ptrace_xfer_partial):
14869 * inf-ttrace.c (inf_ttrace_xfer_partial):
14870 * linux-nat.c (linux_xfer_siginfo): Likewise.
14871 (linux_nat_xfer_partial): Likewise.
14872 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14873 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14874 * monitor.c (monitor_xfer_memory): Likewise.
14875 (monitor_xfer_partial): Likewise.
14876 * procfs.c (procfs_xfer_partial): Likewise.
14877 * record-full.c (record_full_xfer_partial): Likewise.
14878 (record_full_core_xfer_partial): Likewise.
14879 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14880 instead of plongest.
14881 (gdbsim_xfer_partial): Likewise.
14882 * remote.c (remote_xfer_partial): Likewise.
14883 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14884 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14885 declaration.
14886 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14887 (rs6000_xfer_shared_libraries): Likewise.
14888 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14889 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14890 (sparc_xfer_partial): Likewise.
14891 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14892 (spu_xfer_partial): Likewise.
14893 * spu-multiarch.c (spu_xfer_partial): Likewise.
14894 * target.c (target_read_live_memory): Likewise.
14895 (memory_xfer_live_readonly_partial): Likewise.
14896 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14897 (target_xfer_partial, default_xfer_partial): Likewise.
14898 (current_xfer_partial): Likewise.
14899 * tracepoint.c (tfile_xfer_partial): Likewise.
14900 * windows-nat.c (windows_xfer_memory): Likewise. Call
14901 pulongest instead of plongest.
14902 (windows_xfer_partial): Likewise.
14903 (windows_xfer_shared_libraries): Likewise.
14904
05804640
YQ
149052014-01-14 Yao Qi <yao@codesourcery.com>
14906
14907 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14908 target_xfer_partial_ftype.
14909
b5b08fb4
SC
149102014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14911
14912 PR python/15464
14913 PR python/16113
14914 * valops.c (value_struct_elt_bitpos): New function
14915 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14916 object to 'None' if the field name is an empty string ("").
14917 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14918 attribute to look for a field when 'name' is 'None'.
14919 (get_field_type): New function
14920
13aaf454
DE
149212014-01-13 Doug Evans <dje@google.com>
14922
14923 PR symtab/16426
14924 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14925 (try_open_dwop_file): Ditto.
14926 * gdb_bfd.c: #include "vec.h".
14927 (bfdp): New typedef.
14928 (struct gdb_bfd_data): New member included_bfds.
14929 (gdb_bfd_unref): Unref all included bfds.
14930 (gdb_bfd_record_inclusion): New function.
14931 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14932
c2cec97c
TT
149332014-01-13 Tom Tromey <tromey@redhat.com>
14934
14935 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14936
78e5999d
TT
149372014-01-13 Tom Tromey <tromey@redhat.com>
14938
14939 * defs.h (use_windows): Remove.
14940 * gdb.c (main): Update.
14941 * main.c (captured_main, gdb_main): Update.
14942 * main.h (struct captured_main_args) <use_windows>: Remove.
14943 * top.c (use_windows): Remove.
14944
f2052bbe
TT
149452014-01-13 Tom Tromey <tromey@redhat.com>
14946
14947 * defs.h (deprecated_flush_hook): Remove.
14948
fde4f8ed
JK
149492014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14950
14951 PR threads/16216
14952 * linux-thread-db.c (try_thread_db_load): Add parameter
14953 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14954 (try_thread_db_load_from_pdir_1): Move it there from here.
14955 (try_thread_db_load_from_sdir): Update caller.
14956 (try_thread_db_load_from_dir): Move it there from here.
14957
bdf61915
PP
149582014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14959
14960 * regformats/regdat.sh: Always rewrite the register file.
14961
f71e1a8d
PA
149622014-01-13 Pedro Alves <palves@redhat.com>
14963
14964 * Makefile.in (CHECK_HEADERS): New variable.
14965 (check-headers:): New rule.
14966
42c85435
TT
149672014-01-13 Tom Tromey <tromey@redhat.com>
14968
14969 * cli/cli-setshow.c (do_set_command): Update.
14970 * defs.h (deprecated_set_hook): Remove.
14971 * top.c (deprecated_set_hook): Remove.
14972
f8de5129
PA
149732014-01-13 Pedro Alves <palves@redhat.com>
14974
14975 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14976 the tracepoint if the PC is a pseudo-register.
14977
fc270c35
TT
149782014-01-13 Tom Tromey <tromey@redhat.com>
14979
14980 * defs.h (XCALLOC): Remove.
14981 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14982 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14983 * dwarf2loc.c (allocate_piece_closure): Likewise.
14984 * elfread.c (elf_symfile_segments): Likewise.
14985 (elf_symfile_segments): Likewise.
14986 * gdbtypes.c (copy_type_recursive): Likewise.
14987 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14988 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14989 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14990 XCALLOC.
14991 * mt-tdep.c (mt_gdbarch_init): Likewise.
14992 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14993 XCALLOC.
14994 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14995 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14996 * registry.c (registry_alloc_data): Likewise.
14997 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14998 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14999 * serial.c (serial_fdopen_ops): Likewise.
15000 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15001 XCALLOC.
15002 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15003 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15004 not XCALLOC.
15005
70ba0933
TT
150062014-01-13 Tom Tromey <tromey@redhat.com>
15007
15008 * defs.h (XMALLOC): Remove.
15009 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15010 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15011 * cli-out.c (struct ui_out *): Likewise.
15012 * cli/cli-dump.c (add_dump_command): Likewise.
15013 (add_dump_command): Likewise.
15014 * complaints.c (get_complaints): Likewise.
15015 (find_complaint): Likewise.
15016 * dwarf2-frame.c (execute_cfa_program): Likewise.
15017 * dwarf2read.c (abbrev_table_read_table): Likewise.
15018 * gdbarch.sh: Likewise.
15019 * gdbarch.c: Rebuild.
15020 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15021 * interps.c (interp_new): Likewise.
15022 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15023 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15024 * mi/mi-console.c (mi_console_file_new): Likewise.
15025 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15026 * mi/mi-out.c (mi_out_new): Likewise.
15027 * mi/mi-parse.c (mi_parse): Likewise.
15028 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15029 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15030 * observer.c (xalloc_observer_list_node): Likewise.
15031 * regcache.c (regcache_xmalloc_1): Likewise.
15032 * reggroups.c (reggroup_new): Likewise.
15033 (_initialize_reggroup): Likewise.
15034 * registry.c (register_data_with_cleanup): Likewise.
15035 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15036 * ser-base.c (serial_ttystate): Likewise.
15037 * ser-mingw.c (make_pipe_state): Likewise.
15038 * ser-pipe.c (pipe_open): Likewise.
15039 * serial.c (serial_open): Likewise.
15040 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15041 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15042 (tui_alloc_win_info): Likewise.
15043 (tui_add_content_elements): Likewise.
15044 * tui/tui-file.c (tui_file_new): Likewise.
15045 * tui/tui-out.c (tui_out_new): Likewise.
15046 * ui-file.c (mem_file_new): Likewise.
15047 * ui-out.c (push_level): Likewise.
15048 (make_cleanup_ui_out_end): Likewise.
15049 (append_header_to_list): Likewise.
15050 (ui_out_new): Likewise.
15051 * user-regs.c (user_reg_add_builtin): Likewise.
15052
41bf6aca
TT
150532014-01-13 Tom Tromey <tromey@redhat.com>
15054
15055 * defs.h (XZALLOC): Remove.
15056 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15057 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15058 (get_ada_tasks_inferior_data): Likewise.
15059 * auto-load.c (get_auto_load_pspace_data): Likewise.
15060 * auxv.c (get_auxv_inferior_data): Likewise.
15061 * bfd-target.c (target_bfd_reopen): Likewise.
15062 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15063 (deprecated_insert_raw_breakpoint): Likewise.
15064 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15065 * corelow.c (core_open): Likewise.
15066 * darwin-nat.c (darwin_check_new_threads): Likewise.
15067 (darwin_attach_pid): Likewise.
15068 * dummy-frame.c (dummy_frame_push): Likewise.
15069 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15070 * dwarf2loc.c (allocate_piece_closure): Likewise.
15071 * elfread.c (elf_symfile_segments): Likewise.
15072 * eval.c (ptrmath_type_p): Likewise.
15073 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15074 * gdbtypes.c (alloc_type_arch): Likewise.
15075 (alloc_type_instance): Likewise.
15076 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15077 * inf-child.c (inf_child_can_use_agent): Likewise.
15078 * inflow.c (get_inflow_inferior_data): Likewise.
15079 * infrun.c (save_infcall_suspend_state): Likewise.
15080 * jit.c (jit_reader_load): Likewise.
15081 (get_jit_objfile_data): Likewise.
15082 (get_jit_program_space_data): Likewise.
15083 (jit_object_open_impl): Likewise.
15084 (jit_symtab_open_impl): Likewise.
15085 (jit_block_open_impl): Likewise.
15086 (jit_frame_sniffer): Likewise.
15087 * linux-fork.c (add_fork): Likewise.
15088 * maint.c (make_command_stats_cleanup): Likewise.
15089 * objfiles.c (get_objfile_pspace_data): Likewise.
15090 * opencl-lang.c (struct lval_closure): Likewise.
15091 * osdata.c (osdata_start_osdata): Likewise.
15092 * progspace.c (new_address_space): Likewise.
15093 (add_program_space): Likewise.
15094 * remote-sim.c (get_sim_inferior_data): Likewise.
15095 * sh-tdep.c (sh_gdbarch_init): Likewise.
15096 * skip.c (Ignore): Likewise.
15097 (skip_delete_command): Likewise.
15098 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15099 (library_list_start_library): Likewise.
15100 (solib_aix_current_sos): Likewise.
15101 * solib-darwin.c (get_darwin_info): Likewise.
15102 (darwin_current_sos): Likewise.
15103 * solib-dsbt.c (get_dsbt_info): Likewise.
15104 * solib-ia64-hpux.c (new_so_list): Likewise.
15105 (ia64_hpux_get_solib_linkage_addr): Likewise.
15106 * solib-spu.c (append_ocl_sos): Likewise.
15107 (spu_current_sos): Likewise.
15108 * solib-svr4.c (get_svr4_info): Likewise.
15109 (svr4_keep_data_in_core): Likewise.
15110 (library_list_start_library): Likewise.
15111 (svr4_default_sos): Likewise.
15112 (svr4_read_so_list): Likewise.
15113 * solib-target.c (library_list_start_library): Likewise.
15114 (solib_target_current_sos): Likewise.
15115 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15116 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15117 * symfile.c (default_symfile_segments): Likewise.
15118 * target-descriptions.c (tdesc_data_init): Likewise.
15119 (tdesc_create_reg): Likewise.
15120 (struct tdesc_type *): Likewise.
15121 (tdesc_create_vector): Likewise.
15122 (tdesc_set_struct_size): Likewise.
15123 (struct tdesc_type *): Likewise.
15124 (tdesc_free_feature): Likewise.
15125 (tdesc_create_feature): Likewise.
15126 * windows-nat.c (windows_add_thread): Likewise.
15127 (windows_make_so): Likewise.
15128 * xml-support.c (gdb_xml_body_text): Likewise.
15129 (gdb_xml_create_parser_and_cleanup): Likewise.
15130 (xml_process_xincludes): Likewise.
15131 * xml-syscall.c (allocate_syscalls_info): Likewise.
15132 (syscall_create_syscall_desc): Likewise.
15133
5acfdbae
SDJ
151342014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15135
15136 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15137 function, with code from i386_stap_parse_special_token.
15138 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15139 (i386_stap_parse_special_token): Move code to the two functions
15140 above; simplify it.
15141
0000e5cc
PA
151422014-01-09 Pedro Alves <palves@redhat.com>
15143 Hui Zhu <hui@codesourcery.com>
15144
15145 PR gdb/16101
15146 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15147 bp_err_string. Don't mark the location shlib_disabled if the
15148 error thrown wasn't a generic or memory error. Catch errors
15149 thrown while inserting breakpoints in overlayed code. Output
15150 error message of software breakpoints.
15151 * remote.c (remote_insert_breakpoint): If this breakpoint has
15152 target-side commands but this stub doesn't support Z0 packets,
15153 throw NOT_SUPPORTED_ERROR error.
15154 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15155 * target.h (target_insert_breakpoint): Extend comment.
15156 (target_insert_hw_breakpoint): Add comment.
15157
b7ea362b
PA
151582014-01-08 Pedro Alves <palves@redhat.com>
15159
15160 * remote.c (remote_add_thread): Add threads silently if starting
15161 up.
15162 (remote_notice_new_inferior): If in all-stop, and starting up,
15163 don't call notice_new_inferior.
15164 (get_current_thread): New function, factored out from ...
15165 (add_current_inferior_and_thread): ... this. Adjust.
15166 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15167 found any thread, then select the remote's current thread as GDB's
15168 current thread too.
15169
b7bba001
JB
151702014-01-08 Joel Brobecker <brobecker@adacore.com>
15171
15172 * NEWS: Create a new section for the next release branch.
15173 Rename the section of the current branch, now that it has
15174 been cut.
15175
16dfbded
JB
151762014-01-08 Joel Brobecker <brobecker@adacore.com>
15177
15178 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15179 * version.in: Bump version to 7.7.50.DATE-cvs.
15180
22c90ac1
YQ
151812014-01-08 Yao Qi <yao@codesourcery.com>
15182
15183 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15184 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15185 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15186
d64ad97c
YQ
151872014-01-08 Yao Qi <yao@codesourcery.com>
15188
15189 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15190 return value of bfd_get_filename to symbol_file_add_from_bfd.
15191
f93ba80c
PM
151922014-01-08 Pierre Muller <muller@sourceware.org>
15193
15194 Fix PR16201.
15195 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15196 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15197 to prim_record_mininal_symbol_and_info.
15198 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15199 in call to prim_record_minimal_symbol_and_info.
15200 (read_pe_exported_syms): Set index field of section_data.
15201
a4d9ba85
AP
152022014-01-07 Andrew Pinski <apinski@cavium.com>
15203
15204 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15205 * features/aarch64.c: Regenerate.
15206
1b67eb02
AS
152072014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15208
15209 * target.c (return_null): Define.
15210 (update_current_target): Use it instead of return_zero for
15211 functions that return a pointer.
15212
5e3f4fab
EBM
152132014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15214
15215 * source.c (add_path): Fix check for duplicated paths in the previously
15216 included paths.
15217
e2616788
HK
152182014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15219
15220 * ada-lang.c: Remove duplicated include statements.
15221 * alphabsd-nat.c: Ditto.
15222 * amd64-darwin-tdep.c: Ditto.
15223 * amd64fbsd-nat.c: Ditto.
15224 * auto-load.c: Ditto.
15225 * ax-gdb.c: Ditto.
15226 * breakpoint.c: Ditto.
15227 * dbxread.c: Ditto.
15228 * fork-child.c: Ditto.
15229 * gdb_usleep.c: Ditto.
15230 * i386-darwin-tdep.c: Ditto.
15231 * i386fbsd-nat.c: Ditto.
15232 * infcmd.c: Ditto.
15233 * inferior.c: Ditto.
15234 * jv-lang.c: Ditto.
15235 * linux-nat.c: Ditto.
15236 * linux-tdep.c: Ditto.
15237 * m68kbsd-nat.c: Ditto.
15238 * m68klinux-nat.c: Ditto.
15239 * microblaze-tdep.c: Ditto.
15240 * mips-linux-tdep.c: Ditto.
15241 * mn10300-tdep.c: Ditto.
15242 * nto-tdep.c: Ditto.
15243 * opencl-lang.c: Ditto.
15244 * osdata.c: Ditto.
15245 * printcmd.c: Ditto.
15246 * regcache.c: Ditto.
15247 * remote-m32r-sdi.c: Ditto.
15248 * remote.c: Ditto.
15249 * symfile.c: Ditto.
15250 * symtab.c: Ditto.
15251 * tilegx-linux-nat.c: Ditto.
15252 * tilegx-tdep.c: Ditto.
15253 * tracepoint.c: Ditto.
15254 * valops.c: Ditto.
15255 * vaxbsd-nat.c: Ditto.
15256 * windows-nat.c: Ditto.
15257 * xtensa-tdep.c: Ditto.
15258
bd1f7788
YQ
152592014-01-07 Yao Qi <yao@codesourcery.com>
15260
15261 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15262
79301218
JB
152632014-01-07 Yao Qi <yao@codesourcery.com>
15264 Joel Brobecker <brobecker@adacore.com>
15265
15266 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15267 (pdc_write_regs): Likewise.
15268 (fetch_regs_kernel_thread): Likewise.
15269 (store_regs_kernel_thread): Likewise.
15270
152712014-01-07 Joel Brobecker <brobecker@adacore.com>
15272
15273 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15274 tagged type objects to their actual type.
15275
8e355c5d
JB
152762014-01-07 Joel Brobecker <brobecker@adacore.com>
15277
15278 * ada-valprint.c (print_field_values): Add "language" parameter.
15279 Update calls to print_field_values and print_variant_part.
15280 Pass new parameter "language" in call to val_print instead
15281 of "current_language". Replace call to ada_val_print by call
15282 to val_print.
15283 (print_variant_part): Add "language" parameter.
15284 (ada_val_print_struct_union): Update call to print_field_values.
15285
4fbf5aa5
JB
152862014-01-07 Joel Brobecker <brobecker@adacore.com>
15287
15288 * ada-valprint.c (ui_memcpy): Delete.
15289 (ada_print_floating): Update documentation. Add empty line
15290 between between function documentation and implementation.
15291 Delete variable "buffer". Use ui_file_xstrdup in place of
15292 ui_file_put. Minor adjustments following this change.
15293
71855601
JB
152942014-01-07 Joel Brobecker <brobecker@adacore.com>
15295
15296 * ada-valprint.c (ada_val_print_string): New function,
15297 extracted from ada_val_print_array.
15298 (ada_val_print_array): Replace extracted code by call
15299 to ada_val_print_string followed by a return. Move
15300 "else" branch to the function's top block.
15301
4eb27a30
JB
153022014-01-07 Joel Brobecker <brobecker@adacore.com>
15303
15304 * ada-valprint.c (ada_val_print_array): Move implementation
15305 down. Rename parameter "offset" and "val" into "offset_aligned"
15306 and "original_value" respectively. Add parameter "offset".
15307
34b27950
JB
153082014-01-07 Joel Brobecker <brobecker@adacore.com>
15309
15310 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15311 re-organizing the code. Change the "???" message printed
15312 when target type is a TYPE_CODE_UNDEF into
15313 "<ref to undefined type>".
15314
079e4591
JB
153152014-01-07 Joel Brobecker <brobecker@adacore.com>
15316
15317 * ada-valprint.c (print_record): Delete, implementation inlined...
15318 (ada_val_print_struct_union): ... here. Remove call to
15319 ada_check_typedef in inlined implementation.
15320
8004dfd1
JB
153212014-01-07 Joel Brobecker <brobecker@adacore.com>
15322
15323 * ada-valprint.c (ada_val_print_gnat_array): New function,
15324 extracted from ada_val_print_1;
15325 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15326 (ada_val_print_flt, ada_val_print_struct_union)
15327 (ada_val_print_ref): Likewise.
15328 (ada_val_print_1): Delete variables i and elttype.
15329 Replace extracted-out code by call to corresponding
15330 new functions.
15331
760a2db0
JB
153322014-01-07 Joel Brobecker <brobecker@adacore.com>
15333
15334 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15335
3a92c861
JB
153362014-01-07 Joel Brobecker <brobecker@adacore.com>
15337
15338 * ada-valprint.c (ada_val_print_1): Replace calls to
15339 ada_val_print_1 by calls to val_print.
15340
cd1630f9
JB
153412014-01-07 Joel Brobecker <brobecker@adacore.com>
15342
15343 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15344 Update calls to self accordingly. Replace calls to c_val_print
15345 by calls to val_print.
15346
bdf779a0
JB
153472014-01-07 Joel Brobecker <brobecker@adacore.com>
15348
15349 * ada-valprint.c (print_record): Delete declaration.
15350 (adjust_type_signedness, ada_val_print_1): Likewise.
15351 (ada_val_print): Move function implementation down.
15352 (print_variant_part, print_field_values, print_record):
15353 Move function implementation up.
15354
c0d48811
JB
153552014-01-07 Joel Brobecker <brobecker@adacore.com>
15356
15357 * python/py-type.c (typy_get_name): New function.
15358 (type_object_getset): Add entry for attribute "name".
15359 * NEWS: Add entry mentioning this new attribute.
15360
c26e9cbb
YQ
153612014-01-07 Yao Qi <yao@codesourcery.com>
15362
15363 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15364 statement.
15365
0cc6f43d
YQ
153662014-01-07 Yao Qi <yao@codesourcery.com>
15367
15368 * gnu-nat.c (info_port_rights): Add qualifier const to
15369 argument args.
15370
eec03155
YQ
153712014-01-07 Yao Qi <yao@codesourcery.com>
15372
15373 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15374
f04a82ef
YQ
153752014-01-07 Yao Qi <yao@codesourcery.com>
15376
15377 * gnu-nat.c (make_inf) Update declaration.
15378 (make_inf): Make it static.
15379 (inf_set_traced): Likewise.
15380 (inf_port_to_thread, inf_task_died_status): Likewise.
15381
d57dda0a
YQ
153822014-01-07 Yao Qi <yao@codesourcery.com>
15383
15384 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15385
3aa8c969
YQ
153862014-01-07 Yao Qi <yao@codesourcery.com>
15387
15388 * gnu-nat.c (_initialize_gnu_nat): Declare.
15389
94123b4f
YQ
153902014-01-07 Yao Qi <yao@codesourcery.com>
15391
15392 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15393 'enum bfd_endian'.
15394 (struct gdbarch_info) <byte_order>: Change type to
15395 'enum bfd_endian'.
15396 <byte_order_for_code>: Likewise.
15397 * gdbarch.c, gdbarch.h: Regenerated.
15398
dc81d70a
TT
153992014-01-06 Sasha Smundak <asmundak@google.com>
15400
15401 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15402
cc2f3c35
TT
154032014-01-06 Tom Tromey <tromey@redhat.com>
15404
15405 * doublest.c (convert_doublest_to_floatformat): Use const, not
15406 CONST.
15407 * somread.c (som_symtab_read): Likewise.
15408
adcf2eed
HZ
154092014-01-07 Hui Zhu <hui@codesourcery.com>
15410
15411 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15412 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15413 (gdb_bfd_fopen): Ditto.
15414 (gdb_bfd_openr): Ditto.
15415 (gdb_bfd_openw): Ditto.
15416 (gdb_bfd_openr_iovec): Ditto.
15417 (gdb_bfd_fdopenr): Ditto.
15418 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15419 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15420 with xstrdup.
15421 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15422 with xstrdup.
15423 * symfile-mem.c (symbol_file_add_from_memory): Removed
15424 gdb_bfd_stash_filename.
15425
50722198
DE
154262014-01-03 Doug Evans <dje@google.com>
15427
15428 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15429 output.
15430
2fa4b862
JB
154312014-01-01 Joel Brobecker <brobecker@adacore.com>
15432
15433 Update year range in copyright notice of all files.
15434
28498c42
JB
154352014-01-01 Joel Brobecker <brobecker@adacore.com>
15436
15437 * top.c (print_gdb_version): Set copyright year to 2014.
15438
7b6e1046
JB
154392014-01-01 Joel Brobecker <brobecker@adacore.com>
15440
15441 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15442
df96af55 15443For older changes see ChangeLog-2013.
c906108c
SS
15444\f
15445Local Variables:
15446mode: change-log
15447left-margin: 8
15448fill-column: 74
15449version-control: never
57da7796 15450coding: utf-8
c906108c 15451End:
This page took 2.306736 seconds and 4 git commands to generate.