[GOLD] PowerPC relaxation corner case
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cac9b138
JK
12014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
4
a441dfbc
ST
52014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6
7 Pushed by Joel Brobecker <brobecker@adacore.com>
8 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
9 elements pi_len by the size of the elements before calling
10 vm_deallocate.
11 (inf_validate_task_sc): Likewise, and properly deallocate the
12 noise array.
13
4c9e8482
DE
142014-11-23 Doug Evans <xdje42@gmail.com>
15
16 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
17 number and name if present. All callers updated.
18 (dump_fn_fieldlists): Fix indentation of args.
19
15ee0bbd
PP
202014-11-23 Patrick Palka <patrick@parcs.ath.cx>
21
22 * MAINTAINERS (Write After Approval): Add myself.
23
e8af5d7a
JB
242014-11-23 Joel Brobecker <brobecker@adacore.com>
25
26 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
27 to a bp_call_dummy breakpoint type.
28
a344fc09
PP
292014-11-23 Patrick Palka <patrick@parcs.ath.cx>
30
31 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
32 registering the signal handler.
33
d64e57fa
PP
342014-11-23 Patrick Palka <patrick@parcs.ath.cx>
35
36 * event-top.h (call_stdin_event_handler_again_p): Declare.
37 * event-top.c (call_stdin_event_handler_again_p): Define.
38 (stdin_event_handler): Use it.
39 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
40 handler again if there is pending input following a
41 start sequence.
42
6f9d33d8
PP
432014-11-23 Patrick Palka <patrick@parcs.ath.cx>
44
45 Pushed by Joel Brobecker <brobecker@adacore.com>
46 * linux-fork.c (checkpoint_command): Print index of new
47 checkpoint in response message.
48
88db67ef
YQ
492014-11-23 Yao Qi <yao@codesourcery.com>
50
51 * valprint.c (read_string): Move local variables 'found_nul',
52 'chunksize' and 'limit' to inner scope. Update comments.
53
01465b56
DE
542014-11-22 Doug Evans <xdje42@gmail.com>
55
56 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
57 function comment.
58 (search_symbols): Fix comments and whitespace.
59
07a1c2c3
DE
602014-11-22 Doug Evans <xdje42@gmail.com>
61
62 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
63
b2a919a8
DE
642014-11-21 Doug Evans <dje@google.com>
65
66 * psymtab.c (psymtab_search_name): Fix whitespace.
67
278289d5
YQ
682014-11-21 Yao Qi <yao@codesourcery.com>
69
70 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
71 errno.
72 * gnulib/import/Makefile.am: Re-generated.
73 * gnulib/import/Makefile.in: Likewise.
74 * gnulib/import/m4/gnulib-cache.m4: Likewise.
75
e01e2baa
YQ
762014-11-21 Yao Qi <yao@codesourcery.com>
77
78 * gdb_wchar.h: Include wchar.h and wctype.h.
79 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
80 include wchar.h and wctype.h.
81 Don't check HAVE_WCHAR_H.
82
f0c00af8
YQ
832014-11-21 Yao Qi <yao@codesourcery.com>
84
85 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
86 and wctype-h.
87 * gnulib/import/Makefile.am: Re-generated.
88 * gnulib/import/Makefile.in: Likewise.
89 * gnulib/import/m4/gnulib-cache.m4: Likewise.
90
0cae13bb
YQ
912014-11-21 Yao Qi <yao@codesourcery.com>
92
93 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
94 memchr.
95 * gnulib/import/Makefile.am: Re-generated.
96 * gnulib/import/Makefile.in: Likewise.
97 * gnulib/import/m4/gnulib-cache.m4: Likewise.
98
9c232dda
YQ
992014-11-21 Yao Qi <yao@codesourcery.com>
100
101 * common/common-defs.h: Include alloca.h
102 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
103 * configure: Re-generated.
104 * defs.h: Remove code handling alloca.
105 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
106 or not.
107
00d7f58f
YQ
1082014-11-21 Yao Qi <yao@codesourcery.com>
109
110 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
111 alloca.
112 * gnulib/import/Makefile.am: Re-generated.
113 * gnulib/import/Makefile.in: Likewise..
114 * gnulib/import/m4/gnulib-cache.m4: Likewise.
115
6068ad5d
YQ
1162014-11-21 Yao Qi <yao@codesourcery.com>
117
118 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
119 alphabetical order.
120
45e44d27
JB
1212014-11-21 Joel Brobecker <brobecker@adacore.com>
122
123 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
124 flag_unsigned if HIGH_BOUND is constant and negative.
125
7e7cbeb3
SDJ
1262014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
127
128 PR breakpoints/10737
129 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
130 modifier from "struct gdbarch" when compiling without Expat (XML)
131 support.
132 (get_syscall_by_number): Likewise.
133 (get_syscall_by_name): Likewise.
134 (get_syscall_names): Likewise.
135
458c8db8
SDJ
1362014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
137
138 PR breakpoints/10737
139 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
140 set_xml_syscall_file_name to provide gdbarch.
141 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
142 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
143 * breakpoint.c (print_it_catch_syscall): Adjust call to
144 get_syscall_by_number to provide gdbarch.
145 (print_one_catch_syscall): Likewise.
146 (print_mention_catch_syscall): Likewise.
147 (print_recreate_catch_syscall): Likewise.
148 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
149 and get_syscall_by_name to provide gdbarch.
150 (catch_syscall_completer): Adjust call to get_syscall_names to
151 provide gdbarch.
152 * gdbarch.c: Regenerate.
153 * gdbarch.h: Likewise.
154 * gdbarch.sh: Forward declare "struct syscalls_info".
155 (xml_syscall_file): New variable.
156 (syscalls_info): Likewise.
157 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
158 set_xml_syscall_file_name to provide gdbarch.
159 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
160 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
161 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
162 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
163 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
164 * xml-syscall.c: Include gdbarch.h.
165 (set_xml_syscall_file_name): Accept gdbarch parameter.
166 (get_syscall_by_number): Likewise.
167 (get_syscall_by_name): Likewise.
168 (get_syscall_names): Likewise.
169 (my_gdb_datadir): Delete global variable.
170 (struct syscalls_info) <my_gdb_datadir>: New variable.
171 (struct syscalls_info) <sysinfo>: Rename variable to
172 "syscalls_info".
173 (sysinfo): Delete global variable.
174 (have_initialized_sysinfo): Likewise.
175 (xml_syscall_file): Likewise.
176 (sysinfo_free_syscalls_desc): Rename to...
177 (syscalls_info_free_syscalls_desc): ... this.
178 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
179 code to the new layout of "struct syscalls_info".
180 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
181 "syscalls_info".
182 (syscall_create_syscall_desc): Likewise.
183 (syscall_start_syscall): Likewise.
184 (syscall_parse_xml): Likewise.
185 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
186 (init_sysinfo): Rename to...
187 (init_syscalls_info): ...this. Add gdbarch as a parameter.
188 Adjust function to deal with gdbarch.
189 (xml_get_syscall_number): Delete parameter sysinfo. Accept
190 gdbarch as a parameter. Adjust code.
191 (xml_get_syscall_name): Likewise.
192 (xml_list_of_syscalls): Likewise.
193 (set_xml_syscall_file_name): Accept gdbarch as parameter.
194 (get_syscall_by_number): Likewise.
195 (get_syscall_by_name): Likewise.
196 (get_syscall_names): Likewise.
197 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
198 (get_syscall_by_number): Likewise.
199 (get_syscall_by_name): Likewise.
200 (get_syscall_names): Likewise.
201
43f3e411
DE
2022014-11-20 Doug Evans <xdje42@gmail.com>
203
204 Split struct symtab into two: struct symtab and compunit_symtab.
205 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
206 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
207 to "struct compunit_symtab *". All callers updated.
208 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
209 "struct symtab *" argument to "struct compunit_symtab *".
210 All callers updated.
211 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
212 result to "struct compunit_symtab *". All callers updated.
213 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
214 Change result to "struct compunit_symtab *". All callers updated.
215 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
216 hange type to "struct compunit_symtab *". All uses updated.
217 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
218 Change type to "struct compunit_symtab *". All uses updated.
219 * buildsym.c (struct buildsym_compunit): New struct.
220 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
221 (buildsym_compunit): New static global.
222 (finish_block_internal): Update to fetch objfile from
223 buildsym_compunit.
224 (make_blockvector): Delete objfile argument.
225 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
226 debugformat, producer.
227 (start_buildsym_compunit): New function.
228 (free_buildsym_compunit): Renamed from free_subfiles_list.
229 All callers updated.
230 (patch_subfile_names): Rewrite to use buildsym_compunit.
231 (get_compunit_symtab): New function.
232 (get_macro_table): Delete argument comp_dir. All callers updated.
233 (start_symtab): Change result to "struct compunit_symtab *".
234 All callers updated. Create the subfile of the main source file.
235 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
236 (reset_symtab_globals): Update.
237 (end_symtab_get_static_block): Update to use buildsym_compunit.
238 (end_symtab_without_blockvector): Rewrite.
239 (end_symtab_with_blockvector): Change result to
240 "struct compunit_symtab *". All callers updated.
241 Update to use buildsym_compunit. Don't set symtab->dirname,
242 instead set it in the compunit.
243 Explicitly make sure main symtab is first in its list.
244 Set debugformat, producer, blockvector, block_line_section, and
245 macrotable in the compunit.
246 (end_symtab_from_static_block): Change result to
247 "struct compunit_symtab *". All callers updated.
248 (end_symtab, end_expandable_symtab): Ditto.
249 (set_missing_symtab): Change symtab argument to
250 "struct compunit_symtab *". All callers updated.
251 (augment_type_symtab): Ditto.
252 (record_debugformat): Update to use buildsym_compunit.
253 (record_producer): Update to use buildsym_compunit.
254 * buildsym.h (struct subfile) <dirname>: Delete.
255 <producer, debugformat>: Delete.
256 <buildsym_compunit>: New member.
257 (get_compunit_symtab): Declare.
258 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
259 from primary_symtab. Change type to "struct compunit_symtab *".
260 All uses updated.
261 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
262 All callers updated.
263 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
264 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
265 symtab. Change type to "struct compunit_symtab *". All uses updated.
266 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
267 All callers updated.
268 (dw2_find_last_source_symtab): Ditto.
269 (dw2_lookup_symbol): Ditto.
270 (recursively_find_pc_sect_compunit_symtab): Renamed from
271 recursively_find_pc_sect_symtab. Change result to
272 "struct compunit_symtab *". All callers updated.
273 (dw2_find_pc_sect_compunit_symtab): Renamed from
274 dw2_find_pc_sect_symtab. Change result to
275 "struct compunit_symtab *". All callers updated.
276 (get_compunit_symtab): Renamed from get_symtab. Change result to
277 "struct compunit_symtab *". All callers updated.
278 (recursively_compute_inclusions): Change type of immediate_parent
279 argument to "struct compunit_symtab *". All callers updated.
280 (compute_compunit_symtab_includes): Renamed from
281 compute_symtab_includes. All callers updated. Rewrite to compute
282 includes of compunit_symtabs and not symtabs.
283 (process_full_comp_unit): Update to work with struct compunit_symtab.
284 (process_full_type_unit): Ditto.
285 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
286 (dwarf_decode_lines): Remove special case handling of main subfile.
287 (macro_start_file): Delete argument comp_dir. All callers updated.
288 (dwarf_decode_macro_bytes): Ditto.
289 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
290 use struct compunit_symtab.
291 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
292 * jit.c (finalize_symtab): Build compunit_symtab.
293 * jv-lang.c (get_java_class_symtab): Change result to
294 "struct compunit_symtab *". All callers updated.
295 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
296 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
297 comp_dir. Change type to "struct compunit_symtab *".
298 All uses updated.
299 (new_macro_table): Change comp_dir argument to cust,
300 "struct compunit_symtab *". All callers updated.
301 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
302 nr_primary_symtabs. All uses updated.
303 (count_symtabs_and_blocks): Update to handle compunits.
304 (report_command_stats): Update output, "primary symtabs" renamed to
305 "compunits".
306 * mdebugread.c (new_symtab): Change result to
307 "struct compunit_symtab *". All callers updated.
308 (parse_procedure): Change type of search_symtab argument to
309 "struct compunit_symtab *". All callers updated.
310 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
311 separate loop.
312 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
313 symtabs. Change type to "struct compunit_symtab *". All uses updated.
314 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
315 All uses updated.
316 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
317 All uses updated.
318 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
319 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
320 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
321 symtab. Change type to "struct compunit_symtab *". All uses updated.
322 * psymtab.c (psymtab_to_symtab): Change result type to
323 "struct compunit_symtab *". All callers updated.
324 (find_pc_sect_compunit_symtab_from_partial): Renamed from
325 find_pc_sect_symtab_from_partial. Change result type to
326 "struct compunit_symtab *". All callers updated.
327 (lookup_symbol_aux_psymtabs): Change result type to
328 "struct compunit_symtab *". All callers updated.
329 (find_last_source_symtab_from_partial): Ditto.
330 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
331 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
332 and macro_table from compunit.
333 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
334 type to "struct compunit_symtab *". All callers updated.
335 (debug_qf_lookup_symbol): Ditto.
336 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
337 debug_qf_find_pc_sect_symtab, change result type to
338 "struct compunit_symtab *". All callers updated.
339 * symfile.c (allocate_symtab): Delete objfile argument.
340 New argument cust.
341 (allocate_compunit_symtab): New function.
342 (add_compunit_symtab_to_objfile): New function.
343 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
344 Change result type to "struct compunit_symtab *". All uses updated.
345 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
346 Change result type to "struct compunit_symtab *". All uses updated.
347 * symmisc.c (print_objfile_statistics): Compute blockvector count in
348 separate loop.
349 (dump_symtab_1): Update test for primary source symtab.
350 (maintenance_info_symtabs): Update to handle compunit symtabs.
351 (maintenance_check_symtabs): Ditto.
352 * symtab.c (set_primary_symtab): Delete.
353 (compunit_primary_filetab): New function.
354 (compunit_language): New function.
355 (iterate_over_some_symtabs): Change type of arguments "first",
356 "after_last" to "struct compunit_symtab *". All callers updated.
357 Update to loop over symtabs in each compunit.
358 (error_in_psymtab_expansion): Rename symtab argument to cust,
359 and change type to "struct compunit_symtab *". All callers updated.
360 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
361 Change result type to "struct compunit_symtab *". All callers updated.
362 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
363 Change result type to "struct compunit_symtab *". All callers updated.
364 (find_pc_sect_line): Only loop over symtabs within selected compunit
365 instead of all symtabs in the objfile.
366 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
367 <compunit_symtab> New member.
368 <block_line_section>: Moved to compunit_symtab.
369 <locations_valid>: Ditto.
370 <epilogue_unwind_valid>: Ditto.
371 <macro_table>: Ditto.
372 <dirname>: Ditto.
373 <debugformat>: Ditto.
374 <producer>: Ditto.
375 <objfile>: Ditto.
376 <call_site_htab>: Ditto.
377 <includes>: Ditto.
378 <user>: Ditto.
379 <primary>: Delete
380 (SYMTAB_COMPUNIT): New macro.
381 (SYMTAB_BLOCKVECTOR): Update definition.
382 (SYMTAB_OBJFILE): Update definition.
383 (SYMTAB_DIRNAME): Update definition.
384 (struct compunit_symtab): New type. Common members among all source
385 symtabs within a compilation unit moved here. All uses updated.
386 (COMPUNIT_OBJFILE): New macro.
387 (COMPUNIT_FILETABS): New macro.
388 (COMPUNIT_DEBUGFORMAT): New macro.
389 (COMPUNIT_PRODUCER): New macro.
390 (COMPUNIT_DIRNAME): New macro.
391 (COMPUNIT_BLOCKVECTOR): New macro.
392 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
393 (COMPUNIT_LOCATIONS_VALID): New macro.
394 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
395 (COMPUNIT_CALL_SITE_HTAB): New macro.
396 (COMPUNIT_MACRO_TABLE): New macro.
397 (ALL_COMPUNIT_FILETABS): New macro.
398 (compunit_symtab_ptr): New typedef.
399 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
400
005e2509
JB
4012014-11-20 Joel Brobecker <brobecker@adacore.com>
402
403 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
404 if the TYPE_CODE of range_type's base type does not match
405 the TYPE_CODE of encoding_type's base type.
406
2b0f535a
JB
4072014-11-19 Joel Brobecker <brobecker@adacore.com>
408
409 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
410 it starts with '<'.
411
8908fca5
JB
4122014-11-19 Joel Brobecker <brobecker@adacore.com>
413
414 * ada-lang.c (ada_is_redundant_range_encoding): New function.
415 (ada_is_redundant_index_type_desc): New function.
416 (to_fixed_array_type): Ignore parallel XA type if redundant.
417
4a46959e
JB
4182014-11-19 Joel Brobecker <brobecker@adacore.com>
419
420 * ada-lang.c (constrained_packed_array_type): Set the length
421 of the return array as if both bounds where zero if that
422 returned array's index type is dynamic.
423
2acf986b
YQ
4242014-11-19 Yao Qi <yao@codesourcery.com>
425
426 * config/i386/go32.mh (CC): Remove.
427
439247b6
DE
4282014-11-18 Doug Evans <xdje42@gmail.com>
429
430 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
431 updated.
432
4d663531
DE
4332014-11-18 Doug Evans <xdje42@gmail.com>
434
435 * buildsym.c (buildsym_objfile): New static global.
436 (buildsym_comp_dir): New static global.
437 (finish_block_internal): Delete arg objfile. All callers updated.
438 (finish_block): Delete arg objfile. All callers updated.
439 (start_subfile): Delete arg dirname. All callers updated.
440 (patch_subfile_names): Update buildsym_comp_dir.
441 (get_macro_table): Delete arg objfile. All callers updated.
442 (start_symtab): New arg objfile. All callers updated.
443 Rename arg dirname to comp_dir.
444 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
445 (end_symtab_get_static_block): Delete arg objfile. All callers
446 updated.
447 (end_symtab_without_blockvector): Ditto.
448 (end_symtab_with_blockvector): Ditto.
449 (end_symtab_from_static_block): Ditto.
450 (end_symtab): Ditto.
451 (end_expandable_symtab): Ditto.
452 (augment_type_symtab): Ditto.
453 * coffread.c (coff_start_symtab): New arg objfile. All callers
454 updated.
455
8435453b
DE
4562014-11-18 Doug Evans <xdje42@gmail.com>
457
458 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
459 updated.
460
ee6f8984
DE
4612014-11-18 Doug Evans <xdje42@gmail.com>
462
463 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
464 symtab.dirname updated to use it.
465
eb822aa6
DE
4662014-11-18 Doug Evans <xdje42@gmail.com>
467
468 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
469 symtab.objfile updated to use it.
470
98387a29
DE
4712014-11-18 Doug Evans <xdje42@gmail.com>
472
473 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
474
aff08958
DE
4752014-11-18 Doug Evans <xdje42@gmail.com>
476
477 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
478 SYMBOL_OBJFILE.
479 * findvar.c (default_read_var_value): Ditto.
480 * jv-lang.c (add_class_symtab_symbol): Ditto.
481 * parse.c (operator_check_standard): Ditto.
482 * printcmd.c (address_info): Ditto.
483 * symtab.c (fixup_symbol_section): Ditto.
484 (skip_prologue_sal): Ditto.
485 * tracepoint.c (scope_info): Ditto.
486 * valops.c (find_function_in_inferior): Ditto.
487 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
488 * python/py-symbol.c (set_symbol): Ditto.
489
7bab9b58
DE
4902014-11-18 Doug Evans <xdje42@gmail.com>
491
492 * buildsym.c (main_subfile): New static global.
493 (free_subfiles_list): New function.
494 (start_symtab): Set main_subfile.
495 (restart_symtab): Replace init of subfiles, current_subfile with
496 call to free_subfiles_list.
497 (watch_main_source_file_lossage): Use main_subfile.
498 (reset_symtab_globals): Replace init of current_subfile with call
499 to free_subfiles_list.
500 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
501 functions, split out from ...
502 (end_symtab_from_static_block): ... here. Rewrite to call them.
503
f194fefb
DE
5042014-11-18 Doug Evans <xdje42@gmail.com>
505
506 The result of symtab expansion is always a primary symtab.
507 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
508 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
509 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
510 (psymtab_to_symtab): Add comment and assert.
511 (map_matching_symbols_psymtab): Remove unnecessary test for
512 non-primary symtab.
513
34248c3a
DE
5142014-11-15 Doug Evans <xdje42@gmail.com>
515
516 PR symtab/17559
517 * symtab.c (find_pc_line_symtab): New function.
518 * symtab.h (find_pc_line_symtab): Declare.
519 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
520 find_pc_symtab.
521 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
522 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
523 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
524 * tui/tui-win.c (make_visible_with_new_height): Ditto.
525 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
526 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
527
2097ae25
DE
5282014-11-15 Doug Evans <xdje42@gmail.com>
529
530 * symtab.c (expand_symtab_containing_pc): Renamed from
531 find_pc_sect_symtab_via_partial. All callers updated.
532
1ada499f
YQ
5332014-11-15 Yao Qi <yao@codesourcery.com>
534
535 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
536
355e2102
JB
5372014-11-14 Joel Brobecker <brobecker@adacore.com>
538
539 * common/common-defs.h: Move <stdarg.h> #include ahead of
540 <stdio.h> #include.
541
83030110
PA
5422014-11-14 Pedro Alves <palves@redhat.com>
543
544 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
545 [!PHONY_ICONV] (gdb_iconv): New function.
546 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
547
a8719064
DE
5482014-11-13 Doug Evans <dje@google.com>
549
550 PR symtab/17591
551 * dwarf2read.c (find_slot_in_mapped_hash): Handle
552 "(anonymous namespace)".
553
60f7655a
DE
5542014-11-13 Doug Evans <dje@google.com>
555
556 * dwarf2read.c (update_enumeration_type_from_children): Avoid
557 infinite loop.
558
5784b3ca
JK
5592014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
560
561 * NEWS (maint set target-async): Fix typo.
562
6218dc4b
PA
5632014-11-12 Pedro Alves <palves@redhat.com>
564
565 * infrun.c (enum infwait_states, infwait_state): Delete.
566
af48d08f
PA
5672014-11-12 Pedro Alves <palves@redhat.com>
568
569 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
570 Rewrite stepping over a permanent breakpoint.
571 (thread_still_needs_step_over, proceed): Don't set
572 stepping_over_breakpoint for permanent breakpoints.
573 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
574 single-step breakpoints out of the target on hardware step
575 targets.
576 (process_event_stop_test): If stepping a permanent breakpoint
577 doesn't hit the step-resume breakpoint, delete the step-resume
578 breakpoint.
579 (switch_back_to_stepped_thread): Also check if the stepped thread
580 has advanced already on hardware step targets.
581 (currently_stepping): Return true if the thread stepped a
582 breakpoint.
583
1a853c52
PA
5842014-11-12 Pedro Alves <palves@redhat.com>
585
586 Mark locations as permanent, not the whole breakpoint.
587 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
588 (mark_breakpoints_out): Don't mark permanent breakpoints as
589 uninserted.
590 (breakpoint_init_inferior): Use mark_breakpoints_out.
591 (breakpoint_here_p): Adjust.
592 (bpstat_stop_status, describe_other_breakpoints): Remove handling
593 of permanent breakpoints.
594 (make_breakpoint_permanent): Mark each location as permanent,
595 instead of marking the breakpoint.
596 (add_location_to_breakpoint): If the location is permanent, mark
597 it as such, and as inserted.
598 (init_breakpoint_sal): Don't make the breakpoint permanent here.
599 (bp_location_compare, update_global_location_list): Adjust.
600 (update_breakpoint_locations): Don't make the breakpoint permanent
601 here.
602 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
603 breakpoints.
604 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
605 (struct bp_location) <permanent>: New field.
606 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
607 reference to bp_permanent.
608
ae9bb220
PA
6092014-11-12 Pedro Alves <palves@redhat.com>
610
611 * arch-utils.c (default_skip_permanent_breakpoint): New function.
612 * arch-utils.h (default_skip_permanent_breakpoint): New
613 declaration.
614 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
615 Install default_skip_permanent_breakpoint as default method.
616 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
617 (i386_gdbarch_init): Don't install it.
618 * infrun.c (resume): Assume there's always a
619 gdbarch_skip_permanent_breakpoint implementation.
620 * gdbarch.h, gdbarch.c: Regenerate.
621
015de688
DC
6222014-11-11 Daniel Colascione <dancol@dancol.org>
623
624 Warn about cross-PID-namespace debugging.
625 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
626 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
627 * linux-thread-db.c (check_pid_namespace_match): New function.
628 (thread_db_inferior_created): Call it.
629
26a84859
DE
6302014-11-10 Doug Evans <xdje42@gmail.com>
631
632 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
633 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
634
712a2e6d
DE
6352014-11-10 Doug Evans <xdje42@gmail.com>
636
637 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
638
af3768e9
DE
6392014-11-10 Doug Evans <xdje42@gmail.com>
640
641 PR symtab/17564
642 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
643 (lookup_static_symbol): Move definition to new location and rewrite.
644 (lookup_symbol_in_objfile): New function.
645 (lookup_symbol_global_iterator_cb): Call it.
646
b1f28d99
UW
6472014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
648
649 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
650
b7a084be
PA
6512014-11-07 Pedro Alves <palves@redhat.com>
652
653 * infrun.c (process_event_stop_test) <subroutine check>: Don't
654 check if we did a "nexti" inside a prologue.
655 * symtab.c (in_prologue): Delete function.
656 * symtab.h (in_prologue): Delete declaration.
657
67be31e5
DE
6582014-11-06 Doug Evans <xdje42@gmail.com>
659
660 * symtab.h (lookup_global_symbol): Improve function comment.
661
08724ab7
DE
6622014-11-06 Doug Evans <xdje42@gmail.com>
663
664 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
665 All callers updated.
666 * symtab.h (lookup_global_symbol): Update decl.
667 (lookup_static_symbol): Move decl to better location.
668
d9060ba6
DE
6692014-11-06 Doug Evans <xdje42@gmail.com>
670
671 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
672
74016e12
DE
6732014-11-06 Doug Evans <xdje42@gmail.com>
674
675 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
676 All callers updated.
677 (lookup_symbol_in_all_objfiles): Renamed from
678 lookup_symbol_aux_symtabs. All callers updated.
679 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
680 All callers updated.
681 (lookup_symbol_in_objfile_symtabs): Renamed from
682 lookup_symbol_aux_objfile. All callers updated.
683
d1a2d36d
DE
6842014-11-06 Doug Evans <xdje42@gmail.com>
685
686 * symtab.c (lookup_symbol_in_block): Renamed from
687 lookup_symbol_aux_block. All callers updated.
688
24d864bb
DE
6892014-11-06 Doug Evans <xdje42@gmail.com>
690
691 * symtab.c (lookup_static_symbol): Renamed from
692 lookup_static_symbol_aux. All callers updated.
693 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
694 All callers updated.
695
358d6ab3
DE
6962014-11-06 Doug Evans <xdje42@gmail.com>
697
698 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
699 * block.c (block_lookup_symbol): Use it.
700 * cp-support.c (make_symbol_overload_list_block): Use it.
701 * symtab.c (iterate_over_symbols): Use it.
702
16b2eaa1
DE
7032014-11-06 Doug Evans <xdje42@gmail.com>
704
705 * symtab.c (lookup_block_symbol): Moved to ...
706 * block.c (block_lookup_symbol): ... here and renamed.
707 All callers updated.
708 * block.h (block_lookup_symbol): Declare.
709 * symtab.h (lookup_block_symbol): Delete.
710
2dd2cd1c
DE
7112014-11-06 Doug Evans <xdje42@gmail.com>
712
713 * ada-lang.c (ada_make_symbol_completion_list): Use
714 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
715 * symtab.c (lookup_objfile_from_block): Ditto.
716
d4c58915
DE
7172014-11-06 Doug Evans <xdje42@gmail.com>
718
719 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
720 TYPE_CODE_STRUCT.
721
9c1877ea
DE
7222014-11-06 Doug Evans <xdje42@gmail.com>
723
724 * objfiles.c (get_objfile_arch): Constify.
725 * objfiles.h (get_objfile_arch): Update prototype.
726 * solib.c (solib_global_lookup): Fetch arch from objfile,
727 not target_gdbarch.
728
426a4079
SL
7292014-11-06 Sandra Loosemore <sandra@codesourcery.com>
730
731 * nios2-tdep.c (wild_insn): Delete.
732 (profiler_insn, irqentry_insn): Delete.
733 (nios2_match_sequence): Delete.
734 (nios2_analyze_prologue): Update comments. Remove matching
735 of obsolete profiler_insn and irqentry_insn sequences.
736
ee11262d
AM
7372014-11-05 Alan Modra <amodra@gmail.com>
738
739 * charset.c (convert_between_encodings): Shrink obstack using
740 obstack_blank_fast.
741 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
742 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
743 to char* before doing pointer arithmetic.
ee11262d 744
c87e6d00
SM
7452014-11-04 Simon Marchi <simon.marchi@ericsson.com>
746
747 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
748
441ef17f
PA
7492014-11-04 Pedro Alves <palves@redhat.com>
750
751 * breakpoint.c (breakpoint_thread_match): Delete function.
752 * breakpoint.h (breakpoint_thread_match): Delete declaration.
753
e0f52461
SC
7542014-11-03 Siva Chandra Reddy <sivachandra@google.com>
755
756 PR c++/17494
757 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
758 the method args also under EVAL_SKIP when evaluating method
759 calls under EVAL_SKIP.
760
a0b4d890
YQ
7612014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
762
763 * dwarf2loc.c (read_pieced_value): Do big endian
764 processing only if gdb_regnum is not -1.
765 (write_pieced_value): Ditto.
766
7672014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
768
769 * arm-linux-tdep.c (arm_linux_init_abi): Use
770 info.byte_order_for_code to choose endianity of breakpoint
771 instructions snippets.
772
7732014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
774
775 * arm-tdep.c (extract_arm_insn): Use
776 gdbarch_byte_order_for_code to read arm instruction.
777
e82149ff
DE
7782014-11-02 Doug Evans <xdje42@gmail.com>
779
780 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
781
d7ee84f1
DE
7822014-11-02 Doug Evans <xdje42@gmail.com>
783
784 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
785 main_subfile before returning.
786
4f072d17
DE
7872014-10-31 Doug Evans <xdje42@gmail.com>
788
789 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
790 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
791
8301c89e
DE
7922014-10-31 Doug Evans <xdje42@gmail.com>
793
794 * valops.c (value_cast_pointers): Fix whitespace.
795 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
796 Ditto.
797
02be9a71
DE
7982014-10-30 Doug Evans <dje@google.com>
799
800 * NEWS: Mention ability add attributes to gdb.Objfile and
801 gdb.Progspace objects.
802 * python/py-objfile.c (objfile_object): New member dict.
803 (objfpy_dealloc): Py_XDECREF dict.
804 (objfpy_initialize): Initialize dict.
805 (objfile_getset): Add __dict__.
806 (objfile_object_type): Set tp_dictoffset member.
807 * python/py-progspace.c (progspace_object): New member dict.
808 (pspy_dealloc): Py_XDECREF dict.
809 (pspy_initialize): Initialize dict.
810 (pspace_getset): Add __dict__.
811 (pspace_object_type): Set tp_dictoffset member.
812
6427bef6
YQ
8132014-10-30 Yao Qi <yao@codesourcery.com>
814
815 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
816 replace '\\' with '\\\\'.
817
f60325be
JB
8182014-10-29 Joel Brobecker <brobecker@adacore.com>
819
820 GDB 7.8.1 released.
821
ab917dfb
PA
8222014-10-29 Pedro Alves <palves@redhat.com>
823
824 PR gdb/17408
825 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
826 instead of assuming a thread with a stepping range is always
827 stepping.
828
d3d4baed
PA
8292014-10-29 Pedro Alves <palves@redhat.com>
830
831 PR python/17372
832 * event-top.c (change_line_handler): Call
833 gdb_rl_callback_handler_remove instead of
834 rl_callback_handler_remove.
835 (callback_handler_installed): New global.
836 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
837 (gdb_rl_callback_handler_reinstall): New functions.
838 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
839 gdb_rl_callback_handler_install instead of
840 rl_callback_handler_remove and rl_callback_handler_install.
841 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
842 instead of rl_callback_handler_remove.
843 * event-top.h (gdb_rl_callback_handler_remove)
844 (gdb_rl_callback_handler_install)
845 (gdb_rl_callback_handler_reinstall): New declarations.
846 * infrun.c (reinstall_readline_callback_handler_cleanup): New
847 cleanup function.
848 (fetch_inferior_event): Install it.
849 * top.c (gdb_readline_wrapper_line) Call
850 gdb_rl_callback_handler_remove instead of
851 rl_callback_handler_remove.
852 (gdb_readline_wrapper_cleanup): Don't call
853 rl_callback_handler_install.
854
6e5d7f39
PA
8552014-10-29 Pedro Alves <palves@redhat.com>
856
857 * event-top.c (command_line_handler): Clear the first byte of
858 linebuffer, when it is first allocated.
859
551cb6a5
PA
8602014-10-29 Pedro Alves <palves@redhat.com>
861
862 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
863 TRY_CATCH.
864
1e1e619b
PA
8652014-10-29 Pedro Alves <palves@redhat.com>
866
867 PR tui/16138
868 PR tui/17519
869 * tui/tui-interp.c (tui_is_toplevel): Delete global.
870 (tui_allowed_p): Delete function.
871 * tui/tui.c: Include "interps.h".
872 (tui_enable): Don't use tui_allowed_p. Error out here with
873 detailed error messages if the TUI is the top level interpreter,
874 or if output is not a terminal. Use newterm instead of initscr,
875 and error out if initializing the terminal fails. Also error out if
876 the terminal doesn't support cursor addressing.
877 * tui/tui.h (tui_allowed_p): Delete declaration.
878
6041179a
JB
8792014-10-29 Joel Brobecker <brobecker@adacore.com>
880
881 * arm-tdep.c (arm_skip_stack_protector): Return early if
882 address loaded by first "ldr" instruction does not have
883 a corresponding minimal symbol. Update comment.
884
6ae274b7
YQ
8852014-10-29 Yao Qi <yao@codesourcery.com>
886
887 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
888 loaded address correctly of ldr instruction.
889
7f5ef605
PA
8902014-10-28 Pedro Alves <palves@redhat.com>
891
892 PR gdb/12623
893 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
894 field.
895 * infrun.c (resume) <stepping breakpoint instruction>: Set the
896 thread's stepped_breakpoint field. Skip if reverse debugging.
897 Add comment.
898 (init_thread_stepping_state, handle_signal_stop): Clear the
899 thread's stepped_breakpoint field.
900
7d1a114c
PA
9012014-10-27 Pedro Alves <palves@redhat.com>
902
903 * remote.c (remote_thread_alive): New, factored out from ...
904 (remote_thread_alive): ... this.
905 (remote_update_thread_list): Bail out before deleting threads if
906 the target returned an empty list, and, the current thread has a
907 magic/fake ptid.
908
e5f8a7cc
PA
9092014-10-27 Pedro Alves <palves@redhat.com>
910
911 * infrun.c (handle_signal_stop): Also skip handlers when a random
912 signal arrives while handling a "stepi" or a "nexti". Set the
913 thread's 'step_after_step_resume_breakpoint' flag.
914
71e396f9
LM
9152014-10-27 Luis Machado <lgustavo@codesourcery.com>
916
917 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
918 (arm_record_ld_st_imm_offset): Reimplement to cover all
919 load/store cases for ARM opcode 010.
920 (arm_record_ld_st_multiple): Reimplement to cover all
921 load/store cases for ARM opcode 100.
922
3aee438b
DE
9232014-10-26 Doug Evans <xdje42@gmail.com>
924
925 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
926
f88cb4b6
DE
9272014-10-26 Doug Evans <xdje42@gmail.com>
928
929 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
930 parameter "kind" to "block_index".
931 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
932 "block_index".
933 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
934
a023a30f
DE
9352014-10-26 Doug Evans <xdje42@gmail.com>
936
937 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
938
4c35218e
DE
9392014-10-26 Doug Evans <xdje42@gmail.com>
940
941 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
942 obstack_alloc.
943
f08e8df3
DE
9442014-10-26 Doug Evans <xdje42@gmail.com>
945
946 * parser-defs.h (block_found): Move decl from here ...
947 * symtab.h (block_found): ... to here.
948
cf901d3b
DE
9492014-10-26 Doug Evans <xdje42@gmail.com>
950
951 * symtab.h (struct field_of_this_result): Fix typo in comment.
952 (lookup_symbol_in_language): Move function comment here.
953 (lookup_symbol): Improve function comment.
954 (basic_lookup_symbol_nonlocal): Ditto.
955 (lookup_symbol_static, lookup_symbol_global): Ditto.
956 (lookup_symbol_aux_block): Ditto.
957 (lookup_language_this): Add function comment.
958 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
959 function comment.
960 (lookup_block_symbol): Improve function comment.
961 (lookup_struct): Fix capitalization in function comment.
962 (lookup_transparent_type): Add function comment.
963 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
964 Improve function comment.
965 (lookup_objfile_from_block): Add function comment.
966 * symtab.c (lookup_symbol_in_language): Update function comment.
967 (lookup_symbol, lookup_language_this): Ditto.
968 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
969 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
970 (basic_lookup_symbol_nonlocal): Ditto.
971 (lookup_symbol_static, lookup_symbol_global): Ditto.
972 (lookup_transparent_type, lookup_block_symbol): Ditto.
973
ff6c39cf
DE
9742014-10-25 Doug Evans <xdje42@gmail.com>
975
976 * symtab.c (types_info): Delete forward decl.
977 (functions_info, variables_info, sources_info): Ditto.
978 (_initialize_symtab): Rewrite forward decl to use
979 initialize_file_ftype.
980
ec201f0c
DE
9812014-10-25 Doug Evans <xdje42@gmail.com>
982
983 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
984
ca040673
DE
9852014-10-25 Doug Evans <xdje42@gmail.com>
986
987 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
988 of local var child_die.
989
6f259a23
DB
9902014-10-24 Don Breazeal <donb@codesourcery.com>
991
992 * infrun.c (follow_fork_inferior): Update fork message printing
993 to use target_terminal_ours_for_output instead of
994 target_terminal_ours, to use _() for all format strings, to print
995 "vfork" instead of "fork" for vforks, and to add a detach message.
996 (handle_vfork_child_exec_or_exit): Update message printing to use
997 target_terminal_ours_for_output instead of target_terminal_ours, to
998 use _() for all format strings, and to fix some formatting.
999
09dd9a69
PA
10002014-10-24 Pedro Alves <palves@redhat.com>
1001
1002 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1003 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1004 * config/vax/vax.mh: Delete.
1005 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1006 obsolete configurations section.
1007 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1008 * vax-nat.c: Delete file.
1009
5ab806de
PA
10102014-10-24 Pedro Alves <palves@redhat.com>
1011
1012 * NEWS (Removed targets): Add OS/arch column.
1013
3433cfa5
SC
10142014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1015
1016 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1017 on the arg type of a constructor only if it is of reference type.
1018
96ba4233
SL
10192014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1020
1021 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1022 accessors and constants from nios2 opcodes update.
1023 (nios2_get_next_pc): Likewise.
1024
28153fd3
DE
10252014-10-19 Doug Evans <xdje42@gmail.com>
1026
1027 * gdbthread.h (set_running): Fix comment.
1028 (set_executing, finish_thread_state): Fix comment.
1029
fc9b8e47
DE
10302014-10-18 Doug Evans <xdje42@gmail.com>
1031
1032 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1033
4ffbba72
DE
10342014-10-17 Doug Evans <dje@google.com>
1035
1036 * NEWS: Mention new event gdb.clear_objfiles.
1037 * python/py-event.h (emit_clear_objfiles_event): Clear
1038 * python/py-events.h (events_object): New member clear_objfiles.
1039 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1040 event.
1041 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1042 emit clear_objfiles event.
1043 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1044 function.
1045 (emit_clear_objfiles_event): New function.
1046 (clear_objfiles): New event.
1047 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1048 Declare.
1049 * python/python.c (_initialize_python): Call
1050 gdbpy_initialize_clear_objfiles_event.
1051
d096d8c1
DE
10522014-10-17 Doug Evans <dje@google.com>
1053
1054 * NEWS: Mention new gdb.Objfile.progspace attribute.
1055 * python/py-objfile.c (objfpy_get_progspace): New function.
1056 (objfile_getset): New entry for "progspace".
1057
6c4486e6
PA
10582014-10-17 Pedro Alves <palves@redhat.com>
1059
1060 PR gdb/17471
1061 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1062 returns a copy of the input.
1063 (run_command_1, continue_command, step_1, jump_command)
1064 (signal_command, until_command, advance_command, finish_command)
1065 (attach_command): Adjust and install a cleanup to free the
1066 stripped args.
1067
0ff33695
PA
10682014-10-17 Pedro Alves <palves@redhat.com>
1069
1070 PR gdb/17300
1071 * infcmd.c (continue_1): If continuing all threads in the
1072 foreground, make sure the inferior's terminal settings are put in
1073 effect.
1074
6fdebc3d
PA
10752014-10-17 Pedro Alves <palves@redhat.com>
1076
1077 PR gdb/17472
1078 * annotate.c (annotate_breakpoints_invalid): Use
1079 target_terminal_our_for_output instead of target_terminal_ours.
1080 Give back the terminal to the target.
1081 (annotate_frames_invalid): Likewise.
1082
5842f62a
PA
10832014-10-17 Pedro Alves <palves@redhat.com>
1084
1085 * target.c (enum terminal_state): New enum.
1086 (terminal_state): New global.
1087 (target_terminal_init): New function.
1088 (target_terminal_inferior): Skip if inferior already owns the
1089 terminal.
1090 (target_terminal_ours, target_terminal_ours_for_output): New
1091 functions.
1092 * target.h (target_terminal_init): Convert to function prototype.
1093 (target_terminal_ours_for_output): Convert to function prototype
1094 and tweak comment.
1095 (target_terminal_ours): Convert to function prototype and tweak
1096 comment.
1097 * windows-nat.c (do_initial_windows_stuff): Call
1098 target_terminal_init instead of child_terminal_init_with_pgrp.
1099
32a8097b
PA
11002014-10-17 Pedro Alves <palves@redhat.com>
1101
1102 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1103 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1104 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1105 solib-osf.c.
1106 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1107 * ada-lang.h [__alpha__ && __osf__]
1108 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1109 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1110 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1111 GDB_OSABI_OSF1.
1112 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1113 files.
1114 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1115 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1116 * configure: Regenerate.
1117 * configure.ac: Remove references to osf.
1118 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1119 section. Remove all other references to osf.
1120 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1121 Remove all other references to osf.
1122 * dec-thread.c: Delete file.
1123 * defs.h (GDB_OSABI_OSF1): Delete.
1124 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1125 defined.
1126 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1127 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1128 Delete code.
1129 (unconditionally_kill_inferior)
1130 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1131 * solib-osf.c: Delete file.
1132
80134cf5
PA
11332014-10-17 Pedro Alves <palves@redhat.com>
1134
1135 * remote.c (clear_threads_listing_context): Move higher up, out of
1136 the HAVE_LIBEXPAT guard.
1137
89c7137f
TG
11382014-10-16 Tristan Gingold <gingold@adacore.com>
1139
1140 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1141 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1142 on amd64.
1143
44ee4a52
PA
11442014-10-15 Pedro Alves <palves@redhat.com>
1145
1146 * dec-thread.c (dec_thread_count_gdb_threads)
1147 (dec_thread_add_gdb_thread): Delete.
1148 (dec_thread_update_thread_list): Delete.
1149 (dec_thread_find_new_threads): Rename to ...
1150 (dec_thread_update_thread_list): ... this. Delete GDB-size
1151 threads that are no longer found in dec_thread_list.
1152 (resync_thread_list): Delete.
1153 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1154 resync_thread_list.
1155
ab970af1
PA
11562014-10-15 Pedro Alves <palves@redhat.com>
1157
1158 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1159 * remote.c (remote_update_thread_list): Skip calling prune_threads
1160 if any thread listing method is supported, and instead walk over
1161 the set of remote threads listed, deleting those that are not
1162 found in GDB's thread list.
1163
e8032dde
PA
11642014-10-15 Pedro Alves <palves@redhat.com>
1165
1166 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1167 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1168 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1169 (bsd_uthread_target): Adjust.
1170 * corelow.c (core_open): Adjust.
1171 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1172 (dec_thread_update_thread_list): New function.
1173 (init_dec_thread_ops): Adjust.
1174 * gdbthread.h (prune_threads): New declaration.
1175 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1176 (thread_db_update_thread_list): ... this. Call prune_threads.
1177 (init_thread_db_ops): Adjust.
1178 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1179 (procfs_update_thread_list): ... this. Call prune_threads.
1180 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1181 Adjust.
1182 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1183 (obsd_update_thread_list): ... this. Call prune_threads.
1184 (obsd_add_target): Adjust.
1185 * procfs.c (procfs_target): Adjust.
1186 (procfs_notice_thread): Update comment.
1187 (procfs_find_new_threads): Rename to ...
1188 (procfs_update_thread_list): ... this. Call prune_threads.
1189 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1190 comment.
1191 (ravenscar_wait): Adjust.
1192 (ravenscar_find_new_threads): Rename to ...
1193 (ravenscar_update_thread_list): ... this. Call prune_threads.
1194 (init_ravenscar_thread_ops): Adjust.
1195 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1196 (record_btrace_update_thread_list): ... this. Adjust comment.
1197 (init_record_btrace_ops): Adjust.
1198 * remote.c (remote_threads_info): Rename to ...
1199 (remote_update_thread_list): ... this. Call prune_threads.
1200 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1201 Adjust.
1202 * sol-thread.c (check_for_thread_db): Adjust.
1203 (sol_find_new_threads_callback): Rename to ...
1204 (sol_update_thread_list_callback): ... this.
1205 (sol_find_new_threads): Rename to ...
1206 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1207 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1208 * target-delegates.c: Regenerate.
1209 * target.c (target_find_new_threads): Rename to ...
1210 (target_update_thread_list): ... this.
1211 * target.h (struct target_ops): Rename to_find_new_threads field
1212 to to_update_thread_list.
1213 (target_find_new_threads): Rename to ...
1214 (target_update_thread_list): ... this.
1215 * thread.c (prune_threads): Make extern.
1216 (update_thread_list): Adjust.
1217
6dc54d91
PA
12182014-10-15 Pedro Alves <palves@redhat.com>
1219
1220 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1221 Add describing comment. Return -1 if the qL packet is not
1222 supported.
1223 (struct thread_item, thread_item_t): Move higher up in
1224 the file. Add comments.
1225 (struct threads_parsing_context): Move higher up in
1226 the file, add comments, and remote to ...
1227 (struct threads_listing_context): ... this.
1228 (remote_newthread_step): Don't add the thread to GDB's thread
1229 database here. Instead push it to the thread_listing_context
1230 list.
1231 (remote_find_new_threads): Rename to ...
1232 (remote_get_threads_with_ql): ... this. Add target_ops and
1233 targets_listing_context parameters. Pass down context.
1234 (start_thread): Adjust.
1235 (clear_threads_parsing_context): Rename to ...
1236 (clear_threads_listing_context): ... this.
1237 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1238 remote_threads_info.
1239 (remote_get_threads_with_qthreadinfo): Ditto.
1240 (remote_threads_info): Reimplement.
1241
36728e82
PA
12422014-10-15 Pedro Alves <palves@redhat.com>
1243
1244 * infrun.c (resume): Don't force displaced-stepping for all
1245 single-steps on software single-stepping archs.
1246
34b7e8a6
PA
12472014-10-15 Pedro Alves <palves@redhat.com>
1248
1249 * breakpoint.c (single_step_breakpoints): Delete global.
1250 (insert_single_step_breakpoint): Adjust to store the breakpoint
1251 pointer in the current thread.
1252 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1253 (cancel_single_step_breakpoints): Delete functions.
1254 (breakpoint_has_location_inserted_here): Make extern.
1255 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1256 breakpoint list.
1257 * breakpoint.h (breakpoint_has_location_inserted_here): New
1258 declaration.
1259 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1260 (cancel_single_step_breakpoints): Remove declarations.
1261 * gdbthread.h (struct thread_control_state)
1262 <single_step_breakpoints>: New field.
1263 (delete_single_step_breakpoints)
1264 (thread_has_single_step_breakpoints_set)
1265 (thread_has_single_step_breakpoint_here): New declarations.
1266 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1267 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1268 (singlestep_pc): Delete globals.
1269 (infrun_thread_ptid_changed): Remove references to removed
1270 globals.
1271 (resume_cleanups): Delete the current thread's single-step
1272 breakpoints.
1273 (maybe_software_singlestep): Remove references to removed globals.
1274 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1275 delete_single_step_breakpoints.
1276 (init_wait_for_inferior): Remove references to removed globals.
1277 (delete_thread_infrun_breakpoints): Delete the thread's
1278 single-step breakpoints too.
1279 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1280 single-step breakpoints here.
1281 (delete_stopped_threads_single_step_breakpoints): New function.
1282 (adjust_pc_after_break): Adjust to use
1283 thread_has_single_step_breakpoints_set.
1284 (handle_inferior_event): Remove references to removed globals.
1285 Use delete_stopped_threads_single_step_breakpoints.
1286 (handle_signal_stop): Adjust to per-thread single-step
1287 breakpoints. Swap test order to do cheaper tests first.
1288 (switch_back_to_stepped_thread): Extend debug output. Remove
1289 references to removed globals.
1290 * record-full.c (record_full_wait_1): Adjust to per-thread
1291 single-step breakpoints.
1292 * thread.c (delete_single_step_breakpoints)
1293 (thread_has_single_step_breakpoints_set)
1294 (thread_has_single_step_breakpoint_here): New functions.
1295 (clear_thread_inferior_resources): Also delete the thread's
1296 single-step breakpoints.
1297
5b834a0a
PA
12982014-10-15 Pedro Alves <palves@redhat.com>
1299
1300 * thread.c (delete_thread_breakpoint): New function.
1301 (delete_step_resume_breakpoint)
1302 (delete_exception_resume_breakpoint): Use it.
1303 (delete_at_next_stop): New function.
1304 (clear_thread_inferior_resources): Use delete_at_next_stop.
1305
a1fd2fa5
PA
13062014-10-15 Pedro Alves <palves@redhat.com>
1307
1308 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1309 (breakpoint_inserted_here_p): ... here. Remove special case for
1310 software single-step breakpoints.
1311 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1312 (software_breakpoint_inserted_here_p): ... here. Remove special
1313 case for software single-step breakpoints.
1314 (bp_target_info_copy_insertion_state)
1315 (deprecated_insert_raw_breakpoint)
1316 (deprecated_remove_raw_breakpoint): Delete functions.
1317 * breakpoint.h (deprecated_insert_raw_breakpoint)
1318 (deprecated_remove_raw_breakpoint): Remove declarations.
1319
7c16b83e
PA
13202014-10-15 Pedro Alves <palves@redhat.com>
1321
1322 PR breakpoints/9649
1323 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1324 Delete array globals.
1325 (single_step_breakpoints): New global.
1326 (breakpoint_xfer_memory): Remove special handling for single-step
1327 breakpoints.
1328 (update_breakpoints_after_exec): Delete bp_single_step
1329 breakpoints.
1330 (detach_breakpoints): Remove special handling for single-step
1331 breakpoints.
1332 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1333 (bpstat_stop_status): Add comment.
1334 (bpstat_what, bptype_string, print_one_breakpoint_location)
1335 (adjust_breakpoint_address, init_bp_location): Handle
1336 bp_single_step.
1337 (new_single_step_breakpoint): New function.
1338 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1339 handling for single-step breakpoints.
1340 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1341 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1342 Rewrite.
1343 (detach_single_step_breakpoints, find_single_step_breakpoint):
1344 Delete functions.
1345 (breakpoint_has_location_inserted_here): New function.
1346 (single_step_breakpoint_inserted_here_p): Rewrite.
1347 * breakpoint.h: Remove FIXME.
1348 (enum bptype) <bp_single_step>: New enum value.
1349 (insert_single_step_breakpoint): Update comment.
1350 * infrun.c (resume_cleanups)
1351 (delete_step_thread_step_resume_breakpoint): Remove single-step
1352 breakpoints.
1353 (fetch_inferior_event): Install a cleanup that removes infrun
1354 breakpoints.
1355 (switch_back_to_stepped_thread) <expect thread advanced also>:
1356 Clear step-over info.
1357
0cbcdb96
PA
13582014-10-15 Pedro Alves <palves@redhat.com>
1359
1360 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1361 (delete_thread_infrun_breakpoints): New function, with parts
1362 salvaged from delete_step_resume_breakpoint_callback.
1363 (delete_step_thread_step_resume_breakpoint): Delete.
1364 (for_each_just_stopped_thread_callback_func): New typedef.
1365 (for_each_just_stopped_thread): New function.
1366 (delete_just_stopped_threads_infrun_breakpoints): New function.
1367 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1368 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1369 ... this. Adjust.
1370 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1371
963f9c80
PA
13722014-10-15 Pedro Alves <palves@redhat.com>
1373
1374 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1375 trying to step past a non-steppable watchpoint.
1376 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1377 field.
1378 * infrun.c (struct step_over_info): Add new field
1379 'nonsteppable_watchpoint_p' and adjust comments.
1380 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1381 Adjust.
1382 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1383 (stepping_past_nonsteppable_watchpoint): New function.
1384 (step_over_info_valid_p): Also return true if stepping past a
1385 nonsteppable watchpoint.
1386 (proceed): Adjust call to set_step_over_info. Remove reference to
1387 init_infwait_state.
1388 (init_wait_for_inferior): Remove reference to init_infwait_state.
1389 (waiton_ptid): Delete global.
1390 (struct execution_control_state)
1391 <stepped_after_stopped_by_watchpoint>: Delete field.
1392 (wait_for_inferior, fetch_inferior_event): Always pass
1393 minus_one_ptid to target_wait.
1394 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1395 field.
1396 (init_infwait_state): Delete function.
1397 (handle_inferior_event): Remove infwait_state handling.
1398 (handle_signal_stop) <watchpoints handling>: Adjust after
1399 stepped_after_stopped_by_watchpoint removal. Don't remove
1400 breakpoints here nor set infwait_state. Set the thread's
1401 stepping_over_watchpoint flag, and call keep_going instead.
1402 (keep_going): Handle stepping_over_watchpoint. Adjust
1403 set_step_over_info calls.
1404 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1405 function.
1406
6cc83d2a
PA
14072014-10-15 Pedro Alves <palves@redhat.com>
1408
1409 * infrun.c (step_over_info_valid_p): New function.
1410 (resume): Use step_over_info_valid_p instead of checking the
1411 threads's trap_expected flag.
1412
6979730b
DE
14132014-10-15 Doug Evans <dje@google.com>
1414 Walfred Tedeschi <walfred.tedeschi@intel.com>
1415
1416 PR python/17364
1417 * python/lib/gdb/__init__.py (packages): Add "printer".
1418 * python/lib/gdb/command/bound_registers.py: Moved to ...
1419 * python/lib/gdb/printer/bound_registers.py: ... here.
1420 Add printer to global set of builtin printers. Rename printer from
1421 "bound" to "mpx_bound128".
1422 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1423 registered as global "builtin" printer.
1424 (add_builtin_pretty_printer): New function.
1425 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1426 gdb/printer/__init__.py.
1427
35a49624
IB
14282014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1429
1430 * Makefile.in (SFILES): Remove d-support.c.
1431 (COMMON_OBS): Remove d-support.o.
1432 * d-lang.h (d_parse_symbol): Remove declaration.
1433 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1434 * d-support.c: Remove file.
1435
8fa0c4f8
AA
14362014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1437
1438 * gdb/infrun.c (process_event_stop_test): Apply
1439 gdbarch_addr_bits_remove to longjmp resume address.
1440
3666da81
PA
14412014-10-15 Pedro Alves <palves@redhat.com>
1442
1443 * regformats/microblaze.dat: Delete file.
1444
449aa9df
AKA
14452014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1446
1447 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1448 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1449
ebb8ece2
SC
14502014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1451
1452 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1453 as non-trivial.
1454
82c48ac7
SC
14552014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1456
1457 PR c++/13403
1458 PR c++/15154
1459 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1460 with qualified args.
1461
c40cc657
JB
14622014-10-14 Joel Brobecker <brobecker@adacore.com>
1463
1464 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1465 of the case where the second operand is a pointer.
1466 <BINOP_SUB>: Likewise.
1467
0ea5cda8
SDJ
14682014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1469
1470 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1471 only if it is not NULL.
1472 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1473 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1474 (struct probe_ops) <clear_semaphore>: Likewise.
1475 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1476 not NULL.
1477 (stop_tracing): Likewise, for clear_semaphore.
1478
f7088df3
SDJ
14792014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1480
1481 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1482 using language_c, instead of current_language.
1483
4e1bbde0
DE
14842014-10-13 Doug Evans <dje@google.com>
1485
6ff5a0f6 1486 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1487 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1488 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1489 (pspy_new, pspace_to_pspace_object): Call it.
1490
c780cc2f
JK
14912014-10-13 Miroslav Franc <mfranc@redhat.com>
1492 Jan Kratochvil <jan.kratochvil@redhat.com>
1493
1494 Fix "save breakpoints" for "catch" command.
1495 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1496 newline.
1497
99894e11
JK
14982014-10-12 Miroslav Franc <mfranc@redhat.com>
1499
1500 Fix "save breakpoints" for "disable $bpnum" command.
1501 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1502
3831839c
PA
15032014-10-10 Pedro Alves <palves@redhat.com>
1504
1505 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1506 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1507 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1508 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1509 and been removed.
1510 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1511 * configure.ac: Remove references to IRIX.
1512 * configure.host: Add *-*-irix* to the obsolete hosts section.
1513 Remove all other references to irix.
1514 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1515 Delete files.
1516
cc3afae2
AKA
15172014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1518
1519 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1520 isn't valid, release the tdesc arch data and return NULL.
1521
cdfa0b0a
PA
15222014-10-10 Pedro Alves <palves@redhat.com>
1523
1524 * linux-tdep.c: Include observer.h.
1525 (linux_inferior_data): New global.
1526 (struct linux_info): New structure.
1527 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1528 (get_linux_inferior_data): New functions.
1529 (linux_vsyscall_range): Rename to ...
1530 (linux_vsyscall_range_raw): ... this.
1531 (linux_vsyscall_range): New function; handles caching.
1532 (_initialize_linux_tdep): Register linux_inferior_data. Install
1533 inferior_exit and inferior_appeared observers.
1534
8b9a549d
PA
15352014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1536 Pedro Alves <palves@redhat.com>
1537
1538 PR symtab/14466
1539 * solib-svr4.c (svr4_read_so_list): Rename to ...
1540 (svr4_current_sos_1): ... this and change the function comment.
1541 (svr4_current_sos): New function.
1542
3437254d
PA
15432014-10-10 Pedro Alves <palves@redhat.com>
1544
1545 * arch-utils.c (default_vsyscall_range): New function.
1546 * arch-utils.h (default_vsyscall_range): New declaration.
1547 * gdbarch.sh (vsyscall_range): New hook.
1548 * gdbarch.h, gdbarch.c: Regenerate.
1549 * linux-tdep.c (linux_vsyscall_range): New function.
1550 (linux_init_abi): Install linux_vsyscall_range as
1551 vsyscall_range gdbarch hook.
1552 * memrange.c (address_in_mem_range): New function.
1553 * memrange.h (address_in_mem_range): New declaration.
1554 * symfile-mem.c (find_vdso_size): Delete function.
1555 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1556
31cc0b80
PA
15572014-10-10 Pedro Alves <palves@redhat.com>
1558
1559 * infrun.c (normal_stop): Fix typo in comment.
1560
3e3286a2
SDJ
15612014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1562
1563 PR tdep/9390
1564 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1565 typo when using logical AND to determine instruction type.
1566
fcbdedf8
YQ
15672014-10-09 Yao Qi <yao@codesourcery.com>
1568
1569 * infrun.c (handle_signal_stop): Remove local variable
1570 'printed'.
1571
db984616
SS
15722014-10-08 Stan Shebs <stan@codesourcery.com>
1573
1574 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1575
3ba37e6c
GB
15762014-10-08 Gary Benson <gbenson@redhat.com>
1577
1578 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1579
a442d071
GB
15802014-10-08 Gary Benson <gbenson@redhat.com>
1581
1582 * common/common-defs.h: Include common-exceptions.h.
1583 * exceptions.h: Do not include common-exceptions.h.
1584
6f1947e8
GB
15852014-10-08 Gary Benson <gbenson@redhat.com>
1586
1587 * common/common-defs.h: Include cleanups.h.
1588 * common/common-exceptions.c: Do not include cleanups.h.
1589 * utils.h: Likewise.
1590
c765fdb9
GB
15912014-10-08 Gary Benson <gbenson@redhat.com>
1592
1593 * ada-lang.c: Do not include exceptions.h.
1594 * ada-valprint.c: Likewise.
1595 * amd64-tdep.c: Likewise.
1596 * auto-load.c: Likewise.
1597 * block.c: Likewise.
1598 * break-catch-throw.c: Likewise.
1599 * breakpoint.c: Likewise.
1600 * btrace.c: Likewise.
1601 * c-lang.c: Likewise.
1602 * cli/cli-cmds.c: Likewise.
1603 * cli/cli-interp.c: Likewise.
1604 * cli/cli-script.c: Likewise.
1605 * completer.c: Likewise.
1606 * corefile.c: Likewise.
1607 * corelow.c: Likewise.
1608 * cp-abi.c: Likewise.
1609 * cp-support.c: Likewise.
1610 * cp-valprint.c: Likewise.
1611 * darwin-nat.c: Likewise.
1612 * dwarf2-frame-tailcall.c: Likewise.
1613 * dwarf2-frame.c: Likewise.
1614 * dwarf2loc.c: Likewise.
1615 * dwarf2read.c: Likewise.
1616 * eval.c: Likewise.
1617 * event-loop.c: Likewise.
1618 * event-top.c: Likewise.
1619 * f-valprint.c: Likewise.
1620 * frame-unwind.c: Likewise.
1621 * frame.c: Likewise.
1622 * gdbtypes.c: Likewise.
1623 * gnu-v2-abi.c: Likewise.
1624 * gnu-v3-abi.c: Likewise.
1625 * guile/scm-auto-load.c: Likewise.
1626 * guile/scm-breakpoint.c: Likewise.
1627 * guile/scm-cmd.c: Likewise.
1628 * guile/scm-frame.c: Likewise.
1629 * guile/scm-lazy-string.c: Likewise.
1630 * guile/scm-param.c: Likewise.
1631 * guile/scm-symbol.c: Likewise.
1632 * guile/scm-type.c: Likewise.
1633 * hppa-hpux-tdep.c: Likewise.
1634 * i386-tdep.c: Likewise.
1635 * inf-loop.c: Likewise.
1636 * infcall.c: Likewise.
1637 * infcmd.c: Likewise.
1638 * infrun.c: Likewise.
1639 * interps.c: Likewise.
1640 * interps.h: Likewise.
1641 * jit.c: Likewise.
1642 * linespec.c: Likewise.
1643 * linux-nat.c: Likewise.
1644 * linux-thread-db.c: Likewise.
1645 * m32r-rom.c: Likewise.
1646 * main.c: Likewise.
1647 * memory-map.c: Likewise.
1648 * mi/mi-cmd-break.c: Likewise.
1649 * mi/mi-cmd-stack.c: Likewise.
1650 * mi/mi-interp.c: Likewise.
1651 * mi/mi-main.c: Likewise.
1652 * monitor.c: Likewise.
1653 * nto-procfs.c: Likewise.
1654 * objc-lang.c: Likewise.
1655 * p-valprint.c: Likewise.
1656 * parse.c: Likewise.
1657 * ppc-linux-tdep.c: Likewise.
1658 * printcmd.c: Likewise.
1659 * probe.c: Likewise.
1660 * python/py-auto-load.c: Likewise.
1661 * python/py-breakpoint.c: Likewise.
1662 * python/py-cmd.c: Likewise.
1663 * python/py-finishbreakpoint.c: Likewise.
1664 * python/py-frame.c: Likewise.
1665 * python/py-framefilter.c: Likewise.
1666 * python/py-function.c: Likewise.
1667 * python/py-gdb-readline.c: Likewise.
1668 * python/py-inferior.c: Likewise.
1669 * python/py-infthread.c: Likewise.
1670 * python/py-lazy-string.c: Likewise.
1671 * python/py-linetable.c: Likewise.
1672 * python/py-param.c: Likewise.
1673 * python/py-prettyprint.c: Likewise.
1674 * python/py-symbol.c: Likewise.
1675 * python/py-type.c: Likewise.
1676 * python/py-value.c: Likewise.
1677 * python/python-internal.h: Likewise.
1678 * python/python.c: Likewise.
1679 * record-btrace.c: Likewise.
1680 * record-full.c: Likewise.
1681 * regcache.c: Likewise.
1682 * remote-fileio.c: Likewise.
1683 * remote-mips.c: Likewise.
1684 * remote.c: Likewise.
1685 * rs6000-aix-tdep.c: Likewise.
1686 * rs6000-nat.c: Likewise.
1687 * skip.c: Likewise.
1688 * solib-darwin.c: Likewise.
1689 * solib-dsbt.c: Likewise.
1690 * solib-frv.c: Likewise.
1691 * solib-ia64-hpux.c: Likewise.
1692 * solib-spu.c: Likewise.
1693 * solib-svr4.c: Likewise.
1694 * solib.c: Likewise.
1695 * spu-tdep.c: Likewise.
1696 * stack.c: Likewise.
1697 * stap-probe.c: Likewise.
1698 * symfile-mem.c: Likewise.
1699 * symmisc.c: Likewise.
1700 * target.c: Likewise.
1701 * thread.c: Likewise.
1702 * top.c: Likewise.
1703 * tracepoint.c: Likewise.
1704 * tui/tui-interp.c: Likewise.
1705 * typeprint.c: Likewise.
1706 * utils.c: Likewise.
1707 * valarith.c: Likewise.
1708 * valops.c: Likewise.
1709 * valprint.c: Likewise.
1710 * value.c: Likewise.
1711 * varobj.c: Likewise.
1712 * windows-nat.c: Likewise.
1713 * xml-support.c: Likewise.
1714
484933d1
MR
17152014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1716
1717 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1718 name implies.
1719 (extended_mips16_next_pc): Update accordingly.
1720
ab50adb6
MR
17212014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1722
1723 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1724 function.
1725 (micromips_instruction_is_compact_branch): Likewise.
1726 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1727 or a compact jump, reaching a jump delay slot, or seeing a
1728 second non-prologue instruction.
1729 (micromips_scan_prologue): Also terminate scanning upon seeing a
1730 compact branch or jump, or reaching a branch or jump delay slot.
1731 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1732 or jump delay slot, or seeing a second non-prologue instruction.
1733 (mips32_instruction_has_delay_slot): Retain instruction
1734 examination code only, update arguments accordingly and move
1735 instruction fetch pieces to...
1736 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1737 (micromips_instruction_has_delay_slot): Likewise and to...
1738 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1739 (mips16_instruction_has_delay_slot): Likewise and to...
1740 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1741 (mips_single_step_through_delay): Update accordingly.
1742 (mips_adjust_breakpoint_address): Likewise.
1743
ae790652
MR
17442014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1745
1746 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1747 !mustbe32 also return 1 for 32-bit instructions.
1748 (mips16_instruction_has_delay_slot): Likewise. Add an
1749 explanatory comment.
1750
9b807e7b
MR
17512014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1752
1753 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1754 symbols special.
1755
0d5ed153
MR
17562014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1757
1758 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1759 update comments.
1760 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1761 for the breakpoint's address. Don't preinitialize `placed_size'.
1762 (insert_bp_location): Set `reqstd_address' rather than
1763 `placed_address'.
1764 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1765 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1766 address.
1767 (bkpt_remove_location): Likewise.
1768 (deprecated_insert_raw_breakpoint): Likewise.
1769 (deprecated_remove_raw_breakpoint): Likewise.
1770 (find_single_step_breakpoint): Likewise.
1771 * mem-break.c (default_memory_insert_breakpoint): Use
1772 `reqstd_address' for the breakpoint's address. Don't set
1773 `placed_address' or `placed_size' if breakpoint contents couldn't
1774 have been determined.
1775 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1776 the breakpoint's address.
1777 (remote_insert_hw_breakpoint): Likewise. Don't set
1778 `placed_address' or `placed_size' if breakpoint couldn't have been
1779 set.
1780 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1781 `reqstd_address' for the breakpoint's address.
1782 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1783 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1784 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1785 * microblaze-linux-tdep.c
1786 (microblaze_linux_memory_remove_breakpoint): Likewise.
1787 * monitor.c (monitor_insert_breakpoint): Likewise.
1788 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1789 (procfs_insert_hw_breakpoint): Likewise.
1790 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1791 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1792 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1793 * remote-mips.c (mips_insert_breakpoint): Likewise.
1794 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1795
3e871532
LM
17962014-10-03 Luis Machado <lgustavo@codesourcery.com>
1797
1798 * valops.c (value_assign): Check for bit field assignments
1799 before calling architecture-specific register value
1800 conversion functions.
1801
ec48dc8b
PM
18022014-10-03 Pierre Muller <muller@sourceware.org>
1803
1804 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1805
b57bacec
PA
18062014-10-02 Pedro Alves <palves@redhat.com>
1807
1808 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1809 threads_are_executing.
1810 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1811 describing comment.
1812 * gdbthread.h (threads_are_executing): Declare.
1813 (handle_signal_stop) <random signals>: Don't print about the
1814 signal here if stopping.
1815 (end_stepping_range): Don't notify observers here.
1816 (normal_stop): Update the thread list. If stopped by a random
1817 signal or a stepping range ended, notify observers.
1818 * thread.c (threads_executing): New global.
1819 (init_thread_list): Clear 'threads_executing'.
1820 (set_executing): Set or clear 'threads_executing'.
1821 (threads_are_executing): New function.
1822 (update_threads_executing): New function.
1823 (update_thread_list): Use it.
1824
13fd3ff3
PA
18252014-10-02 Pedro Alves <palves@redhat.com>
1826
1827 PR breakpoints/17431
1828 * breakpoint.c (update_breakpoints_after_exec): Don't create
1829 overlay, longjmp, std terminate nor exception breakpoints here.
1830
32990ada
PA
18312014-10-02 Pedro Alves <palves@redhat.com>
1832
1833 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1834 Adjust comments.
1835 * inferior.c (find_inferior_for_program_space): Give preference to
1836 the current inferior.
1837 * inferior.h (find_inferior_for_program_space): Update comment.
1838 * progspace.c (switch_to_program_space_and_thread): Prefer the
1839 current inferior if it's bound to the program space requested. If
1840 the inferior found doesn't have a PID yet, don't bother looking up
1841 a thread.
1842 * progspace.h (switch_to_program_space_and_thread): Adjust
1843 comment.
1844 * thread.c (any_thread_of_process, any_live_thread_of_process):
1845 Give preference to the current thread.
1846
0fec99e8
PA
18472014-10-01 Pedro Alves <palves@redhat.com>
1848
1849 * breakpoint.c (insert_bp_location): Error out if inserting a
1850 software breakpoint at a read-only address.
1851 * target.c (memory_xfer_check_region): New function, factored out
1852 from ...
1853 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1854 ULONGEST.
1855 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1856 against the memory region attributes.
1857
2ddf4301
SM
18582014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1859
1860 * NEWS: Announce new exit-code field in -list-thread-groups
1861 output.
1862 * inferior.c (exit_inferior_1): Don't clear exit code.
1863 (inferior_appeared): Clear exit code.
1864 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1865 code.
1866
5fdeec1d
PA
18672014-10-01 Pedro Alves <palves@redhat.com>
1868
1869 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1870 GENERATED" along with emacs/vi read-only markers.
1871 * regformats/aarch64.dat: Regenerate.
1872 * regformats/arm-with-iwmmxt.dat: Regenerate.
1873 * regformats/arm-with-neon.dat: Regenerate.
1874 * regformats/arm-with-vfpv2.dat: Regenerate.
1875 * regformats/arm-with-vfpv3.dat: Regenerate.
1876 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1877 * regformats/i386/amd64-avx.dat: Regenerate.
1878 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1879 * regformats/i386/amd64-avx512.dat: Regenerate.
1880 * regformats/i386/amd64-linux.dat: Regenerate.
1881 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1882 * regformats/i386/amd64-mpx.dat: Regenerate.
1883 * regformats/i386/amd64.dat: Regenerate.
1884 * regformats/i386/i386-avx-linux.dat: Regenerate.
1885 * regformats/i386/i386-avx.dat: Regenerate.
1886 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1887 * regformats/i386/i386-avx512.dat: Regenerate.
1888 * regformats/i386/i386-linux.dat: Regenerate.
1889 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1890 * regformats/i386/i386-mmx.dat: Regenerate.
1891 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1892 * regformats/i386/i386-mpx.dat: Regenerate.
1893 * regformats/i386/i386.dat: Regenerate.
1894 * regformats/i386/x32-avx-linux.dat: Regenerate.
1895 * regformats/i386/x32-avx.dat: Regenerate.
1896 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1897 * regformats/i386/x32-avx512.dat: Regenerate.
1898 * regformats/i386/x32-linux.dat: Regenerate.
1899 * regformats/i386/x32.dat: Regenerate.
1900 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1901 * regformats/mips-dsp-linux.dat: Regenerate.
1902 * regformats/mips-linux.dat: Regenerate.
1903 * regformats/mips64-dsp-linux.dat: Regenerate.
1904 * regformats/mips64-linux.dat: Regenerate.
1905 * regformats/nios2-linux.dat: Regenerate.
1906 * regformats/rs6000/powerpc-32.dat: Regenerate.
1907 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1908 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1909 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1910 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1911 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1912 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1913 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1914 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1915 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1916 * regformats/s390-linux32.dat: Regenerate.
1917 * regformats/s390-linux32v1.dat: Regenerate.
1918 * regformats/s390-linux32v2.dat: Regenerate.
1919 * regformats/s390-linux64.dat: Regenerate.
1920 * regformats/s390-linux64v1.dat: Regenerate.
1921 * regformats/s390-linux64v2.dat: Regenerate.
1922 * regformats/s390-te-linux64.dat: Regenerate.
1923 * regformats/s390x-linux64.dat: Regenerate.
1924 * regformats/s390x-linux64v1.dat: Regenerate.
1925 * regformats/s390x-linux64v2.dat: Regenerate.
1926 * regformats/s390x-te-linux64.dat: Regenerate.
1927 * regformats/tic6x-c62x-linux.dat: Regenerate.
1928 * regformats/tic6x-c62x.dat: Regenerate.
1929 * regformats/tic6x-c64x-linux.dat: Regenerate.
1930 * regformats/tic6x-c64x.dat: Regenerate.
1931 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1932 * regformats/tic6x-c64xp.dat: Regenerate.
1933
db74e4ba
PA
19342014-10-01 Pedro Alves <palves@redhat.com>
1935
1936 * features/Makefile: Update comments.
1937 (XMLTOC): List all xml files we build C files from.
1938 (clean-cfiles): New rule.
1939
d63f2f84
PA
19402014-10-01 Pedro Alves <palves@redhat.com>
1941
1942 * features/i386/amd64-avx512-linux.c: Regenerate.
1943 * features/i386/amd64-avx512.c: Regenerate.
1944 * features/i386/x32-avx512-linux.c: Regenerate.
1945 * features/i386/x32-avx512.c: Regenerate.
1946
20ad026d
PA
19472014-10-01 Pedro Alves <palves@redhat.com>
1948
1949 * features/Makefile (WHICH): Remove arm-with-m,
1950 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1951
acc9fe45
PA
19522014-10-01 Pedro Alves <palves@redhat.com>
1953
1954 * features/Makefile (clean): New rule.
1955
e001e535
PA
19562014-10-01 Pedro Alves <palves@redhat.com>
1957
1958 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1959 (zmm14h): Add missing end quotes.
1960
bdc14417
PA
19612014-10-01 Pedro Alves <palves@redhat.com>
1962
1963 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1964 * features/aarch64.c: Regenerate.
1965
d83ad864
DB
19662014-09-30 Don Breazeal <donb@codesourcery.com>
1967
1968 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1969 code so as to work with follow_fork_inferior.
1970 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1971 (inf_ttrace_create_inferior): Remove reference to
1972 inf_ttrace_vfork_ppid.
1973 (inf_ttrace_attach): Ditto.
1974 (inf_ttrace_detach): Ditto.
1975 (inf_ttrace_kill): Use current_inferior instead of
1976 inf_ttrace_vfork_ppid.
1977 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1978 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1979 inferior away from the parent.
1980 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1981 target_follow_fork.
1982 (follow_fork_inferior): New function.
1983 (follow_inferior_reset_breakpoints): Make function static.
1984 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1985 * linux-nat.c (linux_child_follow_fork): Move target-independent
1986 code to infrun.c:follow_fork_inferior.
1987
29082443
AA
19882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1989
1990 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1991 * gdbarch.c: Regenerate.
1992 * gdbarch.h: Likewise.
1993 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1994 gdbarch method 'regset_from_core_section'.
1995 (get_core_register_section): Remove handling for the case that
1996 regset == NULL and regset_from_core_section is defined.
1997 (get_core_registers): Drop check for deleted method.
1998 * procfs.c (procfs_do_thread_registers): Adjust comment.
1999
f968fe80
AA
20002014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2001
2002 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2003 (linux_nat_make_corefile_notes): Remove.
2004 (linux_target_install_ops): Do not set target method
2005 'make_corefile_notes'.
2006 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2007 Remove field.
2008 (linux_corefile_thread_callback): Instead of args->collect, call
2009 linux_collect_thread_registers.
2010 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2011 NULL unless there is a regset iterator.
2012 (linux_make_corefile_notes_1): Remove.
2013 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2014 by linux_make_corefile_notes.
2015 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2016
174ad59a
AA
20172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2018
2019 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2020 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2021 Remove.
2022 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2023
97094034
AA
20242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2025
2026 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2027 (xtensa_iterate_over_regset_sections): New.
2028 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2029
f73d3ce7
AA
20302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2031
2032 * vax-tdep.c (vax_regset_from_core_section): Remove.
2033 (vax_iterate_over_regset_sections): New.
2034 (vax_gdbarch_init): Adjust gdbarch initialization.
2035
cb24567a
AA
20362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2037
2038 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2039 (tilegx_regset_from_core_section): Remove.
2040 (tilegx_iterate_over_regset_sections): New.
2041 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2042
e5139de8
AA
20432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2044
2045 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2046 (sparc_iterate_over_regset_sections): New.
2047 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2048 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2049 targets.
2050 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2051 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2052 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2053 target method 'make_corefile_notes'.
2054
c6d41a6f
AA
20552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2056
2057 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2058 'sizeof_gregset' and 'sizeof_fpregset'.
2059 * sh-tdep.c (sh_regset_from_core_section): Remove.
2060 (sh_iterate_over_regset_sections): New.
2061 (sh_gdbarch_init): Adjust gdbarch initialization.
2062 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2063 sizeof_fpregset.
2064 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2065 'sizeof_gregset'.
2066
9845a0b5
AA
20672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2068
2069 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2070 (score7_linux_iterate_over_regset_sections): New.
2071 (score_gdbarch_init): Adjust gdbarch initialization.
2072
23ea9aeb
AA
20732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2074
2075 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2076 FreeBSD targets.
2077 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2078 method 'make_corefile_notes'.
2079 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2080 (ppcfbsd_regset_from_core_section): Remove.
2081 (ppcfbsd_iterate_over_regset_sections): New.
2082 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2083 initialization.
2084 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2085 (ppcnbsd_iterate_over_regset_sections): New.
2086 (ppcnbsd_init_abi): Adjust.
2087 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2088 (ppcobsd_iterate_over_regset_sections): New.
2089 (ppcobsd_init_abi): Adjust.
2090 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2091 (rs6000_aix_iterate_over_regset_sections): New.
2092 (rs6000_aix_init_osabi): Adjust.
2093
c5b8d704
AA
20942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2095
2096 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2097 (nios2_regset_from_core_section): Remove.
2098 (nios2_iterate_over_regset_sections): New.
2099 (nios2_linux_init_abi): Adjust gdbarch initialization.
2100
3636e608
AA
21012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2102
2103 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2104 (am33_iterate_over_regset_sections): New.
2105 (am33_linux_init_osabi): Adjust gdbarch initialization.
2106
d4036235
AA
21072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2108
2109 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2110 (mips_linux_iterate_over_regset_sections): New.
2111 (mips_linux_init_abi): Adjust gdbarch initialization.
2112 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2113 (mips64obsd_iterate_over_regset_sections): New.
2114 (mips64obsd_init_abi): Adjust.
2115 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2116 (mipsnbsd_iterate_over_regset_sections): New.
2117 (mipsnbsd_init_abi): Adjust.
2118
b61ddd6e
AA
21192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2120
2121 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2122 (m88k_iterate_over_regset_sections): New.
2123 (m88k_gdbarch_init): Adjust gdbarch initialization.
2124
55a2906a
AA
21252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2126
2127 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2128 (ia64_linux_iterate_over_regset_sections): New.
2129 (ia64_linux_init_abi): Adjust gdbarch initialization.
2130
022c98ab
AA
21312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2132
2133 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2134 (m68kbsd_iterate_over_regset_sections): New.
2135 (m68kbsd_init_abi): Adjust gdbarch initialization.
2136 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2137 (m68k_linux_iterate_over_regset_sections): New.
2138 (m68k_linux_init_abi): Adjust gdbarch initialization.
2139
5fac247f
AA
21402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2141
2142 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2143 (m32r_linux_regset_from_core_section): Remove.
2144 (m32r_linux_iterate_over_regset_sections): New.
2145 (m32r_linux_init_abi): Adjust gdbarch initialization.
2146
490496c3
AA
21472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2148
2149 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2150 (amd64obsd_iterate_over_regset_sections): New.
2151 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2152 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2153 Remove.
2154 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2155 regset_from_core_section initialization.
2156 * i386-tdep.c (i386_regset_from_core_section): Remove.
2157 (i386_iterate_over_regset_sections): New.
2158 (i386_gdbarch_init): Adjust gdbarch initialization.
2159 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2160 (i386_iterate_over_regset_sections): New prototype.
2161 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2162 Remove.
2163 (i386obsd_aout_iterate_over_regset_sections): New.
2164 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2165 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2166 targets.
2167 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2168 (amd64fbsd_init_abi): Call fbsd_init_abi.
2169 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2170 (i386fbsd4_init_abi): Call fbsd_init_abi.
2171 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2172 target method 'make_corefile_notes'.
2173 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2174
50c5eb53
AA
21752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2176
2177 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2178 (hppa_hpux_iterate_over_regset_sections): New.
2179 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2180 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2181 (hppa_linux_iterate_over_regset_sections): New.
2182 (hppa_linux_init_abi): Adjust.
2183 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2184 (hppanbsd_iterate_over_regset_sections): New.
2185 (hppanbsd_init_abi): Adjust.
2186 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2187 (hppaobsd_iterate_over_regset_sections): New.
2188 (hppaobsd_init_abi): Adjust.
2189
66afae4f
AA
21902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2191
2192 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2193 (frv_linux_iterate_over_regset_sections): New.
2194 (frv_linux_init_abi): Adjust gdbarch initialization.
2195
ed09174e
AA
21962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2197
2198 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2199 (armbsd_iterate_over_regset_sections): New prototype.
2200 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2201 (armbsd_iterate_over_regset_sections): New.
2202 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2203 initialization.
2204
dff2166e
AA
22052014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2206
2207 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2208 (alpha_linux_iterate_over_regset_sections): New.
2209 (alpha_linux_init_abi): Adjust gdbarch initialization.
2210 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2211 prototype.
2212 (alphanbsd_iterate_over_regset_sections): New prototype.
2213
4108500a
AA
22142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2215
2216 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2217 Remove.
2218 (aarch64_linux_iterate_over_regset_sections): New.
2219 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2220
a904c024
AA
22212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2222
2223 * fbsd-tdep.c: New file.
2224 * fbsd-tdep.h: New file.
2225 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2226 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2227 (ALLDEPFILES): Add fbsd-tdep.c.
2228
8f0435f7
AA
22292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2230
2231 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2232 parameter.
2233 * gdbarch.h: Regenerate.
2234 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2235 iterator.
2236 (get_core_register_section): Add parameter 'regset' and use it, if
2237 set. Add parameter 'min_size' and verify the bfd section size
2238 against it.
2239 (get_core_registers_cb): Add parameter 'regset' and pass it to
2240 get_core_register section. For the "standard" register sections
2241 ".reg" and ".reg2", set an appropriate default for human_name.
2242 (get_core_registers): Don't abort when the gdbarch has an iterator
2243 but no regset_from_core_section. Add NULL/0 for parameters
2244 'regset'/'min_size' in calls to get_core_register_section.
2245 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2246 'regset' and use it instead of calling the
2247 regset_from_core_section gdbarch method.
2248 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2249 * i386-tdep.c (i386_supply_xstateregset)
2250 (i386_collect_xstateregset, i386_xstateregset): Moved to
2251 i386-linux-tdep.c.
2252 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2253 .reg-xstate.
2254 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2255 core file support only if the regset iterator hasn't been set.
2256 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2257 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2258 Moved from i386-tdep.c and renamed to *_linux*.
2259 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2260 each callback invocation. Allow any .reg-xstate size when reading
2261 from a core file.
2262 * amd64-tdep.c (amd64_supply_xstateregset)
2263 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2264 amd64-linux-tdep.c.
2265 (amd64_regset_from_core_section): Remove.
2266 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2267 install an amd64-specific regset_from_core_section gdbarch method.
2268 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2269 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2270 Moved from amd64-tdep.c and renamed to *_linux*.
2271 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2272 to each callback invocation. Allow any .reg-xstate size when
2273 reading from a core file.
2274 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2275 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2276 each callback invocation.
2277 (arm_linux_init_abi): No longer set the regset_from_core_section
2278 gdbarch method.
2279 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2280 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2281 each callback invocation.
2282 (ppc_linux_init_abi): No longer set the regset_from_core_section
2283 gdbarch method.
2284 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2285 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2286 (s390_regset_from_core_section): Remove.
2287 (s390_iterate_over_regset_sections): Add regset parameter to each
2288 callback invocation.
2289 (s390_gdbarch_init): No longer set the regset_from_core_section
2290 gdbarch method. Drop initialization of deleted tdep fields.
2291
5aa82d05
AA
22922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2293
2294 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2295 (amd64_linux_iterate_over_regset_sections): New.
2296 (amd64_linux_init_abi_common): Don't install the regset section
2297 list, but the new iterator in gdbarch.
2298 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2299 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2300 (arm_linux_iterate_over_regset_sections): ...here. New function.
2301 (arm_linux_init_abi): Set iterator instead of section list.
2302 * corelow.c (get_core_registers_cb): New function, logic moved
2303 from...
2304 (get_core_registers): ...loop body here. Use new iterator method
2305 instead of walking through the regset section list.
2306 * gdbarch.sh: Remove 'core_regset_sections'. New method
2307 'iterate_over_regset_sections'. New typedef
2308 'iterate_over_regset_sections_cb'.
2309 * gdbarch.c: Regenerate.
2310 * gdbarch.h: Likewise.
2311 * i386-linux-tdep.c (i386_linux_regset_sections)
2312 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2313 Remove.
2314 (i386_linux_iterate_over_regset_sections): New.
2315 (i386_linux_init_abi): Don't choose a regset section list, but
2316 install new iterator in gdbarch.
2317 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2318 (linux_collect_regset_section_cb): New function, logic moved
2319 from...
2320 (linux_collect_thread_registers): ...loop body here. Use iterator
2321 method instead of walking through list.
2322 (linux_make_corefile_notes_1): Check for presence of iterator
2323 method instead of regset section list.
2324 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2325 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2326 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2327 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2328 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2329 (ppc_linux_init_abi): Don't choose from above regset section
2330 lists, but install new iterator in gdbarch.
2331 * regset.h (struct core_regset_section): Remove.
2332 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2333 have_linux_v1, have_linux_v2, and have_tdb.
2334 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2335 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2336 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2337 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2338 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2339 (s390_iterate_over_regset_sections): ...here. New function. Use
2340 new tdep fields.
2341 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2342 regset section lists, but install new iterator.
2343
2eca4a8d
JK
23442014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2345
2346 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2347
a73c2b56
SM
23482014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2349
2350 * progspace.c (print_program_space): Don't prune program spaces
2351 before printing them.
2352
03d46957
PA
23532014-09-25 Pedro Alves <palves@redhat.com>
2354
2355 * infrun.c (user_visible_resume_ptid): Don't check
2356 singlestep_breakpoints_inserted_p.
2357
e558d7c1
PA
23582014-09-25 Pedro Alves <palves@redhat.com>
2359
2360 * breakpoint.c (should_be_inserted): Add debug output.
2361
7f89fd65
PA
23622014-09-25 Pedro Alves <palves@redhat.com>
2363
2364 * infrun.c (stepping_past_instruction_at)
2365 (clear_exit_convenience_vars): Point at infrun.h instead of
2366 inferior.h.
2367 (handle_signal_stop): Fix typo.
2368
b7576e5c
YQ
23692014-09-24 Yao Qi <yao@codesourcery.com>
2370
2371 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2372 bitmask.
2373
9a6cf368
GB
23742014-09-22 Gary Benson <gbenson@redhat.com>
2375
2376 * target.c (target_stop): Updated comment.
2377
03f4463b
GB
23782014-09-22 Gary Benson <gbenson@redhat.com>
2379
2380 * target/target.h (target_stop_ptid): Renamed as...
2381 (target_stop_and_wait): New function. Updated comment.
2382 All uses updated.
2383 (target_continue_ptid): Renamed as...
2384 (target_continue_no_signal): New function. Updated comment.
2385 All uses updated.
2386
a25a5a45
PA
23872014-09-22 Pedro Alves <palves@redhat.com>
2388
2389 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2390 and "auto" merged.
2391 * breakpoint.c (enum ugll_insert_mode): New enum.
2392 (always_inserted_mode): Now a plain boolean.
2393 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2394 (breakpoints_always_inserted_mode): Delete.
2395 (breakpoints_should_be_inserted_now): New function.
2396 (insert_breakpoints): Pass UGLL_INSERT to
2397 update_global_location_list instead of calling
2398 insert_breakpoint_locations manually.
2399 (create_solib_event_breakpoint_1): New, factored out from ...
2400 (create_solib_event_breakpoint): ... this.
2401 (create_and_insert_solib_event_breakpoint): Use
2402 create_solib_event_breakpoint_1 instead of calling
2403 insert_breakpoint_locations manually.
2404 (update_global_location_list): Change parameter type from boolean
2405 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2406 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2407 (update_global_location_list_nothrow): Change parameter type from
2408 boolean to enum ugll_insert_mode.
2409 (_initialize_breakpoint): "breakpoint always-inserted" option is
2410 now a boolean command. Update help text.
2411 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2412 (breakpoints_should_be_inserted_now): New declaration.
2413 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2414 Remove breakpoints_always_inserted_mode check.
2415 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2416 * remote.c (remote_start_remote): Likewise.
2417
04086b45
PA
24182014-09-22 Pedro Alves <palves@redhat.com>
2419
2420 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2421 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2422 Instead, pass UGLL_INSERT to update_global_location_list.
2423 (update_global_location_list): Change parameter type from boolean
2424 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2425 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2426 (create_solib_event_breakpoint_1): New, factored out from ...
2427 (create_solib_event_breakpoint): ... this.
2428 (create_and_insert_solib_event_breakpoint): Use
2429 create_solib_event_breakpoint_1 instead of calling
2430 insert_breakpoint_locations manually.
2431 (update_global_location_list): Handle UGLL_INSERT.
2432
44702360
PA
24332014-09-22 Pedro Alves <palves@redhat.com>
2434
2435 * breakpoint.c (enum ugll_insert_mode): New enum.
2436 (update_global_location_list)
2437 (update_global_location_list_nothrow): Change parameter type from
2438 boolean to enum ugll_insert_mode. All callers adjusted.
2439
93c6145a
JB
24402014-09-19 Joel Brobecker <brobecker@adacore.com>
2441
2442 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2443 SystemTap support in GDB.
2444
89a5711c
DB
24452014-09-19 Don Breazeal <donb@codesourcery.com>
2446
2447 * linux-nat.c (linux_handle_extended_wait): Call
2448 linux_ptrace_get_extended_event.
2449 (wait_lwp): Call linux_is_extended_waitstatus.
2450 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2451 and linux_is_extended_waitstatus.
2452 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2453 linux_ptrace_get_extended_event.
2454 (linux_ptrace_get_extended_event): New function.
2455 (linux_is_extended_waitstatus): New function.
2456 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2457 (linux_is_extended_waitstatus): New declarations.
2458
c3b7b696
YQ
24592014-09-19 Yao Qi <yao@codesourcery.com>
2460
2461 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2462 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2463 comments. Callers update.
2464 (dwarf_decode_lines): Likewise.
2465 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2466 comments. Skip the line table if 'lowpc' is greater than
2467 'address'. Don't check
2468 dwarf2_per_objfile->has_section_at_zero.
2469
2b4fd423
DE
24702014-09-18 Doug Evans <dje@google.com>
2471
2472 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2473 * python/py-symtab.c (stpy_get_producer): New function.
2474 (symtab_object_getset): Add "producer" attribute.
2475
5e43d467
UW
24762014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2477
2478 PR gdb/17384
2479 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2480 (do_captured_read_memory_integer): Remove.
2481 (safe_read_memory_integer): Use target_read_memory directly instead
2482 of catching errors in do_captured_read_memory_integer.
2483
04e79979
MR
24842014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2485
2486 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2487 not gdb/doc.
2488
76aeec5b
SDJ
24892014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2490
2491 * objc-lang.c (find_implementation_from_class): Remove dead code.
2492
2f693f9d
SDJ
24932014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2494
2495 PR cli/7233
2496 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2497 "fprintf_unfiltered (gdb_stdlog...)".
2498
bb9d5f81
PP
24992014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2500
2501 PR breakpoints/12526
2502 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2503 val_bitsize.
2504 * breakpoint.c (watch_command_1): Use these fields to retain
2505 bitfield information.
2506 (extract_bitfield_from_watchpoint_value): New function.
2507 (watchpoint_check): Use it.
2508 (update_watchpoint): Use it. Optimize the address and length of a
2509 HW watchpoint pointing to a bitfield.
2510 * value.h (unpack_value_bitfield): New prototype.
2511 * value.c (unpack_value_bitfield): Make extern.
2512
05db5edd
ST
25132014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2514
2515 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2516 x86-dregs.o.
2517 * gnu-nat.c (inf_threads): New function.
2518 * gnu-nat.h (inf_threads_ftype): New typedef.
2519 (inf_threads): New declaration.
2520 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2521 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2522 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2523 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2524 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2525 (i386_gnu_dr_get_control): New functions.
2526 (reg_addr): New structure.
2527 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2528 i386 debugging register hooks.
2529 * NEWS: Mention this.
2530
5a578da5
OJ
25312014-08-13 Omair Javaid <omair.javaid@linaro.org>
2532
2533 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2534 vector data transfer instructions.
2535 (arm_record_coproc_data_proc): Updated.
2536
f20f80dd
OJ
25372014-08-13 Omair Javaid <omair.javaid@linaro.org>
2538
2539 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2540 arm_record_exreg_ld_st_insn.
2541 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2542 load/store insns.
2543
851f26ae
OJ
25442014-08-13 Omair Javaid <omair.javaid@linaro.org>
2545
2546 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2547 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2548 processing instructions.
2549
1e1b6563
OJ
25502014-08-13 Omair Javaid <omair.javaid@linaro.org>
2551
2552 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2553 for advance SIMD struct ld/st insn.
2554 (thumb2_record_decode_insn_handler): Replace stub handler with
2555 thumb2_record_asimd_struct_ld_st.
2556
60cc5e93
OJ
25572014-08-13 Omair Javaid <omair.javaid@linaro.org>
2558
2559 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2560 for asimd, vfp and coprocessor insns.
2561 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2562 and coprocessor insns.
2563 (thumb2_record_coproc_insn): New function.
2564 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2565 handlers.
2566 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2567 opcode 110 insns.
2568
81219e53
DE
25692014-09-13 Doug Evans <xdje42@gmail.com>
2570
2571 * NEWS: Mention new "queue-signal" command.
2572 * infcmd.c (queue_signal_command): New function.
2573 (_initialize_infcmd): Add new queue-signal command.
2574
d36bf488
DE
25752014-09-13 Doug Evans <xdje42@gmail.com>
2576
2577 * linux-nat.c (wait_lwp): Add debugging printf.
2578 (linux_nat_wait_1): Ditto.
2579
f37f681c
PA
25802014-09-12 Pedro Alves <palves@redhat.com>
2581
2582 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2583 (create_and_insert_solib_event_breakpoint): New functions.
2584 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2585 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2586 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2587 (remove_dbx_link_breakpoint): Delete function.
2588 (insert_dbx_link_bpt_in_file): Use
2589 create_and_insert_solib_event_breakpoint instead of
2590 deprecated_insert_raw_breakpoint.
2591 (procfs_wait): Don't check whether we hit __dbx_link here.
2592 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2593 here.
2594 * solib-irix.c (base_breakpoint): Delete global.
2595 (disable_break): Delete function.
2596 (enable_break): Use create_solib_event_breakpoint
2597 instead of deprecated_insert_raw_breakpoint.
2598 (irix_solib_handle_event): New function.
2599 (irix_solib_create_inferior_hook): Don't run the target or disable
2600 the mapping-complete breakpoint here.
2601 (_initialize_irix_solib): Install irix_solib_handle_event as
2602 so_ops->handle_event hook.
2603
9d9bf2df
EBM
26042014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2605 Ulrich Weigand  <uweigand@de.ibm.com>
2606
2607 PR tdep/17379
2608 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2609 instead of read_memory_unsigned_integer.
2610
b006a80e
GB
26112014-09-12 Gary Benson <gbenson@redhat.com>
2612
2613 * nat/linux-waitpid.c: Include common-defs.h.
2614 [GDBSERVER]: Add FIXME comment.
2615 [!GDBSERVER]: Don't include defs.h or signal.h.
2616 (linux_debug) [!GDBSERVER]: Remove empty block.
2617
296b1496
GB
26182014-09-12 Gary Benson <gbenson@redhat.com>
2619
2620 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2621 Don't include defs.h or server.h.
2622
53f81362
GB
26232014-09-12 Gary Benson <gbenson@redhat.com>
2624
2625 * nat/linux-btrace.c: Include common-defs.h.
2626 Don't include defs.h, server.h or gdbthread.h.
2627 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2628
727605ca
GB
26292014-09-12 Gary Benson <gbenson@redhat.com>
2630
2631 * common/agent.c: Include common-defs.h.
2632 Don't include defs.h or server.h.
2633 * common/buffer.c: Likewise.
2634 * common/common-debug.c: Likewise.
2635 * common/common-utils.c: Likewise.
2636 * common/errors.c: Likewise.
2637 * common/filestuff.c: Likewise.
2638 * common/format.c: Likewise.
2639 * common/gdb_vecs.c: Likewise.
2640 * common/print-utils.c: Likewise.
2641 * common/ptid.c: Likewise.
2642 * common/rsp-low.c: Likewise.
2643 * common/signals.c: Likewise.
2644 * common/vec.c: Likewise.
2645 * common/xml-utils.c: Likewise.
2646 * nat/linux-osdata.c: Likewise.
2647 * nat/linux-procfs.c: Likewise.
2648 * nat/linux-ptrace.c: Likewise.
2649 * nat/mips-linux-watch.c: Likewise.
2650 * target/waitstatus.c: Likewise.
2651
361c8ade
GB
26522014-09-12 Tom Tromey <tromey@redhat.com>
2653 Gary Benson <gbenson@redhat.com>
2654
2655 * common/common-regcache.h: New file.
2656 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2657 * regcache.h: Include common-regcache.h.
2658 (regcache_read_pc): Don't declare.
2659 * regcache.c (get_thread_regcache_for_ptid): New function.
2660 * nat/linux-btrace.c: Don't include regcache.h.
2661 Include common-regcache.h.
2662 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2663
a01cbb49
TS
26642014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2665
2666 * regcache.h (struct regset): Declare.
2667
98880d46
PA
26682014-09-11 Pedro Alves <palves@redhat.com>
2669
2670 PR gdb/17347
2671 * main.c: Include "infrun.h".
2672 (catch_command_errors, catch_command_errors_const): Wait for the
2673 foreground command to complete.
2674 * top.c (maybe_wait_sync_command_done): New function, factored out
2675 from ...
2676 (maybe_wait_sync_command_done): ... here.
2677 * top.h (maybe_wait_sync_command_done): New declaration.
2678
bd9269f7
GB
26792014-09-11 Tom Tromey <tromey@redhat.com>
2680 Gary Benson <gbenson@redhat.com>
2681
2682 * common/symbol.h: New file.
2683 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2684 * minsyms.c (find_minimal_symbol_address): New function.
2685 * common/agent.c: Include common/symbol.h.
2686 [!GDBSERVER]: Don't include objfiles.h.
2687 (agent_look_up_symbols): Use find_minimal_symbol_address.
2688
f8c1d06b
GB
26892014-09-11 Gary Benson <gbenson@redhat.com>
2690
2691 * target/target.h (target_stop_ptid, target_continue_ptid):
2692 Declare.
2693 * target.c (target_stop_ptid, target_continue_ptid): New
2694 functions.
2695 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2696 (agent_run_command): Always use target_stop_ptid and
2697 target_continue_ptid.
2698
721ec300
GB
26992014-09-11 Tom Tromey <tromey@redhat.com>
2700 Gary Benson <gbenson@redhat.com>
2701
2702 * target/target.h: New file.
2703 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2704 * target.h: Include target/target.h.
2705 (target_read_memory, target_write_memory): Don't declare.
2706 * target.c (target_read_uint32): New function.
2707 * common/agent.c: Include target/target.h.
2708 [!GDBSERVER]: Don't include target.h.
2709 (helper_thread_id): Type changed to uint32_t.
2710 (agent_get_helper_thread_id): Use target_read_uint32.
2711 (agent_run_command): Always use target_read_memory and
2712 target_write_memory.
2713 (agent_capability): Type changed to uint32_t.
2714 (agent_capability_check): Use target_read_uint32.
2715
c5e92cca
GB
27162014-09-11 Gary Benson <gbenson@redhat.com>
2717
2718 * common/common-debug.h (show_debug_regs): Declare.
2719 * common/common-debug.c (show_debug_regs): Define.
2720 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2721 all uses with show_debug_regs. Replace all uses that considered
2722 debug_hw_points as a multi-value integer with straight boolean
2723 uses.
2724 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2725 with show_debug_regs.
2726 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2727 all uses with show_debug_regs.
2728 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2729 uses with show_debug_regs.
2730
eeef931a
UW
27312014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2732
2733 * findvar.c (address_from_register): Handle targets requiring
2734 a special conversion routine even for plain pointer types.
2735
8efa9855
UW
27362014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2737
2738 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2739 (store_register): Do not call exec_one_dummy_insn.
2740
eb479039
JB
27412014-09-10 Joel Brobecker <brobecker@adacore.com>
2742
2743 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2744 dereference it first. Use value_enclosing_type instead of
2745 value_type.
2746 (ada_array_length): Likewise.
2747
deede10c
JB
27482014-09-10 Joel Brobecker <brobecker@adacore.com>
2749
2750 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2751 Adjust function implementation and documentation accordingly.
2752 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2753 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2754 Update call to ada_value_ptr_subscript.
2755
7828a5f5
JB
27562014-09-10 Joel Brobecker <brobecker@adacore.com>
2757
2758 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2759 instead of VAL's type.
2760
35782f14
JB
27612014-09-10 Joel Brobecker <brobecker@adacore.com>
2762
2763 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2764
d342a0da
DE
27652014-09-09 Doug Evans <xdje42@gmail.com>
2766
2767 PR guile/17367
2768 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2769 last parameter to pkg-config, not first.
2770 * configure.ac: Pass --with-guile provided pkg-config path to
2771 GDB_GUILE_PROGRAM_NAMES.
2772 * configure: Regenerate.
2773
b4a3d263
GKB
27742014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2775
2776 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2777 Bertazi".
2778
6e466374
MR
27792014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2780
2781 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2782 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2783 the list of sections determining GDB_OSABI_IRIX.
2784
a1ada89a
JH
27852014-09-09 James Hogan <james.hogan@imgtec.com>
2786
2787 * MAINTAINERS (Write After Approval): Add "James Hogan".
2788
86db008d
JH
27892014-09-09 James Hogan <james.hogan@imgtec.com>
2790
2791 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2792
72fde3df
JB
27932014-09-09 Joel Brobecker <brobecker@adacore.com>
2794
2795 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2796
92d8d229
DE
27972014-09-08 Doug Evans <xdje42@gmail.com>
2798
2799 PR 17247
2800 * guile.c: #include <signal.h>.
2801 (_initialize_guile): Block SIGCHLD while initializing Guile.
2802
2803 Replaces the following, which is reverted.
2804
2805 2014-07-26 Doug Evans <xdje42@gmail.com>
2806
2807 PR 17185
2808 * configure.ac: Add check for header gc/gc.h.
2809 Add check for function setenv.
2810 * configure: Regenerate.
2811 * config.in: Regenerate.
2812 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2813
d81412aa
DE
28142014-09-08 Doug Evans <xdje42@gmail.com>
2815
2816 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2817 with named constant. Fix style of pointer comparison.
2818 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2819
a9f116cb
GKB
28202014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2821
2822 PR gdb/17035
2823 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2824 decide whether we display the command on "show user".
2825 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2826 printing command name.
2827 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2828 * cli/cli-decode.c (cli_user_command_p): Create helper function
2829 to verify whether cmd_list_element is a user-defined command.
2830
c75bd3a2
JK
28312014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2832
2833 PR python/17355
2834 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2835 Fix goto out of TRY_CATCH.
2836
faa42425 28372014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2838 Tom Tromey <tromey@redhat.com>
faa42425
DE
2839
2840 PR 15276
2841 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2842 $_any_caller_matches.
2843 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2844 * python/lib/gdb/function/caller_is.py: New file.
2845
0d41ba00
DE
28462014-09-06 Doug Evans <xdje42@gmail.com>
2847
2848 * infcmd.c (program_info): Fix typo.
2849
474ca4f6
SDJ
28502014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2851
2852 PR gdb/17235
2853 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2854 'number'. New variable 'has_digit'. Rewrite code to deal with
2855 subexpressions on SDT probes.
2856
ebf13736
PA
28572014-09-04 Pedro Alves <palves@redhat.com>
2858
2859 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2860 the input is only one character long.
2861
eb0b0463
SDJ
28622014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2863
2864 PR fortran/17237
2865 * f-valprint.c (f_val_print): Specify the correct print option to
2866 use when printing integer values.
2867
5ee44bfa
GB
28682014-09-04 Gary Benson <gbenson@redhat.com>
2869
2870 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2871 Remove code to cope with LWPs wrapped as PIDs.
2872 Add assertions to ensure no wrapped LWPs are passed.
2873
4875ffdb
PA
28742014-09-04 Pedro Alves <palves@redhat.com>
2875
2876 * value.c (value_ranges_copy_adjusted): New function, factored out
2877 from ...
2878 (value_contents_copy_raw): ... here.
2879 (unpack_value_bits_as_long_1): Rename back to ...
2880 (unpack_bits_as_long): ... this. Remove 'original_value' and
2881 'result' parameters. Change return type to LONGEST.
2882 (unpack_value_bits_as_long): Delete.
2883 (unpack_value_field_as_long_1): Delete.
2884 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2885 (unpack_value_bitfield): New function.
2886 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2887 (value_fetch_lazy): Use unpack_value_bitfield.
2888 * value.h (unpack_value_bits_as_long): Delete declaration.
2889
5f3b99cf
SS
28902014-09-03 Sasha Smundak <asmundak@google.com>
2891
2892 * python/py-frame.c (frapy_read_register): New function.
2893
ac740bc7
JH
28942014-09-03 James Hogan <james.hogan@imgtec.com>
2895
2896 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2897 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2898
7d793aa9
SDJ
28992014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2900
2901 PR python/16699
2902 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2903 function.
2904 (add_cmd): Set "completer_handle_brkchars" to NULL.
2905 * cli/cli-decode.h (struct cmd_list_element)
2906 <completer_handle_brkchars>: New field.
2907 * command.h (completer_ftype_void): New typedef.
2908 (set_cmd_completer_handle_brkchars): New prototype.
2909 * completer.c (set_gdb_completion_word_break_characters): New
2910 function.
2911 (complete_line_internal): Call "completer_handle_brkchars"
2912 callback from command.
2913 * completer.h: Include "command.h".
2914 (set_gdb_completion_word_break_characters): New prototype.
2915 * python/py-cmd.c (cmdpy_completer_helper): New function.
2916 (cmdpy_completer_handle_brkchars): New function.
2917 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2918 (cmdpy_init): Set completer_handle_brkchars to
2919 cmdpy_completer_handle_brkchars.
2920
97ea6506
GB
29212014-09-03 Gary Benson <gbenson@redhat.com>
2922
2923 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2924 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2925 Loop conditions changed to equivalent form.
2926 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2927 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2928 ALL_DEBUG_ADDRESS_REGISTERS.
2929
d1437815
JB
29302014-09-03 Joel Brobecker <brobecker@adacore.com>
2931
2932 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2933 description fix.
2934
9b94fcf1
DE
29352014-09-02 Doug Evans <dje@google.com>
2936
2937 * typeprint.c (find_global_typedef): Fix comment.
2938
df7e5265
GB
29392014-09-02 Gary Benson <gbenson@redhat.com>
2940
2941 * i386-nat.h: Renamed as...
2942 * x86-nat.h: New file. All type, function and variable name
2943 prefixes changed from "i386_" to "x86_". All references updated.
2944 * i386-nat.c: Renamed as...
2945 * x86-nat.c: New file. All type, function and variable name
2946 prefixes changed from "i386_" to "x86_". All references updated.
2947 * common/i386-xstate.h: Renamed as...
2948 * common/x86-xstate.h: New file. All type, function and variable
2949 name prefixes changed from "i386_" to "x86_". All references
2950 updated.
2951 * nat/i386-cpuid.h: Renamed as...
2952 * nat/x86-cpuid.h: New file. All type, function and variable name
2953 prefixes changed from "i386_" to "x86_". All references updated.
2954 * nat/i386-gcc-cpuid.h: Renamed as...
2955 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2956 name prefixes changed from "i386_" to "x86_". All references
2957 updated.
2958 * nat/i386-dregs.h: Renamed as...
2959 * nat/x86-dregs.h: New file. All type, function and variable name
2960 prefixes changed from "i386_" to "x86_". All references updated.
2961 * nat/i386-dregs.c: Renamed as...
2962 * nat/x86-dregs.c: New file. All type, function and variable name
2963 prefixes changed from "i386_" to "x86_". All references updated.
2964
1c3569d4
MR
29652014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2966
2967 * varobj.c (_initialize_varobj): Move to the end of file.
2968
ff55e1b5
GB
29692014-08-29 Gary Benson <gbenson@redhat.com>
2970
2971 * common/common-exceptions.h: New file.
2972 * common/common-exceptions.c: Likewise.
2973 * Makefile.in (SFILES): Add common/common-exceptions.c.
2974 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2975 (COMMON_OBS): Add common-exceptions.o.
2976 (common-exceptions.o): New rule.
2977 * exceptions.h (common-exceptions.h): Include.
2978 (gdb_setjmp.h): Do not include.
2979 (return_reason): Moved to common-exceptions.h.
2980 (enum return_reason): Likewise.
2981 (RETURN_MASK): Likewise.
2982 (typedef return_mask): Likewise.
2983 (enum errors): Likewise.
2984 (struct gdb_exception): Likewise.
2985 (exceptions_state_mc_init): Likewise.
2986 (exceptions_state_mc_action_iter): Likewise.
2987 (exceptions_state_mc_action_iter_1): Likewise.
2988 (TRY_CATCH): Likewise.
2989 (throw_exception): Likewise.
2990 (throw_verror): Likewise.
2991 (throw_vquit): Likewise.
2992 (throw_error): Likewise.
2993 (throw_quit): Likewise.
2994 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2995 (enum catcher_action): Likewise.
2996 (struct catcher): Likewise.
2997 (current_catcher): Likewise.
2998 (catcher_list_size): Likewise.
2999 (exceptions_state_mc_init): Likewise.
3000 (catcher_pop): Likewise.
3001 (exceptions_state_mc): Likewise.
3002 (exceptions_state_mc_action_iter): Likewise.
3003 (exceptions_state_mc_action_iter_1): Likewise.
3004 (throw_exception): Likewise.
3005 (exception_messages): Likewise.
3006 (exception_messages_size): Likewise.
3007 (throw_it): Likewise.
3008 (throw_verror): Likewise.
3009 (throw_vquit): Likewise.
3010 (throw_error): Likewise.
3011 (throw_quit): Likewise.
3012 (prepare_to_throw_exception): New function.
3013
e9bcb658
GB
30142014-08-29 Gary Benson <gbenson@redhat.com>
3015
3016 * common/gdb_setjmp.h: New file.
3017 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3018 * configure.ac: Move sigsetjmp check...
3019 * common/common.m4: ...here.
3020 * configure: Regenerate.
3021 * cp-support.c (SIGJMP_BUF): Delete.
3022 (SIGSETJMP): Likewise.
3023 (SIGLONGJMP): Likewise.
3024 * exceptions.h (gdb_setjmp.h): Include.
3025 (setjmp.h): Do not include.
3026 (EXCEPTIONS_SIGJMP_BUF): Delete.
3027 (EXCEPTIONS_SIGSETJMP): Likewise.
3028 (EXCEPTIONS_SIGLONGJMP): Likewise.
3029 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3030 from gdb_setjmp.h.
3031 * exceptions.c: Likewise.
3032
e3180625
GB
30332014-08-29 Gary Benson <gbenson@redhat.com>
3034
3035 * cleanups.h: Moved to...
3036 * common/cleanups.h: New file.
3037 * cleanups.c: Moved to...
3038 * common/cleanups.c: New file. Include common-defs.h and
3039 cleanups.h. Do not include defs.h.
3040 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3041 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3042 (cleanups.o): New rule.
3043
e3d6ba5d
GB
30442014-08-29 Gary Benson <gbenson@redhat.com>
3045
3046 * common/errors.h (internal_warning): New declaration.
3047 (internal_vwarning): Likewise.
3048 * common/errors.c (internal_warning): New function.
3049 * utils.h (internal_warning): Don't declare.
3050 (internal_vwarning): Likewise.
3051 * utils.c (internal_warning): Removed.
3052
075c7033
GB
30532014-08-29 Gary Benson <gbenson@redhat.com>
3054
3055 * main.c (captured_main): Use warning during startup.
3056 Prefix startup warning messages with command name.
3057
91b35fd0
GB
30582014-08-29 Gary Benson <gbenson@redhat.com>
3059
3060 * main.c (captured_main): Handle usage errors with error.
3061
b1ec390e
GB
30622014-08-29 Gary Benson <gbenson@redhat.com>
3063
3064 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3065 exit pair with a call to error. Wrap the message with _().
3066
fd0ef3dd
GB
30672014-08-29 Gary Benson <gbenson@redhat.com>
3068
3069 * main.c (captured_main): Replace a fprintf/exit
3070 pair with a call to error. Wrap the message with _().
3071
e0e6bcab
GB
30722014-08-29 Gary Benson <gbenson@redhat.com>
3073
3074 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3075 pairs with calls to error. Wrap the message with _().
3076
0d2f5c07
GB
30772014-08-29 Gary Benson <gbenson@redhat.com>
3078
3079 * utils.c (vwarning): Protect calls to target_terminal_ours
3080 and wrap_here.
3081
5df43998
GB
30822014-08-29 Gary Benson <gbenson@redhat.com>
3083
3084 * exceptions.c (print_flush): Protect calls to
3085 target_terminal_ours and wrap_here.
3086
2437fd32
GB
30872014-08-29 Gary Benson <gbenson@redhat.com>
3088
3089 * utils.h (filtered_printing_initialized): New declaration.
3090 * utils.c (abort_with_message): New function.
3091 (internal_vproblem): Use abort_with_message for first level
3092 recursive internal problems, and if gdb_stderr is not set up.
3093 Protect calls to target_terminal_ours, begin_line and query.
3094
f1f58506
DE
30952014-08-28 Doug Evans <dje@google.com>
3096
3097 * symtab.c (in_prologue): Move definition to better spot.
3098 (skip_prologue_using_sal): Ditto.
3099
aab2f208
DE
31002014-08-28 Doug Evans <dje@google.com>
3101
3102 * symtab.c (find_function_start_sal): Move definition to better spot.
3103
6b65d1b6
YQ
31042014-08-28 Yao Qi <yao@codesourcery.com>
3105
3106 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3107 found_stack_adjust in forward scan. Remove condition check
3108 on found_stack_adjust which is always true. Indent the code.
3109
a1b34d15
YQ
31102014-08-28 Yao Qi <yao@codesourcery.com>
3111
3112 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3113 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3114 (dwarf_decode_lines): Remove argument
3115 want_line_info. Remove condition check on want_line_info.
3116 Callers update.
3117
d5962de5
DE
31182014-08-27 Doug Evans <dje@google.com>
3119
3120 * dwarf2read.c (dwarf_record_line): Fix typo.
3121
9b139002
SDJ
31222014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3123
3124 * target.h (struct target_ops::to_terminal_save_ours): Remove
3125 declaration.
3126 (target_terminal_save_ours): Remove macro.
3127 * target-delegates.c: Regenerate.
3128 * inf-child.c (inf_child_target): Don't set the nonexistent
3129 field to_terminal_save_ours.
3130 * inferior.h (child_terminal_save_ours): Remove declaration.
3131 * terminal.h (gdb_save_tty_state): New declaration.
3132 * inflow.c (child_terminal_save_ours): Rename to ...
3133 (gdb_save_tty_state): ... this.
3134 * tui/tui.c: Include terminal.h.
3135 (tui_enable): Use gdb_save_tty_state instead of
3136 target_terminal_save_ours.
3137 (tui_disable): Likewise.
3138
9debeba0
DE
31392014-08-25 Doug Evans <dje@google.com>
3140
3141 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3142 Pass NULL instead of 0 for context pointer.
3143
428fc5fc
YQ
31442014-08-25 Yao Qi <yao@codesourcery.com>
3145
3146 * dwarf2read.c: Fix grammatical error.
3147
cdc07690
YQ
31482014-08-24 Yao Qi <yao@codesourcery.com>
3149
3150 * dwarf2read.c (scan_partial_symbols): Update comments.
3151 Rename argument 'need_pc' with 'set_addrmap'.
3152 (add_partial_namespace): Rename argument 'need_pc' with
3153 'set_addrmap'.
3154 (add_partial_module): Likewise.
3155 (add_partial_subprogram): Likewise. Update comments.
3156 (dwarf2_name): Fix typo.
3157
a05a36a5
DE
31582014-08-22 Doug Evans <dje@google.com>
3159
3160 PR 17276
3161 * dwarf2read.c (dwarf_record_line_p): New function.
3162 (dwarf_decode_lines_1): Ignore subsequent line number entries
3163 for the same line if any entry had a non-zero discriminator.
3164
252a6764
DE
31652014-08-22 Doug Evans <dje@google.com>
3166
3167 * buildsym.h (record_line_ftype): New typedef.
3168 (record_line): Use it.
3169 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3170 (dwarf_decode_lines_1): Call them.
3171
510db052
YQ
31722014-08-22 Yao Qi <yao@codesourcery.com>
3173
3174 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3175 (ctf_end): Remove code.
3176
22fd09ae
JK
31772014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3178
3179 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3180 (linux_make_corefile_notes): call update_thread_list, protected against
3181 exceptions.
3182
656e8868
PA
31832014-08-21 Pedro Alves <palves@redhat.com>
3184
3185 * infcmd.c (attach_command): Remove comment.
3186
de589d04
WN
31872014-08-21 Bin Cheng <bin.cheng@arm.com>
3188
3189 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3190 unsigned LONGEST to ULONGEST.
3191
2a31c623
PA
31922014-08-20 Pedro Alves <palves@redhat.com>
3193
3194 * Makefile.in (check-read1): New rule.
3195
d36430db
JB
31962014-08-20 Joel Brobecker <brobecker@adacore.com>
3197
3198 * value.c (value_from_contents_and_address): Strip resolved_type's
3199 typedef layers before checking its TYPE_DATA_LOCATION.
3200
000339af
PA
32012014-08-20 Pedro Alves <palves@redhat.com>
3202
3203 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3204
5f52445b
YQ
32052014-08-20 Yao Qi <yao@codesourcery.com>
3206
3207 * amd64-tdep.c (amd64_classify): Add a blank line after the
3208 example. Move "*/" to a new line.
3209 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3210 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3211 * dwarf2read.c (psymtab_include_file_name): Likewise.
3212
9a0dc9e3
PA
32132014-08-19 Andrew Burgess <aburgess@broadcom.com>
3214 Pedro Alves <palves@redhat.com>
3215
3216 PR symtab/14604
3217 PR symtab/14605
3218 * ada-lang.c (coerce_unspec_val_to_type): Use
3219 value_contents_copy_raw.
3220 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3221 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3222 * cp-valprint.c (cp_print_value_fields): Let the common printing
3223 code handle optimized out values.
3224 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3225 * d-valprint.c (dynamic_array_type): Use
3226 value_bits_any_optimized_out.
3227 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3228 check_any_valid fields.
3229 (check_pieced_value_bits): Delete and inline ...
3230 (check_pieced_synthetic_pointer): ... here.
3231 (check_pieced_value_validity): Delete.
3232 (check_pieced_value_invalid): Delete.
3233 (pieced_value_funcs): Remove check_validity and check_any_valid
3234 fields.
3235 (read_pieced_value): Use mark_value_bits_optimized_out.
3236 (write_pieced_value): Switch to use
3237 mark_value_bytes_optimized_out.
3238 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3239 of assuming the whole value is optimized out.
3240 * findvar.c (read_frame_register_value): Remove special handling
3241 of optimized out registers.
3242 (value_from_register): Use mark_value_bytes_optimized_out.
3243 * frame-unwind.c (frame_unwind_got_optimized): Use
3244 mark_value_bytes_optimized_out.
3245 * jv-valprint.c (java_value_print): Adjust.
3246 (java_print_value_fields): Let the common printing code handle
3247 optimized out values.
3248 * mips-tdep.c (mips_print_register): Remove special handling of
3249 optimized out registers.
3250 * opencl-lang.c (lval_func_check_validity): Delete.
3251 (lval_func_check_any_valid): Delete.
3252 (opencl_value_funcs): Remove check_validity and check_any_valid
3253 fields.
3254 * p-valprint.c (pascal_object_print_value_fields): Let the common
3255 printing code handle optimized out values.
3256 * stack.c (read_frame_arg): Remove special handling of optimized
3257 out values. Fetch both VAL and ENTRYVAL before comparing
3258 contents. Adjust to value_available_contents_eq rename.
3259 * valprint.c (valprint_check_validity)
3260 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3261 (val_print_array_elements): Adjust.
3262 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3263 (value_bits_any_optimized_out): New function.
3264 (value_entirely_covered_by_range_vector): New function, factored
3265 out from value_entirely_unavailable.
3266 (value_entirely_unavailable): Reimplement.
3267 (value_entirely_optimized_out): New function.
3268 (insert_into_bit_range_vector): New function, factored out from
3269 mark_value_bits_unavailable.
3270 (mark_value_bits_unavailable): Reimplement.
3271 (struct ranges_and_idx): New struct.
3272 (find_first_range_overlap_and_match): New function, factored out
3273 from value_available_contents_bits_eq.
3274 (value_available_contents_bits_eq): Rename to ...
3275 (value_contents_bits_eq): ... this. Check both unavailable
3276 contents and optimized out contents.
3277 (value_available_contents_eq): Rename to ...
3278 (value_contents_eq): ... this.
3279 (allocate_value_lazy): Remove reference to the old optimized_out
3280 boolean.
3281 (allocate_optimized_out_value): Use
3282 mark_value_bytes_optimized_out.
3283 (require_not_optimized_out): Adjust to check whether the
3284 optimized_out vec is empty.
3285 (ranges_copy_adjusted): New function, factored out from
3286 value_contents_copy_raw.
3287 (value_contents_copy_raw): Also copy the optimized out ranges.
3288 Assert the destination ranges aren't optimized out.
3289 (value_contents_copy): Update comment, remove call to
3290 require_not_optimized_out.
3291 (value_contents_equal): Adjust to check whether the optimized_out
3292 vec is empty.
3293 (set_value_optimized_out, value_optimized_out_const): Delete.
3294 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3295 New functions.
3296 (value_entirely_optimized_out, value_bits_valid): Delete.
3297 (value_copy): Take a VEC copy of the 'optimized_out' field.
3298 (value_primitive_field): Remove special handling of optimized out.
3299 (value_fetch_lazy): Assert that lazy values have no unavailable
3300 regions. Use value_bits_any_optimized_out. Remove some special
3301 handling for optimized out values.
3302 * value.h: Add intro comment about <optimized out> and
3303 <unavailable>.
3304 (struct lval_funcs): Remove check_validity and check_any_valid
3305 fields.
3306 (set_value_optimized_out, value_optimized_out_const): Remove.
3307 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3308 New declarations.
3309 (value_bits_any_optimized_out): New declaration.
3310 (value_bits_valid): Delete declaration.
3311 (value_available_contents_eq): Rename to ...
3312 (value_contents_eq): ... this, and extend comments.
3313
6694c411
JK
33142014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 Fix -fsanitize=address on unreadable inferior strings.
3317 * valprint.c (val_print_string): Fix access before BUFFER.
3318
89a1c21a
SM
33192014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3320
3321 * target.c (target_struct_size): Remove.
3322 (target_struct_allocsize): Remove.
3323 (DEFAULT_ALLOCSIZE): Remove.
3324 (target_ops_p): New typedef.
3325 (DEF_VEC_P (target_ops_p)): New vector type.
3326 (target_structs): Change type to VEC (target_ops_p).
3327 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3328 (find_default_run_target): Rewrite for loop following changes to
3329 target_structs.
3330
cb417230
JB
33312014-08-19 Joel Brobecker <brobecker@adacore.com>
3332
3333 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3334 Adjust code accordingly. Adjust function description comment.
3335
817e0957
YQ
33362014-08-19 Yao Qi <yao@codesourcery.com>
3337
3338 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3339 types.
3340
2974be62
AM
33412014-08-19 Alan Modra <amodra@gmail.com>
3342
3343 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3344 * config.in: Regenerate.
3345 * configure: Regenerate.
3346
34abf635
GB
33472014-08-19 Tom Tromey <tromey@redhat.com>
3348 Gary Benson <gbenson@redhat.com>
3349
3350 * common/common-debug.h: New file.
3351 * common/common-debug.c: Likewise.
3352 * debug.c: Likewise.
3353 * Makefile.in (SFILES): Add common/common-debug.c.
3354 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3355 (COMMON_OBS): Add common-debug.o and debug.o.
3356 (common-debug.o): New rule.
3357 * common/common-defs.h: Include common-debug.h.
3358 * common/agent.c (debug_agent_printf): New function.
3359 (DEBUG_AGENT): Redefine.
3360 * nat/i386-dregs.c (debug_printf): Undefine.
3361
f6e94d78
GB
33622014-08-19 Gary Benson <gbenson@redhat.com>
3363
3364 * common/common-defs.h: Include print-utils.h.
3365 * utils.h: Do not include print-utils.h.
3366
9239eeab
GB
33672014-08-19 Tom Tromey <tromey@redhat.com>
3368 Gary Benson <gbenson@redhat.com>
3369
3370 * common/common-types.h: New file.
3371 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3372 * common/common-defs.h: Include common-types.h.
3373 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3374 (ULONGEST): Remove.
3375
ef87c8bb
GB
33762014-08-19 Tom Tromey <tromey@redhat.com>
3377 Gary Benson <gbenson@redhat.com>
3378
3379 * common/errors.h: New file.
3380 * common/errors.c: Likewise.
3381 * Makefile.in (SFILES): Add common/errors.c.
3382 (HFILES_NO_SRCDIR): Add common/errors.h.
3383 (COMMON_OBS): Add errors.o.
3384 (errors.o): New rule.
3385 * common/common-defs.h: Include errors.h.
3386 * utils.h (perror_with_name, error, verror, warning, vwarning):
3387 Don't declare.
3388 * common/common-utils.h: (malloc_failure, internal_error):
3389 Likewise.
3390
196a707b
GB
33912014-08-19 Gary Benson <gbenson@redhat.com>
3392
3393 * utils.c (internal_vproblem): Always print the message.
3394
ded4fc8f
DE
33952014-08-18 Doug Evans <dje@google.com>
3396
3397 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3398
950c97d8
JB
33992014-08-18 Joel Brobecker <brobecker@adacore.com>
3400
3401 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3402 Return 0 if TYPE is dynamic.
3403 (print_range): Add handling of dynamic ranges.
3404
3cdcd0ce
JB
34052014-08-18 Keven Boell <keven.boell@intel.com>
3406 Joel Brobecker <brobecker@adacore.com>
3407
3408 * gdbtypes.h (struct main_type): Add field "data_location".
3409 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3410 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3411 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3412 a dynamic data location.
3413 (resolve_dynamic_type): Add DW_AT_data_location handling.
3414 (copy_recursive, copy_type): Copy the data_location information
3415 when present.
3416 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3417 * value.c (value_from_contents_and_address): Add
3418 DW_AT_data_location handling.
3419
08412b07
JB
34202014-08-18 Keven Boell <keven.boell@intel.com>
3421 Joel Brobecker <brobecker@adacore.com>
3422
3423 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3424 field "get_object_address".
3425 * dwarf2expr.c (execute_stack_op): Add handling for
3426 DW_OP_push_object_address.
3427 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3428 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3429 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3430 (dwarf_expr_get_obj_addr): New function.
3431 (dwarf_expr_ctx_funcs): Add get_object_address field.
3432 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3433 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3434 (dwarf2_evaluate_property): Add parameter "address". Use it.
3435 (needs_get_obj_addr): New function.
3436 (needs_frame_ctx_funcs): Add get_object_address field.
3437 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3438 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3439 (resolve_dynamic_array): Likewise.
3440
84754697
JB
34412014-08-18 Joel Brobecker <brobecker@adacore.com>
3442
3443 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3444 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3445 fixed value for records and unions for which some GNAT encodings
3446 are present.
3447
da5c522f
JB
34482014-08-18 Joel Brobecker <brobecker@adacore.com>
3449
3450 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3451 rewrite to avoid "else if" and "else" constructs. Should be
3452 a no-op in practice.
3453
0d72a7c3
JB
34542014-08-18 Joel Brobecker <brobecker@adacore.com>
3455
3456 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3457 of lexical block.
3458
e66d4446
SC
34592014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3460
3461 PR c++/17132
3462 * eval.c: Update all calls to find_overload_match.
3463 * valarith.c: Likewise.
3464 (value_user_defined_cpp_op, value_user_defined_op): New
3465 argument NOSIDE. Update all callers.
3466 * valops.c (find_overload_match): New argument NOSIDE.
3467 * value.h (find_overload_match): Update signature.
3468
940df408
SC
34692014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3470
3471 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3472 'items' methods instead of 'iteritems' method on dictionaries.
3473
699ca60a
DE
34742014-08-15 Doug Evans <dje@google.com>
3475
3476 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3477 closer to use.
3478
37780ee5
DE
34792014-08-15 Doug Evans <dje@google.com>
3480
3481 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3482
0ad93d4f
DE
34832014-08-15 Doug Evans <dje@google.com>
3484
3485 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3486
20d8c372
DE
34872014-08-15 Doug Evans <dje@google.com>
3488
3489 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3490 unused.
3491
cb039ba4
EZ
34922014-08-15 Eli Zaretskii <eliz@gnu.org>
3493
3494 * dcache.h: Include target.h, to avoid compile time warnings.
3495
eb7a547a
JB
34962014-08-15 Joel Brobecker <brobecker@adacore.com>
3497
3498 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3499 frame_info" partial declaration.
3500 * gdbarch.h: Regenerate.
3501
783cecc8
YQ
35022014-08-15 Yao Qi <yao@codesourcery.com>
3503
3504 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3505 Add parameter 'decode_for_pst_p'. Callers update.
3506
65c749e7
YQ
35072014-08-13 Yao Qi <yao@codesourcery.com>
3508
3509 PR build/17104
3510 * configure.ac: Use local variable 'pos'.
3511 * configure: Regenerated.
3512
d769e349
DE
35132014-08-11 Doug Evans <dje@google.com>
3514
3515 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3516 message, it is redundant with "Reading symbols from ..." message.
3517
24f1235e
DE
35182014-08-10 Doug Evans <xdje42@gmail.com>
3519
3520 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3521
dcd2e6ef
YQ
35222014-08-09 Yao Qi <yao@codesourcery.com>
3523
3524 PR remote/9053
3525 * remote.c (remote_xfer_partial): Remove dead code.
3526
070bdf0b
AA
35272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3528
3529 * ia64-linux-tdep.c: Include "regset.h".
3530 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3531 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3532 (ia64_linux_supply_fpregset): New function.
3533 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3534 (ia64_linux_regset_from_core_section): New function.
3535 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3536 method.
3537
08f9f542
AA
35382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3539
3540 * m68klinux-tdep.c: Include "regset.h".
3541 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3542 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3543 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3544 (m68k_linux_regset_from_core_section): New function.
3545 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3546 method.
3547
8f1cee41
AA
35482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3549
3550 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3551 function. Move logic to...
3552 (tilegx_linux_regmap): ... this new register map.
3553 (tilegx_linux_regset): Refer to register map, replace supply
3554 method by regcache_supply_regset, and add collect method.
3555 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3556 TILEGX_FIRST_EASY_REGNUM.
3557
c5741217
AA
35582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3559
3560 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3561 that calls regcache_supply_regset and handles the EPC register
3562 separately. Move main logic to...
3563 (score7_linux_gregmap): ... this new register map.
3564 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3565 (score7_linux_gregset): Refer to register map. Add collect method.
3566 (score7_linux_regset_from_core_section): Replace
3567 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3568 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3569 (struct regset): Delete unused forward declaraction.
3570 (struct pt_regs): Delete structure definition.
3571 (elf_gregset_t): Delete typedef.
3572
81580573
AA
35732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3574
3575 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3576 (nios2_core_regset): Add collect method.
3577
ba199d7d
AA
35782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3579
3580 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3581 platform-independent and don't write to read-only input buffer.
3582 (m32r_linux_collect_gregset): New function.
3583 (m32r_linux_gregset): Add collect method.
3584
0006a9da
AA
35852014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3586
3587 * hppa-linux-tdep.c (greg_map): Rename to...
3588 (hppa_linux_gregmap): ... this. Also convert to
3589 regcache_map_entry format.
3590 (hppa_linux_supply_regset): Delete function.
3591 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3592 (hppa_linux_fpregmap): ... this new register map.
3593 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3594 register map, replace supply method by regcache_supply_regset, and
3595 add collect method regcache_collect_regset.
3596
901e1b23
AA
35972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3598
3599 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3600 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3601 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3602 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3603 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3604 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3605 (frv_linux_supply_gregset): Replace main logic by call to
3606 regcache_supply_regset, but keep clearing gr32-gr63.
3607 (frv_linux_supply_fpregset): Delete function.
3608 (frv_linux_gregset): Refer to appropriate register map and add
3609 regcache_collect_regset as the collect method.
3610 (frv_linux_fpregset): Likewise. Also exchange the supply method
3611 by regcache_supply_regset.
3612
1d6e7555
AA
36132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3614
3615 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3616 by call to alpha_supply_int_regs.
3617 (alpha_linux_collect_gregset): New function.
3618 (alpha_linux_supply_fpregset): Replace logic by call to
3619 alpha_supply_fp_regs.
3620 (alpha_linux_collect_fpregset): New function.
3621 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3622
d4d793bf
AA
36232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3624
3625 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3626 by call to regcache_collect_regset.
3627 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3628 instead of aarch64_linux_supply_gregset/_fpregset.
3629 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3630 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3631 header file instead.
3632 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3633 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3634 functions. Move logic to ...
3635 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3636 register maps.
3637 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3638 refer to new register maps, replace *_regset_from_core by
3639 regcache_supply_regset, and also use regcache_collect_regset.
3640 * aarch64-linux-tdep.h: Include "regset.h".
3641 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3642 Delete prototypes.
3643 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3644 macros, moved from C source file.
3645 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3646 variable declarations.
3647
99b7da5d
AA
36482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3649
3650 * s390-linux-nat.c: Include "regset.h".
3651 (regmap_gregset): Delete macro.
3652 (s390_64_regmap_gregset): New register map for
3653 regcache_supply/_collect_regset.
3654 (s390_64_gregset): New regset.
3655 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3656 (regmap_fpregset): Delete macro.
3657 (s390_native_supply, s390_native_collect): Delete functions.
3658 (supply_gregset, fill_gregset): Replace s390-specific regmap
3659 handling by a call to regcache_supply/_collect_regset.
3660 (supply_fpregset, fill_fpregset): Call regcache_supply/
3661 _collect_regset instead of s390_native_supply/_collect.
3662 (fetch_regset, store_regset): Likewise. Also change the last
3663 parameter to a regset instead of a regmap.
3664 (s390_linux_fetch_inferior_registers)
3665 (390_linux_store_inferior_registers): Adjust last parameter in
3666 calls to fetch_regset and store_regset.
3667 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3668 (s390_gregmap): ... this. Also make static const and convert to
3669 regcache_map_entry format.
3670 (s390x_regmap_gregset): Delete.
3671 (s390_regmap_fpregset): Rename to...
3672 (s390_fpregmap): ... this. Make static const and convert to
3673 regcache_map_entry format.
3674 (s390_regmap_upper, s390_regmap_last_break)
3675 (s390x_regmap_last_break, s390_regmap_system_call)
3676 (s390_regmap_tdb): Likewise.
3677 (s390_supply_regset, s390_collect_regset): Remove functions.
3678 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3679 s390_supply_regset.
3680 (s390_gregset, s390_fpregset, s390_upper_regset)
3681 (s390_last_break_regset, s390x_last_break_regset)
3682 (s390_system_call_regset, s390_tdb_regset): Make global and
3683 replace s390_supply/_collect_regset by regcache_supply/
3684 _collect_regset.
3685 (s390x_gregset): Delete.
3686 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3687 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3688 (s390_regmap_fpregset, s390_regmap_last_break)
3689 (s390x_regmap_last_break, s390_regmap_system_call)
3690 (s390_regmap_tdb): Delete global variable declarations.
3691 (s390_gregset, s390_fpregset, s390_last_break_regset)
3692 (s390x_last_break_regset, s390_system_call_regset)
3693 (s390_tdb_regset): New global variable declarations.
3694
0b309272
AA
36952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3696
3697 * regcache.c: Include "regset.h".
3698 (regcache_transfer_regset): New local function.
3699 (regcache_supply_regset, regcache_collect_regset): New functions.
3700 * regcache.h (struct regcache_map_entry): New structure.
3701 (REGCACHE_MAP_SKIP): New enum value.
3702 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3703
7fefa8d7
AA
37042014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3705
3706 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3707 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3708 (ppc_linux_collect_gregset ): Likewise.
3709 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3710 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3711 (ppc_collect_vrregset): Likewise.
3712 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3713 Likewise.
3714
96c4f946
YQ
37152014-08-07 Yao Qi <yao@codesourcery.com>
3716
3717 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3718 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3719 * remote.c (remote_read_bytes): Likewise.
3720
fffbe6a8
YQ
37212014-08-07 Yao Qi <yao@codesourcery.com>
3722
3723 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3724
5ee8a82c
YQ
37252014-08-07 Yao Qi <yao@codesourcery.com>
3726
3727 PR remote/17230
3728 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3729 TARGET_XFER_OK instead of 0.
3730
bb974a24
GB
37312014-08-07 Gary Benson <gbenson@redhat.com>
3732
3733 * common/common-defs.h: Include errno.h.
3734 * defs.h: Do not include errno.h.
3735 * ada-typeprint.c: Likewise.
3736 * c-typeprint.c: Likewise.
3737 * core-regset.c: Likewise.
3738 * corefile.c: Likewise.
3739 * corelow.c: Likewise.
3740 * event-loop.c: Likewise.
3741 * f-typeprint.c: Likewise.
3742 * gnu-nat.c: Likewise.
3743 * go32-nat.c: Likewise.
3744 * i386gnu-nat.c: Likewise.
3745 * m2-typeprint.c: Likewise.
3746 * nat/linux-btrace.c: Likewise.
3747 * p-typeprint.c: Likewise.
3748 * procfs.c: Likewise.
3749 * remote-sim.c: Likewise.
3750 * rs6000-nat.c: Likewise.
3751 * target.c: Likewise.
3752 * typeprint.c: Likewise.
3753 * ui-file.c: Likewise.
3754 * valops.c: Likewise.
3755 * valprint.c: Likewise.
3756
6d3d12eb
GB
37572014-08-07 Gary Benson <gbenson@redhat.com>
3758
3759 * common/common-defs.h: Include string.h.
3760 * aarch64-tdep.c: Do not include string.h.
3761 * ada-exp.y: Likewise.
3762 * ada-lang.c: Likewise.
3763 * ada-lex.l: Likewise.
3764 * ada-typeprint.c: Likewise.
3765 * ada-valprint.c: Likewise.
3766 * aix-thread.c: Likewise.
3767 * alpha-linux-tdep.c: Likewise.
3768 * alpha-mdebug-tdep.c: Likewise.
3769 * alpha-nat.c: Likewise.
3770 * alpha-osf1-tdep.c: Likewise.
3771 * alpha-tdep.c: Likewise.
3772 * alphanbsd-tdep.c: Likewise.
3773 * amd64-dicos-tdep.c: Likewise.
3774 * amd64-linux-tdep.c: Likewise.
3775 * amd64-nat.c: Likewise.
3776 * amd64-sol2-tdep.c: Likewise.
3777 * amd64fbsd-tdep.c: Likewise.
3778 * amd64obsd-tdep.c: Likewise.
3779 * arch-utils.c: Likewise.
3780 * arm-linux-nat.c: Likewise.
3781 * arm-linux-tdep.c: Likewise.
3782 * arm-tdep.c: Likewise.
3783 * arm-wince-tdep.c: Likewise.
3784 * armbsd-tdep.c: Likewise.
3785 * armnbsd-nat.c: Likewise.
3786 * armnbsd-tdep.c: Likewise.
3787 * armobsd-tdep.c: Likewise.
3788 * avr-tdep.c: Likewise.
3789 * ax-gdb.c: Likewise.
3790 * ax-general.c: Likewise.
3791 * bcache.c: Likewise.
3792 * bfin-tdep.c: Likewise.
3793 * breakpoint.c: Likewise.
3794 * build-id.c: Likewise.
3795 * buildsym.c: Likewise.
3796 * c-exp.y: Likewise.
3797 * c-lang.c: Likewise.
3798 * c-typeprint.c: Likewise.
3799 * c-valprint.c: Likewise.
3800 * charset.c: Likewise.
3801 * cli-out.c: Likewise.
3802 * cli/cli-cmds.c: Likewise.
3803 * cli/cli-decode.c: Likewise.
3804 * cli/cli-dump.c: Likewise.
3805 * cli/cli-interp.c: Likewise.
3806 * cli/cli-logging.c: Likewise.
3807 * cli/cli-script.c: Likewise.
3808 * cli/cli-setshow.c: Likewise.
3809 * cli/cli-utils.c: Likewise.
3810 * coffread.c: Likewise.
3811 * common/agent.c: Likewise.
3812 * common/buffer.c: Likewise.
3813 * common/buffer.h: Likewise.
3814 * common/common-utils.c: Likewise.
3815 * common/filestuff.c: Likewise.
3816 * common/filestuff.c: Likewise.
3817 * common/format.c: Likewise.
3818 * common/print-utils.c: Likewise.
3819 * common/rsp-low.c: Likewise.
3820 * common/signals.c: Likewise.
3821 * common/vec.h: Likewise.
3822 * common/xml-utils.c: Likewise.
3823 * core-regset.c: Likewise.
3824 * corefile.c: Likewise.
3825 * corelow.c: Likewise.
3826 * cp-abi.c: Likewise.
3827 * cp-name-parser.y: Likewise.
3828 * cp-support.c: Likewise.
3829 * cp-valprint.c: Likewise.
3830 * cris-tdep.c: Likewise.
3831 * d-exp.y: Likewise.
3832 * darwin-nat.c: Likewise.
3833 * dbxread.c: Likewise.
3834 * dcache.c: Likewise.
3835 * demangle.c: Likewise.
3836 * dicos-tdep.c: Likewise.
3837 * disasm.c: Likewise.
3838 * doublest.c: Likewise.
3839 * dsrec.c: Likewise.
3840 * dummy-frame.c: Likewise.
3841 * dwarf2-frame.c: Likewise.
3842 * dwarf2loc.c: Likewise.
3843 * dwarf2read.c: Likewise.
3844 * elfread.c: Likewise.
3845 * environ.c: Likewise.
3846 * eval.c: Likewise.
3847 * event-loop.c: Likewise.
3848 * exceptions.c: Likewise.
3849 * exec.c: Likewise.
3850 * expprint.c: Likewise.
3851 * f-exp.y: Likewise.
3852 * f-lang.c: Likewise.
3853 * f-typeprint.c: Likewise.
3854 * f-valprint.c: Likewise.
3855 * fbsd-nat.c: Likewise.
3856 * findcmd.c: Likewise.
3857 * findvar.c: Likewise.
3858 * fork-child.c: Likewise.
3859 * frame.c: Likewise.
3860 * frv-linux-tdep.c: Likewise.
3861 * frv-tdep.c: Likewise.
3862 * gdb.c: Likewise.
3863 * gdb_bfd.c: Likewise.
3864 * gdbarch.c: Likewise.
3865 * gdbarch.sh: Likewise.
3866 * gdbtypes.c: Likewise.
3867 * gnu-nat.c: Likewise.
3868 * gnu-v2-abi.c: Likewise.
3869 * gnu-v3-abi.c: Likewise.
3870 * go-exp.y: Likewise.
3871 * go-lang.c: Likewise.
3872 * go32-nat.c: Likewise.
3873 * guile/guile.c: Likewise.
3874 * guile/scm-auto-load.c: Likewise.
3875 * hppa-hpux-tdep.c: Likewise.
3876 * hppa-linux-nat.c: Likewise.
3877 * hppanbsd-tdep.c: Likewise.
3878 * hppaobsd-tdep.c: Likewise.
3879 * i386-cygwin-tdep.c: Likewise.
3880 * i386-dicos-tdep.c: Likewise.
3881 * i386-linux-tdep.c: Likewise.
3882 * i386-nto-tdep.c: Likewise.
3883 * i386-sol2-tdep.c: Likewise.
3884 * i386-tdep.c: Likewise.
3885 * i386bsd-tdep.c: Likewise.
3886 * i386gnu-nat.c: Likewise.
3887 * i386nbsd-tdep.c: Likewise.
3888 * i386obsd-tdep.c: Likewise.
3889 * i387-tdep.c: Likewise.
3890 * ia64-libunwind-tdep.c: Likewise.
3891 * ia64-linux-nat.c: Likewise.
3892 * inf-child.c: Likewise.
3893 * inf-ptrace.c: Likewise.
3894 * inf-ttrace.c: Likewise.
3895 * infcall.c: Likewise.
3896 * infcmd.c: Likewise.
3897 * inflow.c: Likewise.
3898 * infrun.c: Likewise.
3899 * interps.c: Likewise.
3900 * iq2000-tdep.c: Likewise.
3901 * irix5-nat.c: Likewise.
3902 * jv-exp.y: Likewise.
3903 * jv-lang.c: Likewise.
3904 * jv-typeprint.c: Likewise.
3905 * jv-valprint.c: Likewise.
3906 * language.c: Likewise.
3907 * linux-fork.c: Likewise.
3908 * linux-nat.c: Likewise.
3909 * lm32-tdep.c: Likewise.
3910 * m2-exp.y: Likewise.
3911 * m2-typeprint.c: Likewise.
3912 * m32c-tdep.c: Likewise.
3913 * m32r-linux-nat.c: Likewise.
3914 * m32r-linux-tdep.c: Likewise.
3915 * m32r-rom.c: Likewise.
3916 * m32r-tdep.c: Likewise.
3917 * m68hc11-tdep.c: Likewise.
3918 * m68k-tdep.c: Likewise.
3919 * m68kbsd-tdep.c: Likewise.
3920 * m68klinux-nat.c: Likewise.
3921 * m68klinux-tdep.c: Likewise.
3922 * m88k-tdep.c: Likewise.
3923 * machoread.c: Likewise.
3924 * macrocmd.c: Likewise.
3925 * main.c: Likewise.
3926 * mdebugread.c: Likewise.
3927 * mem-break.c: Likewise.
3928 * memattr.c: Likewise.
3929 * memory-map.c: Likewise.
3930 * mep-tdep.c: Likewise.
3931 * mi/mi-cmd-break.c: Likewise.
3932 * mi/mi-cmd-disas.c: Likewise.
3933 * mi/mi-cmd-env.c: Likewise.
3934 * mi/mi-cmd-stack.c: Likewise.
3935 * mi/mi-cmd-var.c: Likewise.
3936 * mi/mi-cmds.c: Likewise.
3937 * mi/mi-console.c: Likewise.
3938 * mi/mi-getopt.c: Likewise.
3939 * mi/mi-interp.c: Likewise.
3940 * mi/mi-main.c: Likewise.
3941 * mi/mi-parse.c: Likewise.
3942 * microblaze-rom.c: Likewise.
3943 * microblaze-tdep.c: Likewise.
3944 * mingw-hdep.c: Likewise.
3945 * minidebug.c: Likewise.
3946 * minsyms.c: Likewise.
3947 * mips-irix-tdep.c: Likewise.
3948 * mips-linux-tdep.c: Likewise.
3949 * mips-tdep.c: Likewise.
3950 * mips64obsd-tdep.c: Likewise.
3951 * mipsnbsd-tdep.c: Likewise.
3952 * mipsread.c: Likewise.
3953 * mn10300-linux-tdep.c: Likewise.
3954 * mn10300-tdep.c: Likewise.
3955 * monitor.c: Likewise.
3956 * moxie-tdep.c: Likewise.
3957 * mt-tdep.c: Likewise.
3958 * nat/linux-btrace.c: Likewise.
3959 * nat/linux-osdata.c: Likewise.
3960 * nat/linux-procfs.c: Likewise.
3961 * nat/linux-ptrace.c: Likewise.
3962 * nat/linux-waitpid.c: Likewise.
3963 * nbsd-tdep.c: Likewise.
3964 * nios2-linux-tdep.c: Likewise.
3965 * nto-procfs.c: Likewise.
3966 * nto-tdep.c: Likewise.
3967 * objc-lang.c: Likewise.
3968 * objfiles.c: Likewise.
3969 * opencl-lang.c: Likewise.
3970 * osabi.c: Likewise.
3971 * osdata.c: Likewise.
3972 * p-exp.y: Likewise.
3973 * p-lang.c: Likewise.
3974 * p-typeprint.c: Likewise.
3975 * parse.c: Likewise.
3976 * posix-hdep.c: Likewise.
3977 * ppc-linux-nat.c: Likewise.
3978 * ppc-sysv-tdep.c: Likewise.
3979 * ppcfbsd-tdep.c: Likewise.
3980 * ppcnbsd-tdep.c: Likewise.
3981 * ppcobsd-tdep.c: Likewise.
3982 * printcmd.c: Likewise.
3983 * procfs.c: Likewise.
3984 * prologue-value.c: Likewise.
3985 * python/py-auto-load.c: Likewise.
3986 * python/py-gdb-readline.c: Likewise.
3987 * ravenscar-thread.c: Likewise.
3988 * regcache.c: Likewise.
3989 * registry.c: Likewise.
3990 * remote-fileio.c: Likewise.
3991 * remote-m32r-sdi.c: Likewise.
3992 * remote-mips.c: Likewise.
3993 * remote-notif.c: Likewise.
3994 * remote-sim.c: Likewise.
3995 * remote.c: Likewise.
3996 * reverse.c: Likewise.
3997 * rs6000-aix-tdep.c: Likewise.
3998 * ser-base.c: Likewise.
3999 * ser-go32.c: Likewise.
4000 * ser-mingw.c: Likewise.
4001 * ser-pipe.c: Likewise.
4002 * ser-tcp.c: Likewise.
4003 * ser-unix.c: Likewise.
4004 * serial.c: Likewise.
4005 * sh-tdep.c: Likewise.
4006 * sh64-tdep.c: Likewise.
4007 * shnbsd-tdep.c: Likewise.
4008 * skip.c: Likewise.
4009 * sol-thread.c: Likewise.
4010 * solib-dsbt.c: Likewise.
4011 * solib-frv.c: Likewise.
4012 * solib-osf.c: Likewise.
4013 * solib-som.c: Likewise.
4014 * solib-spu.c: Likewise.
4015 * solib-target.c: Likewise.
4016 * solib.c: Likewise.
4017 * somread.c: Likewise.
4018 * source.c: Likewise.
4019 * sparc-nat.c: Likewise.
4020 * sparc-sol2-tdep.c: Likewise.
4021 * sparc-tdep.c: Likewise.
4022 * sparc64-tdep.c: Likewise.
4023 * sparc64fbsd-tdep.c: Likewise.
4024 * sparc64nbsd-tdep.c: Likewise.
4025 * sparcnbsd-tdep.c: Likewise.
4026 * spu-linux-nat.c: Likewise.
4027 * spu-multiarch.c: Likewise.
4028 * spu-tdep.c: Likewise.
4029 * stabsread.c: Likewise.
4030 * stack.c: Likewise.
4031 * std-regs.c: Likewise.
4032 * symfile.c: Likewise.
4033 * symmisc.c: Likewise.
4034 * symtab.c: Likewise.
4035 * target.c: Likewise.
4036 * thread.c: Likewise.
4037 * tilegx-linux-nat.c: Likewise.
4038 * tilegx-tdep.c: Likewise.
4039 * top.c: Likewise.
4040 * tracepoint.c: Likewise.
4041 * tui/tui-command.c: Likewise.
4042 * tui/tui-data.c: Likewise.
4043 * tui/tui-disasm.c: Likewise.
4044 * tui/tui-file.c: Likewise.
4045 * tui/tui-layout.c: Likewise.
4046 * tui/tui-out.c: Likewise.
4047 * tui/tui-regs.c: Likewise.
4048 * tui/tui-source.c: Likewise.
4049 * tui/tui-stack.c: Likewise.
4050 * tui/tui-win.c: Likewise.
4051 * tui/tui-windata.c: Likewise.
4052 * tui/tui-winsource.c: Likewise.
4053 * typeprint.c: Likewise.
4054 * ui-file.c: Likewise.
4055 * ui-out.c: Likewise.
4056 * user-regs.c: Likewise.
4057 * utils.c: Likewise.
4058 * v850-tdep.c: Likewise.
4059 * valarith.c: Likewise.
4060 * valops.c: Likewise.
4061 * valprint.c: Likewise.
4062 * value.c: Likewise.
4063 * varobj.c: Likewise.
4064 * vax-tdep.c: Likewise.
4065 * vaxnbsd-tdep.c: Likewise.
4066 * vaxobsd-tdep.c: Likewise.
4067 * windows-nat.c: Likewise.
4068 * xcoffread.c: Likewise.
4069 * xml-support.c: Likewise.
4070 * xstormy16-tdep.c: Likewise.
4071 * xtensa-linux-nat.c: Likewise.
4072
dccbb609
GB
40732014-08-07 Gary Benson <gbenson@redhat.com>
4074
4075 * common/common-defs.h: Include gdb_assert.h.
4076 * aarch64-tdep.c: Do not include gdb_assert.h.
4077 * addrmap.c: Likewise.
4078 * aix-thread.c: Likewise.
4079 * alpha-linux-tdep.c: Likewise.
4080 * alpha-mdebug-tdep.c: Likewise.
4081 * alphanbsd-tdep.c: Likewise.
4082 * amd64-nat.c: Likewise.
4083 * amd64-tdep.c: Likewise.
4084 * amd64bsd-nat.c: Likewise.
4085 * amd64fbsd-nat.c: Likewise.
4086 * amd64fbsd-tdep.c: Likewise.
4087 * amd64nbsd-nat.c: Likewise.
4088 * amd64nbsd-tdep.c: Likewise.
4089 * amd64obsd-nat.c: Likewise.
4090 * amd64obsd-tdep.c: Likewise.
4091 * arch-utils.c: Likewise.
4092 * arm-tdep.c: Likewise.
4093 * armbsd-tdep.c: Likewise.
4094 * auxv.c: Likewise.
4095 * bcache.c: Likewise.
4096 * bfin-tdep.c: Likewise.
4097 * blockframe.c: Likewise.
4098 * breakpoint.c: Likewise.
4099 * bsd-kvm.c: Likewise.
4100 * bsd-uthread.c: Likewise.
4101 * buildsym.c: Likewise.
4102 * c-exp.y: Likewise.
4103 * c-lang.c: Likewise.
4104 * charset.c: Likewise.
4105 * cleanups.c: Likewise.
4106 * cli-out.c: Likewise.
4107 * cli/cli-decode.c: Likewise.
4108 * cli/cli-dump.c: Likewise.
4109 * cli/cli-logging.c: Likewise.
4110 * cli/cli-script.c: Likewise.
4111 * cli/cli-utils.c: Likewise.
4112 * coffread.c: Likewise.
4113 * common/common-utils.c: Likewise.
4114 * common/queue.h: Likewise.
4115 * common/signals.c: Likewise.
4116 * common/vec.h: Likewise.
4117 * complaints.c: Likewise.
4118 * completer.c: Likewise.
4119 * corelow.c: Likewise.
4120 * cp-abi.c: Likewise.
4121 * cp-name-parser.y: Likewise.
4122 * cp-namespace.c: Likewise.
4123 * cp-support.c: Likewise.
4124 * cris-tdep.c: Likewise.
4125 * dbxread.c: Likewise.
4126 * dictionary.c: Likewise.
4127 * doublest.c: Likewise.
4128 * dsrec.c: Likewise.
4129 * dummy-frame.c: Likewise.
4130 * dwarf2-frame-tailcall.c: Likewise.
4131 * dwarf2-frame.c: Likewise.
4132 * dwarf2expr.c: Likewise.
4133 * dwarf2loc.c: Likewise.
4134 * dwarf2read.c: Likewise.
4135 * eval.c: Likewise.
4136 * event-loop.c: Likewise.
4137 * exceptions.c: Likewise.
4138 * expprint.c: Likewise.
4139 * f-valprint.c: Likewise.
4140 * fbsd-nat.c: Likewise.
4141 * findvar.c: Likewise.
4142 * frame-unwind.c: Likewise.
4143 * frame.c: Likewise.
4144 * frv-tdep.c: Likewise.
4145 * gcore.c: Likewise.
4146 * gdb-dlfcn.c: Likewise.
4147 * gdb_bfd.c: Likewise.
4148 * gdbarch.c: Likewise.
4149 * gdbarch.sh: Likewise.
4150 * gdbtypes.c: Likewise.
4151 * gnu-nat.c: Likewise.
4152 * gnu-v3-abi.c: Likewise.
4153 * go-lang.c: Likewise.
4154 * guile/scm-exception.c: Likewise.
4155 * guile/scm-gsmob.c: Likewise.
4156 * guile/scm-lazy-string.c: Likewise.
4157 * guile/scm-math.c: Likewise.
4158 * guile/scm-pretty-print.c: Likewise.
4159 * guile/scm-safe-call.c: Likewise.
4160 * guile/scm-utils.c: Likewise.
4161 * guile/scm-value.c: Likewise.
4162 * h8300-tdep.c: Likewise.
4163 * hppa-hpux-nat.c: Likewise.
4164 * hppa-tdep.c: Likewise.
4165 * hppanbsd-tdep.c: Likewise.
4166 * hppaobsd-tdep.c: Likewise.
4167 * i386-darwin-nat.c: Likewise.
4168 * i386-darwin-tdep.c: Likewise.
4169 * i386-nto-tdep.c: Likewise.
4170 * i386-tdep.c: Likewise.
4171 * i386bsd-nat.c: Likewise.
4172 * i386fbsd-tdep.c: Likewise.
4173 * i386gnu-nat.c: Likewise.
4174 * i386nbsd-tdep.c: Likewise.
4175 * i386obsd-tdep.c: Likewise.
4176 * i387-tdep.c: Likewise.
4177 * ia64-libunwind-tdep.c: Likewise.
4178 * ia64-tdep.c: Likewise.
4179 * inf-ptrace.c: Likewise.
4180 * inf-ttrace.c: Likewise.
4181 * infcall.c: Likewise.
4182 * infcmd.c: Likewise.
4183 * infrun.c: Likewise.
4184 * inline-frame.c: Likewise.
4185 * interps.c: Likewise.
4186 * jv-lang.c: Likewise.
4187 * jv-typeprint.c: Likewise.
4188 * linux-fork.c: Likewise.
4189 * linux-nat.c: Likewise.
4190 * linux-thread-db.c: Likewise.
4191 * m32c-tdep.c: Likewise.
4192 * m32r-linux-nat.c: Likewise.
4193 * m32r-tdep.c: Likewise.
4194 * m68k-tdep.c: Likewise.
4195 * m68kbsd-nat.c: Likewise.
4196 * m68kbsd-tdep.c: Likewise.
4197 * m88k-tdep.c: Likewise.
4198 * machoread.c: Likewise.
4199 * macroexp.c: Likewise.
4200 * macrotab.c: Likewise.
4201 * maint.c: Likewise.
4202 * mdebugread.c: Likewise.
4203 * memory-map.c: Likewise.
4204 * mep-tdep.c: Likewise.
4205 * mi/mi-common.c: Likewise.
4206 * microblaze-tdep.c: Likewise.
4207 * mingw-hdep.c: Likewise.
4208 * mips-linux-nat.c: Likewise.
4209 * mips-linux-tdep.c: Likewise.
4210 * mips-tdep.c: Likewise.
4211 * mips64obsd-tdep.c: Likewise.
4212 * mipsnbsd-tdep.c: Likewise.
4213 * mn10300-linux-tdep.c: Likewise.
4214 * mn10300-tdep.c: Likewise.
4215 * moxie-tdep.c: Likewise.
4216 * mt-tdep.c: Likewise.
4217 * nat/linux-btrace.c: Likewise.
4218 * nat/linux-osdata.c: Likewise.
4219 * nat/linux-ptrace.c: Likewise.
4220 * nat/mips-linux-watch.c: Likewise.
4221 * nios2-linux-tdep.c: Likewise.
4222 * nios2-tdep.c: Likewise.
4223 * objc-lang.c: Likewise.
4224 * objfiles.c: Likewise.
4225 * obsd-nat.c: Likewise.
4226 * opencl-lang.c: Likewise.
4227 * osabi.c: Likewise.
4228 * parse.c: Likewise.
4229 * ppc-linux-nat.c: Likewise.
4230 * ppc-sysv-tdep.c: Likewise.
4231 * ppcfbsd-nat.c: Likewise.
4232 * ppcfbsd-tdep.c: Likewise.
4233 * ppcnbsd-nat.c: Likewise.
4234 * ppcnbsd-tdep.c: Likewise.
4235 * ppcobsd-nat.c: Likewise.
4236 * ppcobsd-tdep.c: Likewise.
4237 * printcmd.c: Likewise.
4238 * procfs.c: Likewise.
4239 * prologue-value.c: Likewise.
4240 * psymtab.c: Likewise.
4241 * python/py-lazy-string.c: Likewise.
4242 * python/py-value.c: Likewise.
4243 * regcache.c: Likewise.
4244 * reggroups.c: Likewise.
4245 * registry.c: Likewise.
4246 * remote-sim.c: Likewise.
4247 * remote.c: Likewise.
4248 * rs6000-aix-tdep.c: Likewise.
4249 * rs6000-tdep.c: Likewise.
4250 * s390-linux-tdep.c: Likewise.
4251 * score-tdep.c: Likewise.
4252 * ser-base.c: Likewise.
4253 * ser-mingw.c: Likewise.
4254 * sh-tdep.c: Likewise.
4255 * sh64-tdep.c: Likewise.
4256 * solib-darwin.c: Likewise.
4257 * solib-spu.c: Likewise.
4258 * solib-svr4.c: Likewise.
4259 * source.c: Likewise.
4260 * sparc-nat.c: Likewise.
4261 * sparc-sol2-tdep.c: Likewise.
4262 * sparc-tdep.c: Likewise.
4263 * sparc64-sol2-tdep.c: Likewise.
4264 * sparc64-tdep.c: Likewise.
4265 * sparc64fbsd-tdep.c: Likewise.
4266 * sparc64nbsd-tdep.c: Likewise.
4267 * sparc64obsd-tdep.c: Likewise.
4268 * sparcnbsd-tdep.c: Likewise.
4269 * sparcobsd-tdep.c: Likewise.
4270 * spu-multiarch.c: Likewise.
4271 * spu-tdep.c: Likewise.
4272 * stabsread.c: Likewise.
4273 * stack.c: Likewise.
4274 * symfile.c: Likewise.
4275 * symtab.c: Likewise.
4276 * target-descriptions.c: Likewise.
4277 * target-memory.c: Likewise.
4278 * target.c: Likewise.
4279 * tic6x-linux-tdep.c: Likewise.
4280 * tic6x-tdep.c: Likewise.
4281 * tilegx-linux-nat.c: Likewise.
4282 * tilegx-tdep.c: Likewise.
4283 * top.c: Likewise.
4284 * tramp-frame.c: Likewise.
4285 * tui/tui-out.c: Likewise.
4286 * tui/tui-winsource.c: Likewise.
4287 * ui-out.c: Likewise.
4288 * user-regs.c: Likewise.
4289 * utils.c: Likewise.
4290 * v850-tdep.c: Likewise.
4291 * valops.c: Likewise.
4292 * value.c: Likewise.
4293 * varobj.c: Likewise.
4294 * vax-nat.c: Likewise.
4295 * xml-syscall.c: Likewise.
4296 * xml-tdesc.c: Likewise.
4297 * xstormy16-tdep.c: Likewise.
4298 * xtensa-linux-nat.c: Likewise.
4299 * xtensa-tdep.c: Likewise.
4300
e76df0d0
GB
43012014-08-07 Gary Benson <gbenson@redhat.com>
4302
4303 * common/common-defs.h: Include common-utils.h.
4304 * defs.h: Do not include common-utils.h.
4305 * common/gdb_assert.h: Likewise.
4306 * darwin-nat.h: Likewise.
4307 * nat/linux-btrace.c: Likewise.
4308 * target/waitstatus.h: Likewise.
4309
4cb9c816
GB
43102014-08-07 Gary Benson <gbenson@redhat.com>
4311
4312 * common/common-defs.h: Include ptid.h.
4313 * defs.h: Do not include ptid.h.
4314 * inferior.h: Likewise.
4315 * infrun.h: Likewise.
4316 * nat/linux-btrace.h: Likewise.
4317 * nat/linux-osdata.h: Likewise.
4318 * target/waitstatus.h: Likewise.
4319
3995eeee
GB
43202014-08-07 Gary Benson <gbenson@redhat.com>
4321
4322 * common/common-defs.h: Include gdb_locale.h.
4323 * defs.h: Do not include gdb_locale.h.
4324
cb9f1a9b
GB
43252014-08-07 Gary Benson <gbenson@redhat.com>
4326
4327 * common/common-defs.h: Include gdb/signals.h.
4328 * defs.h: Do not include gdb/signals.h.
4329
a5fceff8
GB
43302014-08-07 Gary Benson <gbenson@redhat.com>
4331
4332 * common/common-defs.h: Include pathmax.h.
4333 * defs.h: Do not include pathmax.h.
4334
b9391142
GB
43352014-08-07 Gary Benson <gbenson@redhat.com>
4336
4337 * common/common-defs.h: Include libiberty.h.
4338 * defs.h: Do not include libiberty.h.
4339 * common/queue.h: Likewise.
4340 * cp-name-parser.y: Likewise.
4341 * mi/mi-cmd-catch.c: Likewise.
4342 * python/python.c: Likewise.
4343
0e443c87
GB
43442014-08-07 Gary Benson <gbenson@redhat.com>
4345
4346 * common/common-defs.h: Include ansidecl.h.
4347 * defs.h: Do not include ansidecl.h.
4348 * common/buffer.h: Likewise.
4349 * common/common-utils.h: Likewise.
4350
8ebb3f56
GB
43512014-08-07 Gary Benson <gbenson@redhat.com>
4352
4353 * common/common-defs.h: Include stddef.h.
4354 * defs.h: Do not include stddef.h.
4355 * common/common-utils.h: Likewise.
4356 * amd64fbsd-nat.c: Likewise.
4357 * bcache.c: Likewise.
4358 * charset.c: Likewise.
4359 * common/buffer.h: Likewise.
4360 * common/vec.h: Likewise.
4361 * i386bsd-nat.c: Likewise.
4362 * nat/linux-btrace.h: Likewise.
4363 * ppcfbsd-nat.c: Likewise.
4364 * ppcnbsd-tdep.h: Likewise.
4365 * ppcobsd-nat.c: Likewise.
4366 * ppcobsd-tdep.h: Likewise.
4367 * python/py-gdb-readline.c: Likewise.
4368
8980bdf6
GB
43692014-08-07 Gary Benson <gbenson@redhat.com>
4370
4371 * common/common-defs.h: Include stdarg.h.
4372 * defs.h: Do not include stdarg.h.
4373 * ada-lang.c: Likewise.
4374 * common/common-utils.h: Likewise.
4375 * guile/scm-string.c: Likewise.
4376 * guile/scm-utils.c: Likewise.
4377 * m32c-tdep.c: Likewise.
4378
d7096f71
GB
43792014-08-07 Gary Benson <gbenson@redhat.com>
4380
4381 * common/common-defs.h: Include stdlib.h.
4382 * defs.h: Do not include stdlib.h.
4383 * addrmap.c: Likewise.
4384 * bcache.c: Likewise.
4385 * common/buffer.c: Likewise.
4386 * common/common-utils.c: Likewise.
4387 * cp-name-parser.y: Likewise.
4388 * go32-nat.c: Likewise.
4389 * mn10300-linux-tdep.c: Likewise.
4390 * nat/linux-osdata.c: Likewise.
4391 * tui/tui.c: Likewise.
4392 * windows-nat.c: Likewise.
4393
d02f550d
GB
43942014-08-07 Gary Benson <gbenson@redhat.com>
4395
4396 * common/common-defs.h: Include stdio.h.
4397 * defs.h: Do not include stdio.h.
4398 * ada-lang.c: Likewise.
4399 * common/buffer.c: Likewise.
4400 * common/common-utils.c: Likewise.
4401 * cp-name-parser.y: Likewise.
4402 * gnu-nat.c: Likewise.
4403 * go32-nat.c: Likewise.
4404 * i386gnu-nat.c: Likewise.
4405 * proc-api.c: Likewise.
4406 * proc-events.c: Likewise.
4407 * proc-flags.c: Likewise.
4408 * proc-why.c: Likewise.
4409 * python/python-internal.h: Likewise.
4410 * target-memory.c: Likewise.
4411 * tui/tui-io.c: Likewise.
4412 * tui/tui.c: Likewise.
4413
b6d7a4bf
SM
44142014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4415
4416 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4417 (scan_dyntag_auxv): Same.
4418
af19829b
YQ
44192014-08-06 Yao Qi <yao@codesourcery.com>
4420
4421 * amd64-linux-nat.c: Remove duplicated include
4422 "x86-linux-nat.h".
4423 * i386-linux-nat.c: Likewise.
4424
8e07a239
YQ
44252014-08-06 Yao Qi <yao@codesourcery.com>
4426
4427 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4428 operand" with "Special opcode" in comments.
4429
7bfe8241
GB
44302014-08-05 Gary Benson <gbenson@redhat.com>
4431
4432 * interps.c (initialize_interps): Remove prototype.
4433 (interpreter_initialized): Remove static global.
4434 (interp_add): Do not call initialize_interps.
4435 (initialize_interps): Remove function.
4436
d6c95504
GB
44372014-08-05 Gary Benson <gbenson@redhat.com>
4438
4439 * utils.c (vwarning): Remove spurious va_end.
4440
241fd515
AM
44412014-08-05 Alan Modra <amodra@gmail.com>
4442
4443 * charset.c (convert_between_encodings): Cast result of obstack_base.
4444 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4445 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4446 (read_unwind_info): Use size_t for some locals.
4447 * jit.c (finalize_symtab): Likewise.
4448 * utils.c (hashtab_obstack_allocate): Likewise.
4449 * symmisc.c (print_objfile_statistics): Update format strings.
4450
dc304a94
JK
44512014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4452
4453 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4454 (Changes in GDB 7.8): ... here.
4455
3cecbbbe
TT
44562014-08-04 Tom Tromey <tromey@redhat.com>
4457
4458 * target.c (set_targetdebug): New function.
4459 (initialize_targets): Pass set_targetdebug when creating "set
4460 debug target".
4461
6908c509
JB
44622014-08-01 Joel Brobecker <brobecker@adacore.com>
4463
4464 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4465 if detecting a variable-sized field that is not the last field.
4466 Fix struct type length computation.
4467
53e8f97d
JB
44682014-08-01 Joel Brobecker <brobecker@adacore.com>
4469
4470 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4471 Add debug trace.
4472
e068c55d
JB
44732014-08-01 Joel Brobecker <brobecker@adacore.com>
4474
4475 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4476 Remove "+ 8" offset in computation of CHAIN_VMA.
4477
4d4ca2a1
DE
44782014-07-31 Doug Evans <dje@google.com>
4479
4480 * inflow.c (child_terminal_inferior): Add comment.
4481 (child_terminal_ours_for_output): Add comment.
4482 (child_terminal_ours): Add comment.
4483 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4484 (linux_nat_terminal_ours): Add comment.
4485
462f517e
GB
44862014-07-31 Gary Benson <gbenson@redhat.com>
4487
4488 * common/btrace-common.h: Do not include defs.h or server.h.
4489 * nat/mips-linux-watch.h: Likewise.
4490 * gdb-dlfcn.h: Do not include defs.h.
4491 * tracefile.h: Likewise.
4492
74228e77
RM
44932014-07-30 Roland McGrath <mcgrathr@google.com>
4494
4495 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4496
014f9477
TT
44972014-07-30 Tom Tromey <tromey@redhat.com>
4498
4499 * bsd-kvm.c (bsd_kvm_open): Constify.
4500 * corelow.c (core_open): Constify.
4501 * ctf.c (ctf_open): Constify.
4502 * dbug-rom.c (dbug_open): Constify.
4503 * exec.c (exec_open): Constify.
4504 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4505 * microblaze-rom.c (picobug_open): Constify.
4506 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4507 Constify.
4508 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4509 * record-btrace.c (record_btrace_open): Constify.
4510 * record-full.c (record_full_core_open_1, record_full_open_1)
4511 (record_full_open): Constify.
4512 * remote-m32r-sdi.c (m32r_open): Constify.
4513 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4514 (rockhopper_open, lsi_open): Constify.
4515 * remote-sim.c (gdbsim_open): Constify.
4516 * remote.c (remote_open, extended_remote_open, remote_open_1):
4517 Constify.
4518 * target.h (struct target_ops) <to_open>: Make "arg" const.
4519 * tracefile-tfile.c (tfile_open): Constify.
4520
e799154c
TT
45212014-07-30 Tom Tromey <tromey@redhat.com>
4522
4523 * breakpoint.c (map_breakpoint_numbers): Update.
4524 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4525 (get_number_const): New function.
4526 (get_number): Rewrite using get_number_const.
4527 (init_number_or_range): Make "string" const.
4528 (number_is_in_list): Make "list" const.
4529 * cli/cli-utils.h (get_number_const): Declare.
4530 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4531 (init_number_or_range, number_is_in_list): Update.
4532 * printcmd.c (map_display_numbers): Update.
4533 * value.c (value_from_history_ref): Constify.
4534 * value.h (value_from_history_ref): Update.
4535
5f08566b
TT
45362014-07-30 Tom Tromey <tromey@redhat.com>
4537
4538 * corefile.c (hook_type, call_extra_exec_file_hooks)
4539 (specify_exec_file_hook): Constify.
4540 * exec.c (exec_file_attach): Make "filename" const.
4541 * gdbcore.h (deprecated_exec_file_display_hook)
4542 (specify_exec_file_hook, exec_file_attach): Constify.
4543 * main.c (captured_main): Use catch_command_errors_const.
4544
8981c758
TT
45452014-07-30 Tom Tromey <tromey@redhat.com>
4546
4547 * target.c (open_target): New function.
4548 (add_target_with_completer, add_deprecated_target_alias): Use
4549 set_cmd_sfunc, set_cmd_context.
4550 (debug_to_open): Remove.
4551 (setup_target_debug): Update.
4552
a1c7835a
YQ
45532014-07-30 Yao Qi <yao@codesourcery.com>
4554
4555 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4556 comments.
4557 * parse.c (exp_iterate): Update comments.
4558
976411d6
GB
45592014-07-30 Gary Benson <gbenson@redhat.com>
4560
4561 * common/common-defs.h: New file.
4562 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4563 * defs.h: Include common-defs.h.
4564 Do not include config.h or build-gnulib/config.h.
4565
5d4848a4
GB
45662014-07-30 Gary Benson <gbenson@redhat.com>
4567
4568 * common/common-utils.h: Do not include config.h.
4569 * nat/linux-btrace.h: Likewise.
4570
d41f6d8e
GB
45712014-07-30 Gary Benson <gbenson@redhat.com>
4572
4573 * btrace.c: Include defs.h.
4574 * common/ptid.c: Include defs.h or server.h as appropriate.
4575 * nat/mips-linux-watch.c: Likewise.
4576
84202f9c
TT
45772014-07-29 Tom Tromey <tromey@redhat.com>
4578
4579 * target.c (target_is_pushed): Simplify.
4580
2530441c
JB
45812014-07-29 Joel Brobecker <brobecker@adacore.com>
4582
4583 GDB 7.8 released.
4584
7e09a223
YQ
45852014-07-29 Yao Qi <yao@codesourcery.com>
4586
4587 PR gdb/17206
4588 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4589
7ebdbe92
DE
45902014-07-28 Doug Evans <xdje42@gmail.com>
4591
4592 PR guile/17203
4593 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4594 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4595 parameters.
4596
f347ffc9
WN
45972014-07-28 Will Newton <will.newton@linaro.org>
4598
4599 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4600 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4601 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4602 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4603 (THUMB2_EABI_SYSCALL): Likewise.
4604 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4605 struct tramp_frame.
4606 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4607 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4608
37c5f1f7
DE
46092014-07-27 Doug Evans <xdje42@gmail.com>
4610
4611 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4612
0c3abbc7
DE
46132014-07-27 Doug Evans <xdje42@gmail.com>
4614
4615 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4616
e76c5d17
DE
46172014-07-26 Ludovic Courtès <ludo@gnu.org>
4618 Doug Evans <xdje42@gmail.com>
4619
4620 PR guile/17146
4621 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4622 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4623 * configure.ac: Try to use guild to compile an scm file, if it fails
4624 then disable guile support.
4625 * configure: Regenerate.
4626 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4627 GUILE_FILE_LIST.
4628 (GUILE_COMPILED_FILES): New variable.
4629 (GUILE_FILES) Update.
4630 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4631 (stamp-guile): Compile scm files.
4632 * guile/guile.c (boot_guile_support): New function.
4633 (standard_throw_args_p): New function.
4634 (print_standard_throw_error, print_throw_error): New functions.
4635 (handle_boot_error): New function.
4636 (initialize_scheme_side): Rewrite to call boot_guile_support.
4637 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4638 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4639
186fcde0
DE
46402014-07-26 Ludovic Courtès <ludo@gnu.org>
4641 Doug Evans <xdje42@gmail.com>
4642
4643 PR guile/17146
4644 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4645 * guile/lib/gdb/support.scm: New file.
4646 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4647 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4648 All uses updated.
4649 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4650 All uses updated.
4651 (%assert-type): Ditto, and renamed to assert-type.
4652 (%exception-print-style): Delete.
4653
4df42755
DE
46542014-07-26 Doug Evans <xdje42@gmail.com>
4655
4656 PR build/17105
4657 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4658 * configure: Regenerate.
4659 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4660 PYTHON_FILES.
4661 (PYTHON_FILES): New variable.
4662 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4663 (GUILE_FILES): New variable.
4664 (stamp-python, install-python, uninstall-python): Handle empty
4665 file list.
4666 (stamp-guile, install-guile, uninstall-guile): Ditto.
4667
ee7333ae
DE
46682014-07-26 Doug Evans <xdje42@gmail.com>
4669
4670 PR guile/17177
4671 * guile/lib/gdb.scm (pretty-printers): Export.
4672 (set-pretty-printers!): Export.
4673 * guile/lib/gdb/printing.scm (gdb module): Update.
4674 (prepend-pretty-printer!, append-pretty-printer!): Update.
4675 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4676 (pretty_printer_list_var): Delete.
4677 (pretty_printer_list): New static global.
4678 (gdbscm_pretty_printers): New function.
4679 (gdbscm_set_pretty_printers_x): New function.
4680 (ppscm_find_pretty_printer_from_gdb): Update.
4681 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4682 (gdbscm_initialize_pretty_printers): Update.
4683
74edf516
DE
46842014-07-26 Doug Evans <xdje42@gmail.com>
4685
4686 PR 17185
4687 * configure.ac: Add check for header gc/gc.h.
4688 Add check for function setenv.
4689 * configure: Regenerate.
4690 * config.in: Regenerate.
4691 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4692
d54398a7
MR
46932014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4694
4695 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4696 variation in gdbarch matching.
4697
ab16fce8
TT
46982014-07-25 Tom Tromey <tromey@redhat.com>
4699
4700 * exec.c (using_exec_ops): Remove.
4701 (exec_close_1): Update. Remove extraneous block, reindent.
4702 (add_target_sections): Use target_is_pushed.
4703
88056fbb
PA
47042014-07-25 Pedro Alves <palves@redhat.com>
4705
4706 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4707 * monitor.c (monitor_create_inferior): Likewise.
4708 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4709 * remote-sim.c (gdbsim_create_inferior): Likewise.
4710 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4711 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4712 * windows-nat.c (do_initial_windows_stuff): Likewise.
4713
70509625
PA
47142014-07-25 Pedro Alves <palves@redhat.com>
4715
4716 * NEWS: Mention signal passing and "signal" command changes.
4717 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4718 comment.
4719 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4720 call.
4721 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4722 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4723 (jump_command): Adjust clear_proceed_status call.
4724 (signal_command): Warn if other thread that are resumed have
4725 signals that will be delivered. Adjust clear_proceed_status call.
4726 (until_next_command, finish_command)
4727 (proceed_after_attach_callback, attach_command_post_wait)
4728 (attach_command): Adjust clear_proceed_status call.
4729 * infrun.c (proceed_after_vfork_done): Likewise.
4730 (proceed_after_attach_callback): Adjust comment.
4731 (clear_proceed_status_thread): Clear stop_signal if not in pass
4732 state.
4733 (clear_proceed_status_callback): Delete.
4734 (clear_proceed_status): New 'step' parameter. Only clear the
4735 proceed status of threads the command being prepared is about to
4736 resume.
4737 (proceed): If passed in an explicit signal, override stop_signal
4738 with it. Don't pass the last stop signal to the thread we're
4739 resuming.
4740 (init_wait_for_inferior): Adjust clear_proceed_status call.
4741 (switch_back_to_stepped_thread): Clear the signal if it should not
4742 be passed.
4743 * infrun.h (clear_proceed_status): New 'step' parameter.
4744 (user_visible_resume_ptid): Add comment.
4745 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4746 signal is in pass state.
4747 * remote.c (append_pending_thread_resumptions): Likewise.
4748 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4749
d8be2939
TT
47502014-07-25 Tom Tromey <tromey@redhat.com>
4751
4752 * target.h (target_stopped_data_address)
4753 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4754 parentheses.
4755
7d0d9d2b
PL
47562014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4757
4758 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4759 comments.
4760 (avr_pointer_to_address): Likewise.
4761
e9e7f724
TT
47622014-07-24 Tom Tromey <tromey@redhat.com>
4763
4764 * monitor.c (compile_pattern): Update.
4765 * target.h (struct target_ops) <to_shortname, to_longname,
4766 to_doc>: Now const.
4767
1947513d
TT
47682014-07-24 Tom Tromey <tromey@redhat.com>
4769
4770 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4771 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4772 (add_info_alias, add_com): Make "doc" const.
4773 (print_doc_line): Make "str" const.
4774 (delete_cmd): Update.
4775 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4776 (print_doc_line): Update.
4777 * cli/cli-script.c (document_command): Update.
4778 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4779 (add_com, add_info, add_info_alias): Update.
4780 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4781 * python/py-cmd.c (cmdpy_destroyer): Update.
4782
64e61d29
TT
47832014-07-24 Tom Tromey <tromey@redhat.com>
4784
4785 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4786 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4787 (help_cmd_list): Constify.
4788 (lookup_cmd): Update.
4789 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4790 const.
4791 (help_cmd_list, apropos_cmd): Update.
4792 * cli/cli-script.c (show_user): Update.
4793 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4794 * cli/cli-setshow.h (cmd_show_list): Update.
4795 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4796 (cmd_show_list): Update.
4797 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4798 * python/py-cmd.c (cmdpy_destroyer): Update.
4799
429e55ea
TT
48002014-07-24 Tom Tromey <tromey@redhat.com>
4801
4802 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4803 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4804 const.
4805 * command.h (deprecate_cmd): Update.
4806 * maint.c (maintenance_do_deprecate): Add casts.
4807
64669f3b
TT
48082014-07-24 Tom Tromey <tromey@redhat.com>
4809
4810 * cli/cli-decode.c (help_cmd): Make parameter "const".
4811 * cli/cli-decode.h (help_cmd): Update.
4812
d3d3328b
TT
48132014-07-24 Tom Tromey <tromey@redhat.com>
4814
4815 * stack.c (up_silently_base, down_silently_base): Make argument
4816 const.
4817
414842dc
TT
48182014-07-24 Tom Tromey <tromey@redhat.com>
4819
4820 * solib.c (solib_add): Make "pattern" const.
4821 * solib.h (solib_add): Update.
4822
baa336ce
TT
48232014-07-24 Tom Tromey <tromey@redhat.com>
4824
4825 * remote.c (remote_serial_open, print_packet, putpkt)
4826 (putpkt_binary): Constify.
4827 * remote.h (putpkt): Update.
4828
5a19e2d0
TT
48292014-07-24 Tom Tromey <tromey@redhat.com>
4830
4831 * monitor.c (monitor_open): Make "args" const.
4832 * monitor.h (monitor_open): Update.
4833
fc4baa5e
TT
48342014-07-24 Tom Tromey <tromey@redhat.com>
4835
4836 * maint.c (match_bfd_flags): Make "string" const.
4837 (print_bfd_section_info): Remove casts.
4838 (print_objfile_section_info): Make "string" const.
4839
0d5f0dbe
TT
48402014-07-24 Tom Tromey <tromey@redhat.com>
4841
4842 * inf-child.c (inf_child_open_target): Make "arg" const.
4843 * inf-child.h (inf_child_open_target): Update.
4844
41c77899
TT
48452014-07-24 Tom Tromey <tromey@redhat.com>
4846
4847 * environ.c (unset_in_environ): Make "var" const.
4848 * environ.h (unset_in_environ): Update.
4849
93db0d79
TT
48502014-07-24 Tom Tromey <tromey@redhat.com>
4851
4852 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4853 Make "cmd" const.
4854 (scan_filename_with_cleanup): Likewise.
4855 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4856 Make arguments const.
4857 (restore_command): Update.
4858
36d6eb95
PA
48592014-07-24 Pedro Alves <palves@redhat.com>
4860
4861 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4862
8009206a
TT
48632014-07-24 Tom Tromey <tromey@redhat.com>
4864 Gary Benson <gbenson@redhat.com>
4865
4866 * nat/linux-ptrace.c (additional_flags): New global.
4867 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4868 additional_flags; don't check GDBSERVER.
4869 (linux_ptrace_set_additional_flags): New function.
4870 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4871 Declare.
4872 * linux-nat.c (_initialize_linux_nat): Call
4873 linux_ptrace_set_additional_flags.
4874
a7068b60
TT
48752014-07-24 Tom Tromey <tromey@redhat.com>
4876
4877 * make-target-delegates (munge_type, write_debugmethod): New
4878 functions.
4879 (debug_names): New global.
4880 ($TARGET_DEBUG_PRINTER): New global.
4881 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4882 name.
4883 Write debug methods. Generate init_debug_target.
4884 * target-debug.h: New file.
4885 * target-delegates.c: Rebuild.
4886 * target.c: Include target-debug.h.
4887 (debug_target): Hoist definition.
4888 (target_kill, target_get_section_table, target_memory_map)
4889 (target_flash_erase, target_flash_done, target_detach)
4890 (target_disconnect, target_wait, target_resume)
4891 (target_pass_signals, target_program_signals, target_follow_fork)
4892 (target_mourn_inferior, target_search_memory)
4893 (target_thread_address_space, target_close)
4894 (target_find_new_threads, target_core_of_thread)
4895 (target_verify_memory, target_insert_mask_watchpoint)
4896 (target_remove_mask_watchpoint): Remove targetdebug code.
4897 (debug_to_post_attach, debug_to_prepare_to_store)
4898 (debug_to_files_info, debug_to_insert_breakpoint)
4899 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4900 (debug_to_region_ok_for_hw_watchpoint)
4901 (debug_to_can_accel_watchpoint_condition)
4902 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4903 (debug_to_watchpoint_addr_within_range)
4904 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4905 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4906 (debug_to_terminal_init, debug_to_terminal_inferior)
4907 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4908 (debug_to_terminal_save_ours, debug_to_terminal_info)
4909 (debug_to_load, debug_to_post_startup_inferior)
4910 (debug_to_insert_fork_catchpoint)
4911 (debug_to_remove_fork_catchpoint)
4912 (debug_to_insert_vfork_catchpoint)
4913 (debug_to_remove_vfork_catchpoint)
4914 (debug_to_insert_exec_catchpoint)
4915 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4916 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4917 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4918 (setup_target_debug): Call init_debug_target.
4919 * target.h (TARGET_DEBUG_PRINTER): New macro.
4920 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4921 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4922
2c51604d
GB
49232014-07-24 Gary Benson <gbenson@redhat.com>
4924
4925 * exceptions.h (throw_vfatal): Renamed to...
4926 (throw_vquit): New declaration.
4927 (throw_quit): Likewise.
4928 * exceptions.c (throw_vfatal): Renamed to...
4929 (throw_vquit): New function.
4930 (throw_quit): Likewise.
4931 (throw_error): Call throw_verror rather than throw_it.
4932 * utils.h (vfatal): Removed.
4933 (fatal): Likewise.
4934 * utils.c (vfatal): Removed.
4935 (fatal): Likewise.
4936 (internal_verror): Replaced call to fatal with call to throw_quit.
4937 (quit): Replaced calls to fatal with calls to throw_quit.
4938
34211963
ME
49392014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4940
4941 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4942 target_read_code.
4943
a52b4d3e
ME
49442014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4945
4946 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4947 less than zero in conditional expression.
4948
a8bdc56b
TT
49492014-07-23 Tom Tromey <tromey@redhat.com>
4950
4951 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4952 ($INTRO_PART): Don't match whitespace.
4953 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4954 argument matching.
4955 ($METHOD): Add $METHOD_TRAILER.
4956 (trim): Rewrite.
4957 (scan_target_h): New sub.
4958 Change main loop not to collect state.
4959 * target-delegates.c: Rebuild.
4960
91b52240
GB
49612014-07-23 Gary Benson <gbenson@redhat.com>
4962
4963 * cp-support.c (gdb_demangle): Fix build on systems without
4964 sigaltstack.
4965
45326f6f
JK
49662014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4967
4968 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4969 for reference entry value target data value.
4970
e214cf6c
JK
49712014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4972
4973 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4974 value_available_contents_eq.
4975
bddbbedd
PA
49762014-07-22 Pedro Alves <palves@redhat.com>
4977
4978 * value.c (allocate_optimized_out_value): Don't mark value as
4979 non-lazy.
4980
45c71484
JW
49812014-07-22 Jiong Wang <jiong.wang@arm.com>
4982
4983 * MAINTAINERS (Write After Approval): Update my email address.
4984
9597b22a
DE
49852014-07-20 Doug Evans <dje@google.com>
4986
4987 PR server/17147
4988 * remote.c (putpkt_binary): Add text to error message.
4989
91101fe5
YQ
49902014-07-20 Yao Qi <yao@codesourcery.com>
4991
4992 * eval.c: Remove "Chill" from comments.
4993 * gdbtypes.h: Likewise.
4994 * symtab.h: Likewise.
4995
c9402c95
YQ
49962014-07-20 Yao Qi <yao@codesourcery.com>
4997
4998 * std-operator.def: Update comments to TERNOP_SLICE.
4999
ae8fddda
YQ
50002014-07-20 Yao Qi <yao@codesourcery.com>
5001
5002 * std-operator.def: Remove BINOP_RANGE.
5003 * breakpoint.c (watchpoint_exp_is_const): Update.
5004 * expprint.c (dump_subexp_body_standard): Likewise.
5005 * eval.c (init_array_element): Remove dead code.
5006 (evaluate_subexp_standard): Likewise.
5007
9c816640
YQ
50082014-07-20 Yao Qi <yao@codesourcery.com>
5009
5010 * std-operator.def: Remove BINOP_IN.
5011 * breakpoint.c (watchpoint_exp_is_const): Update.
5012 * eval.c (evaluate_subexp_standard): Likewise.
5013 * expprint.c (dump_subexp_body_standard): Likewise.
5014
164224e9
ME
50152014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5016
5017 * microblaze-tdep.c (microblaze_register_names): Add
5018 the rshr and rslr register names.
5019 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5020 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5021 Use of tdesc_numbered_register. Use of
5022 microblaze_register_g_packet_guesses. Use of
5023 tdesc_use_registers. Use of set_gdbarch_register_type.
5024 (microblaze_register_g_packet_guesses): New.
5025 * microblaze-tdep.h (microblaze_reg_num): Add
5026 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5027 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5028 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5029 * features/microblaze-core.xml: New file.
5030 * features/microblaze-stack-protect.xml: New file.
5031 * features/microblaze-with-stack-protect.c: New file.
5032 * features/microblaze-with-stack-protect.xml: New file.
5033 * features/microblaze.xml: New file.
5034 * features/microblaze.c: New file.
5035 * features/Makefile (microblaze-with-stack-protect): Add
5036 microblaze-with-stack-protect microblaze and microblaze-expedite.
5037 * regformats/microblaze-with-stack-protect.dat: New file.
5038 * regformats/microblaze.dat: New file.
5039 * doc/gdb.texinfo (MicroBlaze Features): Added.
5040
e8b2341c
TT
50412014-07-18 Tom Tromey <tromey@redhat.com>
5042
5043 * exec.c (exec_ops): Now static.
5044 * exec.h (exec_ops): Don't declare.
5045
44e89118
TT
50462014-07-18 Tom Tromey <tromey@redhat.com>
5047
5048 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5049 to find_target_beneath.
5050 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5051 find_target_beneath.
5052 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5053
b0ed115f
TT
50542014-07-18 Tom Tromey <tromey@redhat.com>
5055
5056 PR gdb/17130:
5057 * utils.c (quit): Use target_supports_terminal_ours.
5058 * target.h (target_supports_terminal_ours): Declare.
5059 * target.c (target_supports_delete_record): Don't check
5060 to_delete_record against NULL.
5061 (target_supports_terminal_ours): New function.
5062
e75fdfca
TT
50632014-07-18 Tom Tromey <tromey@redhat.com>
5064
5065 PR gdb/17130:
5066 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5067 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5068 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5069 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5070 * windows-nat.c (windows_xfer_partial): Always delegate.
5071 * record-btrace.c (record_btrace_xfer_partial): Simplify
5072 delegation.
5073 (record_btrace_fetch_registers, record_btrace_store_registers)
5074 (record_btrace_prepare_to_store, record_btrace_resume)
5075 (record_btrace_wait, record_btrace_find_new_threads)
5076 (record_btrace_thread_alive): Likewise.
5077 * procfs.c (procfs_xfer_partial): Always delegate.
5078 * corelow.c (core_xfer_partial): Always delegate.
5079 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5080
83814951
TT
50812014-07-18 Tom Tromey <tromey@redhat.com>
5082
5083 * exec.c (exec_make_note_section): Move earlier.
5084
b8b8facf
DE
50852014-07-17 Doug Evans <dje@google.com>
5086
74b49205 5087 PR gdb/17170
b8b8facf
DE
5088 * maint.c (count_symtabs_and_blocks): Handle NULL
5089 current_program_space.
5090 (report_command_stats): Check global enabled flag in addition to
5091 recorded enabled flag.
5092 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5093
69ff6be5
PA
50942014-07-16 Pedro Alves <palves@redhat.com>
5095
5096 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5097
252db1b5
TT
50982014-07-16 Tom Tromey <tromey@redhat.com>
5099
5100 * target.h (struct target_ops) <to_delete_record>: Reformat
5101 comment.
5102
a432721e
TT
51032014-07-16 Tom Tromey <tromey@redhat.com>
5104
5105 * target-delegates.c: Rebuild.
5106
487d9753
PL
51072014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5108
5109 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5110 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5111 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5112 (avr_pointer_to_address): Likewise.
5113 (avr_address_class_type_flags): New function.
5114 (avr_address_class_type_flags_to_name): Likewise.
5115 (avr_address_class_name_to_type_flags): Likewise.
5116 (avr_gdbarch_init): Set address_class_type_flags,
5117 address_class_type_flags_to_name and
5118 address_class_name_to_type_flags.
5119
57745c90
PA
51202014-07-15 Pedro Alves <palves@redhat.com>
5121
5122 * linux-nat.c (kill_callback): Save errno and work with saved
5123 copy.
5124
2d40be18
SM
51252014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5126
5127 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5128
572f6555
EBM
51292014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5130
5131 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5132 breakpoint support correctly.
5133
cc1c52ad
PA
51342014-07-14 Pedro Alves <palves@redhat.com>
5135
5136 * utils.c (prompt_for_continue): Call target_terminal_ours.
5137
1e973570
PA
51382014-07-14 Pedro Alves <palves@redhat.com>
5139
5140 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5141 catch_errors. Don't re-enable stdin or notify observers where,
5142 and rethrow error.
5143 (fetch_inferior_event_wrapper): Delete.
5144
93d6eb10
PA
51452014-07-14 Pedro Alves <palves@redhat.com>
5146
5147 PR gdb/17072
5148 * top.c: Include "inf-loop.h".
5149 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5150 field.
5151 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5152 was async before.
5153 (gdb_readline_wrapper): Store whether the target is async, and
5154 make it sync.
5155
0017922d
PA
51562014-07-14 Pedro Alves <palves@redhat.com>
5157
5158 PR gdb/17072
5159 * top.c (gdb_readline_wrapper_line): Tweak comment.
5160 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5161 the input handler callback.
5162
94696ad3
PA
51632014-07-14 Pedro Alves <palves@redhat.com>
5164
5165 PR gdb/17072
5166 * main.c: Include event-top.h.
5167 (handle_command_errors): New function.
5168 (catch_command_errors, catch_command_errors_const): Use it.
5169
9d1e69a2
PA
51702014-07-14 Pedro Alves <palves@redhat.com>
5171
5172 * exceptions.c (catch_command_errors, catch_command_errors_const):
5173 Moved to main.c.
5174 * exceptions.h (catch_command_errors_ftype)
5175 (catch_command_errors_const_ftype): Moved to main.c.
5176 (catch_command_errors, catch_command_errors_const): Delete
5177 declarations.
5178 * main.c (catch_command_errors_ftype)
5179 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5180 (catch_command_errors, catch_command_errors_const)): Moved here
5181 from exceptions.c and make static.
5182
feefc97b
PA
51832014-07-14 Pedro Alves <palves@redhat.com>
5184
5185 * exceptions.c (print_any_exception): Delete.
5186 (catch_exceptions_with_msg): Use exception_print instead of
5187 print_any_exception.
5188 (catch_errors): Use exception_fprintf instead of
5189 print_any_exception.
5190 (catch_command_errors, catch_command_errors_const): Use
5191 exception_print instead of print_any_exception.
5192
c933f875
PA
51932014-07-14 Pedro Alves <palves@redhat.com>
5194
5195 * infcall.c (run_inferior_call): Set 'sync_execution' while
5196 running the inferior call.
5197
feb6f816
PA
51982014-07-14 Pedro Alves <palves@redhat.com>
5199
5200 * value.c (value_contents_equal): Delete function.
5201 * value.h (value_contents_equal): Delete declaration.
5202
d98b7a16
TT
52032014-07-14 Tom Tromey <tromey@redhat.com>
5204
5205 PR exp/17106:
5206 * gdbtypes.c (is_dynamic_type_internal): New function, from
5207 is_dynamic_type.
5208 (is_dynamic_type): Rewrite.
5209 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5210 (resolve_dynamic_struct): Likewise.
5211 (resolve_dynamic_type_internal): New function, from
5212 resolve_dynamic_type.
5213 (resolve_dynamic_type): Rewrite.
5214
548740d6
TT
52152014-07-14 Tom Tromey <tromey@redhat.com>
5216
5217 * target.c (target_require_runnable): Also check record_stratum.
5218 Update comment.
5219
808f7ab1
YQ
52202014-07-11 Yao Qi <yao@codesourcery.com>
5221
5222 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5223 thumb_instruction_restores_sp return true.
5224
540314bd
YQ
52252014-07-11 Yao Qi <yao@codesourcery.com>
5226
5227 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5228 (thumb_in_function_epilogue_p): Call
5229 thumb_instruction_restores_sp.
5230
1db01f22
YQ
52312014-07-11 Yao Qi <yao@codesourcery.com>
5232
5233 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5234 'add sp, #imm'.
5235 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5236
3116063b
GB
52372014-07-11 Gary Benson <gbenson@redhat.com>
5238
5239 * amd64-linux-nat.c (gdbcore.h): Remove include.
5240 (regset.h): Likewise.
5241 (nat/linux-btrace.h): Likewise.
5242 (btrace.h): Likewise.
5243 (gdb_assert.h): Likewise.
5244 (string.h): Likewise.
5245 (sys/uio.h): Likewise.
5246 (sys/debugreg.h): Likewise.
5247 (sys/syscall.h): Likewise.
5248 (sys/procfs.h): Likewise.
5249 (sys/user.h): Likewise.
5250 (asm/ptrace.h): Likewise.
5251 (i386-nat.h): Likewise.
5252 * i386-linux-nat.c (i386-nat.h): Likewise.
5253 (regset.h): Likewise.
5254 (target.h): Likewise.
5255 (linux-nat.h): Likewise.
5256 (nat/linux-btrace.h): Likewise.
5257 (btrace.h): Likewise.
5258 (gdb_assert.h): Likewise.
5259 (string.h): Likewise.
5260 (sys/uio.h): Likewise.
5261 (sys/user.h): Likewise.
5262 (sys/procfs.h): Likewise.
5263 (sys/reg.h): Likewise.
5264 (sys/debugreg.h): Likewise.
5265 (ORIG_EAX): Remove definition.
5266
040baaf6
GB
52672014-07-11 Gary Benson <gbenson@redhat.com>
5268
5269 * i386-linux-nat.h: New file.
5270 * x86-linux-nat.h: Likewise.
5271 * x86-linux-nat.c: Likewise.
5272 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5273 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5274 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5275 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5276 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5277 (PTRACE_SETREGSET): Likewise.
5278 (arch_lwp_info): Now in x86-linux-nat.c.
5279 (have_ptrace_getregset): Now in x86-linux-nat.h.
5280 (x86_linux_dr_get): Now in x86-linux-nat.c.
5281 (x86_linux_dr_set): Likewise.
5282 (x86_linux_dr_get_addr): Likewise.
5283 (x86_linux_dr_get_control): Likewise.
5284 (x86_linux_dr_get_status): Likewise.
5285 (update_debug_registers_callback): Likewise.
5286 (x86_linux_dr_set_control): Likewise.
5287 (x86_linux_dr_set_addr): Likewise.
5288 (x86_linux_prepare_to_resume): Likewise.
5289 (x86_linux_new_thread): Likewise.
5290 (x86_linux_new_fork): Likewise.
5291 (x86_linux_get_thread_area): Likewise.
5292 (super_post_startup_inferior): Likewise.
5293 (x86_linux_child_post_startup_inferior): Likewise.
5294 (AMD64_LINUX_USER64_CS): Likewise.
5295 (AMD64_LINUX_X32_DS): Likewise.
5296 (x86_linux_read_description): Likewise.
5297 (x86_linux_enable_btrace): Likewise.
5298 (x86_linux_disable_btrace): Likewise.
5299 (x86_linux_teardown_btrace): Likewise.
5300 (x86_linux_read_btrace): Likewise.
5301 (x86_linux_create_target): Likewise.
5302 (x86_linux_add_target): Likewise.
5303 * i386-linux-nat.c (x86-linux-nat.h): New include.
5304 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5305 (PTRACE_SETREGSET): Likewise.
5306 (arch_lwp_info): Now in x86-linux-nat.c.
5307 (have_ptrace_getregset): Now in x86-linux-nat.h.
5308 (x86_linux_dr_get): Now in x86-linux-nat.c.
5309 (x86_linux_dr_set): Likewise.
5310 (x86_linux_dr_get_addr): Likewise.
5311 (x86_linux_dr_get_control): Likewise.
5312 (x86_linux_dr_get_status): Likewise.
5313 (update_debug_registers_callback): Likewise.
5314 (x86_linux_dr_set_control): Likewise.
5315 (x86_linux_dr_set_addr): Likewise.
5316 (x86_linux_prepare_to_resume): Likewise.
5317 (x86_linux_new_thread): Likewise.
5318 (x86_linux_new_fork): Likewise.
5319 (x86_linux_get_thread_area): Likewise.
5320 (super_post_startup_inferior): Likewise.
5321 (x86_linux_child_post_startup_inferior): Likewise.
5322 (AMD64_LINUX_USER64_CS): Likewise.
5323 (AMD64_LINUX_X32_DS): Likewise.
5324 (x86_linux_read_description): Likewise.
5325 (x86_linux_enable_btrace): Likewise.
5326 (x86_linux_disable_btrace): Likewise.
5327 (x86_linux_teardown_btrace): Likewise.
5328 (x86_linux_read_btrace): Likewise.
5329 (x86_linux_create_target): Likewise.
5330 (x86_linux_add_target): Likewise.
5331
1aa7e42c
GB
53322014-07-11 Gary Benson <gbenson@redhat.com>
5333
5334 * amd64-linux-nat.c: Comment and whitespace changes.
5335 * i386-linux-nat.c: Comment and whitespace changes.
5336
c1e246a0
GB
53372014-07-11 Gary Benson <gbenson@redhat.com>
5338
5339 * amd64-linux-nat.c (x86_linux_create_target): New function.
5340 (x86_linux_add_target): Likewise.
5341 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5342 * i386-linux-nat.c (x86_linux_create_target): New function.
5343 (x86_linux_add_target): Likewise.
5344 (_initialize_i386_linux_nat): Delegate to the above new functions.
5345
8c420b8d
GB
53462014-07-11 Gary Benson <gbenson@redhat.com>
5347
5348 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5349 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5350 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5351 (ps_get_thread_area): Delegate to the above.
5352
cb1da100
GB
53532014-07-11 Gary Benson <gbenson@redhat.com>
5354
5355 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5356 x86_linux_read_description. All uses updated. amd64-specific
5357 code conditionalized. Conditionalized i386-specific code added.
5358 Redundant cast removed.
5359 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5360 x86_linux_read_description. All uses updated. i386-specific
5361 code conditionalized. Conditionalized amd64-specific code added.
5362 One sizeof replaced with the actual type it is describing.
5363
2acf3cd0
GB
53642014-07-11 Gary Benson <gbenson@redhat.com>
5365
5366 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5367 x86_linux_dr_get. All uses updated.
5368 (amd64_linux_dr_set): Renamed to
5369 x86_linux_dr_set. All uses updated.
5370 (amd64_linux_dr_get_addr): Renamed to
5371 x86_linux_dr_get_addr. All uses updated.
5372 (amd64_linux_dr_get_control): Renamed to
5373 x86_linux_dr_get_control. All uses updated.
5374 (amd64_linux_dr_get_status): Renamed to
5375 x86_linux_dr_get_status. All uses updated.
5376 (amd64_linux_dr_set_control): Renamed to
5377 x86_linux_dr_set_control. All uses updated.
5378 (amd64_linux_dr_set_addr): Renamed to
5379 x86_linux_dr_set_addr. All uses updated.
5380 (amd64_linux_prepare_to_resume): Renamed to
5381 x86_linux_prepare_to_resume. All uses updated.
5382 (amd64_linux_new_thread): Renamed to
5383 x86_linux_new_thread. All uses updated.
5384 (amd64_linux_new_fork): Renamed to
5385 x86_linux_new_fork. All uses updated.
5386 (amd64_linux_child_post_startup_inferior): Renamed to
5387 x86_linux_child_post_startup_inferior. All uses updated.
5388 (amd64_linux_enable_btrace): Renamed to
5389 x86_linux_enable_btrace. All uses updated.
5390 (amd64_linux_disable_btrace): Renamed to
5391 x86_linux_disable_btrace. All uses updated.
5392 (amd64_linux_teardown_btrace): Renamed to
5393 x86_linux_teardown_btrace. All uses updated.
5394 (amd64_linux_read_btrace): Renamed to
5395 x86_linux_read_btrace. All uses updated.
5396 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5397 x86_linux_dr_get. All uses updated.
5398 (i386_linux_dr_set): Renamed to
5399 x86_linux_dr_set. All uses updated.
5400 (i386_linux_dr_get_addr): Renamed to
5401 x86_linux_dr_get_addr. All uses updated.
5402 (i386_linux_dr_get_control): Renamed to
5403 x86_linux_dr_get_control. All uses updated.
5404 (i386_linux_dr_get_status): Renamed to
5405 x86_linux_dr_get_status. All uses updated.
5406 (i386_linux_dr_set_control): Renamed to
5407 x86_linux_dr_set_control. All uses updated.
5408 (i386_linux_dr_set_addr): Renamed to
5409 x86_linux_dr_set_addr. All uses updated.
5410 (i386_linux_prepare_to_resume): Renamed to
5411 x86_linux_prepare_to_resume. All uses updated.
5412 (i386_linux_new_thread): Renamed to
5413 x86_linux_new_thread. All uses updated.
5414 (i386_linux_new_fork): Renamed to
5415 x86_linux_new_fork. All uses updated.
5416 (i386_linux_child_post_startup_inferior): Renamed to
5417 x86_linux_child_post_startup_inferior. All uses updated.
5418 (i386_linux_enable_btrace): Renamed to
5419 x86_linux_enable_btrace. All uses updated.
5420 (i386_linux_disable_btrace): Renamed to
5421 x86_linux_disable_btrace. All uses updated.
5422 (i386_linux_teardown_btrace): Renamed to
5423 x86_linux_teardown_btrace. All uses updated.
5424 (i386_linux_read_btrace): Renamed to
5425 x86_linux_read_btrace. All uses updated.
5426
b9c1d481
AS
54272014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5428
5429 * remote.c (extended_remote_post_attach): New function.
5430 (init_extended_remote_ops): Install it as to_post_attach method.
5431
7180e04a
PA
54322014-07-09 Pedro Alves <palves@redhat.com>
5433
5434 * infcmd.c (attach_command_post_wait): Don't call
5435 target_terminal_inferior here.
5436 (attach_command): Call it here instead.
5437
9a9a7608
AB
54382014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5439
5440 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5441 field.
5442 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5443 from varobj.c, with additional checks.
5444 (c_varobj_ops): Fill in is_path_expr_parent field.
5445 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5446 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5447 field.
5448 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5449 ops method.
5450 (varobj_default_is_path_expr_parent): New function.
5451 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5452 (varobj_default_is_path_expr_parent): Declare new function.
5453
1f267ae3
MM
54542014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5455
5456 * infcmd.c (finish_backward): Turn internal error into normal error.
5457
b2ee242b
PA
54582014-07-07 Pedro Alves <palves@redhat.com>
5459
8a869bca 5460 PR gdb/17096
b2ee242b
PA
5461 * remote.c (async_handle_remote_sigint)
5462 (async_handle_remote_sigint_twice): Call
5463 gdb_call_async_signal_handler instead of
5464 mark_async_signal_handler.
5465
38e229b2
TT
54662014-07-07 Tom Tromey <tromey@redhat.com>
5467
5468 * target-delegates.c: Rebuild.
5469 * target.c (target_info_record): Remove.
5470 * record.c (info_record_command): Unconditionally call
5471 to_info_record.
5472 * target.h (struct target_ops) <to_info_record>: Use
5473 TARGET_DEFAULT_IGNORE.
5474 (target_info_record): Remove.
5475
f0f9ff95
TT
54762014-07-07 Tom Tromey <tromey@redhat.com>
5477
5478 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5479 TARGET_DEFAULT_NORETURN.
5480 * target.c (generic_tls_error): New function.
5481 (target_translate_tls_address): Don't search target stack.
5482 * target-delegates.c: Rebuild.
5483 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5484 stack.
5485 * linux-thread-db.c (thread_db_get_thread_local_address):
5486 Unconditionally call beneath target.
5487
4a5be5ee
MK
54882014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5489
5490 * cli/cli-logging.c (pop_output_files): Assign targerr to
5491 gdb_stdtargerr.
5492
92c3b204
AB
54932014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5494
5495 * MAINTAINERS (Write After Approval): Update my email address.
5496
9b11e3a7
GB
54972014-07-02 Gary Benson <gbenson@redhat.com>
5498
5499 * proc-service.c (ps_xfer_memory): Update comment.
5500 (ps_pstop): Remove unused function.
5501 (ps_pcontinue): Likewise.
5502 (ps_lstop): Likewise.
5503 (ps_lcontinue): Likewise.
5504 (ps_lgetxregsize): Likewise.
5505 (ps_lgetxregs): Likewise.
5506 (ps_lsetxregs): Likewise.
5507 (ps_plog): Likewise.
5508 (ps_ptread): Likewise.
5509 (ps_ptwrite): Likewise.
5510
cf363f18
MW
55112014-07-01 Mark Wielaard <mjw@redhat.com>
5512
5513 * dwarf2read.c (add_array_cv_type): New function.
5514 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5515 (read_tag_volatile_type): Likewise.
5516
82ae6c8d
TT
55172014-07-01 Tom Tromey <tromey@redhat.com>
5518
5519 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5520 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5521 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5522 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5523 * command.h (cmd_cfunc_ftype): Move earlier.
5524 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5525 (add_com, add_info): Use cmd_cfunc_ftype.
5526
96142726
TT
55272014-06-30 Tom Tromey <tromey@redhat.com>
5528
5529 * symtab.c (operator_chars): Make parameters and return type
5530 const.
5531 (file_matches): Make "files" const.
5532 (struct search_symbols_data) <files>: Now const.
5533 (search_symbols): Make "regexp" and "files" parameters const.
5534 Update.
5535 (symtab_symbol_info): Remove cast.
5536 (rbreak_command): Update.
5537 * symtab.h (search_symbols): Update.
5538
b67a2c6f
YQ
55392014-06-27 Yao Qi <yao@codesourcery.com>
5540
5541 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5542 Change parameter type to 'struct thread_info *'. Caller
5543 updated.
5544 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5545 Update declaration.
5546 * dummy-frame.c (struct dummy_frame_id): New.
5547 (dummy_frame_id_eq): New function.
5548 (struct dummy_frame) <id>: Change its type to 'struct
5549 dummy_frame_id'.
5550 (dummy_frame_push): Add parameter ptid and save it in
5551 dummy_frame_id.
5552 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5553 inferior_ptid.
5554 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5555 to inferior_ptid.
5556 (lookup_dummy_frame): Change parameter type to 'struct
5557 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5558 instead of frame_id_eq.
5559 (dummy_frame_pop): Add parameter ptid. Callers updated.
5560 Update comments. Compose dummy_frame_id and pass it to
5561 lookup_dummy_frame.
5562 (dummy_frame_discard): Add parameter ptid.
5563 (dummy_frame_sniffer): Compose dummy_frame_id and call
5564 dummy_frame_id_eq instead of frame_id_eq.
5565 (fprint_dummy_frames): Print ptid.
5566 * dummy-frame.h: Remove comments.
5567 (dummy_frame_push): Add ptid in declaration.
5568 (dummy_frame_pop, dummy_frame_discard): Likewise.
5569
5b10184c
TT
55702014-06-26 Tom Tromey <tromey@redhat.com>
5571
5572 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5573 * command.h (error_no_arg): Update.
5574
06900326
TT
55752014-06-26 Tom Tromey <tromey@redhat.com>
5576
5577 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5578 (do_show_command): Make "arg" const.
5579 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5580
c2bcbb1d
TT
55812014-06-26 Tom Tromey <tromey@redhat.com>
5582
5583 * record-full.c (record_full_get_bookmark): Make "args" const.
5584 (record_full_goto_bookmark): Make "raw_bookmark" const.
5585 * record.c (record_goto): New function.
5586 (cmd_record_goto): Use it. Now static.
5587 * record.h (record_goto): Declare.
5588 (cmd_record_goto): Remove declaration.
5589 * target-delegates.c: Rebuild.
5590 * target.h (struct target_ops) <to_get_bookmark,
5591 to_goto_bookmark>: Make parameter const.
5592
9cbe5fff
TT
55932014-06-26 Tom Tromey <tromey@redhat.com>
5594
5595 * defs.h (generic_load): Update.
5596 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5597 * monitor.c (monitor_load): Make "args" const.
5598 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5599 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5600 const.
5601 (mips_load): Make "file" const.
5602 * remote-sim.c (gdbsim_load): Make "args" const.
5603 * remote.c (remote_load): Make "name" const.
5604 * symfile.c (generic_load): Make "args" const.
5605 * target-delegates.c: Rebuild.
5606 * target.c (target_load): Make "arg" const.
5607 (debug_to_load): Make "args" const.
5608 * target.h (struct target_ops) <to_load>: Make parameter const.
5609 (target_load): Update.
5610
34a68019
TT
56112014-06-26 Tom Tromey <tromey@redhat.com>
5612
5613 PR symtab/16902:
5614 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5615 (dwarf2_physname, read_partial_die)
5616 (guess_partial_die_structure_name, fixup_partial_die)
5617 (guess_full_die_structure_name, anonymous_struct_prefix)
5618 (dwarf2_name): Use per-BFD obstack.
5619
efc889c1
YQ
56202014-06-26 Yao Qi <yao@codesourcery.com>
5621
5622 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5623 dummyframe and this_id into inner block below.
5624
4395285e
YQ
56252014-06-26 Yao Qi <yao@codesourcery.com>
5626
5627 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5628 with "signal_pass[0]" in the initialization of signal_pass.
5629
aef92902
MM
56302014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5631
5632 * record-btrace.c (record_btrace_generating_corefile)
5633 (record_btrace_prepare_to_generate_core)
5634 (record_btrace_done_generating_core): New.
5635 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5636 (record_btrace_store_registers, record_btrace_prepare_to_store):
5637 Forward request when generating a core file.
5638 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5639 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5640 to_done_generating_core.
5641
5fff78c4
MM
56422014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5643
5644 * target.h (target_ops) <to_prepare_to_generate_core>
5645 <to_done_generating_core>: New.
5646 (target_prepare_to_generate_core, target_done_generating_core): New.
5647 * target.c (target_prepare_to_generate_core)
5648 (target_done_generating_core): New.
5649 * target-delegates.c: Regenerate.
5650 * gcore.c: (write_gcore_file): Rename to ...
5651 (write_gcore_file_1): ...this.
5652 (write_gcore_file): Call target_prepare_to_generate_core
5653 and target_done_generating_core.
5654
1d1f1ccb
MM
56552014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5656
5657 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5658 * gcore.c (write_gcore_file): Free memory returned from
5659 make_corefile_notes.
5660 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5661 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5662
3343ef86
YQ
56632014-06-24 Yao Qi <yao@codesourcery.com>
5664
5665 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5666 (arm_linux_init_abi): Set skip_trampoline_code with
5667 gdbarch_skip_trampoline_code instead of
5668 find_solib_trampoline_target.
5669
18d18ac8
YQ
56702014-06-24 Yao Qi <yao@codesourcery.com>
5671
5672 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5673 arm_skip_bx_reg returns non-zero.
5674
80d8d390
YQ
56752014-06-24 Yao Qi <yao@codesourcery.com>
5676
5677 * arm-tdep.c (arm_skip_bx_reg): New function.
5678 (arm_skip_stub): Call arm_skip_bx_reg.
5679
6a18a01c
DB
56802014-06-23 Don Breazeal <donb@codesourcery.com>
5681
5682 * MAINTAINERS: Add myself as write-after-approval maintainer.
5683
8e9db26e
PA
56842014-06-23 Pedro Alves <palves@redhat.com>
5685
5686 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5687 DR_CONTROL before setting DR0..DR3.
5688 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5689 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5690 bits of DR_CONTROL related to the debug register slot being
5691 disabled. If all slots are vacant, clear local slowdown as well,
5692 and assert DR_CONTROL is 0.
5693
70afc5b7
SC
56942014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5695
5696 * python/lib/gdb/command/xmethods.py
5697 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5698 current progspace only if the string "progspace" matches LOCUS_RE.
5699
840ed64d
JK
57002014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5701
5702 Fix --with-system-readline with readline-6.3 patch 5.
5703 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5704 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5705 types.
5706
26f2dc30
TT
57072014-06-20 Tom Tromey <tromey@redhat.com>
5708
5709 * dwarf2read.c (dw2_get_real_path): Use correct type in
5710 OBSTACK_CALLOC.
5711 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5712
125f8a3d
GB
57132014-06-20 Gary Benson <gbenson@redhat.com>
5714
5715 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5716 * common/glibc_thread_db.h: Likewise.
5717 * common/i386-cpuid.h: Likewise.
5718 * common/i386-gcc-cpuid.h: Likewise.
5719 * common/linux-btrace.h: Likewise.
5720 * common/linux-osdata.h: Likewise.
5721 * common/linux-procfs.h: Likewise.
5722 * common/linux-ptrace.h: Likewise.
5723 * common/mips-linux-watch.h: Likewise.
5724 * common/linux-btrace.c: Moved to nat.
5725 * common/linux-osdata.c: Likewise.
5726 * common/linux-procfs.c: Likewise.
5727 * common/linux-ptrace.c: Likewise.
5728 * common/mips-linux-watch.c: Likewise.
5729 * nat/gdb_thread_db.h: Moved from common.
5730 * nat/glibc_thread_db.h: Likewise.
5731 * nat/i386-cpuid.h: Likewise.
5732 * nat/i386-gcc-cpuid.h: Likewise.
5733 * nat/linux-btrace.c: Likewise.
5734 * nat/linux-btrace.h: Likewise.
5735 * nat/linux-osdata.c: Likewise.
5736 * nat/linux-osdata.h: Likewise.
5737 * nat/linux-procfs.c: Likewise.
5738 * nat/linux-procfs.h: Likewise.
5739 * nat/linux-ptrace.c: Likewise.
5740 * nat/linux-ptrace.h: Likewise.
5741 * nat/mips-linux-watch.c: Likewise.
5742 * nat/mips-linux-watch.h: Likewise.
5743 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5744 (object file files): Reordered.
5745 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5746 of glibc_thread_db.h.
5747
42995dbd
GB
57482014-06-20 Gary Benson <gbenson@redhat.com>
5749
5750 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5751 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5752 (i386_dr_low): Likewise.
5753 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5754 (i386_dr_low_set_addr): Likewise.
5755 (i386_dr_low_get_addr): Likewise.
5756 (i386_dr_low_can_set_control): Likewise.
5757 (i386_dr_low_set_control): Likewise.
5758 (i386_dr_low_get_control): Likewise.
5759 (i386_dr_low_get_status): Likewise.
5760 (i386_get_debug_register_length): Likewise.
5761 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5762 (i386_dr_low): Likewise.
5763 * nat/i386-dregs.c (i386-low.h): Remove include.
5764 (i386-nat.h): Likewise.
5765 (nat/i386-dregs.h): New include.
5766 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5767 (i386_dr_low_set_addr): Likewise.
5768 (i386_dr_low_get_addr): Likewise.
5769 (i386_dr_low_can_set_control): Likewise.
5770 (i386_dr_low_set_control): Likewise.
5771 (i386_dr_low_get_control): Likewise.
5772 (i386_dr_low_get_status): Likewise.
5773 (i386_get_debug_register_length): Likewise.
5774 (debug_hw_points): Likewise.
5775
3ed9baed
IB
57762014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5777
5778 * Makefile.in (SFILES): Add d-exp.y.
5779 (YYFILES): Add d-exp.c.
5780 (YYOBJ): Add d-exp.o.
5781 (local-maintainer-clean): Delete d-exp.c.
5782 * d-exp.y: New file.
5783 * d-lang.h (d_parse): New declaration.
5784 (d_error): New declaration.
5785 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5786 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5787 PREC_ORDER operators.
5788 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5789
78c164b0
YQ
57902014-06-19 Yao Qi <yao@codesourcery.com>
5791
5792 * gdbthread.h (any_running): Remove the declaration.
5793 * thread.c (any_running): Remove.
5794
f6e29b6e
YQ
57952014-06-19 Yao Qi <yao@codesourcery.com>
5796
5797 * gdbthread.h (struct thread_info) <state>: Change its type to
5798 'enum thread_state'. Update comments.
5799
034f788c
PA
58002014-06-19 Pedro Alves <palves@redhat.com>
5801
5802 * gdbthread.h (ALL_THREADS): Delete.
5803 (ALL_NON_EXITED_THREADS): New macro.
5804 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5805 instead of ALL_THREADS.
5806 * infrun.c (find_thread_needs_step_over)
5807 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5808 instead of ALL_THREADS.
5809 * record-btrace.c (record_btrace_open)
5810 (record_btrace_stop_recording, record_btrace_close)
5811 (record_btrace_is_replaying, record_btrace_resume)
5812 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5813 * remote.c (append_pending_thread_resumptions): Likewise.
5814 * thread.c (thread_apply_all_command): Likewise.
5815
46e33252
GB
58162014-06-19 Gary Benson <gbenson@redhat.com>
5817
5818 * i386-nat.c (i386_stopped_by_watchpoint):
5819 Use i386_dr_stopped_by_watchpoint.
5820 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5821 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5822
3a8ee006
GB
58232014-06-19 Gary Benson <gbenson@redhat.com>
5824
5825 * nat/i386-dregs.c: New file.
5826 * Makefile.in (i386-dregs.o): New rule.
5827 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5828 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5829 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5830 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5831 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5832 * config/i386/go32.mh (NATDEPFILES): Likewise.
5833 * config/i386/linux.mh (NATDEPFILES): Likewise.
5834 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5835 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5836 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5837 * i386-nat.h (debug_hw_points): New declaration.
5838 * i386-nat.c (breakpoint.h): Remove include.
5839 (command.h): Likewise.
5840 (target.h): Likewise.
5841 (gdb_assert.h): Likewise.
5842 (debug_hw_points): Made nonstatic.
5843 (debug_printf): Now in i386-dregs.c.
5844 (TARGET_HAS_DR_LEN_8): Likewise.
5845 (DR_CONTROL_SHIFT): Likewise.
5846 (DR_CONTROL_SIZE): Likewise.
5847 (DR_RW_EXECUTE): Likewise.
5848 (DR_RW_WRITE): Likewise.
5849 (DR_RW_READ): Likewise.
5850 (DR_RW_IORW): Likewise.
5851 (DR_LEN_1): Likewise.
5852 (DR_LEN_2): Likewise.
5853 (DR_LEN_4): Likewise.
5854 (DR_LEN_8): Likewise.
5855 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5856 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5857 (DR_ENABLE_SIZE): Likewise.
5858 (DR_LOCAL_SLOWDOWN): Likewise.
5859 (DR_GLOBAL_SLOWDOWN): Likewise.
5860 (DR_CONTROL_RESERVED): Likewise.
5861 (I386_DR_CONTROL_MASK): Likewise.
5862 (I386_DR_VACANT): Likewise.
5863 (I386_DR_LOCAL_ENABLE): Likewise.
5864 (I386_DR_GLOBAL_ENABLE): Likewise.
5865 (I386_DR_DISABLE): Likewise.
5866 (I386_DR_SET_RW_LEN): Likewise.
5867 (I386_DR_GET_RW_LEN): Likewise.
5868 (I386_DR_WATCH_HIT): Likewise.
5869 (i386_wp_op_t): Likewise.
5870 (i386_show_dr): Likewise.
5871 (i386_length_and_rw_bits): Likewise.
5872 (i386_insert_aligned_watchpoint): Likewise.
5873 (i386_remove_aligned_watchpoint): Likewise.
5874 (i386_handle_nonaligned_watchpoint): Likewise.
5875 (i386_update_inferior_debug_regs): Likewise.
5876 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5877 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5878 (i386_region_ok_for_watchpoint):
5879 Use i386_dr_region_ok_for_watchpoint.
5880 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5881
322a8e06
GB
58822014-06-19 Gary Benson <gbenson@redhat.com>
5883
5884 * i386-nat.c (i386_insert_hw_breakpoint): Use
5885 i386_insert_watchpoint.
5886 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5887
8f26655c
GB
58882014-06-19 Gary Benson <gbenson@redhat.com>
5889
5890 * i386-nat.c (i386_dr_show): Renamed to
5891 i386_show_dr and made static. All uses updated.
5892 (i386_dr_length_and_rw_bits): Renamed to
5893 i386_length_and_rw_bits and made static.
5894 All uses updated.
5895 (i386_dr_insert_aligned_watchpoint): Renamed to
5896 i386_insert_aligned_watchpoint and made static.
5897 All uses updated.
5898 (i386_dr_remove_aligned_watchpoint): Renamed to
5899 i386_remove_aligned_watchpoint and made static.
5900 All uses updated.
5901 (i386_dr_update_inferior_debug_regs): Renamed to
5902 i386_update_inferior_debug_regs and made static.
5903 All uses updated.
5904 * nat/i386-dregs.h (i386_dr_show): Removed.
5905 (i386_dr_length_and_rw_bits): Likewise.
5906 (i386_dr_insert_aligned_watchpoint): Likewise.
5907 (i386_dr_remove_aligned_watchpoint): Likewise.
5908 (i386_dr_update_inferior_debug_regs): Likewise.
5909
992c7d70
GB
59102014-06-19 Gary Benson <gbenson@redhat.com>
5911
5912 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5913 * configure: Regenerate.
5914 * config.in: Likewise.
5915 * main.c (signal.h): New include.
5916 (setup_alternate_signal_stack): New function.
5917 (captured_main): Call the above.
5918 * cp-support.c (signal.h): New include.
5919 (catch_demangler_crashes): New flag.
5920 (SIGJMP_BUF): New define.
5921 (SIGSETJMP): Likewise.
5922 (SIGLONGJMP): Likewise.
5923 (gdb_demangle_jmp_buf): New static global.
5924 (gdb_demangle_attempt_core_dump): Likewise.
5925 (gdb_demangle_signal_handler): New function.
5926 (gdb_demangle): If catch_demangler_crashes is set, install the
5927 above signal handler before calling bfd_demangle, and restore
5928 the original signal handler afterwards. Display the offending
5929 symbol and call demangler_warning the first time a segmentation
5930 fault is caught.
5931 (_initialize_cp_support): New maint set/show command.
5932
eae7090b
GB
59332014-06-19 Gary Benson <gbenson@redhat.com>
5934
5935 * utils.h (resource_limit_kind): New enum.
5936 (can_dump_core): New declaration.
5937 (warn_cant_dump_core): Likewise.
5938 (dump_core): Likewise.
5939 * utils.c (dump_core): Made nonstatic. Added new
5940 parameter "limit_kind".
5941 (can_dump_core): Made nonstatic. Moved printing code to...
5942 (warn_cant_dump_core): New function.
5943 (can_dump_core_warn): Likewise.
5944 (internal_vproblem): Replace calls to can_dump_core with
5945 calls to can_dump_core_warn. Supply new argument to each.
5946
57fcfb1b
GB
59472014-06-19 Gary Benson <gbenson@redhat.com>
5948
5949 * utils.h (demangler_vwarning): New declaration.
5950 (demangler_warning): Likewise.
5951 * utils.c (struct internal_problem)
5952 <user_settable_should_quit>: New field.
5953 <user_settable_should_dump_core>: Likewise
5954 (internal_error_problem): Add values for above new fields.
5955 (internal_warning_problem): Likewise.
5956 (demangler_warning_problem): New static global.
5957 (demangler_vwarning): New function.
5958 (demangler_warning): Likewise.
5959 (add_internal_problem_command): Selectively add commands.
5960 (_initialize_utils): New internal problem command.
5961 * maint.c (maintenance_demangler_warning): New function.
5962 (_initialize_maint_cmds): New command.
5963
17a40b44
TT
59642014-06-18 Tom Tromey <tromey@redhat.com>
5965
5966 * f-valprint.c (info_common_command_for_block): Update.
5967 * symtab.h (struct general_symbol_info) <common_block>: Now
5968 const.
5969
346d1dfe
TT
59702014-06-18 Tom Tromey <tromey@redhat.com>
5971
5972 * symtab.h (struct symtab) <blockvector>: Now const.
5973 * ada-lang.c (ada_add_global_exceptions): Update.
5974 * buildsym.c (augment_type_symtab): Update.
5975 * dwarf2read.c (dw2_lookup_symbol): Update.
5976 * jit.c (finalize_symtab): Update.
5977 * jv-lang.c (add_class_symtab_symbol): Update.
5978 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5979 Update.
5980 * objfiles.c (objfile_relocate1): Update.
5981 * psymtab.c (lookup_symbol_aux_psymtabs)
5982 (maintenance_check_psymtabs): Update.
5983 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5984 Update.
5985 * spu-tdep.c (spu_catch_start): Update.
5986 * symmisc.c (dump_symtab_1): Update.
5987 * symtab.c (lookup_global_symbol_from_objfile)
5988 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5989 (basic_lookup_transparent_type_quick)
5990 (basic_lookup_transparent_type, find_pc_sect_symtab)
5991 (find_pc_sect_line, search_symbols): Update.
5992 * block.c (find_block_in_blockvector): Make "bl" const.
5993 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5994 const.
5995 (blockvector_contains_pc): Make "bv" const.
5996 (block_for_pc_sect): Update.
5997 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5998 (blockvector_contains_pc): Update.
5999 * breakpoint.c (resolve_sal_pc): Update.
6000 * inline-frame.c (block_starting_point_at): Update.
6001
1834676b
TT
60022014-06-18 Tom Tromey <tromey@redhat.com>
6003
6004 * completer.c (complete_line): Make "line_buffer" const.
6005 * completer.h (complete_line): Update.
6006
ac1a991b
TT
60072014-06-18 Tom Tromey <tromey@redhat.com>
6008
6009 * symtab.c (add_macro_name): Remove unneeded cast.
6010
5bc98e52
TT
60112014-06-18 Tom Tromey <tromey@redhat.com>
6012
6013 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6014 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6015
8236def8
TT
60162014-06-18 Tom Tromey <tromey@redhat.com>
6017
6018 * probe.c (info_probes_for_ops): Make "arg" const.
6019 * probe.h (info_probes_for_ops): Update.
6020
3977b71f
TT
60212014-06-18 Tom Tromey <tromey@redhat.com>
6022
6023 * varobj.c (varobj_create): Update.
6024 * valops.c (value_of_this): Update.
6025 * tracepoint.c (add_local_symbols, scope_info): Update.
6026 * symtab.h (struct general_symbol_info) <block>: Now const.
6027 * symtab.c (skip_prologue_sal)
6028 (default_make_symbol_completion_list_break_on)
6029 (skip_prologue_using_sal): Update.
6030 * stack.h (iterate_over_block_locals)
6031 (iterate_over_block_local_vars): Update.
6032 * stack.c (print_frame_args): Update.
6033 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6034 parameter const.
6035 (get_selected_block): Make return type const.
6036 * python/py-frame.c (frapy_block): Update.
6037 * python/py-block.c (gdbpy_block_for_pc): Update.
6038 * p-exp.y (%union) <bval>: Now const.
6039 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6040 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6041 * m2-exp.y (%union) <bval>: Now const.
6042 * linespec.c (get_current_search_block): Make return type const.
6043 (create_sals_line_offset, find_label_symbols): Update.
6044 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6045 Update.
6046 (block_starting_point_at): Make "block" const.
6047 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6048 (check_exception_resume): Update.
6049 * guile/scm-frame.c (gdbscm_frame_block): Update.
6050 * guile/scm-block.c (gdbscm_lookup_block): Update.
6051 * frame.h (get_frame_block): Update.
6052 (get_selected_block): Make return type const.
6053 * frame.c (frame_id_inner): Update.
6054 * f-valprint.c (info_common_command_for_block)
6055 (info_common_command): Update.
6056 * dwarf2loc.c (dwarf2_find_location_expression)
6057 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6058 (locexpr_describe_location_piece): Update.
6059 * c-exp.y (%union) <bval>: Now const.
6060 * breakpoint.c (resolve_sal_pc): Update.
6061 * blockframe.c (get_frame_block):Make return type const.
6062 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6063 (block_innermost_frame): Update.
6064 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6065 (block_for_pc, block_for_pc_sect): Update.
6066 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6067 'pblock' const.
6068 (block_for_pc_sect, block_for_pc): Make return type const.
6069 * ax-gdb.c (gen_expr): Update.
6070 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6071 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6072 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6073 (ada_read_var_value): Update.
6074 * ada-exp.y (struct name_info) <block>: Now const.
6075 (%union): Likewise.
6076 (block_lookup): Constify.
6077
b9228891
GB
60782014-06-18 Gary Benson <gbenson@redhat.com>
6079
6080 * nat/i386-dregs.h: New file.
6081 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6082 * i386-nat.h (i386-dregs.h): New include.
6083 (DR_FIRSTADDR): Now in i386-dregs.h.
6084 (DR_LASTADDR): Likewise.
6085 (DR_NADDR): Likewise.
6086 (DR_STATUS): Likewise.
6087 (DR_CONTROL): Likewise.
6088 (i386_debug_reg_state): Likewise.
6089 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6090
a1aa2221
LM
60912014-06-18 Don Breazeal <donb@codesourcery.com>
6092
6093 * breakpoint.c (set_longjmp_breakpoint): Call
6094 momentary_breakpoint_from_master with additional argument.
6095 (set_longjmp_breakpoint_for_call_dummy): Call
6096 momentary_breakpoint_from_master with additional argument.
6097 (set_std_terminate_breakpoint): Call
6098 momentary_breakpoint_from_master with additional argument.
6099 (momentary_breakpoint_from_master): Add argument to function
6100 definition and use it to initialize structure member flag.
74228e77 6101 (clone_momentary_breakpoint): Call
a1aa2221
LM
6102 momentary_breakpoint_from_master with additional argument.
6103 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6104 member flags set in momentary_breakpoint_from_master.
6105
4be83cc2
GB
61062014-06-18 Gary Benson <gbenson@redhat.com>
6107
6108 * i386-nat.c (i386_show_dr): Renamed to
6109 i386_dr_show and made nonstatic. All uses updated.
6110 (i386_length_and_rw_bits): Renamed to
6111 i386_dr_length_and_rw_bits and made nonstatic.
6112 All uses updated.
6113 (i386_insert_aligned_watchpoint): Renamed to
6114 i386_dr_insert_aligned_watchpoint and made nonstatic.
6115 All uses updated.
6116 (i386_remove_aligned_watchpoint): Renamed to
6117 i386_dr_remove_aligned_watchpoint and made nonstatic.
6118 All uses updated.
6119 (i386_update_inferior_debug_regs): Renamed to
6120 i386_dr_update_inferior_debug_regs and made nonstatic.
6121 All uses updated.
6122
131aa0d4
GB
61232014-06-18 Gary Benson <gbenson@redhat.com>
6124
6125 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6126 (i386_dr_low_can_set_control): Likewise.
6127 (i386_dr_low_set_addr): Likewise.
6128 (i386_dr_low_set_control): Likewise.
6129 (i386_dr_low_get_addr): Likewise.
6130 (i386_dr_low_get_status): Likewise.
6131 (i386_dr_low_get_control): Likewise.
6132 (i386_insert_aligned_watchpoint): Use new macros.
6133 (i386_update_inferior_debug_regs): Likewise.
6134 (i386_stopped_data_address): Likewise.
6135
d9305f7f
GB
61362014-06-18 Gary Benson <gbenson@redhat.com>
6137
6138 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6139 New parameter. All uses updated.
6140
ea008da4
GB
61412014-06-18 Gary Benson <gbenson@redhat.com>
6142
6143 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6144 All uses updated.
6145
1b6d4134
GB
61462014-06-18 Gary Benson <gbenson@redhat.com>
6147
6148 * i386-nat.c (debug_printf): New macro.
6149 (i386_get_debug_register_length): Likewise.
6150 (TARGET_HAS_DR_LEN_8): Use above macro.
6151 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6152 and printf_unfiltered. Use phex to format values.
6153
9b4550ef
GB
61542014-06-18 Gary Benson <gbenson@redhat.com>
6155
6156 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6157 Make const.
6158
6e62758f
GB
61592014-06-18 Gary Benson <gbenson@redhat.com>
6160
6161 * i386-nat.c: Comment changes.
6162
51c79e94
GB
61632014-06-18 Gary Benson <gbenson@redhat.com>
6164
6165 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6166
3e11889a
GB
61672014-06-18 Gary Benson <gbenson@redhat.com>
6168
6169 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6170 (i386_insert_aligned_watchpoint): Likewise.
6171 (i386_remove_aligned_watchpoint): Likewise.
6172 (i386_handle_nonaligned_watchpoint): Likewise.
6173
fc6e2f03
GB
61742014-06-18 Gary Benson <gbenson@redhat.com>
6175
6176 * i386-nat.c: Whitespace changes.
6177
2afe7d50
SB
61782014-06-17 Samuel Bronson <naesten@gmail.com>
6179
6180 * MAINTAINERS: Update Roland McGrath's email address.
6181 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6182 Red Hat a while ago, and giving me a current address.
2afe7d50 6183
3bca49ee
TT
61842014-06-17 Tom Tromey <tromey@redhat.com>
6185
6186 * utils.h (savestring): Remove declaration.
6187
6e366df1
TT
61882014-06-17 Tom Tromey <tromey@redhat.com>
6189
6190 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6191
6be47f0c
KS
61922014-06-16 Keith Seitz <keiths@redhat.com>
6193
6194 PR mi/15863
6195 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6196 to update the varobj if inferior_ptid is null_ptid.
6197
7bc112c1
TT
61982014-06-16 Tom Tromey <tromey@redhat.com>
6199
6200 * target.h (struct target_ops) <to_info_proc>: Make parameter
6201 const.
6202 (target_info_proc): Update.
6203 * target.c (target_info_proc): Make "args" const.
6204 * procfs.c (procfs_info_proc): Update.
6205 * linux-tdep.c (linux_info_proc): Update.
6206 (linux_core_info_proc_mappings): Make "args" const.
6207 (linux_core_info_proc): Update.
6208 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6209 * gdbarch.c: Rebuild.
6210 * gdbarch.h: Rebuild.
6211 * corelow.c (core_info_proc): Update.
6212
fee354ee
TT
62132014-06-16 Tom Tromey <tromey@redhat.com>
6214
6215 * target.h (struct target_ops) <to_disconnect>: Make parameter
6216 const.
6217 (target_disconnect): Update.
6218 * target.c (target_disconnect): Make "args" const.
6219 * target-delegates.c: Rebuild.
6220 * remote.c (remote_disconnect): Update.
6221 * record.h (record_disconnect): Update.
6222 * record.c (record_disconnect): Update.
6223 * inf-child.c (inf_child_disconnect): Update.
6224
a30bf1f1
TT
62252014-06-16 Tom Tromey <tromey@redhat.com>
6226
6227 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6228 * target.c (debug_to_rcmd, default_rcmd): Update.
6229 * target-delegates.c: Rebuild.
6230 * remote.c (remote_rcmd): Update.
6231 * monitor.c (monitor_rcmd): Update.
6232
d03de421
PA
62332014-06-16 Pedro Alves <palves@redhat.com>
6234
6235 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6236 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6237 have OBJF_SHARED set.
6238 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6239 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6240 instead of OBJF_USERLOADED.
6241 * objfiles.h (OBJF_SHARED): Update comment.
6242 (userloaded_objfile_contains_address_p): Rename to ...
6243 (shared_objfile_contains_address_p): ... this, and update
6244 comments.
6245 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6246 new objfile.
6247 (remove_symbol_file_command): Skip objfiles that don't have
6248 OBJF_SHARED set.
6249
99f4262f
TT
62502014-06-16 Tom Tromey <tromey@redhat.com>
6251
6252 * minsyms.h (prim_record_minimal_symbol)
6253 (prim_record_minimal_symbol_and_info): Update comments.
6254
97d66cc6
EZ
62552014-06-14 Eli Zaretskii <eliz@gnu.org>
6256
6257 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6258 or --without-guile, according to how GDB was built.
6259
635c7e8a
TT
62602014-06-13 Tom Tromey <tromey@redhat.com>
6261
6262 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6263 to help_list.
6264 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6265 to help_list.
6266 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6267 help_list.
6268 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6269 help_list.Pass all_commands, not -1, to help_list.
6270 * cli/cli-dump.c (dump_command, append_command)
6271 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6272 (binary_dump_command, binary_append_command): Pass all_commands,
6273 not -1, to help_list.
6274 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6275 -1, to help_list.
6276 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6277 -1, to help_list.
6278 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6279 help_list.
6280 * top.c (set_history): Pass all_commands, not -1, to help_list.
6281 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6282 all_commands, not -1, to help_list.
6283 * symfile.c (overlay_command): Pass all_commands, not -1, to
6284 help_list.
6285 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6286 help_list.
6287 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6288 help_list.
6289 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6290 -1, to help_list.
6291 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6292 not -1, to help_list.
6293 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6294 not -1, to help_list.
6295 * maint.c (maintenance_command, maintenance_info_command)
6296 (maintenance_print_command, maintenance_set_cmd): Pass
6297 all_commands, not -1, to help_list.
6298 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6299 help_list.
6300 * language.c (set_check): Pass all_commands, not -1, to help_list.
6301 * infcmd.c (unset_command): Pass all_commands, not -1, to
6302 help_list.
6303 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6304 help_list.
6305 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6306 help_list.
6307 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6308 help_list.
6309 * breakpoint.c (save_command): Pass all_commands, not -1, to
6310 help_list.
6311 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6312 all_commands, not -1, to help_list.
6313
b94ade42
PL
63142014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6315
6316 * regcache.c (struct register_to_invalidate): New structure.
6317 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6318 functions.
6319 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6320
31f628ae
YQ
63212014-06-12 Yao Qi <yao@codesourcery.com>
6322
6323 * varobj.c (varobj_get_num_children): Call
6324 varobj_is_dynamic_p.
6325 (varobj_list_children): Likewise.
6326 (varobj_update): Likewise. Update comments.
6327
cde5ef40
YQ
63282014-06-12 Yao Qi <yao@codesourcery.com>
6329
6330 * varobj.c (varobj_pretty_printed_p): Rename to ...
6331 (varobj_is_dynamic_p): ... this. New function.
6332 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6333 (varobj_is_dynamic_p): Declare.
6334 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6335 (mi_print_value_p, varobj_update_one): Likewise.
6336
576ea091
YQ
63372014-06-12 Pedro Alves <pedro@codesourcery.com>
6338 Yao Qi <yao@codesourcery.com>
6339
6340 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6341 (varobj_get_iterator): Wrap up code for pretty-printer by
6342 "#if HAVE_PYTHON" and "#endif".
6343 (update_dynamic_varobj_children): Likewise.
6344
827f100c
YQ
63452014-06-12 Pedro Alves <pedro@codesourcery.com>
6346 Yao Qi <yao@codesourcery.com>
6347
6348 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6349 gdb_python_initialized is false. Move some code from varobj.c.
6350 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6351 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6352 (struct varobj_item): Moved to varobj-iter.h".
6353 (varobj_clear_saved_item): New function.
6354 (update_dynamic_varobj_children): Move python-related code to
6355 py-varobj.c.
6356 (free_variable): Call varobj_clear_saved_item and
6357 varobj_iter_delete.
6358
e5250216
YQ
63592014-06-12 Pedro Alves <pedro@codesourcery.com>
6360 Yao Qi <yao@codesourcery.com>
6361
6362 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6363 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6364 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6365 (py-varobj.o): New rule.
6366 * python/py-varobj.c: New file.
6367 * python/python-internal.h (py_varobj_get_iterator): Declare.
6368 * varobj-iter.h: New file.
6369 * varobj.c: Include "varobj-iter.h"
6370 (struct varobj) <child_iter>: Change its type from "PyObject *"
6371 to "struct varobj_iter *".
6372 <saved_item>: Likewise.
6373 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6374 [HAVE_PYTHON] (varobj_get_iterator): New function.
6375 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6376 python-specific code to python/py-varobj.c.
6377 (install_visualizer): Call varobj_iter_delete instead of
6378 Py_XDECREF.
6379 * varobj.h (varobj_ensure_python_env): Declare.
6380
5a2e0d6e
YQ
63812014-06-12 Yao Qi <yao@codesourcery.com>
6382
6383 * varobj.c (struct varobj_item): New structure.
6384 (create_child_with_value): Update declaration.
6385 (varobj_add_child): Replace arguments 'name' and 'value' with
6386 'item'. All callers updated.
6387 (install_dynamic_child): Likewise.
6388 (update_dynamic_varobj_children): Likewise.
6389 (varobj_add_child): Likewise.
6390 (create_child_with_value): Likewise.
6391
919b9a93
JB
63922014-06-11 Joel Brobecker <brobecker@adacore.com>
6393
6394 * NEWS: Create a new section for the next release branch.
6395 Rename the section of the current branch, now that it has
6396 been cut.
6397
71a55bdf
JB
63982014-06-11 Joel Brobecker <brobecker@adacore.com>
6399
6400 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6401 * version.in: Bump version to 7.8.50.DATE-cvs.
6402
364fe1f7
PA
64032014-06-11 Pedro Alves <palves@redhat.com>
6404
6405 PR remote/17028
6406 * ser-mingw.c (net_windows_socket_check_pending): New function.
6407 (net_windows_select_thread): Ignore spurious wakeups. Use
6408 net_windows_socket_check_pending.
6409 (net_windows_wait_handle): Check for pending events with
6410 ioctlsocket, through net_windows_socket_check_pending, instead of
6411 checking the socket's event.
6412
5a6c7709
SC
64132014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6414
6415 * python/python-internal.h (gdb_PyObject_GetAttrString)
6416 (gdb_PyObject_HasAttrString): New inline function definitions.
6417 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6418 char * of the second argument to PyObject_GetAttrString.
74228e77 6419
0e58ee40
JB
64202014-06-10 Joel Brobecker <brobecker@adacore.com>
6421
6422 * serial.c (serial_write): Fix index of character to be printed
6423 in call to serial_logchar when serial debug traces are enabled.
6424
d190df30
JB
64252014-06-10 Joel Brobecker <brobecker@adacore.com>
6426
6427 * gdbtypes (resolve_dynamic_range): Add function description.
6428
b4b01d36
PA
64292014-06-09 Pedro Alves <palves@redhat.com>
6430
6431 * linux-nat.c (linux_child_follow_fork): Initialize status with
6432 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6433 inner block. Only pass the signal to PTRACE_DETACH if in pass
6434 state.
6435
3657956b
GB
64362014-06-09 Gary Benson <gbenson@redhat.com>
6437
6438 * common/signals.c (gdb_signal_from_host): Reorder to separate
6439 the always-available ANSI-standard signals from the signals that
6440 require checking.
6441 (do_gdb_signal_to_host): Likewise.
6442 * proc-events.c (signal_table): Likewise.
6443
c077881a
HZ
64442014-06-08 Hui Zhu <hui@codesourcery.com>
6445
6446 * common/linux-ptrace.c (linux_disable_event_reporting): New
6447 function.
6448 * common/linux-ptrace.h (linux_disable_event_reporting): New
6449 declaration.
6450 * linux-nat.c (linux_child_follow_fork): Do a single step before
6451 detach.
6452
4186eb54
KS
64532014-06-07 Keith Seitz <keiths@redhat.com>
6454
6455 Revert:
6456 PR c++/16253
6457 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6458 from symbol_matches_domain in symtab.c. All local callers
6459 of symbol_matches_domain updated.
6460 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6461 search STRUCT_DOMAIN.
6462 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6463 independently. standard_lookup will do that automatically.
6464 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6465 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6466 (cp_lookup_symbol_in_namespace): Likewise.
6467 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6468 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6469 may return a STRUCT_DOMAIN match.
6470 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6471 * cp-support.c: Include language.h.
6472 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6473 VAR_DOMAIN.
6474 * psymtab.c (match_partial_symbol): Compare the requested
6475 domain with the symbol's domain directly.
6476 (lookup_partial_symbol): Likewise.
6477 * symtab.c (lookup_symbol_in_language): Explain when/why
6478 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6479 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6480 appropriate languages.
6481 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6482 and moved to ada-lang.c
6483 (lookup_block_symbol): Explain that this function only returns
6484 symbol matching the requested DOMAIN.
6485 Compare the requested domain with the symbol's domain directly.
6486 (iterate_over_symbols): Compare the requested domain with the
6487 symbol's domain directly.
6488 * symtab.h (symbol_matches_domain): Remove.
6489
25326a28 64902014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6491
6492 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6493 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6494 (gdbscm_guile_version_is_at_least): Declare.
6495 (gdbscm_scm_string_to_int): Declare.
6496 * guile/guile.c (gdbscm_guile_major_version): New global.
6497 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6498 (guile_datadir): New static global.
6499 (gdbscm_guile_data_directory): New function.
6500 (initialize_scheme_side): Update.
6501 (misc_guile_functions): Add guile-data-directory.
6502 (initialize_gdb_module): Fetch guile version number.
6503 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6504 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6505 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6506 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6507 comments.
6508 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6509 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6510 * guile/scm-value.c (gdbscm_value_to_string): Only call
6511 scm_port_conversion_strategy if Guile version >= 2.0.6.
6512
0a770bb2 65132014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6514
6515 * main.c (print_gdb_help): Add -q and --silent.
6516
73ba372c
GB
65172014-06-06 Gary Benson <gbenson@redhat.com>
6518
6519 * common/signals.c: Remove preprocessor conditionals for
6520 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6521 SIGSEGV and SIGTERM.
6522 * proc-events.c: Likewise.
6523
c33b2f12
MM
65242014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6525
6526 * symfile.c (symfile_free_objfile): Remove restriction to
6527 OBJF_USERLOADED.
6528 * symfile-mem.c (symbol_file_add_from_memory): Call
6529 add_target_sections_of_objfile.
6530
fb934770
LC
65312014-06-05 Ludovic Courtès <ludo@gnu.org>
6532
6533 * guile/scm-value.c (gdbscm_history_append_x): Use
6534 'vlscm_get_value_smob_arg_unsafe' instead of
6535 'vlscm_scm_to_value'.
6536
6ef284bd
SM
65372014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6538
6539 PR mi/15806
6540 * utils.c (printchar): Don't escape at all if quoter is NUL.
6541 Update function documentation to clarify effect of parameter
6542 QUOTER.
6543 * remote.c (escape_buffer): Pass '\\' as the quoter to
6544 fputstrn_unfiltered.
6545 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6546 generate the output.
6547 (mi_solib_unloaded): Same.
6548
270c9937
JB
65492014-06-05 Joel Brobecker <brobecker@adacore.com>
6550
6551 * development.sh: Delete.
6552 * Makefile.in (config.status): Adjust dependency on development.sh.
6553 * configure.ac: Adjust development.sh source call.
6554 * configure: Regenerate.
6555
16f691fb
DE
65562014-06-04 Doug Evans <xdje42@gmail.com>
6557
6558 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6559 is_scheme_bkpt, spec.
6560 (bpscm_make_breakpoint_smob): Initialize new members.
6561 (gdbscm_create_breakpoint_x): Split into two ...
6562 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6563 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6564 (scheme_function breakpoint_functions): Update.
6565 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6566 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6567 register-breakpoint!.
6568
ef7cab6b
JB
65692014-06-04 Joel Brobecker <brobecker@adacorer.com>
6570
6571 PR server/17023
6572 * mem-break.c (z_type_supported): Return zero if
6573 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6574
012370f6
TT
65752014-06-04 Tom Tromey <tromey@redhat.com>
6576
6577 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6578 value_from_contents_and_address_unresolved.
6579 (ada_template_to_fixed_record_type_1): Likewise.
6580 (ada_which_variant_applies): Likewise.
6581 * value.h (value_from_contents_and_address_unresolved): Declare.
6582 * value.c (value_from_contents_and_address_unresolved): New
6583 function.
6584 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6585 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6586 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6587
92e2a17f
TT
65882014-06-04 Tom Tromey <tromey@redhat.com>
6589
6590 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6591
c0939df1
TT
65922014-06-04 Tom Tromey <tromey@redhat.com>
6593
6594 * procfs.c (procfs_attach): Make "args" const.
6595 * windows-nat.c (windows_attach): Make "args" const.
6596 * nto-procfs.c (procfs_attach): Make "args" const.
6597 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6598 * go32-nat.c (go32_attach): Make "args" const.
6599 * gnu-nat.c (gnu_attach): Make "args" const.
6600 * darwin-nat.c (darwin_attach): Make "args" const.
6601 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6602 * linux-nat.c (linux_nat_attach): Make "args" const.
6603 * remote.c (extended_remote_attach_1, extended_remote_attach):
6604 Make "args" const.
6605 * target.h (struct target_ops) <to_attach>: Make "args" const.
6606 (find_default_attach): Likewise.
6607 * utils.c (parse_pid_to_attach): Make "args" const.
6608 * utils.h (parse_pid_to_attach): Update.
6609
8eaff7cd
TT
66102014-06-04 Tom Tromey <tromey@redhat.com>
6611
6612 * target-delegates.c: Rebuild.
6613 * target.c (default_thread_address_space): New function.
6614 (target_thread_address_space): Simplify.
6615 * target.h (struct target_ops) <to_thread_address_space>: Add
6616 TARGET_DEFAULT_FUNC.
6617
1913f160
DE
66182014-06-04 Doug Evans <xdje42@gmail.com>
6619
6620 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6621
70ad5bff
MM
66222014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6623
6624 * record-btrace.c: Include event-loop.h and inf-loop.h.
6625 (record_btrace_resume_exec_dir)
6626 (record_btrace_async_inferior_event_handler)
6627 (record_btrace_handle_async_inferior_event): New.
6628 (record_btrace_open): Create async event handler.
6629 (record_btrace_close): Delete async event handler.
6630 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6631 Mark async event handler.
6632 (record_btrace_execution_direction): New.
6633 (init_record_btrace_ops): Initialize to_execution_direction.
6634
b6210538
DE
66352014-06-03 Doug Evans <xdje42@gmail.com>
6636
6637 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6638 (gdbscm_make_parameter): Ditto.
6639
a5b1fd27
DE
66402014-06-03 Doug Evans <dje@google.com>
6641
6642 * exec.c (exec_close_1): Call clear_section_table instead of
6643 resize_section_table.
6644 (clear_section_table): New function.
6645 (resize_section_table): Make static. Rename arg num_added to
6646 adjustment.
6647 * exec.h (clear_section_table): Declare.
6648 (resize_section_table): Delete.
6649 * progspace.c (release_program_space): Call clear_section_table
6650 instead of resize_section_table.
6651
0c6e92a5
SC
66522014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6653
6654 * NEWS (Python Scripting): Add entry about the new xmethods
6655 feature.
6656
883964a7
SC
66572014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6658
6659 * python/py-xmethods.c: New file.
6660 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6661 (objfpy_dealloc): XDECREF on the new xmethods field.
6662 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6663 field.
6664 (objfpy_get_xmethods): New function.
6665 (objfile_getset): New entry 'xmethods'.
6666 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6667 (pspy_dealloc): XDECREF on the new xmethods field.
6668 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6669 field.
6670 (pspy_get_xmethods): New function.
6671 (pspace_getset): New entry 'xmethods'.
6672 * python/python-internal.h: Add declarations for new functions.
6673 * python/python.c (_initialize_python): Invoke
6674 gdbpy_initialize_xmethods.
6675 * python/lib/gdb/__init__.py (xmethods): New
6676 attribute.
6677 * python/lib/gdb/xmethod.py: New file.
6678 * python/lib/gdb/command/xmethods.py: New file.
6679
58992dc5
SC
66802014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6681
6682 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6683 best match method returned by find_overload_match is an xmethod.
6684 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6685 the best matching operator returned by find_overload_match is an
6686 xmethod.
6687 * valops.c: #include "extension.h".
6688 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6689 Return void. The list of matching source methods is returned in
6690 "fn_list" and a vector of matching debug method workers is
6691 returned in "xm_worker_vec". Update all callers.
6692 (value_find_oload_method_list): Likewise.
6693 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6694 non-NULL, then the index of the best matching method in this
6695 vector is returned. Update all callers.
6696 (find_overload_match): Include xmethods while performing overload
6697 resolution.
6698
e81e7f5e
SC
66992014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6700
6701 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6702 * extension-priv.h (struct extension_language_ops): Add the
6703 xmethod interface.
6704 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6705 get_matching_xmethod_workers, get_xmethod_argtypes,
6706 invoke_xmethod, free_xmethod_worker,
6707 free_xmethod_worker_vec): New functions.
6708 * extension.h: #include "common/vec.h".
6709 New function declarations.
6710 (struct xmethod_worker): New struct.
6711 (VEC (xmethod_worker_ptr)): New vector type.
6712 (xmethod_worker_ptr): New typedef.
6713 (xmethod_worker_vec): Likewise.
6714 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6715 builtin_type.
6716 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6717 (struct builtin_type): New field "xmethod".
6718 * valarith.c (value_ptradd): Assert that the value argument is not
6719 lval_xcallable.
6720 * valops.c (value_must_coerce_to_target): Return 0 for
6721 lval_xcallable values.
6722 * value.c (struct value): New field XM_WORKER in the field
6723 LOCATION.
6724 (value_address, value_raw_address): Return 0 for lval_xcallable
6725 values.
6726 (set_value_address): Assert that the value is not an
6727 lval_xcallable.
6728 (value_free): Free the associated xmethod worker when freeing
6729 lval_xcallable values.
6730 (set_value_component_location): Assert that the WHOLE value is not
6731 lval_xcallable.
6732 (value_of_xmethod, call_xmethod): New functions.
6733 * value.h: Declare "struct xmethod_worker".
6734 Declare new functions value_of_xmethod, call_xmethod.
6735
ef370185
JB
67362014-06-03 Joel Brobecker <brobecker@adacore.com>
6737 Pedro Alves <palves@redhat.com>
6738
6739 PR breakpoints/17000
6740 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6741 New function, extracted from software_breakpoint_inserted_here_p.
6742 (software_breakpoint_inserted_here_p): Replace factored out code
6743 by call to find_non_raw_software_breakpoint_inserted_here.
6744 (bp_target_info_copy_insertion_state): New function.
6745 (bkpt_insert_location): Handle the case of a single-step
6746 breakpoint already inserted at the same address.
6747 (bkpt_remove_location): Handle the case of a single-step
6748 breakpoint still inserted at the same address.
6749 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6750 breakpoint already inserted at the same address.
6751 (deprecated_remove_raw_breakpoint): Handle the case of a
6752 non-raw breakpoint still inserted at the same address.
6753 (find_single_step_breakpoint): New function, extracted from
6754 single_step_breakpoint_inserted_here_p.
6755 (find_single_step_breakpoint): New function,
6756 factored out from single_step_breakpoint_inserted_here_p.
6757 (single_step_breakpoint_inserted_here_p): Reimplement.
6758
1e2ccb61
BM
67592014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6760
6761 Pushed by Joel Brobecker <brobecker@adacore.com>
6762 * source.c (show_substitute_path_command): Fix display of matching
6763 substitution rules.
6764
d3448d85
GB
67652014-06-03 Gary Benson <gbenson@redhat.com>
6766
6767 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6768
06eb1586
DE
67692014-06-02 Doug Evans <xdje42@gmail.com>
6770
6771 Add parameter support for Guile.
6772 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6773 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6774 (scm-param.o): New rule.
6775 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6776 (gdbscm_misc_error): Declare.
6777 (gdbscm_canonicalize_command_name): Declare.
6778 (gdbscm_scm_to_host_string): Declare.
6779 (gdbscm_scm_from_host_string): Declare.
6780 (gdbscm_initialize_parameters): Declare.
6781 * guile/guile.c (initialize_gdb_module): Call
6782 gdbscm_initialize_parameters.
6783 * guile/lib/gdb.scm: Export parameter symbols.
6784 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6785 cmdscm_canonicalize_name and made public. All callers updated.
6786 * guile/scm-exception.c (gdbscm_misc_error): New function.
6787 * guile/scm-param.c: New file.
6788 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6789 (gdbscm_scm_to_host_string): New function.
6790 (gdbscm_scm_from_host_string): New function.
6791 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6792
e698b8c4
DE
67932014-06-02 Doug Evans <xdje42@gmail.com>
6794
6795 Add command support for Guile.
6796 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6797 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6798 (scm-cmd.o): New rule.
6799 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6800 (gdbscm_user_error_p): Declare.
6801 (gdbscm_parse_command_name): Declare.
6802 (gdbscm_valid_command_class_p): Declare.
6803 (gdbscm_initialize_commands): Declare.
6804 * guile/guile.c (initialize_gdb_module): Call
6805 gdbscm_initialize_commands.
6806 * guile/lib/gdb.scm: Export command symbols.
6807 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6808 (throw-user-error): New function.
6809 * guile/scm-cmd.c: New file.
6810 * guile/scm-exception.c (user_error_symbol): New static global.
6811 (gdbscm_user_error_p): New function.
6812 (gdbscm_initialize_exceptions): Set user_error_symbol.
6813 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6814
fb1f94b0
PM
68152014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6816
6817 * top.c (command_loop): Handle comments here...
6818 (command_line_input): ... not here.
6819
ded03782
DE
68202014-06-02 Doug Evans <xdje42@gmail.com>
6821
6822 Add progspace support for Guile.
6823 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6824 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6825 (scm-progspace.o): New rule.
6826 * guile/guile-internal.h (pspace_smob): New typedef.
6827 (psscm_pspace_smob_pretty_printers): Declare.
6828 (psscm_pspace_smob_from_pspace): Declare.
6829 (psscm_scm_from_pspace): Declare.
6830 * guile/guile.c (initialize_gdb_module): Call
6831 gdbscm_initialize_pspaces.
6832 * guile/lib/gdb.scm: Export progspace symbols.
6833 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6834 support.
6835 (append-pretty-printer!): Ditto.
6836 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6837 Implement.
6838 * guile/scm-progspace.c: New file.
6839
397998fc
AM
68402014-06-03 Alan Modra <amodra@gmail.com>
6841
6842 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6843 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6844
6aa5f3a6
DE
68452014-06-02 Doug Evans <dje@google.com>
6846
6847 Add support for skeletonless type units.
6848 * dwarf2read.c (struct dwarf2_per_objfile): New member
6849 n_allocated_type_units.
6850 (struct dwarf2_per_objfile) <tu_stats>: New member
6851 nr_all_type_units_reallocs.
6852 (create_signatured_type_table_from_index): Initialize
6853 n_allocated_type_units
6854 (create_all_type_units): Ditto.
6855 (add_type_unit): Move up in file. New arg slot.
6856 All callers updated. Increase space for all_type_units more
6857 efficiently.
6858 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6859 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6860 (lookup_dwp_signatured_type): Ditto.
6861 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6862 All callers updated.
6863 (build_type_psymtabs_1): Leave type_unit_groups as
6864 NULL if no TUs present.
6865 (print_tu_stats): New function.
6866 (process_skeletonless_type_unit): New function.
6867 (process_dwo_file_for_skeletonless_type_units): New
6868 function.
6869 (process_skeletonless_type_units): New function.
6870 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6871 Call print tu_stats if debugging enabled.
6872
41fac0cf
PA
68732014-06-02 Pedro Alves <palves@redhat.com>
6874
6875 * breakpoint.c (build_target_command_list): Don't build a command
6876 list if we have any duplicate location that isn't a dprintf.
6877
cd1608cc
PA
68782014-06-02 Pedro Alves <palves@redhat.com>
6879
6880 * breakpoint.c (dprintf_breakpoint_hit): New function.
6881 (initialize_breakpoint_ops): Install it as dprintf's
6882 breakpoint_hit method.
6883
486ef3b9
JB
68842014-06-02 Joel Brobecker <brobecker@adacore.com>
6885
6886 * source.c (substitute_path_rule_matches): Simplify using
6887 filename_ncmp instead of FILENAME_CMP.
6888
230cd560
JB
68892014-06-02 Joel Brobecker <brobecker@adacore.com>
6890
6891 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6892
16954d5d
LC
68932014-06-01 Ludovic Courtès <ludo@gnu.org>
6894
6895 * configure.ac: When Guile is available, check for the
6896 availability of 'scm_new_smob'.
6897 * configure, config.h.in: Regenerate.
6898 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6899 function.
6900
53e8a631
AB
69012014-05-30 Andrew Burgess <aburgess@broadcom.com>
6902
6903 * frame.c (struct frame_info): Add stop_string field.
6904 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6905 (get_prev_frame_always): Old content moved into
6906 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6907 TRY_CATCH, handle MEMORY_ERROR exceptions.
6908 (frame_stop_reason_string): New function definition.
6909 * frame.h (unwind_stop_reason_to_string): Extend comment to
6910 mention frame_stop_reason_string.
6911 (frame_stop_reason_string): New function declaration.
6912 * stack.c (frame_info): Switch to frame_stop_reason_string.
6913 (backtrace_command_1): Switch to frame_stop_reason_string.
6914 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6915 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6916 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6917
70e38b8e
AB
69182014-05-30 Andrew Burgess <aburgess@broadcom.com>
6919
6920 * frame.c (frame_stop_reason_string): Rename to ...
6921 (unwind_stop_reason_to_string): this.
6922 * frame.h (frame_stop_reason_string): Rename to ...
6923 (unwind_stop_reason_to_string): this.
6924 * stack.c (frame_info): Update call to frame_stop_reason_string.
6925 (backtrace_command_1): Likewise.
6926 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6927 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6928
938f0e2f
AB
69292014-05-30 Andrew Burgess <aburgess@broadcom.com>
6930
6931 * frame.c (remove_prev_frame): New function.
6932 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6933 remove_prev_frame.
6934
a09dd441
PA
69352014-05-29 Pedro Alves <palves@redhat.com>
6936
6937 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6938 and make it const. When a single-step decays to a continue,
6939 clear 'step', not 'hw_step'. Pass whether the caller wanted
6940 to step to user_visible_resume_ptid, not what we ask the
6941 target to do.
6942
bdc36728
PA
69432014-05-29 Pedro Alves <palves@redhat.com>
6944
6945 * infrun.c (process_event_stop_test, handle_step_into_function)
6946 (handle_step_into_function_backward): Adjust.
6947 Don't set the even thread's stop_step and call stop_waiting before
6948 calling end_stepping_range. Instead do that ...
6949 (end_stepping_range): ... here. Take an ecs pointer parameter.
6950
22bcd14b
PA
69512014-05-29 Pedro Alves <palves@redhat.com>
6952
6953 * infrun.c (stop_stepping): Rename to ...
6954 (stop_waiting): ... this.
6955 (proceed): Update comment.
6956 (process_event_stop_test, handle_inferior_event)
6957 (handle_signal_stop, handle_step_into_function)
6958 (handle_step_into_function_backward): Update.
6959
4ae57c05
PA
69602014-05-29 Pedro Alves <palves@redhat.com>
6961
6962 * infcall.c (run_inferior_call): Don't check whether the current
6963 thread is running after the proceed call.
6964
329ea579
PA
69652014-05-29 Pedro Alves <palves@redhat.com>
6966 Tom Tromey <tromey@redhat.com>
6967
6968 * NEWS: Mention "maint set target-async", "set mi-async", and that
6969 background execution commands are now always available.
6970 * target.h (target_async_permitted): Update comment.
6971 * target.c (target_async_permitted, target_async_permitted_1):
6972 Default to 1.
6973 (set_target_async_command): Rename to ...
6974 (maint_set_target_async_command): ... this.
6975 (show_target_async_command): Rename to ...
6976 (maint_show_target_async_command): ... this.
6977 (_initialize_target): Adjust.
6978 * infcmd.c (prepare_execution_command): Make extern.
6979 * inferior.h (prepare_execution_command): Declare.
6980 * infrun.c (set_observer_mode): Leave target async alone.
6981 * mi/mi-interp.c (mi_interpreter_init): Install
6982 mi_on_sync_execution_done as sync_execution_done observer.
6983 (mi_on_sync_execution_done): New function.
6984 (mi_execute_command_input_handler): Don't print the prompt if we
6985 just started a synchronous command with an async target.
6986 (mi_on_resume): Check sync_execution before printing prompt.
6987 * mi/mi-main.h (mi_async_p): Declare.
6988 * mi/mi-main.c: Include gdbcmd.h.
6989 (mi_async_p): New function.
6990 (mi_async, mi_async_1): New globals.
6991 (set_mi_async_command, show_mi_async_command, mi_async): New
6992 functions.
6993 (exec_continue): Call prepare_execution_command.
6994 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6995 (mi_execute_async_cli_command): Use mi_async_p.
6996 (_initialize_mi_main): Install "set mi-async". Make
6997 "target-async" a deprecated alias.
6998
92bcb5f9
PA
69992014-05-29 Pedro Alves <palves@redhat.com>
7000
7001 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7002 (_initialize_cli_interp): Adjust.
7003 * event-loop.c: Include "observer.h".
7004 (start_event_loop): Notify 'command_error' observers instead of
7005 calling display_gdb_prompt. Remove FIXME comment.
7006 * event-top.c (display_gdb_prompt): Remove call into the
7007 interpreters.
7008 * inf-loop.c: Include "observer.h".
7009 (inferior_event_handler): Notify 'command_error' observers instead
7010 of calling display_gdb_prompt.
7011 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7012 observers instead of calling display_gdb_prompt.
7013 * interps.c (interp_set): Don't call display_gdb_prompt.
7014 (current_interp_display_prompt_p): Delete.
7015 * interps.h (interp_prompt_p): Delete declaration.
7016 (interp_prompt_p_ftype): Delete.
7017 (struct interp_procs) <prompt_proc_p>: Delete field.
7018 (current_interp_display_prompt_p): Delete declaration.
7019 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7020 (_initialize_mi_interp): Adjust.
7021 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7022 'command_error' observers.
7023 (tui_on_sync_execution_done, tui_on_command_error): New
7024 functions.
7025 (tui_display_prompt_p): Delete.
7026 (_initialize_tui_interp): Adjust.
7027
fd664c91
PA
70282014-05-29 Pedro Alves <palves@redhat.com>
7029
7030 PR gdb/13860
7031 * cli/cli-interp.c: Include infrun.h and observer.h.
7032 (cli_uiout, cli_interp): New globals.
7033 (cli_on_signal_received, cli_on_end_stepping_range)
7034 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7035 functions.
7036 (cli_interpreter_init): Install them as 'end_stepping_range',
7037 'signal_received' 'signal_exited', 'exited' and 'no_history'
7038 observers.
7039 (_initialize_cli_interp): Remove cli_interp local.
7040 * infrun.c (handle_inferior_event): Call the several stop reason
7041 observers instead of printing the stop reason directly.
7042 (end_stepping_range): New function.
7043 (print_end_stepping_range_reason, print_signal_exited_reason)
7044 (print_exited_reason, print_signal_received_reason)
7045 (print_no_history_reason): Make static, and add an uiout
7046 parameter. Print to that instead of to CURRENT_UIOUT.
7047 * infrun.h (print_end_stepping_range_reason)
7048 (print_signal_exited_reason, print_exited_reason)
7049 (print_signal_received_reason print_no_history_reason): New
7050 declarations.
7051 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7052 'mi_uiout'.
7053 <cli_uiout>: New field.
7054 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7055 uiout for CLI output. Install 'signal_received',
7056 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7057 observers.
7058 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7059 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7060 (mi_on_no_history): New functions.
7061 (ui_out_free_cleanup): Delete function.
7062 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7063 instead use the one already stored in the MI interpreter data.
7064 (mi_ui_out): Adjust.
7065 * tui/tui-interp.c: Include infrun.h and observer.h.
7066 (tui_interp): New global.
7067 (tui_on_signal_received, tui_on_end_stepping_range)
7068 (tui_on_signal_exited, tui_on_exited)
7069 (tui_on_no_history): New functions.
7070 (tui_init): Install them as 'end_stepping_range',
7071 'signal_received' 'signal_exited', 'exited' and 'no_history'
7072 observers.
7073 (_initialize_tui_interp): Delete tui_interp local.
7074
8817a6f2
PA
70752014-05-29 Pedro Alves <palves@redhat.com>
7076
7077 PR gdb/15713
7078 * linux-nat.c (linux_nat_resume_callback): Rename the second
7079 parameter to 'except'. Skip LP if it points to EXCEPT.
7080 (linux_nat_resume): Don't mark the event lwp as not stopped
7081 before resuming sibling lwps. Instead ask
7082 linux_nat_resume_callback to skip the event lwp. Mark it as not
7083 stopped after actually resuming it.
7084 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7085 resuming it.
7086 (wait_lwp): Mark the lwp as stopped here.
7087 (stop_wait_callback): Mark the lwp as not stopped right after
7088 resuming it. Don't mark lwps as stopped here.
7089 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7090 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7091
251bde03
PA
70922014-05-29 Pedro Alves <palves@redhat.com>
7093
7094 PR PR15693
7095 * infrun.c (resume): Determine how much to resume depending on
7096 whether the caller wanted a step, not whether we can hardware step
7097 the target. Mark all threads that we intend to run as running,
7098 unless we're calling an inferior function.
7099 (normal_stop): If the thread is running an infcall, don't finish
7100 thread state.
7101 * target.c (target_resume): Don't mark threads as running here.
7102
7f3c0343
JB
71032014-05-28 Joel Brobecker <brobecker@adacore.com>
7104
7105 * serial.c (_initialize_serial): Remove support for
7106 the "set remotebaud" and "show remotebaud" commands.
7107 * NEWS: Add entry documenting the removal of that command.
7108
ee34b3f9
YQ
71092014-05-28 Yao Qi <yao@codesourcery.com>
7110
7111 * charset.c: Fix typo in comments.
7112
add6c04d
GB
71132014-05-27 Gary Benson <gbenson@redhat.com>
7114
7115 * utils.c (internal_vproblem): Prompt for a bug report.
7116
92c48fc5
AW
71172014-05-26 Andy Wingo <wingo@igalia.com>
7118
7119 * guile/scm-arch.c (arscm_mark_arch_smob):
7120 * guile/scm-block.c (bkscm_mark_block_smob)
7121 (bkscm_mark_block_syms_progress_smob):
7122 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7123 * guile/scm-exception.c (exscm_mark_exception_smob):
7124 * guile/scm-frame.c (frscm_mark_frame_smob):
7125 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7126 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7127 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7128 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7129 (ppscm_mark_pretty_printer_worker_smob):
7130 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7131 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7132 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7133 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7134 mark functions.
7135 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7136 function.
7137
b2715b27
AW
71382014-05-26 Andy Wingo <wingo@igalia.com>
7139 Doug Evans <xdje42@gmail.com>
7140
7141 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7142 empty_base_class. All uses updated.
7143 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7144 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7145 Adapt all callers.
7146 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7147 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7148 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7149 (gdbscm_gsmob_has_property_p, add_property_name)
7150 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7151 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7152 (gdb-object-has-property?, gdb-object-properties): Remove.
7153 (gdb-object-kind): Renamed from gsmob-kind.
7154
214ab2da
AW
71552014-05-26 Andy Wingo <wingo@igalia.com>
7156
7157 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7158 * configure: Regenerate.
7159
589fdceb
MM
71602014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7161
7162 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7163
67b5c0c1
MM
71642014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7165
7166 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7167 (replay_memory_access_read_only, replay_memory_access_read_write)
7168 (replay_memory_access_types, replay_memory_access)
7169 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7170 (cmd_set_record_btrace, cmd_show_record_btrace)
7171 (cmd_show_replay_memory_access): New.
7172 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7173 (record_btrace_remove_breakpoint): Replace
7174 record_btrace_allow_memory_access with replay_memory_access.
7175 (_initialize_record_btrace): Add commands.
7176 * NEWS: Announce it.
7177
036cd381
RR
71782014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7179
7180 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7181
c77c1e42
RR
71822014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7183
7184 * MAINTAINERS (Write After Approval): Move self back from
7185 paper trail.
7186
45741a9c
PA
71872014-05-22 Pedro Alves <palves@redhat.com>
7188
7189 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7190 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7191 (disable_randomization, enum exec_direction_kind)
7192 (execution_direction, stop_registers, start_remote)
7193 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7194 (wait_for_inferior, normal_stop, get_last_target_status)
7195 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7196 (insert_step_resume_breakpoint_at_sal)
7197 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7198 (set_step_info, print_stop_event, signal_stop_state)
7199 (signal_print_state, signal_pass_state, signal_stop_update)
7200 (signal_print_update, signal_pass_update)
7201 (update_signals_program_target, clear_exit_convenience_vars)
7202 (displaced_step_dump_bytes, update_observer_mode)
7203 (signal_catch_update, gdb_signal_from_command): Move
7204 declarations ...
7205 * infrun.h: ... to this new file.
7206 * amd64-tdep.c: Include infrun.h.
7207 * annotate.c: Include infrun.h.
7208 * arch-utils.c: Include infrun.h.
7209 * arm-linux-tdep.c: Include infrun.h.
7210 * arm-tdep.c: Include infrun.h.
7211 * break-catch-sig.c: Include infrun.h.
7212 * breakpoint.c: Include infrun.h.
7213 * common/agent.c: Include infrun.h instead of inferior.h.
7214 * corelow.c: Include infrun.h.
7215 * event-top.c: Include infrun.h.
7216 * go32-nat.c: Include infrun.h.
7217 * i386-tdep.c: Include infrun.h.
7218 * inf-loop.c: Include infrun.h.
7219 * infcall.c: Include infrun.h.
7220 * infcmd.c: Include infrun.h.
7221 * infrun.c: Include infrun.h.
7222 * linux-fork.c: Include infrun.h.
7223 * linux-nat.c: Include infrun.h.
7224 * linux-thread-db.c: Include infrun.h.
7225 * monitor.c: Include infrun.h.
7226 * nto-tdep.c: Include infrun.h.
7227 * procfs.c: Include infrun.h.
7228 * record-btrace.c: Include infrun.h.
7229 * record-full.c: Include infrun.h.
7230 * remote-m32r-sdi.c: Include infrun.h.
7231 * remote-mips.c: Include infrun.h.
7232 * remote-notif.c: Include infrun.h.
7233 * remote-sim.c: Include infrun.h.
7234 * remote.c: Include infrun.h.
7235 * reverse.c: Include infrun.h.
7236 * rs6000-tdep.c: Include infrun.h.
7237 * s390-linux-tdep.c: Include infrun.h.
7238 * solib-irix.c: Include infrun.h.
7239 * solib-osf.c: Include infrun.h.
7240 * solib-svr4.c: Include infrun.h.
7241 * target.c: Include infrun.h.
7242 * top.c: Include infrun.h.
7243 * windows-nat.c: Include infrun.h.
7244 * mi/mi-interp.c: Include infrun.h.
7245 * mi/mi-main.c: Include infrun.h.
7246 * python/py-threadevent.c: Include infrun.h.
7247
98eb56a4
PA
72482014-05-22 Pedro Alves <palves@redhat.com>
7249
7250 * infrun.c (handle_inferior_event): Store the exit code for
7251 --return-child-result here, instead of ...
7252 (print_exited_reason): ... here.
7253
17b2616c
PA
72542014-05-21 Pedro Alves <palves@redhat.com>
7255
7256 PR gdb/13860
7257 * gdbthread.h (struct thread_control_state): New field
7258 `command_interp'.
7259 * infrun.c (follow_fork): Copy the new thread control field to the
7260 child fork thread.
7261 (clear_proceed_status_thread): Clear the new thread control field.
7262 (proceed): Set the new thread control field.
7263 * interps.h (command_interp): Declare.
7264 * interps.c (command_interpreter): New global.
7265 (command_interp): New function.
7266 (interp_exec): Set `command_interpreter' while here.
7267 * cli-out.c (cli_uiout_dtor): New function.
7268 (cli_ui_out_impl): Install it.
7269 * mi/mi-interp.c: Include cli-out.h.
7270 (mi_cmd_interpreter_exec): Add comment.
7271 (restore_current_uiout_cleanup): New function.
7272 (ui_out_free_cleanup): New function.
7273 (mi_on_normal_stop): If finishing an execution command started by
7274 a CLI command, or any kind of breakpoint-like event triggered,
7275 print the stop event to the output (CLI) stream.
7276 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7277
5166082f
PA
72782014-05-21 Pedro Alves <palves@redhat.com>
7279
7280 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7281 current source line having changed.
7282 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7283 * infrun.c (normal_stop): Adjust call to
7284 set_current_sal_from_frame.
7285 * source.c (clear_lines_listed_range): New function.
7286 (set_current_source_symtab_and_line, identify_source_line): Clear
7287 the lines listed range.
7288 (line_info): Handle the first "info line" after the current source
7289 line having changed.
7290 * stack.c (print_stack_frame): Remove center handling.
7291 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7292 center sal.line.
7293
c1ee2fb3
PA
72942014-05-21 Pedro Alves <palves@redhat.com>
7295
7296 * inf-child.c (inf_child_mourn_inferior): New function.
7297 * inf-child.h (inf_child_mourn_inferior): New declaration.
7298 * darwin-nat.c (darwin_mourn_inferior): Use
7299 inf_child_mourn_inferior.
7300 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7301 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7302 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7303 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7304 * windows-nat.c (windows_mourn_inferior): Likewise.
7305
5c6d4fb2
DE
73062014-05-21 Doug Evans <xdje42@gmail.com>
7307
250748cb 7308 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7309
4a2722c5
DE
73102014-05-21 Doug Evans <xdje42@gmail.com>
7311
17292b30 7312 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7313 (gdbscm_out_of_range_error): Ditto.
7314 (gdbscm_memory_error): Ditto.
250748cb
DE
7315 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7316 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7317 (gdbscm_out_of_range_error): Update.
7318 (gdbscm_memory_error): Update.
7319 (gdbscm_scm_to_target_string_unsafe): Delete.
7320
6a3cb8e8
PA
73212014-05-21 Pedro Alves <palves@redhat.com>
7322
7323 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7324 globals.
7325 (inf_child_open_target): New function.
7326 (inf_child_open): Use inf_child_open_target to push the target
7327 instead of erroring out.
7328 (inf_child_disconnect, inf_child_close)
7329 (inf_child_maybe_unpush_target): New functions.
7330 (inf_child_target): Install inf_child_disconnect and
7331 inf_child_close. Store a pointer to the returned object.
7332 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7333 declarations.
7334 * target.c (auto_connect_native_target): New global.
7335 (show_default_run_target): New function.
7336 (find_default_run_target): Return NULL if automatically connecting
7337 to the native target is disabled.
7338 (_initialize_target): Install set/show auto-connect-native-target.
7339 * NEWS: Mention "set auto-connect-native-target", and "target
7340 native".
7341 * linux-nat.c (super_close): New global.
7342 (linux_nat_close): Call super_close.
7343 (linux_nat_add_target): Store a pointer to the base class's
7344 to_close method.
7345 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7346 inf_child_maybe_unpush.
7347 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7348 already pushed.
7349 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7350 the inferior. Use inf_child_maybe_unpush_target.
7351 (inf_ttrace_attach): Don't push the target if it is already
7352 pushed.
7353 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7354 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7355 after mourning the inferior. Use inf_child_maybe_unpush_target.
7356 (darwin_attach_pid): Don't push the target if it is already
7357 pushed.
7358 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7359 mourning the inferior. Use inf_child_maybe_unpush_target.
7360 (gnu_detach): Use inf_child_maybe_unpush_target.
7361 * go32-nat.c (go32_create_inferior): Don't push the target if it
7362 is already pushed.
7363 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7364 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7365 (procfs_open): Rename to ...
7366 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7367 comments. Can target_preopen before changing node. Call
7368 inf_child_open_target to push the target explicitly.
7369 (procfs_attach): Don't push the target if it is already pushed.
7370 (procfs_detach): Use inf_child_maybe_unpush_target.
7371 (procfs_create_inferior): Don't push the target if it is already
7372 pushed.
7373 (nto_native_ops): New global.
7374 (procfs_open): Reimplement.
7375 (procfs_native_open): New function.
7376 (init_procfs_targets): Install procfs_native_open as to_open of
7377 "target native". Store a pointer to the "native" target in
7378 nto_native_ops.
7379 * procfs.c (procfs_attach): Don't push the target if it is already
7380 pushed.
7381 (procfs_detach): Use inf_child_maybe_unpush_target.
7382 (procfs_mourn_inferior): Only unpush the target after mourning the
7383 inferior. Use inf_child_maybe_unpush_target.
7384 (procfs_init_inferior): Don't push the target if it is already
7385 pushed.
7386 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7387 if it is already pushed.
7388
930ee1b1
PA
73892014-05-21 Pedro Alves <palves@redhat.com>
7390
7391 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7392 and "procfs" targets are now called "native" instead.
7393
1f5d1b13
PA
73942014-05-21 Pedro Alves <palves@redhat.com>
7395
7396 * go32-nat.c (go32_open): Delete.
7397 (go32_target): Don't override the to_open method.
7398
132f8e03
PA
73992014-05-21 Pedro Alves <palves@redhat.com>
7400
7401 * nto-procfs.c (procfs_can_run): New function.
7402 (nto_procfs_ops): New global.
7403 (init_procfs_targets): New, based on procfs_target. Install
7404 "target native" in addition to "target procfs".
7405 (_initialize_procfs): Call init_procfs_targets instead of adding
7406 the target here.
7407
03c136c3
PA
74082014-05-21 Pedro Alves <palves@redhat.com>
7409
7410 * windows-nat.c (windows_target): Don't override to_shortname,
7411 to_longname or to_doc.
7412
a635d0f3
PA
74132014-05-21 Pedro Alves <palves@redhat.com>
7414
7415 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7416 to_doc.
7417
4f9b5133
PA
74182014-05-21 Pedro Alves <palves@redhat.com>
7419
7420 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7421 to_shortname, to_longname or to_doc.
7422
bc85afde
PA
74232014-05-21 Pedro Alves <palves@redhat.com>
7424
7425 * go32-nat.c (go32_target): Don't override to_shortname,
7426 to_longname or to_doc.
7427
4ebfc96e
PA
74282014-05-21 Pedro Alves <palves@redhat.com>
7429
7430 * inf-child.c (inf_child_open): Remove mention of "child".
7431 (inf_child_target): Rename target to "native" instead of "child".
7432
2648dfed
AA
74332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7434
7435 * Makefile.in (SFILES): Delete "regset.c".
7436 (COMMON_OBS): Delete "regset.o".
7437 * regset.c: Remove.
7438 * regset.h (regset_alloc): Delete prototype.
7439
b13feb94
AA
74402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7441
7442 * sparc-linux-tdep.c (sparc32_linux_gregset)
7443 (sparc32_linux_fpregset): New static regset structures.
7444 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7445 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7446 'fpregset' fields.
7447 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7448 (sparc64_linux_fpregset): New static regset structures.
7449 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7450 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7451 New static regset structures.
7452 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7453 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7454 New static regset structures.
7455 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7456 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7457 New static regset structures.
7458 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7459 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7460 New static regset structures.
7461 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7462
b4fd25c9
AA
74632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7464
7465 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7466 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7467 register maps ("regmaps") from "*regset" to "*regmap". Do this
7468 for all regmap types and variables.
7469 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7470 (sparc32_linux_supply_core_gregset)
7471 (sparc32_linux_collect_core_gregset)
7472 (sparc32_linux_supply_core_fpregset)
7473 (sparc32_linux_collect_core_fpregset): Likewise.
7474 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7475 (sparc_gregmap, sparc_fpregmap): ... these.
7476 (sparc_supply_gregset, sparc_collect_gregset)
7477 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7478 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7479 (_initialize_sparc_nat): Rename regmaps.
7480 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7481 (sparc_gregmap, sparc_fpregmap): ... these.
7482 (sparc_supply_gregset, sparc_collect_gregset)
7483 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7484 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7485 Rename macros to...
7486 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7487 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7488 Likewise.
7489 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7490 Rename to...
7491 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7492 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7493 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7494 regmaps.
7495 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7496 (sparc32_bsd_fpregset): Rename to...
7497 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7498 (sparc32_bsd_fpregmap): ... these.
7499 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7500 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7501 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7502 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7503 (struct sparc_gregmap, struct sparc_fpregmap)
7504 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7505 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7506 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7507 (sparc32_supply_regset, sparc32_collect_gregset)
7508 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7509 prototypes.
7510 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7511 (sparc64_linux_ptrace_gregmap): ... this.
7512 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7513 (_initialize_sparc64_linux_nat): Rename regmaps.
7514 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7515 (sparc64_linux_core_gregmap): ... this.
7516 (sparc64_linux_supply_core_gregset)
7517 (sparc64_linux_collect_core_gregset)
7518 (sparc64_linux_supply_core_fpregset)
7519 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7520 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7521 (sparc64_sol2_fpregset): Rename to...
7522 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7523 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7524 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7525 regmaps.
7526 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7527 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7528 (sparc64_bsd_fpregset): Rename to...
7529 (struct sparc_gregmap, sparc64_sol2_gregmap)
7530 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7531 (sparc64_bsd_fpregmap): ... these.
7532 (sparc64_supply_gregset, sparc64_collect_gregset)
7533 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7534 prototypes.
7535 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7536 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7537 (sparc64fbsd_gregmap): ... this.
7538 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7539 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7540 Rename regmaps.
7541 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7542 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7543 (sparc64nbsd_collect_fpregset): Likewise.
7544 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7545 (sparc64nbsd_gregmap): ... this.
7546 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7547 regmaps.
7548 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7549 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7550 (sparc64obsd_gregmap): ... this.
7551 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7552 regmaps.
7553 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7554 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7555 (sparc32nbsd_gregmap): ... this.
7556 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7557 regmaps.
7558
8fea3224
AA
75592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7560
7561 * score-tdep.c (score7_linux_gregset): New static regset
7562 structure.
7563 (score7_linux_regset_from_core_section): Remove dynamic regset
7564 allocation.
7565 (score_gdbarch_init): Drop allocation of tdep structure.
7566 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7567
24534243
AA
75682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7569
7570 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7571 regset structures.
7572 (am33_regset_from_core_section): Remove dynamic regset
7573 allocations.
7574
b7195f27
AA
75752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7576
7577 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7578 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7579 structures.
7580 (mips_linux_regset_from_core_section): Remove dynamic regset
7581 allocations.
7582 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7583 'gregset64', 'fpregset', and 'fpregset64'.
7584 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7585 deleted tdep fields.
7586
ecc37a5a
AA
75872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7588
7589 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7590 regset structures.
7591 (amd64_regset_from_core_section): Remove dynamic regset
7592 allocations.
7593 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7594 structure.
7595 (amd64obsd_regset_from_core_section): Remove dynamic regset
7596 allocation.
7597 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7598 Likewise.
7599 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7600 x86-common regset supply function.
7601 * i386-tdep.c (i386_collect_gregset): Make static.
7602 (i386_gregset): New global regset structure.
7603 (i386_fpregset, i386_xstateregset): New static regset structures.
7604 (i386_regset_from_core_section): Remove dynamic regset
7605 allocations.
7606 (i386_gdbarch_init): Remove initialization of tdep fields
7607 'gregset', 'fpregset', and 'xstateregset'.
7608 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7609 'fpregset', and 'xstateregset'.
7610 (i386_collect_gregset): Remove prototype.
7611 (i386_gregset): New declaration.
7612 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7613 structure.
7614 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7615 allocation.
7616
b7611c43
AA
76172014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7618
7619 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7620 (arm_linux_vfpregset): New static regset structures.
7621 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7622 regset structures.
7623 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7624 and 'vfpregset' fields.
7625
a069a2bd
AA
76262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7627
7628 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7629 (aarch64_linux_fpregset): New static regset structures.
7630 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7631 of regset structures.
7632 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7633 'fpregset' fields.
7634
09424cff
AA
76352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7636
7637 * regset.h (struct regset): Remove gdbarch field.
7638 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7639 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7640 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7641 Likewise.
7642 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7643 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7644 (ppc32_linux_vsxregset): Likewise.
7645 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7646 via the regcache instead of the regset.
7647 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7648 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7649 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7650 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7651 Likewise.
7652
3ca7dae4
AA
76532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7654
7655 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7656 Constify structures.
7657 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7658 (alphanbsd_aout_gregset): Likewise.
7659 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7660 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7661 Likewise.
7662 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7663 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7664 Likewise.
7665 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7666 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7667 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7668 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7669 * m88k-tdep.c (m88k_gregset): Likewise.
7670 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7671 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7672 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7673 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7674 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7675 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7676 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7677 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7678 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7679 Likewise.
7680 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7681 * sh-tdep.h (sh_corefile_gregset): Likewise.
7682 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7683 * vax-tdep.c (vax_gregset): Likewise.
7684
5876f503
JK
76852014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7686
7687 Fix TLS access for -static -pthread.
7688 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7689 (try_thread_db_load_1): Initialize it.
7690 (thread_db_get_thread_local_address): Call it if LM is zero.
7691 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7692 * target.h (struct target_ops) (to_get_thread_local_address): Add
7693 load_module_addr comment.
7694
0256a6ac
PA
76952014-05-21 Pedro Alves <palves@redhat.com>
7696
7697 * dcache.c (dcache_read_memory_partial): If reading the cache line
7698 fails, fallback to reading just the memory the caller wanted.
7699
227533ac
DE
77002014-05-20 Doug Evans <dje@google.com>
7701
7702 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7703 instead of get_current_arch.
7704
936d2992
PA
77052014-05-20 Pedro Alves <palves@redhat.com>
7706
7707 * NEWS: Mention that compare-sections now works with all targets.
7708
7709 * remote.c (PACKET_qCRC): New enum value.
7710 (remote_verify_memory): Don't send qCRC if the target has no
7711 execution. Use packet_support/packet_ok. If the target doesn't
7712 support the qCRC packet, fallback to a deep memory copy.
7713 (compare_sections_command): Say "target image" instead of "remote
7714 executable".
7715 (_initialize_remote): Add PACKET_qCRC to the list of config
7716 packets that have no associated command. Extend comment.
7717 * target.c (simple_verify_memory, default_verify_memory): New
7718 function.
7719 * target.h (struct target_ops) <to_verify_memory>: Default to
7720 default_verify_memory.
7721 (simple_verify_memory): New declaration.
7722 * target-delegates.c: Regenerate.
7723
e59fa00f
MM
77242014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7725
7726 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7727
f2205de0
HZ
77282014-05-20 Hui Zhu <hui@codesourcery.com>
7729 Yao Qi <yao@codesourcery.com>
7730
7731 PR backtrace/16558
7732 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7733 and change address of sp and pc.
7734
c4e54771
TT
77352014-05-19 Tom Tromey <tromey@redhat.com>
7736
7737 * gdbtypes.c (rank_function): Use XNEWVEC.
7738 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7739
73051182
DE
77402014-05-19 Doug Evans <dje@google.com>
7741
7742 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7743 build_type_unit_groups and moved closer to only caller. Remove
7744 arguments. All references updated. Remove outdated .gdb_index
7745 comment.
7746 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7747 build_type_psymtabs_1.
7748
8832e7e3
DE
77492014-05-19 Doug Evans <dje@google.com>
7750
7751 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7752 n_type_unit_groups, all_type_unit_groups. All uses removed.
7753 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7754 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7755 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7756 (add_type_unit_group_to_table): Delete.
7757
cd8ae15e
DE
77582014-05-19 Doug Evans <dje@google.com>
7759
7760 * eval.c (evaluate_subexp_standard): Add some comments.
7761
08f4850b
DE
77622014-05-17 Doug Evans <xdje42@gmail.com>
7763
7764 * progspace.c (remove_program_space): Delete, unused.
7765 * progspace.h (remove_program_space): Ditto.
7766
bed8455c
DE
77672014-05-17 Doug Evans <xdje42@gmail.com>
7768
7769 * inferior.c (prune_inferiors): Fix comment.
7770 (remove_inferior_command): Call prune_program_spaces.
7771
8d551b02
DE
77722014-05-16 Doug Evans <dje@google.com>
7773
7774 New command line option -D.
7775 * NEWS: Mention it.
7776 * main.c (set_gdb_data_directory): New function.
7777 (captured_main): Recognize -D. Flag error for --data-directory "".
7778 Call set_gdb_data_directory.
7779 (print_gdb_help): Print --data-directory, -D.
7780 * main.h (set_gdb_data_directory): Declare.
7781 * top.c (staged_gdb_datadir): New static global.
7782 (set_gdb_datadir): Call set_gdb_data_directory
7783 (show_gdb_datadir): New function.
7784 (init_main): Update init of data-directory parameter.
7785
18848e28
GF
77862014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7787
7788 Import the "dirfd" gnulib module.
7789 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7790 * gnulib/aclocal.m4: Update.
7791 * gnulib/config.in: Update.
7792 * gnulib/configure: Update.
7793 * gnulib/import/Makefile.am: Update.
7794 * gnulib/import/Makefile.in: Update.
7795 * gnulib/import/dirfd.c: New.
7796 * gnulib/import/m4/dirfd.m4: New.
7797 * gnulib/import/m4/gnulib-cache.m4: Update.
7798 * gnulib/import/m4/gnulib-comp.m4: Update.
7799
95c64f92
YQ
78002014-05-16 Pierre Muller <muller@sourceware.org>
7801 Yao Qi <yao@codesourcery.com>
7802
7803 * valprint.c (print_wchar): Move the code on checking whether
7804 W is a printable wide char to the default branch of switch
7805 statement below. Call wchar_printable instead of gdb_iswprint.
7806
cac395ea
TM
78072014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7808
19679eca 7809 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7810 ldr.w and ldrd instructions.
7811
83655187
DE
78122014-05-15 Doug Evans <dje@google.com>
7813
7814 * dwarf2read.c (read_structure_type): Delete outdated comments.
7815
dd756689
TT
78162014-05-14 Tom Tromey <tromey@redhat.com>
7817
7818 * macrocmd.c (print_macro_definition): Reindent.
7819
75ddda77
DE
78202014-05-13 Doug Evans <xdje42@gmail.com>
7821
7822 * python/py-cmd.c (cmdpy_completer): Add comment.
7823 (completers): Make const.
7824
b0f16a3e
SM
78252014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7826
7827 * infrun.c (resume): Remove should_resume (unused). Move up
7828 declaration of resume_ptid.
7829
033c3379
TT
78302014-05-13 Tom Tromey <tromey@redhat.com>
7831
7832 * language.h (unop_type_check): Remove.
7833 (binop_type_check): Don't declare.
7834
9b44a3a5
AA
78352014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7836
7837 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7838 call to regcache_raw_collect.
7839
303a33fa
SM
78402014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7841
7842 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7843 mi_console->quote as the quoting character.
7844
196100a0
SM
78452014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7846
7847 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7848
f989a1c8
TT
78492014-04-29 Tom Tromey <tromey@redhat.com>
7850
7851 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7852 "show debug varobj".
7853
9404b58f
KM
78542014-05-07 Kyle McMartin <kyle@redhat.com>
7855
7856 Pushed by Joel Brobecker <brobecker@adacore.com>.
7857 * aarch64-tdep.c (aarch64_software_single_step): New function.
7858 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7859 with aarch64_software_single_step.
7860
5e49ba57
JB
78612014-05-05 Joel Brobecker <brobecker@adacore.com>
7862
7863 GDB 7.7.1 released.
7864
c888a17d
KS
78652014-05-05 Keith Seitz <keiths@redhat.com>
7866
7867 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7868 variable or history value is successfully parsed.
7869
290a839c
YQ
78702014-05-05 Yao Qi <yao@codesourcery.com>
7871 Pedro Alves <palves@redhat.com>
7872
7873 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7874 address of blocks that intersects the requested range. Trim
7875 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7876 sections.
7877 * ctf.c (ctf_xfer_partial): Likewise.
7878
91256dc2
YQ
78792014-05-05 Yao Qi <yao@codesourcery.com>
7880
7881 * printcmd.c (display_command): Remove the check to
7882 target_has_execution.
7883
07284463
MK
78842014-05-03 Mark Kettenis <kettenis@gnu.org>
7885
7886 * ppcobsd-nat.c: Include "obsd-nat.h".
7887 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7888 add_target.
7889 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7890
30a1e6cc
SDJ
78912014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7892
7893 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7894 and 16-bit signed and unsigned arguments. Update comment.
7895 (stap_parse_probe_arguments): Extend code to handle such
7896 arguments. Use warning instead of complaint to notify about
7897 unrecognized bitness.
7898
f33da99a
SDJ
78992014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7900
7901 PR breakpoints/16889
7902 * stap-probe.c (stap_parse_probe_arguments): Simplify
7903 check for non-prefixed probes (i.e., probes whose
7904 arguments do not start with "N@"). Always set the
7905 argument type to a sane value.
7906
95cf3b38
DT
79072014-05-01 David Taylor <dtaylor@emc.com>
7908
7909 * remote.c (compare_sections_command): Add -r option to compare
7910 all loadable read-only sections.
7911
1cfdf534
SC
79122014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7913
7914 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7915 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7916 Update all callers.
7917 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7918 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7919 Remove unused CORE_ADDR argument. Update all callers.
7920
ca4f7f8b
PA
79212014-04-29 Pedro Alves <palves@redhat.com>
7922
7923 * remote.c (struct packet_config) <detect>: Extend comment.
7924 (add_packet_config_cmd): Don't set the config's detect or support
7925 fields here.
7926 (init_all_packet_configs): Also initialize the config's 'detect'
7927 field.
7928 (reset_all_packet_configs_support): New function.
7929 (remote_open_1): Call reset_all_packet_configs_support instead of
7930 init_all_packet_configs.
7931 (_initialize_remote): Initialize all packet configs. Assert that
7932 all packets have an associated command, except a few known
7933 outliers.
7934
11c1ba78
JB
79352014-04-28 Joel Brobecker <brobecker@adacore.com>
7936
7937 * dwarf2read.c (read_subrange_type): Handle dynamic
7938 DW_AT_lower_bound attributes.
7939
8739bc53
JB
79402014-04-28 Joel Brobecker <brobecker@adacore.com>
7941
7942 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7943 dynamic bounds before computing its upper bound.
7944 (ada_discrete_type_low_bound): Same as above with the lower bound.
7945
6f8a3220
JB
79462014-04-28 Joel Brobecker <brobecker@adacore.com>
7947
7948 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7949 range types. Adjust the array handling implementation to
7950 take advantage of this change.
7951 (resolve_dynamic_range): New function, mostly extracted from
7952 resolve_dynamic_bounds.
7953 (resolve_dynamic_array): New function, mostly extracted from
7954 resolve_dynamic_bounds.
7955 (resolve_dynamic_bounds): Delete.
7956 (resolve_dynamic_type): Reimplement. Add handling of
7957 TYPE_CODE_RANGE types.
7958
4d072ce4
JB
79592014-04-28 Joel Brobecker <brobecker@adacore.com>
7960
7961 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7962 handling of parallel ___XA types.
7963
52865325
JB
79642014-04-28 Joel Brobecker <brobecker@adacore.com>
7965
7966 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7967 unnecessary second call to static_unwrap_type.
7968
433e77fa
HZ
79692014-04-27 Hui Zhu <hui@codesourcery.com>
7970
7971 * stack.c (print_frame_info): Call do_gdb_disassembly with
7972 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7973
b51a69ee
DE
79742014-04-26 Doug Evans <xdje42@gmail.com>
7975
7976 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7977
7ae1a6a6
PA
79782014-04-25 Pedro Alves <palves@redhat.com>
7979
7980 PR server/16255
7981 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7982 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7983 and newline from built string.
7984 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7985 (linux_ptrace_attach_fail_reason): ... this.
7986 * linux-nat.c (linux_nat_attach): Adjust to use
7987 linux_ptrace_attach_fail_reason.
7988
4082afcc
PA
79892014-04-25 Pedro Alves <palves@redhat.com>
7990
7991 * remote.c (struct remote_state): Remove multi_process_aware,
7992 non_stop_aware, cond_tracepoints, cond_breakpoints,
7993 breakpoint_commands, fast_tracepoints, static_tracepoints,
7994 install_in_trace, disconnected_tracing,
7995 enable_disable_tracepoints, string_tracing, and
7996 augmented_libraries_svr4_read fields.
7997 (remote_multi_process_p): Move further below in the file.
7998 (struct packet_config): Add comments.
7999 (update_packet_config): Delete function.
8000 (show_packet_config_cmd): Use packet_config_support.
8001 (add_packet_config_cmd): Use NULL as set callback.
8002 (packet_ok): "set remote foo-packet"-style commands no longer
8003 change config->supported -- adjust.
8004 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8005 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8006 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8007 (PACKET_QNonStop, PACKET_multiprocess_feature)
8008 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8009 (PACKET_DisconnectedTracing_feature)
8010 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8011 (set_remote_protocol_packet_cmd): Delete function.
8012 (packet_config_support, packet_support): New functions.
8013 (set_remote_protocol_Z_packet_cmd): Don't call
8014 update_packet_config.
8015 (remote_query_attached, remote_pass_signals)
8016 (remote_program_signals, remote_threads_info)
8017 (remote_threads_extra_info, remote_start_remote): Use
8018 packet_support.
8019 (remote_start_remote): Use packet_config_support and
8020 packet_support.
8021 (init_all_packet_configs): Set all packets to unknown support,
8022 instead of calling update_packet_config.
8023 (remote_check_symbols): Use packet_support.
8024 (remote_supported_packet): Unconditionally set the packet config's
8025 support status.
8026 (remote_multi_process_feature, remote_non_stop_feature)
8027 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8028 (remote_breakpoint_commands_feature)
8029 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8030 (remote_install_in_trace_feature)
8031 (remote_disconnected_tracing_feature)
8032 (remote_enable_disable_tracepoint_feature)
8033 (remote_string_tracing_feature)
8034 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8035 (remote_protocol_features): Adjust to use remote_supported_packet
8036 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8037 "ConditionalTracepoints", "ConditionalBreakpoints",
8038 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8039 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8040 "EnableDisableTracepoints", and "tracenz".
8041 (remote_query_supported): Use packet_support.
8042 (remote_open_1): Adjust.
8043 (extended_remote_attach_1): Use packet_support. Switch on the
8044 result of packet_ok instead of checking whether the packet ended
8045 up disabled.
8046 (remote_vcont_resume): Use packet_support.
8047 (remote_resume, remote_stop_ns, fetch_register_using_p)
8048 (remote_prepare_to_store, store_register_using_P)
8049 (check_binary_download, remote_write_bytes): Use packet_support.
8050 (remote_vkill): Use packet_support. Switch on the result of
8051 packet_ok instead of checking whether the packet ended up
8052 disabled.
8053 (extended_remote_supports_disable_randomization): Use
8054 packet_support.
8055 (extended_remote_run): Switch on the result of packet_ok instead
8056 of checking whether the packet ended up disabled.
8057 (remote_insert_breakpoint, remote_remove_breakpoint)
8058 (remote_insert_watchpoint, remote_remove_watchpoint)
8059 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8060 packet_support.
8061 (remote_search_memory): Use packet_config_support.
8062 (remote_get_thread_local_address, remote_get_tib_address)
8063 (remote_hostio_send_command, remote_can_execute_reverse): Use
8064 packet_support.
8065 (remote_supports_cond_tracepoints)
8066 (remote_supports_cond_breakpoints)
8067 (remote_supports_fast_tracepoints)
8068 (remote_supports_static_tracepoints)
8069 (remote_supports_install_in_trace)
8070 (remote_supports_enable_disable_tracepoint)
8071 (remote_supports_string_tracing)
8072 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8073 the packet config says the feature is enabled or disabled.
8074 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8075 (remote_get_trace_status): Use packet_support.
8076 (remote_set_disconnected_tracing): Adjust to check whether the
8077 feature is enabled with packet_support.
8078 (remote_set_trace_buffer_size, remote_use_agent)
8079 (remote_can_use_agent, remote_supports_btrace): Use
8080 packet_support.
8081 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8082 Use packet_config_support.
8083 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8084 the packet config says the feature is enabled or disabled.
8085 (set_range_stepping): Use packet_support.
8086
bdb52a22
TT
80872014-04-25 Tom Tromey <tromey@redhat.com>
8088
8089 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8090 argument.
8091
e9475ead
SA
80922014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8093
8094 * NEWS: Mention support for C99 variable length arrays.
8095
82eacd52
JB
80962014-04-24 Joel Brobecker <brobecker@adacore.com>
8097
8098 * ada-lang.c (standard_exc): Expand introductory comment.
8099
01f9f808
MS
81002014-04-24 Michael Sturm <michael.sturm@mintel.com>
8101 Walfred Tedeschi <walfred.tedeschi@intel.com>
8102
8103 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8104 AVX512 registers.
8105 (amd64_linux_read_description): Add code to handle AVX512 xstate
8106 mask and return respective tdesc.
8107 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8108 and features/i386/x32-avx512-linux.c.
8109 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8110 (amd64_linux_core_read_description): Add code to handle AVX512
8111 xstate mask and return respective tdesc.
8112 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8113 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8114 calculation.
8115 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8116 (tdesc_amd64_avx512_linux): New prototype.
8117 (tdesc_x32_avx512_linux): Likewise.
8118 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8119 features/i386/x32-avx512.c.
8120 (amd64_ymm_avx512_names): New register names for pseudo
8121 registers YMM16-31.
8122 (amd64_ymmh_avx512_names): New register names for raw registers
8123 YMMH16-31.
8124 (amd64_k_names): New register names for K registers.
8125 (amd64_zmmh_names): New register names for ZMM raw registers.
8126 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8127 (amd64_xmm_avx512_names): New register names for XMM16-31
8128 registers.
8129 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8130 registers.
8131 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8132 if feature is present.
8133 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8134 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8135 (AMD64_NUM_REGS): Adjust to new number of registers.
8136 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8137 registers supplied via XSTATE by AVX512 registers.
8138 (i386_linux_read_description): Add case for AVX512.
8139 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8140 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8141 (i386_linux_core_read_description): Add case for AVX512.
8142 (i386_linux_init_abi): Install supported register note section
8143 for AVX512.
8144 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8145 AVX512.
8146 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8147 registers to be number of zmm7h + 1.
8148 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8149 * i386-tdep.c: Include features/i386/i386-avx512.c.
8150 (i386_zmm_names): Add ZMM pseudo register names array.
8151 (i386_zmmh_names): Add ZMM raw register names array.
8152 (i386_k_names): Add K raw register names array.
8153 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8154 registers. AVX512 has 16 more ZMM registers than there are YMM
8155 registers.
8156 (i386_zmmh_regnum_p): Add function to look up register number of
8157 ZMM raw registers.
8158 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8159 (i386_k_regnum_p): Likewise for K raw registers.
8160 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8161 registers added by AVX512.
8162 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8163 registers added by AVX512.
8164 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8165 added by AVX512.
8166 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8167 (i386_pseudo_register_name): Add ZMM pseudo registers.
8168 (i386_zmm_type): Construct and return vector registers type for ZMM
8169 registers.
8170 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8171 ZMM0-31 pseudo registers and K registers.
8172 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8173 and YMM16-31 registers from register cache.
8174 (i386_pseudo_register_write): Add code to write K, ZMM and
8175 YMM16-31 registers.
8176 (i386_register_reggroup_p): Add code to include/exclude AVX512
8177 registers in/from respective register groups.
8178 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8179 registers if feature is present in xcr0.
8180 (i386_gdbarch_init): Add code to initialize AVX512 feature
8181 variables in tdep structure, wire in pseudo registers and call
8182 initialize_tdesc_i386_avx512.
8183 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8184 variables.
8185 (i386_regnum): Add AVX512 registers.
8186 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8187 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8188 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8189 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8190 512 bits wide.
8191 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8192 (i386_ymm_avx512_regnum_p): Likewise.
8193 (i386_k_regnum_p): Likewise.
8194 (i386_zmm_regnum_p): Likewise.
8195 (i386_zmmh_regnum_p): Likewise.
8196 * i387-tdep.c : Update year in copyright notice.
8197 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8198 XSAVE buffer.
8199 (XSAVE_YMM_AVX512_ADDR): New macro.
8200 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8201 XSAVE buffer.
8202 (XSAVE_XMM_AVX512_ADDR): New macro.
8203 (xsave_avx512_k_offset): New table for K register offsets in
8204 XSAVE buffer.
8205 (XSAVE_AVX512_K_ADDR): New macro.
8206 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8207 in XSAVE buffer.
8208 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8209 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8210 buffer.
8211 (i387_collect_xsave): Add code to collect AVX512 registers from
8212 XSAVE buffer.
8213 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8214 of XMM16-31 registers.
8215 (I387_NUM_K_REGS): New define for number of K registers.
8216 (I387_K0_REGNUM): New define for K0 register number.
8217 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8218 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8219 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8220 registers.
8221 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8222 (I387_XMM16_REGNUM): New define for XMM16 register number.
8223 (I387_YMM0_REGNUM): New define for YMM0 register number.
8224 (I387_KEND_REGNUM): New define for last K register number.
8225 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8226 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8227 number.
8228 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8229 number.
8230 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8231 size.
8232 * features/Makefile: Add AVX512 related files.
8233 * features/i386/32bit-avx512.xml: New file.
8234 * features/i386/64bit-avx512.xml: Likewise.
8235 * features/i386/amd64-avx512-linux.c: Likewise.
8236 * features/i386/amd64-avx512-linux.xml: Likewise.
8237 * features/i386/amd64-avx512.c: Likewise.
8238 * features/i386/amd64-avx512.xml: Likewise.
8239 * features/i386/i386-avx512-linux.c: Likewise.
8240 * features/i386/i386-avx512-linux.xml: Likewise.
8241 * features/i386/i386-avx512.c: Likewise.
8242 * features/i386/i386-avx512.xml: Likewise.
8243 * features/i386/x32-avx512-linux.c: Likewise.
8244 * features/i386/x32-avx512-linux.xml: Likewise.
8245 * features/i386/x32-avx512.c: Likewise.
8246 * features/i386/x32-avx512.xml: Likewise.
8247 * regformats/i386/amd64-avx512-linux.dat: New file.
8248 * regformats/i386/amd64-avx512.dat: Likewise.
8249 * regformats/i386/i386-avx512-linux.dat: Likewise.
8250 * regformats/i386/i386-avx512.dat: Likewise.
8251 * regformats/i386/x32-avx512-linux.dat: Likewise.
8252 * regformats/i386/x32-avx512.dat: Likewise.
8253 * NEWS: Add note about new support for AVX512.
8254
8255
08351840
PA
82562014-04-23 Pedro Alves <palves@redhat.com>
8257
8258 * breakpoint.c (insert_bp_location): Tolerate errors if the
8259 breakpoint is set in a user-loaded objfile.
8260 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8261 location is marked shlib_disabled. If the breakpoint is set in a
8262 user-loaded objfile is a GDB-side memory breakpoint, validate it
8263 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8264 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8265 flag.
8266 * mem-break.c (memory_validate_breakpoint): New function.
8267 * objfiles.c (userloaded_objfile_contains_address_p): New
8268 function.
8269 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8270 * target.h (memory_validate_breakpoint): New declaration.
8271
076855f9
PA
82722014-04-23 Pedro Alves <palves@redhat.com>
8273
8274 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8275 the breakpoint is set in a shared library, only suppress
8276 errors for software breakpoints, not hardware breakpoints.
8277
483805cf
PA
82782014-04-22 Pedro Alves <palves@redhat.com>
8279
8280 * infrun.c (schedlock_applies): New function, factored out from
8281 find_thread_needs_step_over.
8282 (find_thread_needs_step_over): Use it.
8283 (switch_back_to_stepped_thread): Always clear trap_expected if the
8284 step over is finished. Return early if scheduler locking applies.
8285 Look for the stepping thread and a potential step-over thread with
8286 a single loop.
8287 (currently_stepping_or_nexting_callback): Delete.
8288
a75fef0e
NC
82892014-04-22 Nick Clifton <nickc@redhat.com>
8290
8291 * NEWS: Mention that ARM sim now supports tracing.
8292
48b6e87e
YQ
82932014-04-22 Yao Qi <yao@codesourcery.com>
8294
8295 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8296 to ...
8297 * tracefile.c (tracefile_fetch_registers): ... it. New
8298 function.
8299 * tracefile.h (tracefile_fetch_registers): Declare.
8300 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8301 tracefile_fetch_registers.
8302
17617f2d
EZ
83032014-04-19 Eli Zaretskii <eliz@gnu.org>
8304
8305 PR gdb/14018
8306 * windows-nat.c (thread_rec): Don't display a warning when
8307 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8308 fails for any reason, set th->suspended to -1, so that we don't
8309 try to resume such a thread. Also, don't return NULL in these
8310 cases, to avoid completely ruin the session due to "PC register is
8311 not available" error.
8312 (do_windows_fetch_inferior_registers): Check errors in
8313 GetThreadContext call.
8314 (windows_continue): Accept an additional argument KILLED; if not
8315 zero, ignore errors in the SetThreadContext call, since the
8316 inferior was killed and is shutting down.
8317 (windows_resume, get_windows_debug_event)
8318 (windows_create_inferior, windows_mourn_inferior)
8319 (windows_kill_inferior): All callers of windows_continue changed
8320 to adjust to its new calling sequence.
8321
5723a6fd
YQ
83222014-04-19 Yao Qi <yao@codesourcery.com>
8323
8324 * ctf.c (ctf_open): Call post_create_inferior.
8325
614d5099
YQ
83262014-04-19 Yao Qi <yao@codesourcery.com>
8327
8328 * ctf.c (handle_id): New static variable.
8329 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8330 value. Get the declaration of event "register" and get length
8331 of field "contents".
8332
dac3e710
YQ
83332014-04-19 Yao Qi <yao@codesourcery.com>
8334
8335 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8336
2bca57ba
SC
83372014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8338
8339 * valops.c (oload_method_static): Remove unnecessary argument
8340 METHOD. Update all callers.
8341
51d48146
PA
83422014-04-18 Pedro alves <palves@redhat.com>
8343 Tom Tromey <tromey@redhat.com>
8344
8345 PR backtrace/15558
8346 * frame.c (get_prev_frame_1): Rename to ...
8347 (get_prev_frame_always): ... this, and make extern. Adjust.
8348 (skip_artificial_frames): Use get_prev_frame_always.
8349 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8350 (get_frame_unwind_stop_reason): Adjust to rename.
8351 * frame.h (get_prev_frame_always): Declare.
8352 * inline-frame.c: Include frame.h.
8353 (inline_frame_this_id): Use get_prev_frame_always.
8354
1bdad2e0
TG
83552014-04-18 Tristan Gingold <gingold@adacore.com>
8356
8357 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8358 code by using bfd_mach_o_get_base_address.
8359
7ce16bd4
UW
83602014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8361
8362 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8363 (spu_ax_pseudo_register_collect): New function.
8364 (spu_ax_pseudo_register_push_stack): Likewise.
8365 (spu_dwarf_reg_to_regnum): Likewise.
8366 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8367
2ed3c037
UW
83682014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8369
8370 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8371 Replace FRAME argument with FRAME_ID.
8372 * gdbarch.c, gdbarch.h: Regenerate.
8373 * findvar.c (default_value_from_register): Add GDBARCH argument;
8374 replace FRAME by FRAME_ID. No longer call get_frame_id.
8375 (value_from_register): Update call to gdbarch_value_from_register.
8376 * value.h (default_value_from_register): Update prototype.
8377 * s390-linux-tdep.c (s390_value_from_register): Update interface
8378 and call to default_value_from_register.
8379 * spu-tdep.c (spu_value_from_register): Likewise.
8380
8381 * findvar.c (address_from_register): Remove TYPE argument.
8382 Do not call value_from_register; use gdbarch_value_from_register
8383 with null_frame_id instead.
8384 * value.h (address_from_register): Update prototype.
8385 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8386 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8387 address_from_register interface change.
8388
71e50e83
YQ
83892014-04-17 Yao Qi <yao@codesourcery.com>
8390
8391 * gdbtypes.h: Update comments to link to types and macros'
8392 definitions.
8393
7a23c549
SC
83942014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8395
8396 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8397
22869d73
KS
83982014-04-16 Keith Seitz <keiths@redhat.com>
8399
8400 PR gdb/15827
8401 * dwarf2read.c (skip_one_die): Check that all relative-offset
8402 sibling DIEs fall within range of the current reader's buffer.
8403 (read_partial_die): Likewise.
8404
c4f87ca6
KS
84052014-04-16 Keith Seitz <keiths@redhat.com>
8406
8407 PR c++/16597
8408 * cp-namespace.c (lookup_symbol_file): If the type name of
8409 `this' is NULL, return immediately.
8410
b50c8614
KS
84112014-04-14 Keith Seitz <keiths@redhat.com>
8412
8413 PR c++/16253
8414 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8415 from symbol_matches_domain in symtab.c. All local callers
8416 of symbol_matches_domain updated.
8417 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8418 search STRUCT_DOMAIN.
8419 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8420 independently. standard_lookup will do that automatically.
8421 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8422 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8423 (cp_lookup_symbol_in_namespace): Likewise.
8424 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8425 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8426 may return a STRUCT_DOMAIN match.
8427 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8428 * cp-support.c: Include language.h.
8429 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8430 VAR_DOMAIN.
8431 * psymtab.c (match_partial_symbol): Compare the requested
8432 domain with the symbol's domain directly.
8433 (lookup_partial_symbol): Likewise.
8434 * symtab.c (lookup_symbol_in_language): Explain when/why
8435 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8436 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8437 appropriate languages.
8438 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8439 and moved to ada-lang.c
8440 (lookup_block_symbol): Explain that this function only returns
8441 symbol matching the requested DOMAIN.
8442 Compare the requested domain with the symbol's domain directly.
8443 (iterate_over_symbols): Compare the requested domain with the
8444 symbol's domain directly.
8445 * symtab.h (symbol_matches_domain): Remove.
8446
3d567982
TT
84472014-04-14 Tom Tromey <tromey@redhat.com>
8448
8449 PR c++/15246:
8450 * c-exp.y (type_aggregate_p): New function.
8451 (qualified_name, classify_inner_name): Use it.
8452 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8453 and TYPE_TARGET_TYPE of an enum type.
8454 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8455 an enum type.
8456 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8457 handle TYPE_DECLARED_CLASS.
8458 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8459 types.
8460 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8461 * valops.c (enum_constant_from_type): New function.
8462 (value_aggregate_elt): Use it.
8463 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8464 TYPE_CODE_ENUM.
8465
c848d642
TT
84662014-04-14 Tom Tromey <tromey@redhat.com>
8467
8468 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8469 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8470 const.
8471 * value.h (value_aggregate_elt): Update.
8472
0626fc76
TT
84732014-04-14 Tom Tromey <tromey@redhat.com>
8474
8475 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8476
5ecaaa66
SA
84772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8478
8479 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8480 (evaluate_subexp_standard): Pass noside argument.
8481 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8482 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8483 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8484 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8485 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8486
1612e0c0
SA
84872014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8488
8489 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8490 points to a constant blob.
8491
c451ebe5
SA
84922014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8493
8494 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8495 property and store it as the high bound and flag the range accordingly.
8496 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8497 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8498 * gdbtypes.h (enum range_flags): New enum.
8499 (struct range_bounds): Add flags member.
8500
1d42e4c4
SA
85012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8502
8503 * c-typeprint.c (c_type_print_varspec_suffix): Added
8504 check for not yet resolved high bound. If unresolved, print
8505 "variable length" string to the console instead of random
8506 length.
8507
9f1f738a
SA
85082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8509
8510 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8511 value.
8512 (ada_template_to_fixed_record_type_1): Likewise.
8513 (ada_to_fixed_type_1): Likewise.
8514 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8515 (cp_print_value): Likewise.
8516 * d-valprint.c (dynamic_array_type): Likewise.
8517 * findvar.c (address_of_variable): Likewise.
8518 * jv-valprint.c (java_value_print): Likewise.
8519 * valops.c (value_ind): Likewise.
8520 * value.c (coerce_ref): Likewise.
8521
3c8452d4
SA
85222014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8523
8524 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8525 value and retrieve the dynamic type size.
8526
4ad88275
SA
85272014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8528
8529 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8530 passed to sizeof is dynamic evaluate the argument to compute the length.
8531
80180f79
SA
85322014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8533 Joel Brobecker <brobecker@adacore.com>
8534
8535 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8536 (dwarf2_evaluate_property): New function.
8537 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8538 * dwarf2read.c (attr_to_dynamic_prop): New function.
8539 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8540 attribute.
8541 * gdbtypes.c: Include dwarf2loc.h.
8542 (is_dynamic_type): New function.
8543 (resolve_dynamic_type): New function.
8544 (resolve_dynamic_bounds): New function.
8545 (get_type_length): New function.
8546 (check_typedef): Use get_type_length to compute type length.
8547 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8548 (TYPE_LOW_BOUND_KIND): New macro.
8549 (is_dynamic_type): New function prototype.
8550 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8551 to resolve dynamic properties of the type. Update comment.
8552 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8553
a1556843
RH
85542014-04-14 Richard Henderson <rth@redhat.com>
8555
8556 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8557
0be03e84
DE
85582014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8559 Doug Evans <xdje42@gmail.com>
8560
8561 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8562 dereference TYPE_CODE_REF values.
8563
6b662e19
JB
85642014-04-11 Joel Brobecker <brobecker@adacore.com>
8565
8566 Revert the following changes due to regressions:
8567
8568 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8569 (dwarf2_evaluate_property): New function.
8570 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8571 * dwarf2read.c (attr_to_dynamic_prop): New function.
8572 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8573 attribute.
8574 * gdbtypes.c: Include dwarf2loc.h.
8575 (is_dynamic_type): New function.
8576 (resolve_dynamic_type): New function.
8577 (resolve_dynamic_bounds): New function.
8578 (get_type_length): New function.
8579 (check_typedef): Use get_type_length to compute type length.
8580 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8581 (TYPE_LOW_BOUND_KIND): New macro.
8582 (is_dynamic_type): New function prototype.
8583 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8584 to resolve dynamic properties of the type. Update comment.
8585 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8586
8587 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8588 passed to sizeof is dynamic evaluate the argument to compute the length.
8589
8590 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8591 value and retrieve the dynamic type size.
8592
8593 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8594 (ada_template_to_fixed_record_type_1): Likewise.
8595 (ada_to_fixed_type_1): Likewise.
8596 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8597 (cp_print_value): Likewise.
8598 * d-valprint.c (dynamic_array_type): Likewise.
8599 * eval.c (evaluate_subexp_with_coercion): Likewise.
8600 * findvar.c (address_of_variable): Likewise.
8601 * jv-valprint.c (java_value_print): Likewise.
8602 * valops.c (value_ind): Likewise.
8603 * value.c (coerce_ref): Likewise.
8604
8605 * c-typeprint.c (c_type_print_varspec_suffix): Added
8606 check for not yet resolved high bound. If unresolved, print
8607 "variable length" string to the console instead of random
8608 length.
8609
8610 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8611 property and store it as the high bound and flag the range accordingly.
8612 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8613 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8614 * gdbtypes.h (enum range_flags): New enum.
8615 (struct range_bounds): Add flags member.
8616
8617 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8618 points to a constant blob.
8619
8620 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8621 (evaluate_subexp_standard): Pass noside argument.
8622 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8623 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8624 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8625 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8626 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8627
245a5f0b
KS
86282014-04-11 Keith Seitz <keiths@redhat.com>
8629
8630 PR c++/16675
8631 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8632 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8633 reference types.
8634
3bce8237
SA
86352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8636
8637 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8638 (evaluate_subexp_standard): Pass noside argument.
8639 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8640 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8641 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8642 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8643 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8644
92b09522
SA
86452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8646
8647 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8648 points to a constant blob.
8649
e1969afb
SA
86502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8651
8652 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8653 property and store it as the high bound and flag the range accordingly.
8654 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8655 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8656 * gdbtypes.h (enum range_flags): New enum.
8657 (struct range_bounds): Add flags member.
8658
b86138fb
SA
86592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8660
8661 * c-typeprint.c (c_type_print_varspec_suffix): Added
8662 check for not yet resolved high bound. If unresolved, print
8663 "variable length" string to the console instead of random
8664 length.
8665
bcd629a4
SA
86662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8667
8668 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8669 (ada_template_to_fixed_record_type_1): Likewise.
8670 (ada_to_fixed_type_1): Likewise.
8671 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8672 (cp_print_value): Likewise.
8673 * d-valprint.c (dynamic_array_type): Likewise.
8674 * eval.c (evaluate_subexp_with_coercion): Likewise.
8675 * findvar.c (address_of_variable): Likewise.
8676 * jv-valprint.c (java_value_print): Likewise.
8677 * valops.c (value_ind): Likewise.
8678 * value.c (coerce_ref): Likewise.
8679
04b19544
SA
86802014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8681
8682 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8683 value and retrieve the dynamic type size.
8684
26cb189f
SA
86852014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8686
8687 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8688 passed to sizeof is dynamic evaluate the argument to compute the length.
8689
37c1ab67
SA
86902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8691
8692 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8693 (dwarf2_evaluate_property): New function.
8694 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8695 * dwarf2read.c (attr_to_dynamic_prop): New function.
8696 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8697 attribute.
8698 * gdbtypes.c: Include dwarf2loc.h.
8699 (is_dynamic_type): New function.
8700 (resolve_dynamic_type): New function.
8701 (resolve_dynamic_bounds): New function.
8702 (get_type_length): New function.
8703 (check_typedef): Use get_type_length to compute type length.
8704 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8705 (TYPE_LOW_BOUND_KIND): New macro.
8706 (is_dynamic_type): New function prototype.
8707 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8708 to resolve dynamic properties of the type. Update comment.
8709 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8710
729efb13
SA
87112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8712
8713 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8714 declaring high/low bounds and change uses accordingly. Call
8715 create_range_type instead of create_static_range_type.
8716 * gdbtypes.c (create_range_type): New function.
8717 (create_range_type): Convert bounds into struct bound_prop and pass
8718 them to create_range_type.
8719 * gdbtypes.h (struct bound_prop): New struct.
8720 (create_range_type): New function prototype.
8721 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8722 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8723 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8724 part of the bound.
8725 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8726
0c9c3474
SA
87272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8728
8729 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8730 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8731 * ada-lang.c: All uses of create_range_type updated.
8732 * coffread.c: All uses of create_range_type updated.
8733 * dwarf2read.c: All uses of create_range_type updated.
8734 * f-exp.y: All uses of create_range_type updated.
8735 * m2-valprint.c: All uses of create_range_type updated.
8736 * mdebugread.c: All uses of create_range_type updated.
8737 * stabsread.c: All uses of create_range_type updated.
8738 * valops.c: All uses of create_range_type updated.
8739 * valprint.c: All uses of create_range_type updated.
8740
9d497a19
PA
87412014-04-10 Pedro Alves <palves@redhat.com>
8742
8743 * breakpoint.c (single_step_breakpoints)
8744 (single_step_gdbarch): Move up in the file.
8745 (one_breakpoint_xfer_memory): New function, factored out from ...
8746 (breakpoint_xfer_memory): ... here. Also process single-step
8747 breakpoints.
8748
15a9128a
TG
87492014-04-09 Tristan Gingold <gingold@adacore.com>
8750
8751 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8752 comments.
8753 (darwin_decode_exception_message): Free port only after use.
8754
9c97a070
PL
87552014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8756
8757 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8758 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8759 when setting the size of call_length.
8760
7af389b8
SC
87612014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8762
8763 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8764 dereference TYPE_CODE_REF values.
8765
86ad98c3
JB
87662014-04-07 Joel Brobecker <brobecker@adacore.com>
8767
8768 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8769 end of warning message.
8770
b0aeadb3
DE
87712014-04-03 Doug Evans <dje@google.com>
8772
8773 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8774 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8775
5979d6b6
AM
87762014-04-02 Alan Modra <amodra@gmail.com>
8777
8778 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8779 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8780 (struct symbol_file_add_from_memory_args): Add size field.
8781 (find_vdso_size): New function.
8782 (add_vsyscall_page): Attempt to find vdso size.
8783
0d60c288
DE
87842014-04-01 Doug Evans <dje@google.com>
8785
8786 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8787
a41f2563
TG
87882014-04-01 Tristan Gingold <gingold@adacore.com>
8789
8790 * darwin-nat.c (darwin_encode_reply): Add prototype.
8791 (darwin_decode_exception_message): Reply to unknown inferiors.
8792 (darwin_decode_message): Handle message by id. Ignore message
8793 to unknown inferior.
8794 (darwin_wait): Discard unknown messages, add debug trace.
8795
11a865c8
DE
87962014-03-31 Doug Evans <dje@google.com>
8797
8798 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8799 comp_dir_string.
8800
770e7fc7
DE
88012014-03-31 Doug Evans <dje@google.com>
8802
8803 New option "set print symbol-loading".
8804 * NEWS: Mention it.
8805 * solib.c (solib_read_symbols): Only print symbol loading messages
8806 if requested.
8807 (solib_add): If symbol loading is in "brief" mode, notify user
8808 symbols are being loaded.
8809 (reload_shared_libraries_1): Ditto.
8810 * symfile.c (print_symbol_loading_off): New static global.
8811 (print_symbol_loading_brief): New static global.
8812 (print_symbol_loading_full): New static global.
8813 (print_symbol_loading_enums): New static global.
8814 (print_symbol_loading): New static global.
8815 (print_symbol_loading_p): New function.
8816 (symbol_file_add_with_addrs): Only print symbol loading messages
8817 if requested.
8818 (_initialize_symfile): Register "print symbol-loading" set/show
8819 command.
8820 * symfile.h (print_symbol_loading_p): Declare.
8821
c32c64b7
DE
88222014-03-30 Doug Evans <xdje42@gmail.com>
8823
8824 * infrun.c (set_last_target_status): New function.
8825 (handle_inferior_event): Call it.
8826
7c0bc051
DE
88272014-03-30 Doug Evans <xdje42@gmail.com>
8828
8829 * inferior.h (enum stop_kind): Improve comment.
8830
8776cfe9
JB
88312014-03-28 Joel Brobecker <brobecker@adacore.com>
8832
8833 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8834 a reference, strip the reference layer before calling
8835 the lang_ops value_has_mutated callback.
8836
410a0ff2
SDJ
88372014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8838
8839 Remove some globals from our parser.
8840 * language.c (unk_lang_parser): Add "struct parser_state"
8841 argument.
8842 * language.h (struct language_defn) <la_parser>: Likewise.
8843 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8844 (initialize_expout): Add "struct parser_state" argument.
8845 Rewrite function to use the parser state.
8846 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8847 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8848 write_exp_elt_longcst, write_exp_elt_dblcst,
8849 write_exp_elt_decfloatcst, write_exp_elt_type,
8850 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8851 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8852 write_dollar_variable): Likewise.
8853 (parse_exp_in_context_1): Use parser state.
8854 (insert_type_address_space): Add "struct parser_state" argument.
8855 Use parser state.
8856 (increase_expout_size): New function.
8857 * parser-defs.h: Forward declare "struct language_defn" and
8858 "struct parser_state".
8859 (expout, expout_size, expout_ptr): Remove extern declarations.
8860 (parse_gdbarch, parse_language): Rewrite macro declarations to
8861 accept the parser state.
8862 (struct parser_state): New struct.
8863 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8864 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8865 write_exp_elt_decfloatcst, write_exp_elt_type,
8866 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8867 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8868 write_exp_msymbol, write_dollar_variable,
8869 mark_struct_expression, insert_type_address_space): Add "struct
8870 parser_state" argument.
8871 (increase_expout_size): New function.
8872 * utils.c (do_clear_parser_state): New function.
8873 (make_cleanup_clear_parser_state): Likewise.
8874 * utils.h (make_cleanup_clear_parser_state): New function
8875 prototype.
8876 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8877 Update calls to write_exp* in order to pass the parser state.
8878 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8879 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8880 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8881 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8882 * stap-probe.c (stap_parse_register_operand): Likewise.
8883 (stap_parse_single_operand): Likewise.
8884 (stap_parse_argument_1): Likewise.
8885 (stap_parse_argument): Use parser state.
8886 * stap-probe.h: Include "parser-defs.h".
8887 (struct stap_parse_info) <pstate>: New field.
8888 * c-exp.y (parse_type): Rewrite to use parser state.
8889 (yyparse): Redefine to c_parse_internal.
8890 (pstate): New global variable.
8891 (parse_number): Add "struct parser_state" argument.
8892 (write_destructor_name): Likewise.
8893 (type_exp): Update calls to write_exp* and similars in order to
8894 use parser state.
8895 (exp1, exp, variable, qualified_name, space_identifier,
8896 typename, typebase): Likewise.
8897 (write_destructor_name, parse_number, lex_one_token,
8898 classify_name, classify_inner_name, c_parse): Add "struct
8899 parser_state" argument. Update function to use parser state.
8900 * c-lang.h: Forward declare "struct parser_state".
8901 (c_parse): Add "struct parser_state" argument.
8902 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8903 (yyparse): Redefine macro to ada_parse_internal.
8904 (pstate): New variable.
8905 (write_int, write_object_renaming, write_var_or_type,
8906 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8907 type_int, type_long, type_long_long, type_float, type_double,
8908 type_long_double, type_char, type_boolean, type_system_address):
8909 Add "struct parser_state" argument.
8910 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8911 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8912 var_or_type, aggregate, aggregate_component_list,
8913 positional_list, others, component_group,
8914 component_associations): Update calls to write_exp* and similar
8915 functions in order to use parser state.
8916 (ada_parse, write_var_from_sym, write_int,
8917 write_exp_op_with_string, write_object_renaming,
8918 find_primitive_type, write_selectors, write_ambiguous_var,
8919 write_var_or_type, write_name_assoc, type_int, type_long,
8920 type_long_long, type_float, type_double, type_long_double,
8921 type_char, type_boolean, type_system_address): Add "struct
8922 parser_state" argument. Adjust function to use parser state.
8923 * ada-lang.c (parse): Likewise.
8924 * ada-lang.h: Forward declare "struct parser_state".
8925 (ada_parse): Add "struct parser_state" argument.
8926 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8927 calls to both functions.
8928 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8929 parser state.
8930 (yyparse): Redefine macro to f_parse_internal.
8931 (pstate): New variable.
8932 (parse_number): Add "struct parser_state" argument.
8933 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8934 and similars in order to use parser state.
8935 (parse_number): Adjust code to use parser state.
8936 (yylex): Likewise.
8937 (f_parse): New function.
8938 * f-lang.h: Forward declare "struct parser_state".
8939 (f_parse): Add "struct parser_state" argument.
8940 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8941 parser state.
8942 (yyparse): Redefine macro for java_parse_internal.
8943 (pstate): New variable.
8944 (push_expression_name, push_expression_name, insert_exp): Add
8945 "struct parser_state" argument.
8946 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8947 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8948 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8949 PostIncrementExpression, PostDecrementExpression,
8950 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8951 UnaryExpressionNotPlusMinus, CastExpression,
8952 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8953 RelationalExpression, EqualityExpression, AndExpression,
8954 ExclusiveOrExpression, InclusiveOrExpression,
8955 ConditionalAndExpression, ConditionalOrExpression,
8956 ConditionalExpression, Assignment, LeftHandSide): Update
8957 calls to write_exp* and similars in order to use parser state.
8958 (parse_number): Ajust code to use parser state.
8959 (yylex): Likewise.
8960 (java_parse): New function.
8961 (push_variable): Add "struct parser_state" argument. Adjust
8962 code to user parser state.
8963 (push_fieldnames, push_qualified_expression_name,
8964 push_expression_name, insert_exp): Likewise.
8965 * jv-lang.h: Forward declare "struct parser_state".
8966 (java_parse): Add "struct parser_state" argument.
8967 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8968 parser state.
8969 (yyparse): Redefine macro to m2_parse_internal.
8970 (pstate): New variable.
8971 (type_exp, exp, fblock, variable, type): Update calls to
8972 write_exp* and similars to use parser state.
8973 (yylex): Likewise.
8974 (m2_parse): New function.
8975 * m2-lang.h: Forward declare "struct parser_state".
8976 (m2_parse): Add "struct parser_state" argument.
8977 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8978 * objc-lang.h: Forward declare "struct parser_state".
8979 (end_msglist): Add "struct parser_state" argument.
8980 * p-exp.y (parse_type): Rewrite macro to use parser state.
8981 (yyparse): Redefine macro to pascal_parse_internal.
8982 (pstate): New variable.
8983 (parse_number): Add "struct parser_state" argument.
8984 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8985 write_exp* and similars in order to use parser state.
8986 (parse_number, yylex): Adjust code to use parser state.
8987 (pascal_parse): New function.
8988 * p-lang.h: Forward declare "struct parser_state".
8989 (pascal_parse): Add "struct parser_state" argument.
8990 * go-exp.y (parse_type): Rewrite macro to use parser state.
8991 (yyparse): Redefine macro to go_parse_internal.
8992 (pstate): New variable.
8993 (parse_number): Add "struct parser_state" argument.
8994 (type_exp, exp1, exp, variable, type): Update calls to
8995 write_exp* and similars in order to use parser state.
8996 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8997 to use parser state.
8998 (go_parse): Likewise.
8999 * go-lang.h: Forward declare "struct parser_state".
9000 (go_parse): Add "struct parser_state" argument.
9001
342587c4
DE
90022014-03-27 Doug Evans <dje@google.com>
9003
9004 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9005
33e80786
DE
90062014-03-27 Doug Evans <dje@google.com>
9007
9008 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9009 Remove argument abbrev_section. All callers updated.
9010
1dbab08b
DE
90112014-03-27 Doug Evans <dje@google.com>
9012
9013 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9014 addr_base, ranges_base.
9015
318d3177
KS
90162014-03-26 Keith Seitz <keiths@redhat.com>
9017
9018 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9019 types, not VAR_DOMAIN.
9020
1e54db15
SL
90212014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9022
9023 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9024 "ra" registers.
9025 * features/nios2-linux.c: Regenerated.
9026 * features/nios2.c: Regenerated.
9027
d3839ede
PA
90282014-03-25 Pedro Alves <palves@redhat.com>
9029
9030 * cli/cli-script.c (script_from_file): Force the interpreter to
9031 sync mode.
9032
7588d2ec
PL
90332014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9034
9035 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9036 small stack allocation.
9037
a6290449
TG
90382014-03-24 Tristan Gingold <gingold@adacore.com>
9039
9040 * darwin-nat.c (exc_server): Remove unused prototype.
9041 (darwin_dump_message): Correctly display data on x86_64.
9042 (darwin_encode_reply): Fix style.
9043 Add comments and fix indentation.
9044
31ae9d24 90452014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9046
9047 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9048
6339bfc4
DE
90492014-03-22 Doug Evans <xdje42@gmail.com>
9050
9051 * infcmd.c: Whitespace fixes.
9052 (interrupt_command): Merge two function comments into one.
9053
0a07590b
DE
90542014-03-22 Doug Evans <xdje42@gmail.com>
9055
9056 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9057 All uses updated.
9058
b55fbac4
YQ
90592014-03-22 Yao Qi <yao@codesourcery.com>
9060
9061 * remote.c (target_read_live_memory): Remove.
9062 (memory_xfer_live_readonly_partial): Rename it to
9063 remote_xfer_live_readonly_partial. Remove argument 'object'.
9064 All callers updated. Call remote_read_bytes_1
9065 instead of target_read_live_memory.
9066 * tracepoint.c (set_traceframe_number): Remove.
9067 (make_cleanup_restore_traceframe_number): Likewise .
9068 * tracepoint.h (set_traceframe_number): Remove declaration.
9069 (make_cleanup_restore_traceframe_number): Likewise.
9070
9217e74e
YQ
90712014-03-22 Yao Qi <yao@codesourcery.com>
9072
9073 * remote.c (remote_read_bytes): Move code on reading from the
9074 remote stub to ...
9075 (remote_read_bytes_1): ... here. New function.
9076
8acf9577
YQ
90772014-03-22 Yao Qi <yao@codesourcery.com>
9078
9079 * ctf.c (ctf_xfer_partial): Check the return value of
9080 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9081 return TARGET_XFER_UNAVAILABLE.
9082 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9083 * target.c (target_read_live_memory): Move it to remote.c.
9084 (memory_xfer_live_readonly_partial): Likewise.
9085 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9086 * remote.c (target_read_live_memory): Moved from target.c.
9087 (memory_xfer_live_readonly_partial): Likewise.
9088 (remote_read_bytes): Factored out from
9089 memory_xfer_partial_1.
9090
feef67ab
DE
90912014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9092
9093 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9094 NULL pointer.
9095
b65dc60b
PA
90962014-03-21 Pedro Alves <palves@redhat.com>
9097
9098 * infrun.c (normal_stop): Extend comment.
9099
b4ab256d
HZ
91002014-03-21 Hui Zhu <hui@codesourcery.com>
9101 Pedro Alves <palves@redhat.com>
9102
9103 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9104 static buffer.
9105 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9106 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9107 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9108
deba7593
MR
91092014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9110
9111 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9112 `z' formatted output modifier.
9113
1bff71c3
SDJ
91142014-03-20 Tom Tromey <tromey@redhat.com>
9115 Sergio Durigan Junior <sergiodj@redhat.com>
9116
9117 * probe.c (parse_probes): Turn assert into an ordinary error.
9118 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9119 exceptions when parsing probes. Rearrange the code for clarity.
9120
90e28950
TT
91212014-03-20 Tom Tromey <tromey@redhat.com>
9122
9123 PR gdb/14135
9124 * top.c (execute_command): Only dispatch events if the command
9125 started the target.
9126
beb460e8
PA
91272014-03-20 Tom Tromey <tromey@redhat.com>
9128
9129 PR cli/15718
9130 * infcall.c: Include event-top.h.
9131 (run_inferior_call): Call async_disable_stdin if needed.
9132
99619bea
PA
91332014-03-20 Pedro Alves <palves@redhat.com>
9134
9135 * infrun.c (prepare_to_proceed): Delete.
9136 (thread_still_needs_step_over): New function.
9137 (find_thread_needs_step_over): New function.
9138 (proceed): If the current thread needs a step-over, set its
9139 steping_over_breakpoint flag. Adjust to use
9140 find_thread_needs_step_over instead of prepare_to_proceed.
9141 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9142 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9143 breakpoint.
9144 (switch_back_to_stepped_thread): Step over breakpoints of all
9145 threads not the stepping thread, before switching back to the
9146 stepping thread.
9147
2adfaa28
PA
91482014-03-20 Pedro Alves <palves@redhat.com>
9149
9150 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9151 extern.
9152 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9153 * infrun.c (saved_singlestep_ptid)
9154 (stepping_past_singlestep_breakpoint): Delete.
9155 (resume): Remove stepping_past_singlestep_breakpoint handling.
9156 (proceed): Store the prev_pc of the stepping thread too.
9157 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9158 singlestep_pc.
9159 (enum infwait_states): Delete infwait_thread_hop_state.
9160 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9161 field.
9162 (handle_inferior_event): Adjust.
9163 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9164 handling and the thread-hop code. Before removing single-step
9165 breakpoints, check whether the thread hit a single-step breakpoint
9166 of another thread. If it did, the trap is not a random signal.
9167 (switch_back_to_stepped_thread): If the event thread hit a
9168 single-step breakpoint, unblock it before switching to the
9169 stepping thread. Handle the case of the stepped thread having
9170 advanced already.
9171 (keep_going): Handle the case of the current thread moving past a
9172 single-step breakpoint.
9173
31e77af2
PA
91742014-03-20 Pedro Alves <palves@redhat.com>
9175
9176 PR breakpoints/7143
9177 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9178 are being stepped over.
9179 (breakpoint_address_match): Make extern.
9180 * breakpoint.h (breakpoint_address_match): New declaration.
9181 * inferior.h (stepping_past_instruction_at): New declaration.
9182 * infrun.c (struct step_over_info): New type.
9183 (step_over_info): New global.
9184 (set_step_over_info, clear_step_over_info)
9185 (stepping_past_instruction_at): New functions.
9186 (handle_inferior_event): Clear the step-over info when
9187 trap_expected is cleared.
9188 (resume): Remove now stale comment.
9189 (clear_proceed_status): Clear step-over info.
9190 (proceed): Adjust step-over handling to set or clear the step-over
9191 info instead of removing all breakpoints.
9192 (handle_signal_stop): When setting up a thread-hop, don't remove
9193 breakpoints here.
9194 (stop_stepping): Clear step-over info.
9195 (keep_going): Adjust step-over handling to set or clear step-over
9196 info and then always inserting breakpoints, instead of removing
9197 all breakpoints when stepping over one.
9198
b9f437de
PA
91992014-03-20 Pedro Alves <palves@redhat.com>
9200
9201 * infrun.c (previous_inferior_ptid): Adjust comment.
9202 (deferred_step_ptid): Delete.
9203 (infrun_thread_ptid_changed, prepare_to_proceed)
9204 (init_wait_for_inferior): Adjust.
9205 (handle_signal_stop): Delete deferred_step_ptid handling.
9206
06c868a8
JK
92072014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9208
9209 PR gdb/15358
9210 * defs.h (sync_quit_force_run): New declaration.
9211 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9212 * event-top.c (async_sigterm_handler): New declaration.
9213 (async_sigterm_token): New variable.
9214 (async_init_signals): Create also async_sigterm_token.
9215 (async_sigterm_handler): New function.
9216 (sync_quit_force_run): New variable.
9217 (handle_sigterm): Replace quit_force call by other calls.
9218 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9219
dea80df0
MR
92202014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9221
9222 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9223 offset into SPE pseudo registers.
9224
0c7e1a46
PA
92252014-03-18 Pedro Alves <palves@redhat.com>
9226
9227 PR gdb/13860
9228 * inferior.h (print_stop_event): Declare.
9229 * infrun.c (print_stop_event): New, factored out from ...
9230 (normal_stop): ... this.
9231 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9232 of bpstat_print/print_stack_frame.
9233
9c1fcd01
TT
92342014-03-17 Tom Tromey <tromey@redhat.com>
9235
9236 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9237
11aa919a
PMR
92382014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9239
9240 * ada-lang.c (decode_constrained_packed_array): Perform a
9241 minimal coercion for reference with coerce_ref instead of
9242 ada_coerce_ref.
9243
d4ccb5e0
TG
92442014-03-17 Tristan Gingold <gingold@adacore.com>
9245
9246 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9247 (darwin_solib_create_inferior_hook): Emit a warning if version
9248 is unhandled.
9249
49840f2a
UW
92502014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9251
9252 * python/py-value.c (get_field_flag): Cast flag_name argument to
9253 PyObject_GetAttrString to support Python 2.4.
9254
ed4123e5
JK
92552014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9256
9257 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9258 (Global Maintainers): Remove Jan Kratochvil.
9259
d6b64346
PA
92602014-03-14 Pedro Alves <palves@redhat.com>
9261
9262 * inferior.h (terminal_ours_for_output): Rename to ...
9263 (child_terminal_ours_for_output): ... this.
9264 (terminal_save_ours): Rename to ...
9265 (child_terminal_save_ours): ... this.
9266 (terminal_ours): Rename to ...
9267 (child_terminal_ours): ... this.
9268 (terminal_inferior): Rename to ...
9269 (child_terminal_inferior): ... this.
9270 (terminal_init_inferior): Rename to ...
9271 (child_terminal_init_inferior): ... this.
9272 (terminal_init_inferior_with_pgrp): Rename to ...
9273 (child_terminal_init_inferior_with_pgrp): ... this.
9274 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9275 (child_terminal_init_with_pgrp): ... this.
9276 (terminal_save_ours): Rename to ...
9277 (child_terminal_save_ours): ... this.
9278 (terminal_init_inferior): Rename to ...
9279 (child_terminal_init): ... this. Adjust.
9280 (terminal_inferior): Rename to ...
9281 (child_terminal_inferior): ... this.
9282 (terminal_ours_for_output): Rename to ...
9283 (child_terminal_ours_for_output): ... this. Adjust.
9284 (terminal_ours): Rename to ...
9285 (child_terminal_ours): ... this.
9286 (terminal_ours_1): Rename to ...
9287 (child_terminal_ours_1): ... this. Adjust.
9288 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9289 * windows-nat.c (do_initial_windows_stuff): Adjust.
9290 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9291 (gnu_terminal_init): ... this. Adjust.
9292 (gnu_target): Adjust.
9293 * inf-child.c (inf_child_target): Adjust.
9294
5a1e8c7a
DE
92952014-03-13 Doug Evans <xdje42@gmail.com>
9296
9297 PR guile/16612
9298 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9299 new eq?-hashtab.
9300
350e1a76
DE
93012014-03-13 Doug Evans <xdje42@gmail.com>
9302
9303 * value.c (record_latest_value): Call release_value_or_incref
9304 instead of release_value.
9305
a69900ae
PA
93062014-03-13 Pedro Alves <palves@redhat.com>
9307
9308 * procfs.c (procfs_target): Don't override to_shortname,
9309 to_longname or to_doc.
9310
5db9f0bd
PA
93112014-03-13 Pedro Alves <palves@redhat.com>
9312
9313 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9314 Unix in user visible strings.
9315
5e3a2c38
SS
93162014-03-12 Stan Shebs <stan@codesourcery.com>
9317
9318 * gdbtypes.h: Annotate comments for Doxygen, add a page
9319 block comment with some general info.
9320
8bc2fe48
PA
93212014-03-12 Pedro Alves <palves@redhat.com>
9322
9323 * infcmd.c (prepare_execution_command): New function, factored out
9324 from several execution commands.
9325 (run_command_1, continue_command, step_1, jump_command)
9326 (signal_command, until_command, advance_command, finish_command)
9327 (attach_command): Use prepare_execution_command.
9328
638c5f49
OJ
93292014-03-12 Omair Javaid <omair.javaid@linaro.org>
9330
9331 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9332 (MAX_BPTS): Define.
9333 (MAX_WPTS): Define.
9334 (struct arm_linux_thread_points): Removed.
9335 (struct arm_linux_process_info): New.
9336 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9337 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9338 (arm_linux_find_breakpoints_by_tid): Removed.
9339 (struct arch_lwp_info): New.
9340 (arm_linux_find_process_pid): New functions.
9341 (arm_linux_add_process): New functions.
9342 (arm_linux_process_info_get): New functions.
9343 (arm_linux_forget_process): New function.
9344 (arm_linux_get_debug_reg_state): New function.
9345 (struct update_registers_data): New.
9346 (update_registers_callback): New function.
9347 (arm_linux_insert_hw_breakpoint1): Updated.
9348 (arm_linux_remove_hw_breakpoint1): Updated.
9349 (arm_linux_insert_hw_breakpoint): Updated.
9350 (arm_linux_remove_hw_breakpoint): Updated.
9351 (arm_linux_insert_watchpoint): Updated.
9352 (arm_linux_remove_watchpoint): Updated.
9353 (arm_linux_new_thread): Updated.
9354 (arm_linux_prepare_to_resume): New function.
9355 (arm_linux_new_fork): New function.
9356 (_initialize_arm_linux_nat): Updated.
9357
6d03af93
PA
93582014-03-12 Pedro Alves <palves@redhat.com>
9359
9360 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9361
b3ccfe11
TT
93622014-03-12 Tom Tromey <tromey@redhat.com>
9363
9364 * inf-child.c (return_zero): New function.
9365 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9366 * aix-thread.c (aix_thread_inferior_created): New function.
9367 (aix_thread_attach): Remove.
9368 (init_aix_thread_ops): Don't set to_attach.
9369 (_initialize_aix_thread): Register inferior_created observer.
9370 * corelow.c (init_core_ops): Don't set to_attach or
9371 to_create_inferior.
9372 * exec.c (init_exec_ops): Don't set to_attach or
9373 to_create_inferior.
9374 * infcmd.c (run_command_1): Use find_run_target. Make direct
9375 target calls.
9376 (attach_command): Use find_attach_target. Make direct target
9377 calls.
9378 * record-btrace.c (init_record_btrace_ops): Don't set
9379 to_create_inferior.
9380 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9381 Remove.
9382 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9383 set to_create_inferior.
9384 * target.c (complete_target_initialization): Add assertion.
9385 (target_create_inferior): Remove.
9386 (find_default_attach, find_default_create_inferior): Remove.
9387 (find_attach_target, find_run_target): New functions.
9388 (find_default_is_async_p, find_default_can_async_p)
9389 (target_supports_non_stop, target_attach): Remove.
9390 (init_dummy_target): Don't set to_create_inferior or
9391 to_supports_non_stop.
9392 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9393 TARGET_DEFAULT_FUNC.
9394 <to_create_inferior>: Add comment.
9395 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9396 TARGET_DEFAULT_RETURN.
9397 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9398 (find_attach_target, find_run_target): Declare.
9399 (target_create_inferior): Remove.
9400 (target_has_execution_1): Update comment.
9401 (target_supports_non_stop): Remove.
9402 * target-delegates.c: Rebuild.
9403
91f83b02
PA
94042014-03-12 Pedro Alves <palves@redhat.com>
9405
9406 * inf-child.h: Update comment to not mention Unix.
9407
f1aea813
PA
94082014-03-12 Pedro Alves <palves@redhat.com>
9409
9410 * inf-child.c: Update top comment to not mention Unix. Add
9411 generic comment describing how this target is meant to be used.
9412 (inf_child_post_attach, inf_child_post_startup_inferior)
9413 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9414 Unix in comment.
9415
ee8e9165
PA
94162014-03-12 Pedro Alves <palves@redhat.com>
9417
9418 * nto-procfs.c: Include inf-child.h.
9419 (procfs_ops): Delete global.
9420 (procfs_can_run): Delete method.
9421 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9422 target pointer instead of referencing procfs_ops.
9423 (procfs_prepare_to_store): Delete.
9424 (init_procfs_ops): Delete function.
9425 (procfs_target): New function, based on init_procfs_ops, but
9426 inherit inf_child_target.
9427 (_initialize_procfs): Use procfs_target.
9428
51a9c8c5
PA
94292014-03-12 Pedro Alves <palves@redhat.com>
9430
9431 * windows-nat.c: Include inf-child.h.
9432 (windows_ops): Delete global.
9433 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9434 methods.
9435 (init_windows_ops): Delete function.
9436 (windows_target): New function, based on init_windows_ops, but
9437 inherit inf_child_target.
9438 (_initialize_windows_nat): Use windows_target. Install x86
9439 specific target methods here.
9440
c1966e26
DE
94412014-03-10 Doug Evans <xdje42@gmail.com>
9442
9443 * guile/guile.c (call_initialize_gdb_module): New function.
9444 (initialize_guile): Replace call to scm_init_guile with call to
9445 scm_with_guile.
9446
023db19c
JB
94472014-03-10 Joel Brobecker <brobecker@adacore.com>
9448
9449 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9450 in call to TYPE_CODE macro.
9451
5ec18f2b
JG
94522014-03-10 Jerome Guitton <guitton@adacore.com>
9453
8668be63
JB
9454 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9455 Resolve tagged types to full view.
5ec18f2b 9456
7d03f2eb
HZ
94572014-03-10 Hui Zhu <hui@codesourcery.com>
9458
9459 * target.h (target_insert_breakpoint): Remove "hardware" from its
9460 comments.
9461
c5164cbc
DE
94622014-03-07 Doug Evans <dje@google.com>
9463
9464 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9465
c4a3fee2
DE
94662014-03-07 Doug Evans <dje@google.com>
9467
9468 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9469 Remove unused local comp_dir_attr. Assert exactly one of
9470 stub_comp_unit_die, stub_comp_dir is non-NULL.
9471
3156469c
JB
94722014-03-07 Joel Brobecker <brobecker@adacore.com>
9473
9474 * target.h (complete_target_initialization, add_target):
9475 Add comment.
9476
c1a7b7c6
PA
94772014-03-07 Pedro Alves <palves@redhat.com>
9478
9479 * go32-nat.c: Include inf-child.h.
9480 (go32_ops): Delete global.
9481 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9482 Delete methods.
9483 (go32_create_inferior): Push the passed in target pointer instead
9484 of referencing go32_ops.
9485 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9486 (go32_target): New function, based on init_go32_ops, but inherit
9487 inf_child_target.
9488 (_initialize_go32_nat): Use go32_target. Move parts of
9489 init_go32_ops here.
9490
d3c1a85f
JB
94912014-03-06 Joel Brobecker <brobecker@adacore.com>
9492
9493 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9494 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9495 SYMBOL_VALUE_ADDRESS.
9496 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9497
5fa1d40e
YQ
94982014-03-06 Yao Qi <yao@codesourcery.com>
9499
9500 * breakpoint.c (get_tracepoint_by_number): Remove argument
9501 optional_p. All callers updated. Adjust comments. Update
9502 output message.
9503 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9504
0c13193f
YQ
95052014-03-06 Yao Qi <yao@codesourcery.com>
9506
9507 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9508 early if get_number returns zero. Use 'p' instead of 'args'.
9509
2217da06
YQ
95102014-03-06 Yao Qi <yao@codesourcery.com>
9511
9512 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9513 message.
9514
cc3da688
YQ
95152014-03-06 Yao Qi <yao@codesourcery.com>
9516
9517 PR breakpoints/16508
9518 * tracepoint.c (check_trace_running): New function.
9519 (trace_find_command): Move code to check_trace_running and
9520 call check_trace_running.
9521 (trace_find_pc_command): Likewise.
9522 (trace_find_tracepoint_command): Likewise.
9523 (trace_find_line_command): Likewise.
9524 (trace_find_range_command): Likewise.
9525 * tracepoint.h (check_trace_running): Likewise.
9526 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9527
6a5f844b
YQ
95282014-03-06 Yao Qi <yao@codesourcery.com>
9529
9530 * target.h (struct target_ops) <to_traceframe_info>: Use
9531 TARGET_DEFAULT_NORETURN (tcomplain ()).
9532 * target-delegates.c: Regenerated.
9533
0f26cec1
PA
95342014-03-05 Pedro Alves <palves@redhat.com>
9535
9536 PR gdb/16575
9537 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9538 void. Update comment.
9539 (dcache_xfer_memory): Delete.
9540 (dcache_read_memory_partial): New, based on the read bits of
9541 dcache_xfer_memory.
9542 (dcache_update): Add status parameter. Use ULONGEST for len, and
9543 adjust. Discard cache lines if the reason for the update was
9544 error.
9545 * dcache.h (dcache_xfer_memory): Delete declaration.
9546 (dcache_read_memory_partial): New declaration.
9547 (dcache_update): Update prototype.
9548 * target.c (raw_memory_xfer_partial): Update the dcache here.
9549 (memory_xfer_partial_1): Don't handle dcache writes here.
9550
b2b255bd
MF
95512014-03-05 Mike Frysinger <vapier@gentoo.org>
9552
9553 * remote-sim.c (gdbsim_load): Add const to prog.
9554
5d9cf8a4
TT
95552014-03-03 Tom Tromey <tromey@redhat.com>
9556
9557 * elfread.c (probe_key): Change to bfd_data.
9558 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9559 now per-BFD, not per-objfile.
9560 * stap-probe.c (stap_probe_destroy): Update comment.
9561 (handle_stap_probe): Allocate on the per-BFD obstack.
9562
729662a5
TT
95632014-03-03 Tom Tromey <tromey@redhat.com>
9564
9565 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9566 * breakpoint.c (create_longjmp_master_breakpoint): Use
9567 get_probe_address.
9568 (add_location_to_breakpoint, bkpt_probe_insert_location)
9569 (bkpt_probe_remove_location): Update.
9570 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9571 * elfread.c (elf_symfile_relocate_probe): Remove.
9572 (elf_probe_fns): Update.
9573 (insert_exception_resume_breakpoint): Change type of "probe"
9574 parameter to bound_probe.
9575 (check_exception_resume): Update.
9576 * objfiles.c (objfile_relocate1): Don't relocate probes.
9577 * probe.c (bound_probe_s): New typedef.
9578 (parse_probes): Use get_probe_address. Set sal's objfile.
9579 (find_probe_by_pc): Return a bound_probe.
9580 (collect_probes): Return a VEC(bound_probe_s).
9581 (compare_probes): Update.
9582 (gen_ui_out_table_header_info): Change type of "probes"
9583 parameter. Update.
9584 (info_probes_for_ops): Update.
9585 (get_probe_address): New function.
9586 (probe_safe_evaluate_at_pc): Update.
9587 * probe.h (struct probe_ops) <get_probe_address>: New field.
9588 <set_semaphore, clear_semaphore>: Add objfile parameter.
9589 (struct probe) <objfile>: Remove field.
9590 <arch>: New field.
9591 <address>: Update comment.
9592 (struct bound_probe): New.
9593 (find_probe_by_pc): Return a bound_probe.
9594 (get_probe_address): Declare.
9595 * solib-svr4.c (struct probe_and_action) <address>: New field.
9596 (hash_probe_and_action, equal_probe_and_action): Update.
9597 (register_solib_event_probe): Add address parameter.
9598 (solib_event_probe_at): Update.
9599 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9600 get_probe_address.
9601 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9602 (stap_get_probe_address): New function.
9603 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9604 (compile_probe_arg): Update.
9605 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9606 address.
9607 (handle_stap_probe): Don't relocate the probe.
9608 (stap_relocate): Remove.
9609 (stap_gen_info_probes_table_values): Update.
9610 (stap_probe_ops): Remove stap_relocate.
9611 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9612 (debug_sym_probe_fns): Update.
9613 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9614 * symtab.c (init_sal): Use memset.
9615 * symtab.h (struct symtab_and_line) <objfile>: New field.
9616 * tracepoint.c (start_tracing, stop_tracing): Update.
9617
ff887920
TT
96182014-03-03 Tom Tromey <tromey@redhat.com>
9619
9620 * probe.h (parse_probes, find_probe_by_pc)
9621 (find_probes_in_objfile): Fix comments.
9622
f0407826
DE
96232014-03-02 Doug Evans <xdje42@gmail.com>
9624
9625 * infrun.c (handle_signal_stop): Replace test for
9626 TARGET_WAITKIND_STOPPED with an assert.
9627
35e6a711
DE
96282014-03-02 Doug Evans <xdje42@gmail.com>
9629
9630 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9631
667f9d0b
DE
96322014-03-02 Doug Evans <xdje42@gmail.com>
9633
9634 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9635
dc92ace0
MK
96362014-03-01 Mark Kettenis <kettenis@gnu.org>
9637
9638 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9639
a900370f
MK
96402014-03-01 Mark Kettenis <kettenis@gnu.org>
9641
9642 * i386obsd-nat.c: Include "obsd-nat.h".
9643 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9644 add_target.
9645 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9646
b72a7981
MK
96472014-03-01 Mark Kettenis <kettenis@gnu.org>
9648
9649 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9650
96c70aba
MK
96512014-03-01 Mark Kettenis <kettenis@gnu.org>
9652
9653 * mips64obsd-nat.c: Include "obsd-nath".
9654 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9655 add_target
9656 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9657
874a80af
MK
96582014-03-01 Mark Kettenis <kettenis@gnu.org>
9659
8fd408f1
MK
9660 * amd64obsd-nat.c: Include "obsd-nat,h.
9661 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9662 add_target.
874a80af
MK
9663 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9664
9cf95373
SC
96652014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9666
9667 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9668 (find_overload_match): Update call to find_oload_champ.
9669 (find_oload_champ_namespace_loop): Likewise
9670
863e4da4
MK
96712014-02-28 Mark Kettenis <kettenis@gnu.org>
9672
025cac40
MK
9673 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9674
1ed586ce
MK
9675 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9676 * config/sparc/obsd64.mh: New file.
9677 * sparc64obsd-nat.c: New file.
9678
863e4da4
MK
9679 * obsd-nat.h: New file.
9680 * obsd-nat.c: New file.
9681 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9682 (ALLDEPFILES): Add obsd-nat.c.
9683
89de4da4
TT
96842014-02-28 Tom Tromey <tromey@redhat.com>
9685
9686 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9687 * cli-out.h (cli_ui_out_impl): Now const.
9688 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9689 * ui-out.c (struct ui_out) <impl>: Now const.
9690 (default_ui_out_impl): Now const.
9691 (ui_out_new): Make 'impl' parameter const.
9692 * ui-out.h (ui_out_new): Update.
9693
c725e7b6
MK
96942014-02-27 Mark Kettenis <kettenis@gnu.org>
9695
9696 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9697
670b46b3
MK
96982014-02-27 Mark Kettenis <kettenis@gnu.org>
9699
9700 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9701
c91550fc
JK
97022014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9703
9704 Additional PR 8882 fix.
9705 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9706
2fa0369e
PA
97072014-02-27 Pedro Alves <palves@redhat.com>
9708
9709 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9710 isn't set.
9711
d632a097
PA
97122014-02-27 Pedro Alves <palves@redhat.com>
9713
9714 PR 12702
9715 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9716 * nat/linux-waitpid.c: Include string.h.
9717 (status_to_str): Moved here and made extern.
9718 * nat/linux-waitpid.h (status_to_str): New declaration.
9719
2ebd5a35
HZ
97202014-02-27 Hui Zhu <hui@codesourcery.com>
9721
9722 PR 12702
9723 * infrun.c (ptid_match): Move ...
9724 * common/ptid.c (ptid_match): ... here.
9725 * inferior.h (ptid_match): Move ...
9726 * common/ptid.h (ptid_match): ... here.
9727
3cdd631f
MK
97282014-02-27 Mark Kettenis <kettenis@gnu.org>
9729
9730 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9731 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9732 gdb_target_obs.
9733
bee30a64
MK
97342014-02-27 Mark Kettenis <kettenis@gnu.org>
9735
9736 * obsd-tdep.c (obsd_auxv_parse): New function.
9737 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9738
9739 * gdbarch.sh (auxv_parse): New.
9740 * gdbarch.h: Regenerated.
9741 * gdbarch.c: Regenerated.
9742 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9743
7a5a839f
LC
97442014-02-26 Ludovic Courtès <ludo@gnu.org>
9745
9746 * guile/scm-value.c (gdbscm_history_append_x): New function.
9747 (value_functions): Add it.
9748
31aa7e4e
JB
97492014-02-27 Joel Brobecker <brobecker@adacore.com>
9750
9751 * dwarf2read.c (attr_value_as_address): New function.
9752 (dwarf2_find_base_address, read_call_site_scope): Use
9753 attr_value_as_address in place of DW_ADDR.
9754 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9755 the low and high addresses. Slight rework of the handling
9756 of the high pc being a constant form, and limit it to
9757 DWARF verson 4 or higher.
9758 (dwarf2_record_block_ranges): Likewise.
9759 (read_partial_die): Likewise.
9760 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9761
9b333ba3
TT
97622014-02-26 Tom Tromey <tromey@redhat.com>
9763
9764 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9765
5f6cac40
TT
97662014-02-26 Tom Tromey <tromey@redhat.com>
9767
9768 * elfread.c (elf_read_minimal_symbols): Return early if
9769 minimal symbols have already been read. Add "ei" parameter.
9770 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9771 * minsyms.c (prim_record_minimal_symbol_full): Update.
9772 * objfiles.h (struct objstats) <n_minsyms>: Move...
9773 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9774 * symmisc.c (print_objfile_statistics): Update.
9775
2750ef27
TT
97762014-02-26 Tom Tromey <tromey@redhat.com>
9777
9778 * elfread.c (elf_read_minimal_symbols): New function, from
9779 elf_symfile_read.
9780 (elf_symfile_read): Call it.
9781
34643a32
TT
97822014-02-26 Tom Tromey <tromey@redhat.com>
9783
9784 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9785 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9786 (lookup_minimal_symbol_solib_trampoline)
9787 (lookup_minimal_symbol_by_pc_section_1)
9788 (lookup_minimal_symbol_and_objfile): Update.
9789 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9790 Don't allocate a minimal symbol if minsyms have already been read.
9791 (build_minimal_symbol_hash_tables): Update.
9792 (install_minimal_symbols): Do nothing if minsyms already read.
9793 Use the per-BFD obstack.
9794 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9795 * objfiles.c (allocate_objfile): Call
9796 terminate_minimal_symbol_table later.
9797 (have_minimal_symbols): Update.
9798 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9799 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9800 Move from struct objfile.
9801 <minsyms_read>: New field.
9802 (struct objfile) <msymbols, minimal_symbol_count,
9803 msymbol_hash, msymbol_demangled_hash>: Move.
9804 (ALL_OBJFILE_MSYMBOLS): Update.
9805 * symfile.c (read_symbols): Set minsyms_read.
9806 (reread_symbols): Update.
9807 * symmisc.c (dump_objfile, dump_msymbols): Update.
9808
2273f0ac
TT
98092014-02-26 Tom Tromey <tromey@redhat.com>
9810
9811 * minsyms.c (msymbols_sort): Remove.
9812 * minsyms.h (msymbols_sort): Remove.
9813 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9814 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9815 * elfread.c (elf_symtab_read): Don't add section offsets.
9816 * xcoffread.c (record_minimal_symbol): Don't add section offset
9817 to minimal symbol address.
9818 * somread.c (text_offset, data_offset): Remove.
9819 (som_symtab_read): Don't add section offsets to minimal symbol
9820 addresses.
9821 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9822 Don't add section offsets to minimal symbols.
9823 * coffread.c (coff_symtab_read): Don't add section offsets
9824 to minimal symbol addresses.
9825 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9826 to minimal symbol addresses.
9827 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9828 section offset to minimal symbol addresses.
9829 * mdebugread.c (parse_partial_symbols): Don't add section
9830 offset to minimal symbol addresses.
9831 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9832 offset to minimal symbol addresses.
9833
77e371c0
TT
98342014-02-26 Tom Tromey <tromey@redhat.com>
9835
9836 * ada-lang.c (ada_main_name): Update.
9837 (ada_add_standard_exceptions): Update.
9838 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9839 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9840 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9841 * auxv.c (ld_so_xfer_auxv): Update.
9842 * avr-tdep.c (avr_scan_prologue): Update.
9843 * ax-gdb.c (gen_var_ref): Update.
9844 * blockframe.c (get_pc_function_start)
9845 (find_pc_partial_function_gnu_ifunc): Update.
9846 * breakpoint.c (create_overlay_event_breakpoint)
9847 (create_longjmp_master_breakpoint)
9848 (create_std_terminate_master_breakpoint)
9849 (create_exception_master_breakpoint): Update.
9850 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9851 * c-valprint.c (c_val_print): Update.
9852 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9853 * common/agent.c (agent_look_up_symbols): Update.
9854 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9855 * dwarf2loc.c (call_site_to_target_addr): Update.
9856 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9857 * elfread.c (elf_gnu_ifunc_record_cache)
9858 (elf_gnu_ifunc_resolve_by_got): Update.
9859 * findvar.c (default_read_var_value): Update.
9860 * frame.c (inside_main_func): Update.
9861 * frv-tdep.c (frv_frame_this_id): Update.
9862 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9863 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9864 Update.
9865 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9866 (hppa_hpux_find_dummy_bpaddr): Update.
9867 * hppa-tdep.c (hppa_symbol_address): Update.
9868 * infcmd.c (until_next_command): Update.
9869 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9870 Update.
9871 * linespec.c (minsym_found, add_minsym): Update.
9872 * linux-nat.c (get_signo): Update.
9873 * linux-thread-db.c (inferior_has_bug): Update.
9874 * m32c-tdep.c (m32c_return_value)
9875 (m32c_m16c_address_to_pointer): Update.
9876 * m32r-tdep.c (m32r_frame_this_id): Update.
9877 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9878 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9879 * maint.c (maintenance_translate_address): Update.
9880 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9881 (frob_address): New function.
9882 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9883 frob_address. Rename parameter to "pc_in".
9884 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9885 addresses.
9886 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9887 Update.
9888 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9889 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9890 * objc-lang.c (find_objc_msgsend): Update.
9891 * objfiles.c (objfile_relocate1): Update.
9892 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9893 * p-valprint.c (pascal_val_print): Update.
9894 * parse.c (write_exp_msymbol): Update.
9895 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9896 (ppc_elfv2_skip_entrypoint): Update.
9897 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9898 * printcmd.c (build_address_symbolic, msym_info)
9899 (address_info): Update.
9900 * proc-service.c (ps_pglobal_lookup): Update.
9901 * psymtab.c (find_pc_sect_psymtab_closer)
9902 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9903 Change msymbol parameter to bound_minimal_symbol.
9904 * ravenscar-thread.c (get_running_thread_id): Update.
9905 * remote.c (remote_check_symbols): Update.
9906 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9907 address.
9908 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9909 * solib-dsbt.c (lm_base): Update.
9910 * solib-frv.c (lm_base, main_got): Update.
9911 * solib-irix.c (locate_base): Update.
9912 * solib-som.c (som_solib_create_inferior_hook)
9913 (link_map_start): Update.
9914 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9915 * solib-svr4.c (elf_locate_base, enable_break): Update.
9916 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9917 (flush_ea_cache): Update.
9918 * stabsread.c (define_symbol, scan_file_globals): Update.
9919 * stack.c (find_frame_funname): Update.
9920 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9921 (debug_qf_find_pc_sect_symtab): Update.
9922 * symfile.c (simple_read_overlay_table)
9923 (simple_overlay_update): Update.
9924 * symfile.h (struct quick_symbol_functions)
9925 <find_pc_sect_symtab>: Change type of msymbol to
9926 bound_minimal_symbol.
9927 * symmisc.c (dump_msymbols): Update.
9928 * symtab.c (find_pc_sect_symtab_via_partial)
9929 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9930 (search_symbols, print_msymbol_info): Update.
9931 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9932 (MSYMBOL_VALUE_ADDRESS): Redefine.
9933 (BMSYMBOL_VALUE_ADDRESS): New macro.
9934 * tracepoint.c (scope_info): Update.
9935 * tui/tui-disasm.c (tui_find_disassembly_address)
9936 (tui_get_begin_asm_address): Update.
9937 * valops.c (find_function_in_inferior): Update.
9938 * value.c (value_static_field, value_fn_field): Update.
9939
3b7344d5
TT
99402014-02-26 Tom Tromey <tromey@redhat.com>
9941
9942 * ada-lang.c (ada_update_initial_language): Update.
9943 (ada_main_name, ada_has_this_exception_support): Update.
9944 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9945 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9946 * arm-tdep.c (arm_skip_stub): Update.
9947 * auxv.c (ld_so_xfer_auxv): Update.
9948 * avr-tdep.c (avr_scan_prologue): Update.
9949 * ax-gdb.c (gen_var_ref): Update.
9950 * breakpoint.c (struct breakpoint_objfile_data)
9951 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9952 type to bound_minimal_symbol.
9953 (create_overlay_event_breakpoint)
9954 (create_longjmp_master_breakpoint)
9955 (create_std_terminate_master_breakpoint)
9956 (create_exception_master_breakpoint): Update.
9957 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9958 * c-exp.y (classify_name): Update.
9959 * coffread.c (coff_symfile_read): Update.
9960 * common/agent.c (agent_look_up_symbols): Update.
9961 * d-lang.c (d_main_name): Update.
9962 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9963 * dec-thread.c (enable_dec_thread): Update.
9964 * dwarf2loc.c (call_site_to_target_addr): Update.
9965 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9966 * eval.c (evaluate_subexp_standard): Update.
9967 * findvar.c (struct minsym_lookup_data) <result>: Change type
9968 to bound_minimal_symbol.
9969 <objfile>: Remove.
9970 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9971 * frame.c (inside_main_func): Update.
9972 * frv-tdep.c (frv_frame_this_id): Update.
9973 * gcore.c (call_target_sbrk): Update.
9974 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9975 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9976 Update.
9977 * go-lang.c (go_main_name): Update.
9978 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9979 (hppa_hpux_find_import_stub_for_addr): Update.
9980 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9981 Update. Change return type.
9982 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9983 type.
9984 * jit.c (jit_breakpoint_re_set_internal): Update.
9985 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9986 Update.
9987 * linux-nat.c (get_signo): Update.
9988 * linux-thread-db.c (inferior_has_bug): Update
9989 * m32c-tdep.c (m32c_return_value)
9990 (m32c_m16c_address_to_pointer): Update.
9991 * m32r-tdep.c (m32r_frame_this_id): Update.
9992 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9993 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9994 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9995 lookup_minimal_symbol. Change return type.
9996 (lookup_minimal_symbol): Remove.
9997 (lookup_bound_minimal_symbol): Update.
9998 (lookup_minimal_symbol_text): Change return type.
9999 (lookup_minimal_symbol_solib_trampoline): Change return type.
10000 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10001 (lookup_minimal_symbol_solib_trampoline): Change return type.
10002 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10003 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10004 (value_nsstring, find_imps): Update.
10005 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10006 * p-lang.c (pascal_main_name): Update.
10007 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10008 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10009 * proc-service.c (ps_pglobal_lookup): Update.
10010 * ravenscar-thread.c (get_running_thread_msymbol): Change
10011 return type.
10012 (has_ravenscar_runtime, get_running_thread_id): Update.
10013 * remote.c (remote_check_symbols): Update.
10014 * sol-thread.c (ps_pglobal_lookup): Update.
10015 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10016 * solib-dsbt.c (lm_base): Update.
10017 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10018 Update.
10019 * solib-irix.c (locate_base): Update.
10020 * solib-som.c (som_solib_create_inferior_hook)
10021 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10022 Update.
10023 * solib-spu.c (spu_enable_break): Update.
10024 * solib-svr4.c (elf_locate_base, enable_break): Update.
10025 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10026 (flush_ea_cache): Update.
10027 * stabsread.c (define_symbol): Update.
10028 * symfile.c (simple_read_overlay_table): Update.
10029 * symtab.c (find_pc_sect_line): Update.
10030 * tracepoint.c (scope_info): Update.
10031 * tui-disasm.c (tui_get_begin_asm_address): Update.
10032 * value.c (value_static_field): Update.
10033
40c1a007
TT
100342014-02-26 Tom Tromey <tromey@redhat.com>
10035
10036 * minsyms.c (prim_record_minimal_symbol_full): Use
10037 SET_MSYMBOL_VALUE_ADDRESS.
10038 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10039 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10040 SET_MSYMBOL_VALUE_ADDRESS.
10041 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10042 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10043
efd66ac6
TT
100442014-02-26 Tom Tromey <tromey@redhat.com>
10045
10046 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10047 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10048 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10049 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10050 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10051 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10052 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10053 * ada-lang.c (ada_main_name): Update.
10054 (ada_lookup_simple_minsym): Update.
10055 (ada_make_symbol_completion_list): Update.
10056 (ada_add_standard_exceptions): Update.
10057 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10058 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10059 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10060 * arm-tdep.c (skip_prologue_function): Update.
10061 (arm_skip_stack_protector, arm_skip_stub): Update.
10062 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10063 (arm_wince_skip_main_prologue): Update.
10064 * auxv.c (ld_so_xfer_auxv): Update.
10065 * avr-tdep.c (avr_scan_prologue): Update.
10066 * ax-gdb.c (gen_var_ref): Update.
10067 * block.c (call_site_for_pc): Update.
10068 * blockframe.c (get_pc_function_start): Update.
10069 (find_pc_partial_function_gnu_ifunc): Update.
10070 * breakpoint.c (create_overlay_event_breakpoint): Update.
10071 (create_longjmp_master_breakpoint): Update.
10072 (create_std_terminate_master_breakpoint): Update.
10073 (create_exception_master_breakpoint): Update.
10074 (resolve_sal_pc): Update.
10075 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10076 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10077 Update.
10078 * c-valprint.c (c_val_print): Update.
10079 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10080 * coffread.c (coff_symfile_read): Update.
10081 * common/agent.c (agent_look_up_symbols): Update.
10082 * dbxread.c (find_stab_function_addr): Update.
10083 (end_psymtab): Update.
10084 * dwarf2loc.c (call_site_to_target_addr): Update.
10085 (func_verify_no_selftailcall): Update.
10086 (tailcall_dump): Update.
10087 (call_site_find_chain_1): Update.
10088 (dwarf_expr_reg_to_entry_parameter): Update.
10089 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10090 (elf_gnu_ifunc_resolve_by_got): Update.
10091 * f-valprint.c (info_common_command): Update.
10092 * findvar.c (read_var_value): Update.
10093 * frame.c (get_prev_frame_1): Update.
10094 (inside_main_func): Update.
10095 * frv-tdep.c (frv_skip_main_prologue): Update.
10096 (frv_frame_this_id): Update.
10097 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10098 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10099 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10100 (gnuv3_skip_trampoline): Update.
10101 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10102 (hppa64_hpux_in_solib_call_trampoline): Update.
10103 (hppa_hpux_skip_trampoline_code): Update.
10104 (hppa64_hpux_search_dummy_call_sequence): Update.
10105 (hppa_hpux_find_import_stub_for_addr): Update.
10106 (hppa_hpux_find_dummy_bpaddr): Update.
10107 * hppa-tdep.c (hppa_symbol_address)
10108 (hppa_lookup_stub_minimal_symbol): Update.
10109 * i386-tdep.c (i386_skip_main_prologue): Update.
10110 (i386_pe_skip_trampoline_code): Update.
10111 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10112 * infcall.c (get_function_name): Update.
10113 * infcmd.c (until_next_command): Update.
10114 * jit.c (jit_breakpoint_re_set_internal): Update.
10115 (jit_inferior_init): Update.
10116 * linespec.c (minsym_found): Update.
10117 (add_minsym): Update.
10118 * linux-fork.c (info_checkpoints_command): Update.
10119 * linux-nat.c (get_signo): Update.
10120 * linux-thread-db.c (inferior_has_bug): Update.
10121 * m32c-tdep.c (m32c_return_value): Update.
10122 (m32c_m16c_address_to_pointer): Update.
10123 (m32c_m16c_pointer_to_address): Update.
10124 * m32r-tdep.c (m32r_frame_this_id): Update.
10125 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10126 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10127 * maint.c (maintenance_translate_address): Update.
10128 * minsyms.c (add_minsym_to_hash_table): Update.
10129 (add_minsym_to_demangled_hash_table): Update.
10130 (msymbol_objfile): Update.
10131 (lookup_minimal_symbol): Update.
10132 (iterate_over_minimal_symbols): Update.
10133 (lookup_minimal_symbol_text): Update.
10134 (lookup_minimal_symbol_by_pc_name): Update.
10135 (lookup_minimal_symbol_solib_trampoline): Update.
10136 (lookup_minimal_symbol_by_pc_section_1): Update.
10137 (lookup_minimal_symbol_and_objfile): Update.
10138 (prim_record_minimal_symbol_full): Update.
10139 (compare_minimal_symbols): Update.
10140 (compact_minimal_symbols): Update.
10141 (build_minimal_symbol_hash_tables): Update.
10142 (install_minimal_symbols): Update.
10143 (terminate_minimal_symbol_table): Update.
10144 (find_solib_trampoline_target): Update.
10145 (minimal_symbol_upper_bound): Update.
10146 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10147 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10148 (mips_skip_pic_trampoline_code): Update.
10149 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10150 * objc-lang.c (selectors_info): Update.
10151 (classes_info): Update.
10152 (find_methods): Update.
10153 (find_imps): Update.
10154 (find_objc_msgsend): Update.
10155 * objfiles.c (objfile_relocate1): Update.
10156 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10157 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10158 * p-valprint.c (pascal_val_print): Update.
10159 * parse.c (write_exp_msymbol): Update.
10160 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10161 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10162 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10163 * printcmd.c (build_address_symbolic): Update.
10164 (sym_info): Update.
10165 (address_info): Update.
10166 * proc-service.c (ps_pglobal_lookup): Update.
10167 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10168 (find_pc_sect_psymtab): Update.
10169 * python/py-framefilter.c (py_print_frame): Update.
10170 * ravenscar-thread.c (get_running_thread_id): Update.
10171 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10172 Update.
10173 * remote.c (remote_check_symbols): Update.
10174 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10175 (rs6000_skip_trampoline_code): Update.
10176 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10177 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10178 * solib-dsbt.c (lm_base): Update.
10179 * solib-frv.c (lm_base): Update.
10180 (main_got): Update.
10181 * solib-irix.c (locate_base): Update.
10182 * solib-som.c (som_solib_create_inferior_hook): Update.
10183 (som_solib_desire_dynamic_linker_symbols): Update.
10184 (link_map_start): Update.
10185 * solib-spu.c (spu_enable_break): Update.
10186 (ocl_enable_break): Update.
10187 * solib-svr4.c (elf_locate_base): Update.
10188 (enable_break): Update.
10189 * spu-tdep.c (spu_get_overlay_table): Update.
10190 (spu_catch_start): Update.
10191 (flush_ea_cache): Update.
10192 * stabsread.c (define_symbol): Update.
10193 (scan_file_globals): Update.
10194 * stack.c (find_frame_funname): Update.
10195 (frame_info): Update.
10196 * symfile.c (simple_read_overlay_table): Update.
10197 (simple_overlay_update): Update.
10198 * symmisc.c (dump_msymbols): Update.
10199 * symtab.c (fixup_section): Update.
10200 (find_pc_sect_line): Update.
10201 (skip_prologue_sal): Update.
10202 (search_symbols): Update.
10203 (print_msymbol_info): Update.
10204 (rbreak_command): Update.
10205 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10206 (completion_list_objc_symbol): Update.
10207 (default_make_symbol_completion_list_break_on): Update.
10208 * tracepoint.c (scope_info): Update.
10209 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10210 (tui_get_begin_asm_address): Update.
10211 * valops.c (find_function_in_inferior): Update.
10212 * value.c (value_static_field): Update.
10213 (value_fn_field): Update.
10214
50e65b17
TT
102152014-02-26 Tom Tromey <tromey@redhat.com>
10216
10217 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10218 bound minimal symbols. Move code that knows about minsym
10219 table layout...
10220 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10221 function.
10222 * minsyms.h (minimal_symbol_upper_bound): Declare.
10223 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10224 minimal_symbol_upper_bound.
10225
1b588015
JB
102262014-02-27 Joel Brobecker <brobecker@adacore.com>
10227
10228 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10229 Use the type's name if its basic type does not have a tag.
10230
dbb9c2b1
JB
102312014-02-27 Joel Brobecker <brobecker@adacore.com>
10232
10233 * dwarf2read.c (read_subrange_type): Add comment.
10234
55426c9d
JB
102352014-02-27 Joel Brobecker <brobecker@adacore.com>
10236
10237 * dwarf2read.c (update_enumeration_type_from_children): New
10238 function, mostly extracted from process_structure_scope.
10239 (read_enumeration_type): Call update_enumeration_type_from_children.
10240 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10241 and flag_flag_enum fields.
10242
f2fce0ca
PA
102432014-02-26 Pedro Alves <palves@redhat.com>
10244
10245 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10246 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10247 to_xfer_partial method.
10248
7a44e40e
PA
102492014-02-26 Pedro Alves <palves@redhat.com>
10250
10251 * target.c (complete_target_initialization): Don't install
10252 default_xfer_partial as to_xfer_partial hook.
10253 (nomemory): Delete.
10254 (update_current_target): Don't INHERIT nor de_fault
10255 deprecated_xfer_memory. Delete de_fault macro.
10256 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10257 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10258 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10259 field.
10260
bd265cd0
PA
102612014-02-26 Pedro Alves <palves@redhat.com>
10262
10263 * go32-nat.c (my_write_child): New function.
10264 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10265 (go32_xfer_partial): New function.
10266 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10267 Instead install a to_xfer_partial hook.
10268
9d46c4e5
PA
102692014-02-26 Pedro Alves <palves@redhat.com>
10270
10271 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10272 to_xfer_partial helper. Rewrite.
10273 (procfs_xfer_partial): New function.
10274 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10275 Install a to_xfer_partial hook.
10276
a1583b1f
PA
102772014-02-26 Pedro Alves <palves@redhat.com>
10278
10279 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10280 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10281 (m32r_xfer_partial): New function.
10282 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10283 Install a to_xfer_partial hook.
10284
6df1b29f
PA
102852014-02-26 Pedro Alves <palves@redhat.com>
10286
10287 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10288 helper.
10289 (mips_xfer_partial): New function.
10290 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10291 hook. Install a to_xfer_partial hook.
10292
dc53a7ad
JB
102932014-02-26 Joel Brobecker <brobecker@adacore.com>
10294
10295 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10296 * gdbtypes.c (create_array_type_with_stride): New function,
10297 renaming create_array_type, but with an added parameter
10298 called "bit_stride".
10299 (create_array_type): Re-implement using
10300 create_array_type_with_stride.
10301 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10302 and DW_AT_bit_stride attributes.
10303
12ab52e9
PA
103042014-02-26 Pedro Alves <palves@redhat.com>
10305
10306 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10307 task-specific breakpoints.
10308
d16461ae
PA
103092014-02-25 Pedro Alves <palves@redhat.com>
10310
10311 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10312 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10313
a8b16220
SS
103142014-02-25 Stan Shebs <stan@codesourcery.com>
10315
10316 * defs.h: Annotate comments for Doxygen.
10317
b9e795ee
TT
103182014-02-25 Tom Tromey <tromey@redhat.com>
10319
10320 * target.h (target_ignore): Don't declare.
10321 * target.c (target_ignore): Remove.
10322
849c862e
JK
103232014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10324
10325 PR gdb/16626
10326 * auto-load.c (auto_load_objfile_script_1): Change filename to
10327 debugfile.
10328
475109d8
JB
103292014-02-25 Joel Brobecker <brobecker@adacore.com>
10330
10331 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10332 documentation. Adjust prototype to match the target_ops
10333 to_xfer_partial method. Adjust implementation accordingly.
10334
e186c3bd
HZ
103352014-02-25 Hui Zhu <hui@codesourcery.com>
10336
10337 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10338 to_traceframe_info.
10339
6d451942
KB
103402014-02-25 Kevin Buettner <kevinb@redhat.com>
10341
041ab8b4 10342 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10343 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10344 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10345 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10346 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10347 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10348 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10349 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10350 New constants.
10351 (rl78_register_type): Use a data pointer type for SP and
10352 new pseudo registers mentioned above. Use a 16 bit integer
10353 type for all other register pairs.
10354 (rl78_register_name, rl78_g10_register_name): Update for
10355 new pseudo registers.
10356 (rl78_pseudo_register_read): Likewise.
10357 (rl78_pseudo_register_write): Likewise.
10358 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10359 to the newly added pseudo registers.
10360
eddf0bae
DE
103612014-02-24 Doug Evans <dje@google.com>
10362
10363 * value.c (record_latest_value): Fix comment.
10364 * printcmd.c (print_command_1): Remove code to handle -1 return from
10365 record_latest_value.
10366
e96027e0
PA
103672014-02-24 Pedro Alves <palves@redhat.com>
10368
10369 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10370 deprecated_xfer_memory hook.
10371 (procfs_xfer_partial): Call procfs_xfer_memory instead
10372 of the deprecated_xfer_memory target hook.
10373 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10374 helper.
10375
0837c976
YZ
103762014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10377
10378 * windows-nat.c (windows_xfer_shared_libraries): Return
10379 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10380 requested object is TARGET_OBJECT_LIBRARIES.
10381
bc113b4e
YQ
103822014-02-24 Yao Qi <yao@codesourcery.com>
10383
10384 * target.h (enum target_xfer_status)
10385 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10386 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10387 explicitly. New.
10388 * corefile.c (memory_error_message): User updated.
10389 * exec.c (section_table_read_available_memory): Likewise.
10390 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10391 * target.c (target_xfer_status_to_string): Likewise.
10392 (raw_memory_xfer_partial): Likewise.
10393 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10394 * valops.c (read_value_memory): Likewise.
10395 * exec.h: Update comments.
10396
01cb8804
YQ
103972014-02-24 Yao Qi <yao@codesourcery.com>
10398
10399 * target.c (target_xfer_status_to_string): Rename argument err
10400 to status.
10401 * target.h (target_xfer_status_to_string): Update declaration.
10402 Replace target_xfer_error_to_string with
10403 target_xfer_status_to_string in comment.
10404
93063aa6
YQ
104052014-02-24 Yao Qi <yao@codesourcery.com>
10406
10407 * mips-linux-nat.c (super_close): Update its type.
10408 (mips_linux_close): Pass 'self' to super_close.
10409
5c328c05
YQ
104102014-02-24 Yao Qi <yao@codesourcery.com>
10411
10412 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10413 * corefile.c (read_memory): Adjusted.
10414 * target.c (target_write_with_progress): Adjusted.
10415
f73023dd
YQ
104162014-02-23 Yao Qi <yao@codesourcery.com>
10417
10418 Revert two patches:
10419
10420 2013-10-25 Yao Qi <yao@codesourcery.com>
10421
10422 * remote.c (remote_traceframe_info): Return early if
10423 traceframe is not selected.
10424
10425 2013-07-19 Yao Qi <yao@codesourcery.com>
10426
10427 * target.c (update_current_target): Change the default action
10428 of 'to_traceframe_info' from tcomplain to return_zero.
10429 * target.h (struct target_ops) <to_traceframe_info>: Add more
10430 comments.
10431
5a2eb0ef
YQ
104322014-02-23 Yao Qi <yao@codesourcery.com>
10433
10434 * valops.c (read_value_memory): Rewrite it. Call
10435 target_xfer_partial in a loop.
10436 * exec.h (section_table_available_memory): Remove declaration.
10437 Move comments to ...
10438 * exec.c (section_table_available_memory): ... here. Make it
10439 static.
10440
1ee79381
YQ
104412014-02-23 Yao Qi <yao@codesourcery.com>
10442
10443 * exec.c (section_table_read_available_memory): New function.
10444 * exec.h (section_table_read_available_memory): Declare.
10445 * ctf.c (ctf_xfer_partial): Call
10446 section_table_read_available_memory.
10447 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10448
1ca49d37
YQ
104492014-02-23 Yao Qi <yao@codesourcery.com>
10450
10451 * ctf.c (ctf_xfer_partial): Move code to ...
10452 * exec.c (exec_read_partial_read_only): ... it. New function.
10453 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10454 * tracefile.c: Include "exec.h".
10455 * exec.h (exec_read_partial_read_only): Declare.
10456
a283690e
YQ
104572014-02-23 Yao Qi <yao@codesourcery.com>
10458
10459 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10460 (tfile_has_memory): Remove.
10461 (init_tfile_ops): Don't set fields to_has_all_memory and
10462 to_has_memory of tfile_ops.
10463 * tracefile.c (tracefile_has_all_memory): New function.
10464 (tracefile_has_memory): New function.
10465 (init_tracefile_ops): Initialize fields to_has_all_memory and
10466 to_has_memory of 'ops'.
10467
12e03cd0
YQ
104682014-02-23 Yao Qi <yao@codesourcery.com>
10469
10470 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10471 (ctf_thread_alive, ctf_get_trace_status): Remove.
10472 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10473 init_tracefile_ops.
10474 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10475 (tfile_has_stack, tfile_has_registers): Remove.
10476 (tfile_thread_alive): Remove.
10477 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10478 init_tracefile_ops.
10479 * tracefile.c (tracefile_has_stack): New function.
10480 (tracefile_has_registers): New function.
10481 (tracefile_thread_alive): New function.
10482 (tracefile_get_trace_status): New function.
10483 (init_tracefile_ops): New function.
10484 * tracefile.h (init_tracefile_ops): Declare.
10485
11395323
YQ
104862014-02-23 Yao Qi <yao@codesourcery.com>
10487
10488 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10489 (O_LARGEFILE): Likewise.
10490 (tfile_ops): Likewise.
10491 (TRACE_HEADER_SIZE): Likewise.
10492 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10493 (cur_data_size): Likewise.
10494 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10495 (tfile_close, tfile_files_info): Likewise.
10496 (tfile_get_trace_status): Likewise.
10497 (tfile_get_tracepoint_status): Likewise.
10498 (tfile_get_traceframe_address): Likewise.
10499 (tfile_trace_find, match_blocktype): Likewise.
10500 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10501 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10502 (tfile_get_trace_state_variable_value): Likewise.
10503 (tfile_has_all_memory, tfile_has_memory): Likewise.
10504 (tfile_has_stack, tfile_has_registers): Likewise.
10505 (tfile_thread_alive, build_traceframe_info): Likewise.
10506 (tfile_traceframe_info, init_tfile_ops): Likewise.
10507 (_initialize_tracepoint): Don't call init_tfile_ops
10508 and add_target_with_completer.
10509 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10510 exec.h, completer.h and filenames.h.
10511 (_initialize_tracefile_tfile): New function.
10512
7951c4eb
YQ
105132014-02-23 Yao Qi <yao@codesourcery.com>
10514
10515 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10516 tracefile-tfile.o.
10517 (HFILES_NO_SRCDIR): Add tracefile.h.
10518 * ctf.c: Include "tracefile.h".
10519 * tracefile.h: New file.
10520 * tracefile.c: New file
10521 * tracefile-tfile.c: New file.
10522 * tracepoint.c: Include "tracefile.h".
10523 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10524 (stop_reason_names): Add const.
10525 (trace_file_writer_xfree): Move it to tracefile.c.
10526 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10527 (trace_save_ctf): Likewise.
10528 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10529 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10530 (tfile_write_header, tfile_write_regblock_type): Likewise.
10531 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10532 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10533 (tfile_write_raw_data, tfile_end): Likewise.
10534 (tfile_trace_file_writer_new): Likewise.
10535 (free_uploaded_tp): Make it extern.
10536 (free_uploaded_tsv): Make it extern.
10537 (_initialize_tracepoint): Move code to register command 'tsave'
10538 to tracefile.c.
10539 * tracepoint.h (stop_reason_names): Declare.
10540 (struct trace_frame_write_ops): Move it to tracefile.h.
10541 (struct trace_file_write_ops): Likewise.
10542 (struct trace_file_writer): Likewise.
10543 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10544
184cd072
JK
105452014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10546
10547 PR gdb/16594
10548 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10549 process name.
10550 (get_cores_used_by_process): New parameter num_cores, use it.
10551 (linux_xfer_osdata_processes): Pass num_cores to it.
10552 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10553 process name.
10554
c63528fc
AK
105552014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10556
10557 * target.c (memory_xfer_partial): Fix length arg in call to
10558 breakpoint_xfer_memory.
10559
d7b30f67
SDJ
105602014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10561
10562 PR tdep/16397
10563 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10564 number comes after the + or - signs. Adjust length of register
10565 name to be extracted.
10566
8838afaf
TT
105672014-02-20 Tom Tromey <tromey@redhat.com>
10568
10569 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10570 (ada_varobj_ops): Mark "extern".
10571
05227d14
TT
105722014-02-20 Tom Tromey <tromey@redhat.com>
10573
10574 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10575
1254eefc
DE
105762014-02-20 Doug Evans <xdje42@gmail.com>
10577
10578 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10579 All callers updated.
10580 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10581 All callers updated.
10582 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10583 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10584
adde2bff
DE
105852014-02-20 lin zuojian <manjian2006@gmail.com>
10586 Joel Brobecker <brobecker@adacore.com>
10587 Doug Evans <xdje42@gmail.com>
10588
10589 PR symtab/16581
10590 * dwarf2read.c (struct die_info): New member in_process.
10591 (reset_die_in_process): New function.
10592 (process_die): Set it at the start, reset when returning.
10593 (inherit_abstract_dies): Only call process_die if origin_child_die
10594 not already being processed.
10595
3be75f87
JB
105962014-02-20 Joel Brobecker <brobecker@adacore.com>
10597
10598 * windows-nat.c (handle_unload_dll): Add function documentation.
10599 (do_initial_windows_stuff): Add comment explaining why we wait
10600 until after inferior initialization has finished before
10601 processing all DLLs.
10602
47f7ffdb
JB
106032014-02-20 Joel Brobecker <brobecker@adacore.com>
10604
10605 * windows-nat.c (get_module_name): Delete.
10606 (windows_get_exec_module_filename): New function, mostly
10607 inspired from get_module_name.
10608 (windows_pid_to_exec_file): Replace call to get_module_name
10609 by call to windows_get_exec_module_filename.
10610
1cd9feab
JB
106112014-02-20 Joel Brobecker <brobecker@adacore.com>
10612
10613 * windows-nat.c (handle_load_dll): Rewrite this function's
10614 introductory comment. Remove code using get_module_name
10615 to get the DLL's name.
10616
ea39ad35
JB
106172014-02-20 Joel Brobecker <brobecker@adacore.com>
10618
10619 * windows-nat.c (get_windows_debug_event): Ignore
10620 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10621 if windows_initialization_done == 0.
10622 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10623 Adjust implementation to always load all DLLs.
10624 (do_initial_windows_stuff): Replace call to
10625 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10626
95060284
JB
106272014-02-20 Joel Brobecker <brobecker@adacore.com>
10628
10629 * windows-nat.c (_initialize_windows_nat): Deprecate the
10630 "dll-symbols" command. Turn the "add-shared-symbol-files"
10631 and "assf" aliases into commands, and deprecate them as well.
10632 * NEWS: Add entry explaining that "dll-symbols" and its two
10633 aliases are now deprecated.
10634
8d4fdb12
JB
106352014-02-20 Joel Brobecker <brobecker@adacore.com>
10636
10637 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10638 new-line in debug string. Remove trailing spaces.
10639
1b281443
SS
106402014-02-19 Stan Shebs <stan@codesourcery.com>
10641
10642 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10643
f7bd0f78
SC
106442014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10645
10646 * NEWS: Add entry for the new feature
10647 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10648 and class values.
10649
399ebc3d
SS
106502014-02-19 Stan Shebs <stan@codesourcery.com>
10651
10652 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10653
c658158d
PA
106542014-02-19 Pedro Alves <palves@redhat.com>
10655
10656 * common/ptid.h (struct ptid): Mention that process_stratum
10657 targets should prefer ptid.lwp.
10658
ba348170
PA
106592014-02-19 Pedro Alves <palves@redhat.com>
10660
10661 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10662 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10663 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10664 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10665 store remote thread ids rather than ptid.tid.
10666 (_initialize_remote): Adjust.
10667
ac01945b
TT
106682014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * target.c (target_get_unwinder): Rewrite.
10671 (target_get_tailcall_unwinder): Rewrite.
10672 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10673 (record_btrace_to_get_tailcall_unwinder): New function.
10674 (init_record_btrace_ops): Update.
10675 * target.h (struct target_ops) <to_get_unwinder,
10676 to_get_tailcall_unwinder>: Now function pointers. Use
10677 TARGET_DEFAULT_RETURN.
10678
8476dc92
TT
106792014-02-19 Tom Tromey <tromey@redhat.com>
10680
10681 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10682 argument.
10683 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10684
c0eca49f
TT
106852014-02-19 Tom Tromey <tromey@redhat.com>
10686
10687 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10688 directly.
10689 * target-delegates.c: Rebuild.
10690 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10691 TARGET_DEFAULT_FUNC.
10692 * target.c (default_target_decr_pc_after_break): Rename from
10693 forward_target_decr_pc_after_break. Simplify.
10694 (target_decr_pc_after_break): Rely on delegation.
10695
596b6b39
TT
106962014-02-19 Tom Tromey <tromey@redhat.com>
10697
10698 * target.c (update_current_target): Do not INHERIT to_doc or
10699 to_magic. Do not de_fault to_open or to_close.
10700
b427c1bc
TT
107012014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * gcore.h (objfile_find_memory_regions): Declare.
10704 * gcore.c (objfile_find_memory_regions): No longer static. Add
10705 "self" argument.
10706 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10707 * exec.c: Include gcore.h.
10708 (exec_set_find_memory_regions): Remove.
10709 (exec_find_memory_regions): Remove.
10710 (exec_do_find_memory_regions): Remove.
10711 (init_exec_ops): Update.
10712 * defs.h (exec_set_find_memory_regions): Remove.
10713
9b144037
TT
107142014-02-19 Tom Tromey <tromey@redhat.com>
10715
10716 * target-delegates.c: Rebuild.
10717 * target.h (struct target_ops) <to_extra_thread_info,
10718 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10719 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10720 not 0, in TARGET_DEFAULT_RETURN.
10721
555bbdeb
TT
107222014-02-19 Tom Tromey <tromey@redhat.com>
10723
10724 * target.c (complete_target_initialization): Remove casts. Use
10725 return_zero_has_execution.
10726 (return_zero): Add "ignore" argument.
10727 (return_zero_has_execution): New function.
10728 (init_dummy_target): Remove casts. Use
10729 return_zero_has_execution.
10730
be4ddd36
TT
107312014-02-19 Tom Tromey <tromey@redhat.com>
10732
10733 * target.c (update_current_target): Update comments. Do not
10734 INHERIT to_stratum.
10735
2117c711
TT
107362014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10739 needed.
10740 * corelow.c (core_read_description): Delegate when needed.
10741 * remote.c (remote_read_description): Delegate when needed.
10742 * target-delegates.c: Rebuild.
10743 * target.c (target_read_description): Rewrite.
10744 * target.h (struct target_ops) <to_read_description>: Update
10745 comment. Use TARGET_DEFAULT_RETURN.
10746
e88ef65c
TT
107472014-02-19 Tom Tromey <tromey@redhat.com>
10748
10749 * target-delegates.c: Rebuild.
10750 * target.c (update_current_target): Don't inherit or default
10751 to_can_run.
10752 (find_default_run_target): Check against delegate_can_run.
10753 * target.h (struct target_ops) <to_can_run>: Use
10754 TARGET_DEFAULT_RETURN.
10755
86a0854a
TT
107562014-02-19 Tom Tromey <tromey@redhat.com>
10757
10758 * target-delegates.c: Rebuild.
10759 * target.c (target_disconnect): Unconditionally delegate.
10760 * target.h (struct target_ops) <to_disconnect>: Use
10761 TARGET_DEFAULT_NORETURN.
10762
ee97f592
TT
107632014-02-19 Tom Tromey <tromey@redhat.com>
10764
10765 * record.c (record_stop): Unconditionally delegate.
10766 * target-delegates.c: Rebuild.
10767 * target.c (target_stop_recording): Unconditionally delegate.
10768 * target.h (struct target_ops) <to_stop_recording>: Use
10769 TARGET_DEFAULT_IGNORE.
10770
6dc7fcf4
TT
107712014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target-delegates.c: Rebuild.
10774 * target.c (target_enable_btrace): Unconditionally delegate.
10775 * target.h (struct target_ops) <to_enable_btrace>: Use
10776 TARGET_DEFAULT_NORETURN.
10777
eb5b20d4
TT
107782014-02-19 Tom Tromey <tromey@redhat.com>
10779
10780 * target-delegates.c: Rebuild.
10781 * target.c (target_read_btrace): Unconditionally delegate.
10782 * target.h (struct target_ops) <to_read_btrace>: Use
10783 TARGET_DEFAULT_NORETURN.
10784
9ace480d
TT
107852014-02-19 Tom Tromey <tromey@redhat.com>
10786
10787 * target-delegates.c: Rebuild.
10788 * target.c (target_teardown_btrace): Unconditionally delegate.
10789 * target.h (struct target_ops) <to_teardown_btrace>: Use
10790 TARGET_DEFAULT_NORETURN.
10791
8dc292d3
TT
107922014-02-19 Tom Tromey <tromey@redhat.com>
10793
10794 * target-delegates.c: Rebuild.
10795 * target.c (target_disable_btrace): Unconditionally delegate.
10796 * target.h (struct target_ops) <to_disable_btrace>: Use
10797 TARGET_DEFAULT_NORETURN.
10798
58a5184e
TT
107992014-02-19 Tom Tromey <tromey@redhat.com>
10800
10801 * target-delegates.c: Rebuild.
10802 * target.c (default_search_memory): New function.
10803 (simple_search_memory): Update comment.
10804 (target_search_memory): Unconditionally delegate.
10805 * target.h (struct target_ops) <to_search_memory>: Use
10806 TARGET_DEFAULT_FUNC.
10807
8de71aab
TT
108082014-02-19 Tom Tromey <tromey@redhat.com>
10809
10810 * auxv.c (default_auxv_parse): No longer static.
10811 (target_auxv_parse): Unconditionally delegate.
10812 * auxv.h (default_auxv_parse): Declare.
10813 * target-delegates.c: Rebuild.
10814 * target.c: Include auxv.h.
10815 * target.h (struct target_ops) <to_auxv_parse>: Use
10816 TARGET_DEFAULT_FUNC.
10817
6b2c5a57
TT
108182014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target-delegates.c: Rebuild.
10821 * target.c (target_memory_map): Unconditionally delegate.
10822 * target.h (struct target_ops) <to_memory_map>: Use
10823 TARGET_DEFAULT_RETURN.
10824
cbffc065
TT
108252014-02-19 Tom Tromey <tromey@redhat.com>
10826
10827 * target-delegates.c: Rebuild.
10828 * target.c (target_thread_alive): Unconditionally delegate.
10829 * target.h (struct target_ops) <to_thread_alive>: Use
10830 TARGET_DEFAULT_RETURN.
10831
f09e2107
TT
108322014-02-19 Tom Tromey <tromey@redhat.com>
10833
10834 * target-delegates.c: Rebuild.
10835 * target.c (target_save_record): Unconditionally delegate.
10836 * target.h (struct target_ops) <to_save_record>: Use
10837 TARGET_DEFAULT_NORETURN.
10838
07366925
TT
108392014-02-19 Tom Tromey <tromey@redhat.com>
10840
10841 * target-delegates.c: Rebuild.
10842 * target.c (target_delete_record): Unconditionally delegate.
10843 * target.h (struct target_ops) <to_delete_record>: Use
10844 TARGET_DEFAULT_NORETURN.
10845
dd2e9d25
TT
108462014-02-19 Tom Tromey <tromey@redhat.com>
10847
10848 * target-delegates.c: Rebuild.
10849 * target.c (target_record_is_replaying): Unconditionally
10850 delegate.
10851 * target.h (struct target_ops) <to_record_is_replaying>: Use
10852 TARGET_DEFAULT_RETURN.
10853
671e76cc
TT
108542014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target-delegates.c: Rebuild.
10857 * target.c (target_goto_record_begin): Unconditionally delegate.
10858 * target.h (struct target_ops) <to_goto_record_begin>: Use
10859 TARGET_DEFAULT_NORETURN.
10860
e9179bb3
TT
108612014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * target-delegates.c: Rebuild.
10864 * target.c (target_goto_record_end): Unconditionally delegate.
10865 * target.h (struct target_ops) <to_goto_record_end>: Use
10866 TARGET_DEFAULT_NORETURN.
10867
05969c84
TT
108682014-02-19 Tom Tromey <tromey@redhat.com>
10869
10870 * target-delegates.c: Rebuild.
10871 * target.c (target_goto_record): Unconditionally delegate.
10872 * target.h (struct target_ops) <to_goto_record>: Use
10873 TARGET_DEFAULT_NORETURN.
10874
3679abfa
TT
108752014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target-delegates.c: Rebuild.
10878 * target.c (target_insn_history): Unconditionally delegate.
10879 * target.h (struct target_ops) <to_insn_history>: Use
10880 TARGET_DEFAULT_NORETURN.
10881
8444ab58
TT
108822014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * target-delegates.c: Rebuild.
10885 * target.c (target_insn_history_from): Unconditionally delegate.
10886 * target.h (struct target_ops) <to_insn_history_from>: Use
10887 TARGET_DEFAULT_NORETURN.
10888
c29302cc
TT
108892014-02-19 Tom Tromey <tromey@redhat.com>
10890
10891 * target-delegates.c: Rebuild.
10892 * target.c (target_insn_history_range): Unconditionally delegate.
10893 * target.h (struct target_ops) <to_insn_history_range>: Use
10894 TARGET_DEFAULT_NORETURN.
10895
170049d4
TT
108962014-02-19 Tom Tromey <tromey@redhat.com>
10897
10898 * target-delegates.c: Rebuild.
10899 * target.c (target_call_history): Unconditionally delegate.
10900 * target.h (struct target_ops) <to_call_history>: Use
10901 TARGET_DEFAULT_NORETURN.
10902
16fc27d6
TT
109032014-02-19 Tom Tromey <tromey@redhat.com>
10904
10905 * target-delegates.c: Rebuild.
10906 * target.c (target_call_history_from): Unconditionally delegate.
10907 * target.h (struct target_ops) <to_call_history_from>: Use
10908 TARGET_DEFAULT_NORETURN.
10909
115d9817
TT
109102014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * target-delegates.c: Rebuild.
10913 * target.c (target_call_history_range): Unconditionally delegate.
10914 * target.h (struct target_ops) <to_call_history_range>: Use
10915 TARGET_DEFAULT_NORETURN.
10916
eb276a6b
TT
109172014-02-19 Tom Tromey <tromey@redhat.com>
10918
10919 * target-delegates.c: Rebuild.
10920 * target.c (target_verify_memory): Unconditionally delegate.
10921 * target.h (struct target_ops) <to_verify_memory>: Use
10922 TARGET_DEFAULT_NORETURN.
10923
9e538d0d
TT
109242014-02-19 Tom Tromey <tromey@redhat.com>
10925
10926 * target-delegates.c: Rebuild.
10927 * target.c (target_core_of_thread): Unconditionally delegate.
10928 * target.h (struct target_ops) <to_core_of_thread>: Use
10929 TARGET_DEFAULT_RETURN.
10930
f6fb2925
TT
109312014-02-19 Tom Tromey <tromey@redhat.com>
10932
10933 * target-delegates.c: Rebuild.
10934 * target.c (target_flash_done): Unconditionally delegate.
10935 * target.h (struct target_ops) <to_flash_done>: Use
10936 TARGET_DEFAULT_NORETURN.
10937
e8a6c6ac
TT
109382014-02-19 Tom Tromey <tromey@redhat.com>
10939
10940 * target-delegates.c: Rebuild.
10941 * target.c (target_flash_erase): Unconditionally delegate.
10942 * target.h (struct target_ops) <to_flash_erase>: Use
10943 TARGET_DEFAULT_NORETURN.
10944
7e35c012
TT
109452014-02-19 Tom Tromey <tromey@redhat.com>
10946
10947 * target-delegates.c: Rebuild.
10948 * target.c (target_get_section_table): Unconditionally delegate.
10949 * target.h (struct target_ops) <to_get_section_table>: Use
10950 TARGET_DEFAULT_RETURN.
10951
770234d3
TT
109522014-02-19 Tom Tromey <tromey@redhat.com>
10953
10954 * target-delegates.c: Rebuild.
10955 * target.c (target_pid_to_str): Unconditionally delegate.
10956 (init_dummy_target): Don't initialize to_pid_to_str.
10957 (default_pid_to_str): Rename from dummy_pid_to_str.
10958 * target.h (struct target_ops) <to_pid_to_str>: Use
10959 TARGET_DEFAULT_FUNC.
10960
09b0dc2b
TT
109612014-02-19 Tom Tromey <tromey@redhat.com>
10962
10963 * target-delegates.c: Rebuild.
10964 * target.c (target_find_new_threads): Unconditionally delegate.
10965 * target.h (struct target_ops) <to_find_new_threads>: Use
10966 TARGET_DEFAULT_RETURN.
10967
7d4f8efa
TT
109682014-02-19 Tom Tromey <tromey@redhat.com>
10969
10970 * target-delegates.c: Rebuild.
10971 * target.c (target_program_signals): Unconditionally delegate.
10972 * target.h (struct target_ops) <to_program_signals>: Use
10973 TARGET_DEFAULT_IGNORE.
10974
035cad7f
TT
109752014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target-delegates.c: Rebuild.
10978 * target.c (target_pass_signals): Unconditionally delegate.
10979 * target.h (struct target_ops) <to_pass_signals>: Use
10980 TARGET_DEFAULT_IGNORE.
10981
8d657035
TT
109822014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target-delegates.c: Rebuild.
10985 * target.c (default_mourn_inferior): New function.
10986 (target_mourn_inferior): Unconditionally delegate.
10987 * target.h (struct target_ops) <to_mourn_inferior>: Use
10988 TARGET_DEFAULT_FUNC.
10989
098dba18
TT
109902014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target-delegates.c: Rebuild.
10993 * target.c (default_follow_fork): New function.
10994 (target_follow_fork): Unconditionally delegate.
10995 * target.h (struct target_ops) <to_follow_fork>: Use
10996 TARGET_DEFAULT_FUNC.
10997
423a4807
TT
109982014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * target-delegates.c: Rebuild.
11001 * target.c (target_kill): Unconditionally delegate.
11002 * target.h (struct target_ops) <to_kill>: Use
11003 TARGET_DEFAULT_NORETURN.
11004
6c7e5e5c
TT
110052014-02-19 Tom Tromey <tromey@redhat.com>
11006
11007 * target-delegates.c: Rebuild.
11008 * target.c (target_masked_watch_num_registers): Unconditionally
11009 delegate.
11010 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11011 Use TARGET_DEFAULT_RETURN.
11012
8b1c364c
TT
110132014-02-19 Tom Tromey <tromey@redhat.com>
11014
11015 * target-delegates.c: Rebuild.
11016 * target.c (target_remove_mask_watchpoint): Unconditionally
11017 delegate.
11018 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11019 TARGET_DEFAULT_RETURN.
11020
cd4ae029
TT
110212014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target-delegates.c: Rebuild.
11024 * target.c (target_insert_mask_watchpoint): Unconditionally
11025 delegate.
11026 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11027 TARGET_DEFAULT_RETURN.
11028
a134316b
TT
110292014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * target-delegates.c: Rebuild.
11032 * target.c (target_ranged_break_num_registers): Unconditionally
11033 delegate.
11034 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11035 Use TARGET_DEFAULT_RETURN.
11036
ad5989bd
TT
110372014-02-19 Tom Tromey <tromey@redhat.com>
11038
11039 * target-delegates.c: Rebuild.
11040 * target.c (target_fetch_registers): Unconditionally delegate.
11041 * target.h (struct target_ops) <to_fetch_registers>: Use
11042 TARGET_DEFAULT_NORETURN.
11043
46ee7e8d
TT
110442014-02-19 Tom Tromey <tromey@redhat.com>
11045
11046 * target-delegates.c: Rebuild.
11047 * target.c (update_current_target): Don't inherit or default
11048 to_stop.
11049 * target.h (struct target_ops) <to_stop>: Use
11050 TARGET_DEFAULT_IGNORE.
11051
843f59ed
TT
110522014-02-19 Tom Tromey <tromey@redhat.com>
11053
11054 * target-delegates.c: Rebuild.
11055 * target.c (update_current_target): Don't inherit or default
11056 to_can_run_breakpoint_commands.
11057 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11058 Use TARGET_DEFAULT_RETURN.
11059
ccfde2a0
TT
110602014-02-19 Tom Tromey <tromey@redhat.com>
11061
11062 * target-delegates.c: Rebuild.
11063 * target.c (update_current_target): Don't inherit or default
11064 to_supports_evaluation_of_breakpoint_conditions.
11065 * target.h (struct target_ops)
11066 <to_supports_evaluation_of_breakpoint_conditions>: Use
11067 TARGET_DEFAULT_RETURN.
11068
0de91722
TT
110692014-02-19 Tom Tromey <tromey@redhat.com>
11070
11071 * target-delegates.c: Rebuild.
11072 * target.c (update_current_target): Don't inherit or default
11073 to_augmented_libraries_svr4_read.
11074 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11075 Use TARGET_DEFAULT_RETURN.
11076
9a7d8b48
TT
110772014-02-19 Tom Tromey <tromey@redhat.com>
11078
11079 * target-delegates.c: Rebuild.
11080 * target.c (update_current_target): Don't inherit or default
11081 to_can_use_agent.
11082 * target.h (struct target_ops) <to_can_use_agent>: Use
11083 TARGET_DEFAULT_RETURN.
11084
d9db5b21
TT
110852014-02-19 Tom Tromey <tromey@redhat.com>
11086
11087 * target-delegates.c: Rebuild.
11088 * target.c (update_current_target): Don't inherit or default
11089 to_use_agent.
11090 * target.h (struct target_ops) <to_use_agent>: Use
11091 TARGET_DEFAULT_NORETURN.
11092
92155eeb
TT
110932014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * target-delegates.c: Rebuild.
11096 * target.c (update_current_target): Don't inherit or default
11097 to_traceframe_info.
11098 (return_null): Remove.
11099 * target.h (struct target_ops) <to_traceframe_info>: Use
11100 TARGET_DEFAULT_RETURN.
11101
d6522a22
TT
111022014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target-delegates.c: Rebuild.
11105 * target.c (update_current_target): Don't inherit or default
11106 to_static_tracepoint_markers_by_strid.
11107 * target.h (struct target_ops)
11108 <to_static_tracepoint_markers_by_strid>: Use
11109 TARGET_DEFAULT_NORETURN.
11110
4c3e4425
TT
111112014-02-19 Tom Tromey <tromey@redhat.com>
11112
11113 * target-delegates.c: Rebuild.
11114 * target.c (update_current_target): Don't inherit or default
11115 to_static_tracepoint_marker_at.
11116 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11117 Use TARGET_DEFAULT_RETURN.
11118
dcd6917f
TT
111192014-02-19 Tom Tromey <tromey@redhat.com>
11120
11121 * target-delegates.c: Rebuild.
11122 * target.c (update_current_target): Don't inherit or default
11123 to_set_permissions.
11124 * target.h (struct target_ops) <to_set_permissions>: Use
11125 TARGET_DEFAULT_IGNORE.
11126
22bcceee
TT
111272014-02-19 Tom Tromey <tromey@redhat.com>
11128
11129 * target-delegates.c: Rebuild.
11130 * target.c (update_current_target): Don't inherit or default
11131 to_get_tib_address.
11132 * target.h (struct target_ops) <to_get_tib_address>: Use
11133 TARGET_DEFAULT_NORETURN.
11134
8586ccaa
TT
111352014-02-19 Tom Tromey <tromey@redhat.com>
11136
11137 * target-delegates.c: Rebuild.
11138 * target.c (update_current_target): Don't inherit or default
11139 to_set_trace_notes.
11140 * target.h (struct target_ops) <to_set_trace_notes>: Use
11141 TARGET_DEFAULT_RETURN.
11142
91df8d1d
TT
111432014-02-19 Tom Tromey <tromey@redhat.com>
11144
11145 * target-delegates.c: Rebuild.
11146 * target.c (update_current_target): Don't initialize
11147 to_set_trace_buffer_size.
11148 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11149 TARGET_DEFAULT_IGNORE.
11150
8d526939
TT
111512014-02-19 Tom Tromey <tromey@redhat.com>
11152
11153 * target-delegates.c: Rebuild.
11154 * target.c (update_current_target): Don't inherit or default
11155 to_set_circular_trace_buffer.
11156 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11157 TARGET_DEFAULT_IGNORE.
11158
0bcfeddf
TT
111592014-02-19 Tom Tromey <tromey@redhat.com>
11160
11161 * target-delegates.c: Rebuild.
11162 * target.c (update_current_target): Don't inherit or default
11163 to_set_disconnected_tracing.
11164 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11165 TARGET_DEFAULT_IGNORE.
11166
9249843f
TT
111672014-02-19 Tom Tromey <tromey@redhat.com>
11168
11169 * target-delegates.c: Rebuild.
11170 * target.c (update_current_target): Don't inherit or default
11171 to_get_min_fast_tracepoint_insn_len.
11172 (return_minus_one): Remove.
11173 * target.h (struct target_ops)
11174 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11175
ace92e7d
TT
111762014-02-19 Tom Tromey <tromey@redhat.com>
11177
11178 * target-delegates.c: Rebuild.
11179 * target.c (update_current_target): Don't inherit or default
11180 to_get_raw_trace_data.
11181 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11182 TARGET_DEFAULT_NORETURN.
11183
08120467
TT
111842014-02-19 Tom Tromey <tromey@redhat.com>
11185
11186 * target-delegates.c: Rebuild.
11187 * target.c (update_current_target): Don't inherit or default
11188 to_upload_trace_state_variables.
11189 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11190 Use TARGET_DEFAULT_RETURN.
11191
1e949b00
TT
111922014-02-19 Tom Tromey <tromey@redhat.com>
11193
11194 * target-delegates.c: Rebuild.
11195 * target.c (update_current_target): Don't inherit or default
11196 to_upload_tracepoints.
11197 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11198 TARGET_DEFAULT_RETURN.
11199
a2e6c147
TT
112002014-02-19 Tom Tromey <tromey@redhat.com>
11201
11202 * target-delegates.c: Rebuild.
11203 * target.c (update_current_target): Don't inherit or default
11204 to_save_trace_data.
11205 * target.h (struct target_ops) <to_save_trace_data>: Use
11206 TARGET_DEFAULT_NORETURN.
11207
959bcd0b
TT
112082014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target-delegates.c: Rebuild.
11211 * target.c (update_current_target): Don't inherit or default
11212 to_get_trace_state_variable_value.
11213 * target.h (struct target_ops)
11214 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11215
afc94e66
TT
112162014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target-delegates.c: Rebuild.
11219 * target.c (update_current_target): Don't inherit or default
11220 to_trace_find.
11221 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11222
e51c07ea
TT
112232014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target-delegates.c: Rebuild.
11226 * target.c (update_current_target): Don't inherit or default
11227 to_trace_stop.
11228 * target.h (struct target_ops) <to_trace_stop>: Use
11229 TARGET_DEFAULT_NORETURN.
11230
6fea14cd
TT
112312014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target-delegates.c: Rebuild.
11234 * target.c (update_current_target): Don't inherit or default
11235 to_get_tracepoint_status.
11236 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11237 TARGET_DEFAULT_NORETURN.
11238
4072d4ff
TT
112392014-02-19 Tom Tromey <tromey@redhat.com>
11240
11241 * target-delegates.c: Rebuild.
11242 * target.c (update_current_target): Don't inherit or default
11243 to_get_trace_status.
11244 * target.h (struct target_ops) <to_get_trace_status>: Use
11245 TARGET_DEFAULT_RETURN.
11246
25da2e80
TT
112472014-02-19 Tom Tromey <tromey@redhat.com>
11248
11249 * target-delegates.c: Rebuild.
11250 * target.c (update_current_target): Don't inherit or default
11251 to_trace_start.
11252 * target.h (struct target_ops) <to_trace_start>: Use
11253 TARGET_DEFAULT_NORETURN.
11254
86dd181d
TT
112552014-02-19 Tom Tromey <tromey@redhat.com>
11256
11257 * target-delegates.c: Rebuild.
11258 * target.c (update_current_target): Don't inherit or default
11259 to_trace_set_readonly_regions.
11260 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11261 Use TARGET_DEFAULT_NORETURN.
11262
05c41993
TT
112632014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * target-delegates.c: Rebuild.
11266 * target.c (update_current_target): Don't inherit or default
11267 to_disable_tracepoint.
11268 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11269 TARGET_DEFAULT_NORETURN.
11270
151f70f1
TT
112712014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * target-delegates.c: Rebuild.
11274 * target.c (update_current_target): Don't inherit or default
11275 to_enable_tracepoint.
11276 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11277 TARGET_DEFAULT_NORETURN.
11278
94eb98b9
TT
112792014-02-19 Tom Tromey <tromey@redhat.com>
11280
11281 * target-delegates.c: Rebuild.
11282 * target.c (update_current_target): Don't inherit or default
11283 to_download_trace_state_variable.
11284 * target.h (struct target_ops) <to_download_trace_state_variable>:
11285 Use TARGET_DEFAULT_NORETURN.
11286
719acc4a
TT
112872014-02-19 Tom Tromey <tromey@redhat.com>
11288
11289 * target-delegates.c: Rebuild.
11290 * target.c (update_current_target): Don't inherit or default
11291 to_can_download_tracepoint.
11292 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11293 TARGET_DEFAULT_RETURN.
11294
9a980a22
TT
112952014-02-19 Tom Tromey <tromey@redhat.com>
11296
11297 * target-delegates.c: Rebuild.
11298 * target.c (update_current_target): Don't inherit or default
11299 to_download_tracepoint.
11300 * target.h (struct target_ops) <to_download_tracepoint>: Use
11301 TARGET_DEFAULT_NORETURN.
11302
5536135b
TT
113032014-02-19 Tom Tromey <tromey@redhat.com>
11304
11305 * target-delegates.c: Rebuild.
11306 * target.c (update_current_target): Don't inherit or default
11307 to_trace_init.
11308 * target.h (struct target_ops) <to_trace_init>: Use
11309 TARGET_DEFAULT_RETURN.
11310
9409d39e
TT
113112014-02-19 Tom Tromey <tromey@redhat.com>
11312
11313 * target-delegates.c: Rebuild.
11314 * target.c (update_current_target): Don't inherit or default
11315 to_supports_string_tracing.
11316 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11317 TARGET_DEFAULT_RETURN.
11318
aab1b22d
TT
113192014-02-19 Tom Tromey <tromey@redhat.com>
11320
11321 * target-delegates.c: Rebuild.
11322 * target.c (update_current_target): Don't inherit or default
11323 to_supports_enable_disable_tracepoint.
11324 * target.h (struct target_ops)
11325 <to_supports_enable_disable_tracepoint>: Use
11326 TARGET_DEFAULT_RETURN.
11327
a7304748
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * target-delegates.c: Rebuild.
11331 * target.c (update_current_target): Don't inherit or default
11332 to_supports_multi_process.
11333 * target.h (struct target_ops) <to_supports_multi_process>: Use
11334 TARGET_DEFAULT_RETURN.
11335
4229b31d
TT
113362014-02-19 Tom Tromey <tromey@redhat.com>
11337
11338 * target-delegates.c: Rebuild.
11339 * target.c (update_current_target): Don't inherit or default
11340 to_get_ada_task_ptid.
11341 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11342 TARGET_DEFAULT_FUNC.
11343
43eba180
TT
113442014-02-19 Tom Tromey <tromey@redhat.com>
11345
11346 * target-delegates.c: Rebuild.
11347 * target.c (update_current_target): Don't inherit or default
11348 to_thread_architecture.
11349 * target.h (struct target_ops) <to_thread_architecture>: Use
11350 TARGET_DEFAULT_FUNC.
11351
fe31bf5b
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target-delegates.c: Rebuild.
11355 * target.c (update_current_target): Don't inherit or default
11356 to_execution_direction.
11357 * target.h (struct target_ops) <to_execution_direction>: Use
11358 TARGET_DEFAULT_FUNC.
11359
53e1cfc7
TT
113602014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target-delegates.c: Rebuild.
11363 * target.c (update_current_target): Don't inherit or default
11364 to_can_execute_reverse.
11365 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11366 TARGET_DEFAULT_RETURN.
11367 (target_can_execute_reverse): Unconditionally delegate.
11368
9bb9d61d
TT
113692014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * target-delegates.c: Rebuild.
11372 * target.c (update_current_target): Don't inherit or default
11373 to_goto_bookmark.
11374 (dummy_goto_bookmark): Remove.
11375 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11376 * target.h (struct target_ops) <to_goto_bookmark>: Use
11377 TARGET_DEFAULT_NORETURN.
11378
3dbafbbb
TT
113792014-02-19 Tom Tromey <tromey@redhat.com>
11380
11381 * target-delegates.c: Rebuild.
11382 * target.c (update_current_target): Don't inherit or default
11383 to_get_bookmark.
11384 (dummy_get_bookmark): Remove.
11385 (init_dummy_target): Don't inherit or default to_get_bookmark.
11386 * target.h (struct target_ops) <to_get_bookmark>: Use
11387 TARGET_DEFAULT_NORETURN
11388
16f796b1
TT
113892014-02-19 Tom Tromey <tromey@redhat.com>
11390
11391 * target-delegates.c: Rebuild.
11392 * target.c (update_current_target): Don't inherit or default
11393 to_make_corefile_notes.
11394 (init_dummy_target): Don't initialize to_make_corefile_notes.
11395 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11396 TARGET_DEFAULT_FUNC.
11397
0b5a2719
TT
113982014-02-19 Tom Tromey <tromey@redhat.com>
11399
11400 * target-delegates.c: Rebuild.
11401 * target.c (update_current_target): Don't inherit or default
11402 to_find_memory_regions.
11403 (init_dummy_target): Don't initialize to_find_memory_regions.
11404 * target.h (struct target_ops) <to_find_memory_regions>: Use
11405 TARGET_DEFAULT_FUNC.
11406
d9cb0195
TT
114072014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target-delegates.c: Rebuild.
11410 * target.c (update_current_target): Don't inherit or default
11411 to_log_command.
11412 * target.h (struct target_ops) <to_log_command>: Use
11413 TARGET_DEFAULT_IGNORE.
11414 (target_log_command): Unconditionally delegate.
11415
830ca330
TT
114162014-02-19 Tom Tromey <tromey@redhat.com>
11417
11418 * target-delegates.c: Rebuild.
11419 * target.c (update_current_target): Don't inherit or default
11420 to_pid_to_exec_file.
11421 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11422 TARGET_DEFAULT_RETURN.
11423
825828fc
TT
114242014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target-delegates.c: Rebuild.
11427 * target.c (update_current_target): Don't inherit or default
11428 to_thread_name.
11429 (target_thread_name): Unconditionally delegate.
11430 * target.h (struct target_ops) <to_thread_name>: Use
11431 TARGET_DEFAULT_RETURN.
11432
4a7e6dda
TT
114332014-02-19 Tom Tromey <tromey@redhat.com>
11434
11435 * target-delegates.c: Rebuild.
11436 * target.c (update_current_target): Don't inherit or default
11437 to_extra_thread_info.
11438 * target.h (struct target_ops) <to_extra_thread_info>: Use
11439 TARGET_DEFAULT_RETURN.
11440
0db88c1d
TT
114412014-02-19 Tom Tromey <tromey@redhat.com>
11442
11443 * target-delegates.c: Rebuild.
11444 * target.c (update_current_target): Don't inherit or default
11445 to_has_exited.
11446 * target.h (struct target_ops) <to_has_exited>: Use
11447 TARGET_DEFAULT_RETURN..
11448
6a9fa051
TT
114492014-02-19 Tom Tromey <tromey@redhat.com>
11450
11451 * target-delegates.c: Rebuild.
11452 * target.c (update_current_target): Don't inherit or default
11453 to_set_syscall_catchpoint.
11454 (return_one): Remove.
11455 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11456 TARGET_DEFAULT_RETURN.
11457
62f64d7a
TT
114582014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * target-delegates.c: Rebuild.
11461 * target.c (update_current_target): Don't inherit or default
11462 to_insert_exec_catchpoint.
11463 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11464 TARGET_DEFAULT_RETURN.
11465
cda0f38c
TT
114662014-01-08 Tom Tromey <tromey@redhat.com>
11467
11468 * target-delegates.c: Rebuild.
11469 * target.c (update_current_target): Don't inherit or default
11470 to_insert_exec_catchpoint.
11471 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11472 TARGET_DEFAULT_RETURN.
11473
95c3375e
TT
114742014-02-19 Tom Tromey <tromey@redhat.com>
11475
11476 * target-delegates.c: Rebuild.
11477 * target.c (update_current_target): Don't inherit or default
11478 to_remove_vfork_catchpoint.
11479 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11480 TARGET_DEFAULT_RETURN.
11481
7e18a8dc
TT
114822014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * target-delegates.c: Rebuild.
11485 * target.c (update_current_target): Don't inherit or default
11486 to_insert_vfork_catchpoint.
11487 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11488 TARGET_DEFAULT_RETURN.
11489
e1a21fb7
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * target-delegates.c: Rebuild.
11493 * target.c (update_current_target): Don't inherit or default
11494 to_remove_fork_catchpoint.
11495 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11496 TARGET_DEFAULT_RETURN.
11497
5958ebeb
TT
114982014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * target-delegates.c: Rebuild.
11501 * target.c (update_current_target): Don't inherit or default
11502 to_insert_fork_catchpoint.
11503 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11504 TARGET_DEFAULT_RETURN.
11505
340ba4bf
TT
115062014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target-delegates.c: Rebuild.
11509 * target.c (update_current_target): Don't inherit or default
11510 to_post_startup_inferior.
11511 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11512 TARGET_DEFAULT_IGNORE.
11513
7634da87
TT
115142014-02-19 Tom Tromey <tromey@redhat.com>
11515
11516 * target-delegates.c: Rebuild.
11517 * target.c (update_current_target): Don't inherit or default
11518 to_load.
11519 * target.h (struct target_ops) <to_load>: Use
11520 TARGET_DEFAULT_NORETURN.
11521
e19e919f
TT
115222014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target-delegates.c: Rebuild.
11525 * target.c (update_current_target): Don't inherit or default
11526 to_terminal_info.
11527 * target.h (struct target_ops) <to_terminal_info>: Use
11528 TARGET_DEFAULT_FUNC.
11529
c6ea8f79
TT
115302014-02-19 Tom Tromey <tromey@redhat.com>
11531
11532 * target-delegates.c: Rebuild.
11533 * target.c (update_current_target): Don't inherit or default
11534 to_terminal_save_ours.
11535 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11536 TARGET_DEFAULT_IGNORE.
11537
e4a733f1
TT
115382014-02-19 Tom Tromey <tromey@redhat.com>
11539
11540 * target-delegates.c: Rebuild.
11541 * target.c (update_current_target): Don't inherit or default
11542 to_terminal_ours.
11543 * target.h (struct target_ops) <to_terminal_ours>: Use
11544 TARGET_DEFAULT_IGNORE.
11545
74fcbef9
TT
115462014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target-delegates.c: Rebuild.
11549 * target.c (update_current_target): Don't inherit or default
11550 to_terminal_ours_for_output.
11551 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11552 TARGET_DEFAULT_IGNORE.
11553
ddeaacc9
TT
115542014-02-19 Tom Tromey <tromey@redhat.com>
11555
11556 * target-delegates.c: Rebuild.
11557 * target.c (update_current_target): Don't inherit or default
11558 to_terminal_inferior.
11559 * target.h (struct target_ops) <to_terminal_inferior>: Use
11560 TARGET_DEFAULT_IGNORE.
11561
0343661d
TT
115622014-02-19 Tom Tromey <tromey@redhat.com>
11563
11564 * target-delegates.c: Rebuild.
11565 * target.c (update_current_target): Don't inherit or default
11566 to_terminal_init.
11567 * target.h (struct target_ops) <to_terminal_init>: Use
11568 TARGET_DEFAULT_IGNORE.
11569
77cdffe9
TT
115702014-02-19 Tom Tromey <tromey@redhat.com>
11571
11572 * target-delegates.c: Rebuild.
11573 * target.c (update_current_target): Don't inherit or default
11574 to_can_accel_watchpoint_condition.
11575 * target.h (struct target_ops)
11576 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11577
d03655e4
TT
115782014-02-19 Tom Tromey <tromey@redhat.com>
11579
11580 * target-delegates.c: Rebuild.
11581 * target.c (update_current_target): Don't inherit or default
11582 to_region_ok_for_hw_watchpoint.
11583 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11584 Use TARGET_DEFAULT_FUNC.
11585
65f160a9
TT
115862014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * target-delegates.c: Rebuild.
11589 * target.c (update_current_target): Don't inherit or default
11590 to_watchpoint_addr_within_range.
11591 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11592 Use TARGET_DEFAULT_FUNC.
11593
61dd109f
TT
115942014-02-19 Tom Tromey <tromey@redhat.com>
11595
11596 * target-delegates.c: Rebuild.
11597 * target.c (update_current_target): Don't inherit or default
11598 to_remove_watchpoint.
11599 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11600 TARGET_DEFAULT_NORETURN.
11601
016facd4
TT
116022014-02-19 Tom Tromey <tromey@redhat.com>
11603
11604 * target-delegates.c: Rebuild.
11605 * target.c (update_current_target): Don't inherit or default
11606 to_insert_watchpoint.
11607 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11608 TARGET_DEFAULT_RETURN.
11609
418dabac
TT
116102014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target-delegates.c: Rebuild.
11613 * target.c (update_current_target): Don't inherit or default
11614 to_remove_hw_breakpoint.
11615 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11616 TARGET_DEFAULT_RETURN.
11617
61b371f9
TT
116182014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target-delegates.c: Rebuild.
11621 * target.c (update_current_target): Don't inherit or default
11622 to_insert_hw_breakpoint.
11623 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11624 TARGET_DEFAULT_RETURN.
11625
52b51d06
TT
116262014-02-19 Tom Tromey <tromey@redhat.com>
11627
11628 * target-delegates.c: Rebuild.
11629 * target.c (update_current_target): Don't inherit or default
11630 to_can_use_hw_breakpoint.
11631 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11632 TARGET_DEFAULT_RETURN.
11633
f86e59b2
TT
116342014-02-19 Tom Tromey <tromey@redhat.com>
11635
11636 * target-delegates.c: Rebuild.
11637 * target.c (update_current_target): Don't inherit or default
11638 to_files_info.
11639 * target.h (struct target_ops) <to_files_info>: Use
11640 TARGET_DEFAULT_IGNORE.
11641
6c628163
TT
116422014-02-19 Tom Tromey <tromey@redhat.com>
11643
11644 * target-delegates.c: Rebuild.
11645 * target.c (update_current_target): Don't inherit or default
11646 to_store.
11647 * target.h (struct target_ops) <to_store>: Use
11648 TARGET_DEFAULT_NORETURN.
11649
bebd3233
TT
116502014-02-19 Tom Tromey <tromey@redhat.com>
11651
11652 * target-delegates.c: Rebuild.
11653 * target.c (update_current_target): Don't inherit or default
11654 to_post_attach.
11655 * target.h (struct target_ops) <to_post_attach>: Use
11656 TARGET_DEFAULT_IGNORE.
11657
a53f3625
TT
116582014-02-19 Tom Tromey <tromey@redhat.com>
11659
11660 * target-delegates.c: Rebuild.
11661 * target.c (update_current_target): Don't inherit or default
11662 to_rcmd.
11663 (default_rcmd): New function.
11664 (do_monitor_command): Unconditionally delegate.
11665 * target.h (struct target_ops) <to_rmcd>: Use
11666 TARGET_DEFAULT_FUNC.
11667
e9a29200
TT
116682014-02-19 Tom Tromey <tromey@redhat.com>
11669
11670 * target-delegates.c: Rebuild.
11671 * target.c (init_dummy_target): Don't initialize to_attach.
11672 (target_attach): Unconditionally delegate.
11673 * target.h (struct target_ops) <to_attach>: Use
11674 TARGET_DEFAULT_FUNC.
11675
09da0d0a
TT
116762014-02-19 Tom Tromey <tromey@redhat.com>
11677
11678 * target-delegates.c: Rebuild.
11679 * target.c (target_detach): Unconditionally delegate.
11680 (init_dummy_target): Don't initialize to_detach.
11681 * target.h (struct target_ops) <to_detach>: Use
11682 TARGET_DEFAULT_IGNORE.
11683
5436ff03
TT
116842014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11687 Add argument.
11688 (target_augmented_libraries_svr4_read): Add argument.
11689 * target.c (update_current_target): Update.
11690 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11691 argument.
11692
f0d960ea
TT
116932014-02-19 Tom Tromey <tromey@redhat.com>
11694
11695 * target.h (struct target_ops) <to_call_history_range>: Add
11696 argument.
11697 * target.c (target_call_history_range): Add argument.
11698 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11699 argument.
11700 (record_btrace_call_history_from): Update.
11701
ec0aea04
TT
117022014-02-19 Tom Tromey <tromey@redhat.com>
11703
11704 * target.h (struct target_ops) <to_call_history_from>: Add
11705 argument.
11706 * target.c (target_call_history_from): Add argument.
11707 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11708 argument.
11709
5df2fcba
TT
117102014-02-19 Tom Tromey <tromey@redhat.com>
11711
11712 * target.h (struct target_ops) <to_call_history>: Add argument.
11713 * target.c (target_call_history): Add argument.
11714 * record-btrace.c (record_btrace_call_history): Add 'self'
11715 argument.
11716
4e99c6b7
TT
117172014-02-19 Tom Tromey <tromey@redhat.com>
11718
11719 * target.h (struct target_ops) <to_insn_history_range>: Add
11720 argument.
11721 * target.c (target_insn_history_range): Add argument.
11722 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11723 argument.
11724 (record_btrace_insn_history_from): Update.
11725
9abc3ff3
TT
117262014-02-19 Tom Tromey <tromey@redhat.com>
11727
11728 * target.h (struct target_ops) <to_insn_history_from>: Add
11729 argument.
11730 * target.c (target_insn_history_from): Add argument.
11731 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11732 argument.
11733
7a6c5609
TT
117342014-02-19 Tom Tromey <tromey@redhat.com>
11735
11736 * target.h (struct target_ops) <to_insn_history>: Add argument.
11737 * target.c (target_insn_history): Add argument.
11738 * record-btrace.c (record_btrace_insn_history): Add 'self'
11739 argument.
11740
606183ac
TT
117412014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target.h (struct target_ops) <to_goto_record>: Add argument.
11744 * target.c (target_goto_record): Add argument.
11745 * record-full.c (record_full_goto): Add 'self' argument.
11746 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11747
307a1b91
TT
117482014-02-19 Tom Tromey <tromey@redhat.com>
11749
11750 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11751 * target.c (target_goto_record_end): Add argument.
11752 * record-full.c (record_full_goto_end): Add 'self' argument.
11753 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11754
08475817
TT
117552014-02-19 Tom Tromey <tromey@redhat.com>
11756
11757 * target.h (struct target_ops) <to_goto_record_begin>: Add
11758 argument.
11759 * target.c (target_goto_record_begin): Add argument.
11760 * record-full.c (record_full_goto_begin): Add 'self' argument.
11761 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11762 argument.
11763
1c63c994
TT
117642014-02-19 Tom Tromey <tromey@redhat.com>
11765
11766 * target.h (struct target_ops) <to_record_is_replaying>: Add
11767 argument.
11768 * target.c (target_record_is_replaying): Add argument.
11769 * record-full.c (record_full_is_replaying): Add 'self' argument.
11770 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11771 argument.
11772 (record_btrace_xfer_partial, record_btrace_store_registers)
11773 (record_btrace_prepare_to_store, record_btrace_resume)
11774 (record_btrace_wait, record_btrace_decr_pc_after_break)
11775 (record_btrace_find_new_threads, record_btrace_thread_alive):
11776 Update.
11777
d1b55219
TT
117782014-02-19 Tom Tromey <tromey@redhat.com>
11779
11780 * target.h (struct target_ops) <to_delete_record>: Add argument.
11781 * target.c (target_delete_record): Add argument.
11782 * record-full.c (record_full_delete): Add 'self' argument.
11783
1390f529
TT
117842014-02-19 Tom Tromey <tromey@redhat.com>
11785
11786 * target.h (struct target_ops) <to_save_record>: Add argument.
11787 * target.c (target_save_record): Add argument.
11788 * record-full.c (record_full_save): Add 'self' argument.
11789 (record_full_save): Add 'self' argument.
11790
630d6a4a
TT
117912014-02-19 Tom Tromey <tromey@redhat.com>
11792
11793 * target.h (struct target_ops) <to_info_record>: Add argument.
11794 * target.c (target_info_record): Add argument.
11795 * record.c (info_record_command): Add argument.
11796 * record-full.c (record_full_info): Add 'self' argument.
11797 * record-btrace.c (record_btrace_info): Add 'self' argument.
11798
c6cd7c02
TT
117992014-02-19 Tom Tromey <tromey@redhat.com>
11800
11801 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11802 * target.c (target_stop_recording): Add argument.
11803 * record.c (record_stop): Add argument.
11804 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11805 argument.
11806
39c49f83
TT
118072014-02-19 Tom Tromey <tromey@redhat.com>
11808
11809 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11810 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11811 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11812 argument.
11813 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11814 (_initialize_amd64_linux_nat): Use it.
11815 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11816 (_initialize_i386_linux_nat): Use it.
11817
1777056d
TT
118182014-02-19 Tom Tromey <tromey@redhat.com>
11819
11820 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11821 * target.c (target_teardown_btrace): Add argument.
11822 * remote.c (remote_teardown_btrace): Add 'self' argument.
11823 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11824 argument.
11825 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11826 argument.
11827
25e95349
TT
118282014-02-19 Tom Tromey <tromey@redhat.com>
11829
11830 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11831 * target.c (target_disable_btrace): Add argument.
11832 * remote.c (remote_disable_btrace): Add 'self' argument.
11833 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11834 argument.
11835 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11836 argument.
11837
e3c49f88
TT
118382014-02-19 Tom Tromey <tromey@redhat.com>
11839
11840 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11841 * target.c (target_enable_btrace): Add argument.
11842 * remote.c (remote_enable_btrace): Add 'self' argument.
11843 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11844 argument.
11845 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11846 argument.
11847
fe38f897
TT
118482014-02-19 Tom Tromey <tromey@redhat.com>
11849
11850 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11851 (target_can_use_agent): Add argument.
11852 * target.c (update_current_target): Update.
11853 * remote.c (remote_can_use_agent): Add 'self' argument.
11854 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11855
2c152180
TT
118562014-02-19 Tom Tromey <tromey@redhat.com>
11857
11858 * target.h (struct target_ops) <to_use_agent>: Add argument.
11859 (target_use_agent): Add argument.
11860 * target.c (update_current_target): Update.
11861 * remote.c (remote_use_agent): Add 'self' argument.
11862 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11863
a893e81f
TT
118642014-02-19 Tom Tromey <tromey@redhat.com>
11865
11866 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11867 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11868 (target_traceframe_info): Add argument.
11869 * target.c (update_current_target): Update.
11870 * remote.c (remote_traceframe_info): Add 'self' argument.
11871 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11872
c686c57f
TT
118732014-02-19 Tom Tromey <tromey@redhat.com>
11874
11875 * target.h (target_static_tracepoint_markers_by_strid): Add
11876 argument.
11877 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11878 'self' argument.
11879 * target.c (update_current_target): Update.
11880 * remote.c (struct target_ops)
11881 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11882 * linux-nat.c (struct target_ops)
11883 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11884
61fc905d
TT
118852014-02-19 Tom Tromey <tromey@redhat.com>
11886
11887 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11888 Add argument.
11889 (target_static_tracepoint_marker_at): Add argument.
11890 * target.c (update_current_target): Update.
11891 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11892 argument.
11893
c378d69d
TT
118942014-02-19 Tom Tromey <tromey@redhat.com>
11895
11896 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11897 (target_set_permissions): Add argument.
11898 * target.c (update_current_target): Update.
11899 * remote.c (remote_set_permissions): Add 'self' argument.
11900 (remote_start_remote): Update.
11901
bd7ae0f5
TT
119022014-02-19 Tom Tromey <tromey@redhat.com>
11903
11904 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11905 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11906 (target_get_tib_address): Add argument.
11907 * target.c (update_current_target): Update.
11908 * remote.c (remote_get_tib_address): Add 'self' argument.
11909
d9e68a2c
TT
119102014-02-19 Tom Tromey <tromey@redhat.com>
11911
11912 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11913 (target_set_trace_notes): Add argument.
11914 * target.c (update_current_target): Update.
11915 * remote.c (remote_set_trace_notes): Add 'self' argument.
11916
4da384be
TT
119172014-02-19 Tom Tromey <tromey@redhat.com>
11918
11919 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11920 argument.
11921 (target_set_trace_buffer_size): Add argument.
11922 * target.c (update_current_target): Update.
11923 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11924
736d5b1f
TT
119252014-02-19 Tom Tromey <tromey@redhat.com>
11926
11927 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11928 argument.
11929 (target_set_circular_trace_buffer): Add argument.
11930 * target.c (update_current_target): Update.
11931 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11932 argument.
11933
37b25738
TT
119342014-02-19 Tom Tromey <tromey@redhat.com>
11935
11936 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11937 argument.
11938 (target_set_disconnected_tracing): Add argument.
11939 * target.c (update_current_target): Update.
11940 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11941
0e67620a
TT
119422014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target.h (struct target_ops)
11945 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11946 (target_get_min_fast_tracepoint_insn_len): Add argument.
11947 * target.c (update_current_target): Update.
11948 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11949 argument.
11950
88ee6f45
TT
119512014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11954 argument.
11955 (target_get_raw_trace_data): Add argument.
11956 * target.c (update_current_target): Update.
11957 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11958
181e3713
TT
119592014-02-19 Tom Tromey <tromey@redhat.com>
11960
11961 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11962 Add argument.
11963 (target_upload_trace_state_variables): Add argument.
11964 * target.c (update_current_target): Update.
11965 * remote.c (remote_upload_trace_state_variables): Add 'self'
11966 argument.
11967 (remote_start_remote): Update.
11968
ab6617cc
TT
119692014-02-19 Tom Tromey <tromey@redhat.com>
11970
11971 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11972 argument.
11973 (target_upload_tracepoints): Add argument.
11974 * target.c (update_current_target): Update.
11975 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11976 (remote_start_remote): Update.
11977
dc3decaf
TT
119782014-02-19 Tom Tromey <tromey@redhat.com>
11979
11980 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11981 (target_save_trace_data): Add argument.
11982 * target.c (update_current_target): Update.
11983 * remote.c (remote_save_trace_data): Add 'self' argument.
11984
4011015b
TT
119852014-02-19 Tom Tromey <tromey@redhat.com>
11986
11987 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11988 argument.
11989 * target.h (struct target_ops)
11990 <to_get_trace_state_variable_value>: Add argument.
11991 (target_get_trace_state_variable_value): Add argument.
11992 * target.c (update_current_target): Update.
11993 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11994 argument.
11995 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11996
bd4c6793
TT
119972014-02-19 Tom Tromey <tromey@redhat.com>
11998
11999 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12000 * target.h (struct target_ops) <to_trace_find>: Add argument.
12001 (target_trace_find): Add argument.
12002 * target.c (update_current_target): Update.
12003 * remote.c (remote_trace_find): Add 'self' argument.
12004 * ctf.c (ctf_trace_find): Add 'self' argument.
12005
74499f1b
TT
120062014-02-19 Tom Tromey <tromey@redhat.com>
12007
12008 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12009 (target_trace_stop): Add argument.
12010 * target.c (update_current_target): Update.
12011 * remote.c (remote_trace_stop): Add 'self' argument.
12012
db90e85c
TT
120132014-02-19 Tom Tromey <tromey@redhat.com>
12014
12015 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12016 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12017 argument.
12018 (target_get_tracepoint_status): Add argument.
12019 * target.c (update_current_target): Update.
12020 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12021
8bd200f1
TT
120222014-02-19 Tom Tromey <tromey@redhat.com>
12023
12024 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12025 * target.h (struct target_ops) <to_get_trace_status>: Add
12026 argument.
12027 (target_get_trace_status): Add argument.
12028 * target.c (update_current_target): Update.
12029 * remote.c (remote_get_trace_status): Add 'self' argument.
12030 (remote_start_remote, remote_can_download_tracepoint): Update.
12031 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12032
e2d1aae3
TT
120332014-02-19 Tom Tromey <tromey@redhat.com>
12034
12035 * target.h (struct target_ops) <to_trace_start>: Add argument.
12036 (target_trace_start): Add argument.
12037 * target.c (update_current_target): Update.
12038 * remote.c (remote_trace_start): Add 'self' argument.
12039
583f9a86
TT
120402014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12043 Add argument.
12044 (target_trace_set_readonly_regions): Add argument.
12045 * target.c (update_current_target): Update.
12046 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12047 argument.
12048
780b049c
TT
120492014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12052 argument.
12053 (target_disable_tracepoint): Add argument.
12054 * target.c (update_current_target): Update.
12055 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12056
46670d57
TT
120572014-02-19 Tom Tromey <tromey@redhat.com>
12058
12059 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12060 argument.
12061 (target_enable_tracepoint): Add argument.
12062 * target.c (update_current_target): Update.
12063 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12064
559d2b81
TT
120652014-02-19 Tom Tromey <tromey@redhat.com>
12066
12067 * target.h (struct target_ops) <to_download_trace_state_variable>:
12068 Add argument.
12069 (target_download_trace_state_variable): Add argument.
12070 * target.c (update_current_target): Update.
12071 * remote.c (remote_download_trace_state_variable): Add 'self'
12072 argument.
12073
a52a8357
TT
120742014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12077 argument.
12078 (target_can_download_tracepoint): Add argument.
12079 * target.c (update_current_target): Update.
12080 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12081
548f7808
TT
120822014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target.h (struct target_ops) <to_download_tracepoint>: Add
12085 argument.
12086 (target_download_tracepoint): Add argument.
12087 * target.c (update_current_target): Update.
12088 * remote.c (remote_download_tracepoint): Add 'self' argument.
12089
ecae04e1
TT
120902014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target.h (struct target_ops) <to_trace_init>: Add argument.
12093 (target_trace_init): Add argument.
12094 * target.c (update_current_target): Update.
12095 * remote.c (remote_trace_init): Add 'self' argument.
12096
fab5aa7c
TT
120972014-02-19 Tom Tromey <tromey@redhat.com>
12098
12099 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12100 * target.c (target_fileio_readlink): Add argument.
12101 * remote.c (remote_hostio_readlink): Add 'self' argument.
12102 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12103
dbbca37d
TT
121042014-02-19 Tom Tromey <tromey@redhat.com>
12105
12106 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12107 * target.c (target_fileio_unlink): Add argument.
12108 * remote.c (remote_hostio_unlink): Add 'self' argument.
12109 (remote_file_delete): Update.
12110 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12111
df39ea25
TT
121122014-02-19 Tom Tromey <tromey@redhat.com>
12113
12114 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12115 * target.c (target_fileio_close): Add argument.
12116 * remote.c (remote_hostio_close): Add 'self' argument.
12117 (remote_hostio_close_cleanup): Update.
12118 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12119 Update.
12120 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12121
a3be983c
TT
121222014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12125 * target.c (target_fileio_pread): Add argument.
12126 * remote.c (remote_hostio_pread): Add 'self' argument.
12127 (remote_bfd_iovec_pread, remote_file_get): Update.
12128 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12129
0d866f62
TT
121302014-02-19 Tom Tromey <tromey@redhat.com>
12131
12132 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12133 * target.c (target_fileio_pwrite): Add argument.
12134 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12135 (remote_file_put): Update.
12136 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12137
cd897586
TT
121382014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12141 * target.c (target_fileio_open): Add argument.
12142 * remote.c (remote_hostio_open): Add 'self' argument.
12143 (remote_bfd_iovec_open): Add 'self' argument.
12144 (remote_file_put): Add 'self' argument.
12145 (remote_file_get): Add 'self' argument.
12146 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12147
78eff0ec
TT
121482014-02-19 Tom Tromey <tromey@redhat.com>
12149
12150 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12151 Add argument.
12152 (target_can_run_breakpoint_commands): Add argument.
12153 * target.c (update_current_target): Update.
12154 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12155 argument.
12156 (remote_insert_breakpoint): Add 'self' argument.
12157 (remote_insert_hw_breakpoint): Add 'self' argument.
12158 (remote_can_run_breakpoint_commands): Add 'self' argument.
12159
efcc2da7
TT
121602014-02-19 Tom Tromey <tromey@redhat.com>
12161
12162 * target.h (struct target_ops)
12163 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12164 (target_supports_evaluation_of_breakpoint_conditions): Add
12165 argument.
12166 * target.c (update_current_target): Update.
12167 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12168 argument.
12169 (remote_insert_breakpoint): Add 'self' argument.
12170 (remote_insert_hw_breakpoint): Add 'self' argument.
12171 (remote_supports_cond_breakpoints): Add 'self' argument.
12172
6de37a3a
TT
121732014-02-19 Tom Tromey <tromey@redhat.com>
12174
12175 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12176 argument.
12177 (target_supports_string_tracing): Add argument.
12178 * target.c (update_current_target): Update.
12179 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12180
2bfc0540
TT
121812014-02-19 Tom Tromey <tromey@redhat.com>
12182
12183 * target.h (struct target_ops)
12184 <to_supports_disable_randomization>: Add argument.
12185 * target.c (find_default_supports_disable_randomization): Add
12186 argument.
12187 (target_supports_disable_randomization): Add argument.
12188 (find_default_supports_disable_randomization): Add 'self'
12189 argument.
12190 * remote.c (extended_remote_supports_disable_randomization): Add
12191 'self' argument.
12192 (remote_supports_disable_randomization): Add 'self' argument.
12193 (extended_remote_create_inferior): Update.
12194 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12195 'self' argument.
12196
7d178d6a
TT
121972014-02-19 Tom Tromey <tromey@redhat.com>
12198
12199 * target.h (struct target_ops)
12200 <to_supports_enable_disable_tracepoint>: Add argument.
12201 (target_supports_enable_disable_tracepoint): Add argument.
12202 * target.c (update_current_target): Update.
12203 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12204 argument.
12205
86ce2668
TT
122062014-02-19 Tom Tromey <tromey@redhat.com>
12207
12208 * target.h (struct target_ops) <to_supports_multi_process>: Add
12209 argument.
12210 (target_supports_multi_process): Add argument.
12211 * target.c (update_current_target): Update.
12212 * remote.c (remote_supports_multi_process): Add 'self' argument.
12213 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12214 argument.
12215 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12216 argument.
12217
4c612759
TT
122182014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * target.h (struct target_ops) <to_execution_direction>: Add
12221 argument.
12222 (target_execution_direction): Add argument.
12223 * target.c (default_execution_direction): Add 'self' argument.
12224 * record-full.c (record_full_execution_direction): Add 'self'
12225 argument.
12226
19db3e69
TT
122272014-02-19 Tom Tromey <tromey@redhat.com>
12228
12229 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12230 argument.
12231 (target_can_execute_reverse): Add argument.
12232 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12233 * record-full.c (record_full_can_execute_reverse): Add 'self'
12234 argument.
12235 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12236 argument.
12237
1e6b91a4
TT
122382014-02-19 Tom Tromey <tromey@redhat.com>
12239
12240 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12241 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12242 argument.
12243 (target_get_ada_task_ptid): Add argument.
12244 * target.c (update_current_target): Update.
12245 (default_get_ada_task_ptid): Add 'self' argument.
12246 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12247 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12248 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12249 argument.
12250 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12251 argument.
12252 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12253 argument.
12254 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12255 argument.
12256 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12257 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12258 argument.
12259
3c80fb48
TT
122602014-02-19 Tom Tromey <tromey@redhat.com>
12261
12262 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12263 (target_goto_bookmark): Add argument.
12264 * target.c (dummy_goto_bookmark): Add 'self' argument.
12265 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12266
dd0e2830
TT
122672014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12270 (target_get_bookmark): Add argument.
12271 * target.c (dummy_get_bookmark): Add 'self' argument.
12272 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12273
fc6691b2
TT
122742014-02-19 Tom Tromey <tromey@redhat.com>
12275
12276 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12277 argument.
12278 (target_make_corefile_notes): Add argument.
12279 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12280 * procfs.c (procfs_make_note_section): Add 'self' argument.
12281 (procfs_make_note_section): Add 'self' argument.
12282 (procfs_make_note_section): Add 'self' argument.
12283 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12284 argument.
12285 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12286 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12287 * exec.c (exec_make_note_section): Add 'self' argument.
12288 (exec_make_note_section): Add 'self' argument.
12289
2e73927c
TT
122902014-02-19 Tom Tromey <tromey@redhat.com>
12291
12292 * target.h (struct target_ops) <to_find_memory_regions>: Add
12293 argument.
12294 (target_find_memory_regions): Add argument.
12295 * target.c (dummy_find_memory_regions): Add 'self' argument.
12296 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12297 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12298 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12299 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12300 * exec. (exec_do_find_memory_regions): New global.
12301 (exec_set_find_memory_regions): Rewrite.
12302 (exec_find_memory_regions): New function.
12303 (init_exec_ops): Use exec_find_memory_regions.
12304
2a9a2795
TT
123052014-02-19 Tom Tromey <tromey@redhat.com>
12306
12307 * target.h (struct target_ops) <to_supports_non_stop>: Add
12308 argument.
12309 * target.c (find_default_supports_non_stop): Add argument.
12310 (target_supports_non_stop): Add argument.
12311 (find_default_supports_non_stop): Add 'self' argument.
12312 * remote.c (remote_supports_non_stop): Add 'self' argument.
12313 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12314
4ab76ea3
TT
123152014-02-19 Tom Tromey <tromey@redhat.com>
12316
12317 * target.h (struct target_ops) <to_log_command>: Add argument.
12318 (target_log_command): Add argument.
12319 * serial.h (serial_log_command): Add 'self' argument.
12320 * serial.c (serial_log_command): Add 'self' argument.
12321
8dd27370
TT
123222014-02-19 Tom Tromey <tromey@redhat.com>
12323
12324 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12325 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12326 argument.
12327 (target_pid_to_exec_file): Add argument.
12328 * target.c (debug_to_pid_to_exec_file): Add argument.
12329 (update_current_target): Update.
12330 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12331 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12332 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12333 (linux_handle_extended_wait): Update.
12334 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12335 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12336 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12337 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12338
1aac633b
TT
123392014-02-19 Tom Tromey <tromey@redhat.com>
12340
12341 * target.h (struct target_ops) <to_rcmd>: Add argument.
12342 (target_rcmd): Add argument.
12343 * target.c (debug_to_rcmd): Add argument.
12344 (update_current_target, do_monitor_command): Update.
12345 * remote.c (remote_rcmd): Add 'self' argument.
12346 * monitor.c (monitor_rcmd): Add 'self' argument.
12347
1eab8a48
TT
123482014-02-19 Tom Tromey <tromey@redhat.com>
12349
12350 * windows-nat.c (windows_stop): Add 'self' argument.
12351 * target.h (struct target_ops) <to_stop>: Add argument.
12352 * target.c (target_stop): Add argument.
12353 (debug_to_stop): Add argument.
12354 (update_current_target): Update.
12355 * remote.c (remote_stop): Add 'self' argument.
12356 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12357 (gdbsim_cntrl_c): Update.
12358 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12359 * procfs.c (procfs_stop): Add 'self' argument.
12360 * nto-procfs.c (procfs_stop): Add 'self' argument.
12361 * monitor.c (monitor_stop): Add 'self' argument.
12362 (monitor_open): Update.
12363 * linux-nat.c (linux_nat_stop): Add argument.
12364 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12365 * gnu-nat.c (gnu_stop): Add 'self' argument.
12366 * darwin-nat.c (darwin_stop): Add 'self' argument.
12367
503a628d
TT
123682014-02-19 Tom Tromey <tromey@redhat.com>
12369
12370 * target.h (struct target_ops) <to_thread_name>: Add argument.
12371 * target.c (target_thread_name): Add argument.
12372 (update_current_target): Update.
12373 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12374
c15906d8
TT
123752014-02-19 Tom Tromey <tromey@redhat.com>
12376
12377 * target.h (struct target_ops) <to_extra_thread_info>: Add
12378 argument.
12379 (target_extra_thread_info): Add argument.
12380 * target.c (update_current_target): Update.
12381 * remote.c (remote_threads_extra_info): Add 'self' argument.
12382 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12383 argument.
12384 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12385 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12386 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12387 argument.
12388 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12389 argument.
12390 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12391 argument.
12392 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12393 argument.
12394
daf5e9b6
TT
123952014-02-19 Tom Tromey <tromey@redhat.com>
12396
12397 * target.h (struct target_ops) <to_program_signals>: Add argument.
12398 * target.c (target_program_signals): Add argument.
12399 * remote.c (remote_program_signals): Add 'self' argument.
12400
94bedb42
TT
124012014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12404 * target.c (target_pass_signals): Add argument.
12405 * remote.c (remote_pass_signals): Add 'self' argument.
12406 (remote_start_remote): Update.
12407 * procfs.c (procfs_pass_signals): Add 'self' argument.
12408 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12409 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12410 (linux_nat_create_inferior, linux_nat_attach): Update.
12411
da82bd6b
TT
124122014-02-19 Tom Tromey <tromey@redhat.com>
12413
12414 * windows-nat.c (windows_can_run): Add 'self' argument.
12415 * target.h (struct target_ops) <to_can_run>: Add argument.
12416 (target_can_run): Add argument.
12417 * target.c (debug_to_can_run): Add argument.
12418 (update_current_target): Update.
12419 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12420 * inf-child.c (inf_child_can_run): Add 'self' argument.
12421 * go32-nat.c (go32_can_run): Add 'self' argument.
12422
d796e1d6
TT
124232014-02-19 Tom Tromey <tromey@redhat.com>
12424
12425 * target.h (struct target_ops) <to_has_exited>: Add argument.
12426 (target_has_exited): Add argument.
12427 * target.c (debug_to_has_exited): Add argument.
12428 (update_current_target): Update.
12429
ff214e67
TT
124302014-02-19 Tom Tromey <tromey@redhat.com>
12431
12432 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12433 argument.
12434 (target_set_syscall_catchpoint): Add argument.
12435 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12436 argument.
12437 * target.c (update_current_target): Update.
12438
758e29d2
TT
124392014-02-19 Tom Tromey <tromey@redhat.com>
12440
12441 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12442 argument.
12443 (target_remove_exec_catchpoint): Add argument.
12444 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12445 (update_current_target): Update.
12446 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12447 argument.
12448
ba025e51
TT
124492014-02-19 Tom Tromey <tromey@redhat.com>
12450
12451 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12452 argument.
12453 (target_insert_exec_catchpoint): Add argument.
12454 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12455 (update_current_target): Update.
12456 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12457 argument.
12458
e98cf0cd
TT
124592014-02-19 Tom Tromey <tromey@redhat.com>
12460
12461 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12462 argument.
12463 (target_remove_vfork_catchpoint): Add argument.
12464 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12465 (update_current_target): Update.
12466 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12467 argument.
12468
3ecc7da0
TT
124692014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12472 argument.
12473 (target_insert_vfork_catchpoint): Add argument.
12474 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12475 (update_current_target): Update.
12476 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12477 argument.
12478
973fc227
TT
124792014-02-19 Tom Tromey <tromey@redhat.com>
12480
12481 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12482 argument.
12483 (target_remove_fork_catchpoint): Add argument.
12484 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12485 (update_current_target): Update.
12486 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12487 argument.
12488
a863b201
TT
124892014-02-19 Tom Tromey <tromey@redhat.com>
12490
12491 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12492 argument.
12493 (target_insert_fork_catchpoint): Add argument.
12494 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12495 (update_current_target): Update.
12496 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12497 argument.
12498
2e97a79e
TT
124992014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12502 argument.
12503 (target_post_startup_inferior): Add argument.
12504 * target.c (debug_to_post_startup_inferior): Add argument.
12505 (update_current_target): Update.
12506 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12507 argument.
12508 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12509 argument.
12510 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12511 argument.
12512 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12513 argument.
12514 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12515 'self' argument.
12516 (super_post_startup_inferior): Likewise.
12517 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12518 'self' argument.
12519 (super_post_startup_inferior): Likewise.
12520 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12521 Add 'self' argument.
12522 (super_post_startup_inferior): Likewise.
12523
71a9f134
TT
125242014-02-19 Tom Tromey <tromey@redhat.com>
12525
12526 * target.h (struct target_ops) <to_load>: Add argument.
12527 * target.c (target_load): Add argument.
12528 (debug_to_load): Add argument.
12529 (update_current_target): Update.
12530 * remote.c (remote_load): Add 'self' argument.
12531 * remote-sim.c (gdbsim_load): Add 'self' argument.
12532 * remote-mips.c (mips_load): Add 'self' argument.
12533 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12534 * monitor.c (monitor_load): Add 'self' argument.
12535 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12536
0a4f40a2
TT
125372014-02-19 Tom Tromey <tromey@redhat.com>
12538
12539 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12540 (target_terminal_info): Add argument.
12541 * target.c (debug_to_terminal_info): Add argument.
12542 (default_terminal_info): Likewise.
12543 * inflow.c (child_terminal_info): Add 'self' argument.
12544 * inferior.h (child_terminal_info): Add 'self' argument.
12545 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12546
ae3bd431
TT
125472014-02-19 Tom Tromey <tromey@redhat.com>
12548
12549 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12550 argument.
12551 (target_terminal_save_ours): Add argument.
12552 * target.c (debug_to_terminal_save_ours): Add argument.
12553 (update_current_target): Update.
12554 * inflow.c (terminal_save_ours): Add 'self' argument.
12555 * inferior.h (terminal_save_ours): Add 'self' argument.
12556
e3594fd1
TT
125572014-02-19 Tom Tromey <tromey@redhat.com>
12558
12559 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12560 (target_terminal_ours): Add argument.
12561 * target.c (debug_to_terminal_ours): Add argument.
12562 (update_current_target): Update.
12563 * remote.c (remote_terminal_ours): Add 'self' argument.
12564 (remote_close): Update.
12565 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12566 * inflow.c (terminal_ours): Add 'self' argument.
12567 * inferior.h (terminal_ours): Add 'self' argument.
12568 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12569
2e1e1a19
TT
125702014-02-19 Pedro Alves <palves@redhat.com>
12571 Tom Tromey <tromey@redhat.com>
12572
12573 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12574 argument.
12575 (target_terminal_ours_for_output): Add argument.
12576 * target.c (debug_to_terminal_ours_for_output): Add argument.
12577 (update_current_target): Update.
12578 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12579 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12580 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12581
d2f640d4
TT
125822014-02-19 Tom Tromey <tromey@redhat.com>
12583
12584 * target.h (struct target_ops) <to_terminal_inferior>: Add
12585 argument.
12586 * target.c (target_terminal_inferior): Add argument.
12587 (update_current_target): Update.
12588 * remote.c (remote_terminal_inferior): Add 'self' argument.
12589 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12590 * inflow.c (terminal_inferior): Add 'self' argument.
12591 * inferior.h (terminal_inferior): Add 'self' argument.
12592 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12593 (go32_terminal_inferior): Add 'self' argument.
12594
c42bf286
TT
125952014-02-19 Tom Tromey <tromey@redhat.com>
12596
12597 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12598 (target_terminal_init): Add argument.
12599 * target.c (debug_to_terminal_init): Add argument.
12600 (update_current_target): Update.
12601 * inflow.c (terminal_init_inferior): Add 'self' argument.
12602 * inferior.h (terminal_init_inferior): Add 'self' argument.
12603 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12604 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12605
c3a5ff89
TT
126062014-02-19 Tom Tromey <tromey@redhat.com>
12607
12608 * target.h (struct target_ops)
12609 <to_can_accel_watchpoint_condition>: Add argument.
12610 (target_can_accel_watchpoint_condition): Add argument.
12611 * target.c (debug_to_can_accel_watchpoint_condition): Add
12612 argument.
12613 (update_current_target): Update.
12614 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12615 'self' argument.
12616
31568a15
TT
126172014-02-19 Tom Tromey <tromey@redhat.com>
12618
12619 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12620 Add argument.
12621 (target_region_ok_for_hw_watchpoint): Add argument.
12622 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12623 (default_region_ok_for_hw_watchpoint): Add argument.
12624 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12625 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12626 argument.
12627 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12628 argument.
12629 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12630 argument.
12631 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12632 'self' argument.
12633 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12634 'self' argument.
12635 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12636 'self' argument.
12637 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12638 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12639 'self' argument.
12640 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12641 Add 'self' argument.
12642
7bb99c53
TT
126432014-02-19 Tom Tromey <tromey@redhat.com>
12644
12645 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12646 argument.
12647 (target_insert_watchpoint): Add argument.
12648 * target.c (debug_to_insert_watchpoint): Add argument.
12649 (update_current_target): Update.
12650 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12651 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12652 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12653 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12654 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12655 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12656 argument.
12657 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12658 (procfs_insert_hw_watchpoint): Add 'self' argument.
12659 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12660 argument.
12661 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12662 argument.
12663 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12664 argument.
12665 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12666 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12667 argument.
12668 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12669 'self' argument.
12670
11b5219a
TT
126712014-02-19 Tom Tromey <tromey@redhat.com>
12672
12673 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12674 argument.
12675 (target_remove_watchpoint): Add argument.
12676 * target.c (debug_to_remove_watchpoint): Add argument.
12677 (update_current_target): Update.
12678 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12679 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12680 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12681 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12682 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12683 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12684 argument.
12685 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12686 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12687 argument.
12688 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12689 argument.
12690 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12691 argument.
12692 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12693 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12694 argument.
12695 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12696 'self' argument.
12697
a64dc96c
TT
126982014-02-19 Tom Tromey <tromey@redhat.com>
12699
12700 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12701 argument.
12702 (target_remove_hw_breakpoint): Add argument.
12703 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12704 (update_current_target): Update.
12705 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12706 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12707 argument.
12708 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12709 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12710 argument.
12711 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12712 'self' argument.
12713
23a26771
TT
127142014-02-19 Tom Tromey <tromey@redhat.com>
12715
12716 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12717 argument.
12718 (target_insert_hw_breakpoint): Add argument.
12719 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12720 (update_current_target): Update.
12721 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12722 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12723 argument.
12724 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12725 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12726 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12727 argument.
12728 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12729 'self' argument.
12730
5461485a
TT
127312014-02-19 Tom Tromey <tromey@redhat.com>
12732
12733 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12734 argument.
12735 (target_can_use_hardware_watchpoint): Add argument.
12736 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12737 (update_current_target): Update.
12738 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12739 argument.
12740 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12741 argument.
12742 * remote.c (remote_check_watch_resources): Add 'self' argument.
12743 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12744 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12745 argument.
12746 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12747 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12748 argument.
12749 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12750 argument.
12751 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12752 argument.
12753 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12754 argument.
12755 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12756 argument.
12757 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12758 argument.
12759 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12760 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12761 argument.
12762 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12763 'self' argument.
12764
f045800c
TT
127652014-02-19 Tom Tromey <tromey@redhat.com>
12766
12767 * target.h (struct target_ops) <to_post_attach>: Add argument.
12768 (target_post_attach): Add argument.
12769 * target.c (debug_to_post_attach): Add argument.
12770 (update_current_target): Update.
12771 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12772 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12773 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12774 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12775 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12776
de90e03d
TT
127772014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * windows-nat.c (windows_close): Add 'self' argument.
12780 * tracepoint.c (tfile_close): Add 'self' argument.
12781 * target.h (struct target_ops) <to_close>: Add argument.
12782 * target.c (target_close): Add argument.
12783 (update_current_target): Update.
12784 * remote.c (remote_close): Add 'self' argument.
12785 * remote-sim.c (gdbsim_close): Add 'self' argument.
12786 * remote-mips.c (mips_close): Add 'self' argument.
12787 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12788 * record-full.c (record_full_close): Add 'self' argument.
12789 * record-btrace.c (record_btrace_close): Add 'self' argument.
12790 * monitor.h (monitor_close): Add 'self' argument.
12791 * monitor.c (monitor_close): Add 'self' argument.
12792 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12793 * linux-nat.c (linux_nat_close): Add argument.
12794 * go32-nat.c (go32_close): Add 'self' argument.
12795 * exec.c (exec_close_1): Add 'self' argument.
12796 * ctf.c (ctf_close): Add 'self' argument.
12797 * corelow.c (core_close): Add 'self' argument.
12798 (core_close_cleanup): Update.
12799 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12800 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12801
9dd130a0
TT
128022014-02-19 Tom Tromey <tromey@redhat.com>
12803
12804 * remote.c (remote_load): New function.
12805 (init_remote_ops): Use it.
12806
46917d26
TT
128072014-02-19 Tom Tromey <tromey@redhat.com>
12808
12809 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12810 argument.
12811 * common/linux-btrace.h (linux_supports_btrace): Update.
12812 * remote.c (remote_supports_btrace): Add "self" argument.
12813 * target-delegates.c: Rebuild.
12814 * target.c (target_supports_btrace): Remove.
12815 * target.h (struct target_ops) <to_supports_btrace>: Add
12816 target_ops argument.
12817 (target_supports_btrace): New define.
12818
6b84065d
TT
128192014-02-19 Tom Tromey <tromey@redhat.com>
12820
12821 * record-full.c (record_full_beneath_to_resume_ops)
12822 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12823 (record_full_beneath_to_wait)
12824 (record_full_beneath_to_store_registers_ops)
12825 (record_full_beneath_to_store_registers)
12826 (record_full_beneath_to_xfer_partial_ops)
12827 (record_full_beneath_to_xfer_partial)
12828 (record_full_beneath_to_insert_breakpoint_ops)
12829 (record_full_beneath_to_insert_breakpoint)
12830 (record_full_beneath_to_remove_breakpoint_ops)
12831 (record_full_beneath_to_remove_breakpoint)
12832 (record_full_beneath_to_stopped_by_watchpoint)
12833 (record_full_beneath_to_stopped_data_address)
12834 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12835 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12836 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12837 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12838 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12839 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12840 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12841 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12842 (record_full_resume, record_full_wait_1)
12843 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12844 (record_full_store_registers, record_full_xfer_partial)
12845 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12846 (record_full_async, record_full_core_xfer_partial): Use target
12847 delegation.
12848 * target-delegates.c: Rebuild.
12849 * target.c (current_xfer_partial): Remove.
12850 (update_current_target): Do not INHERIT or de_fault
12851 to_insert_breakpoint, to_remove_breakpoint,
12852 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12853 to_is_async_p, to_async. Do not set to_xfer_partial field.
12854 (default_xfer_partial): Simplify.
12855 (current_xfer_partial): Remove.
12856 (target_wait, target_resume): Simplify.
12857 (find_default_can_async_p, find_default_is_async_p): Update.
12858 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12859 to_xfer_partial, to_stopped_by_watchpoint,
12860 to_stopped_data_address.
12861 (target_store_registers): Simplify.
12862 (forward_target_remove_breakpoint)
12863 (forward_target_insert_breakpoint): Remove.
12864 (target_remove_breakpoint, target_insert_breakpoint)
12865 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12866 * target.h (struct target_ops) <to_resume, to_wait,
12867 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12868 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12869 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12870 markup.
12871 (forward_target_remove_breakpoint)
12872 (forward_target_insert_breakpoint): Remove.
12873 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12874 directly.
12875 (record_btrace_insert_breakpoint): Delegate directly.
12876
1101cb7b
TT
128772014-02-19 Tom Tromey <tromey@redhat.com>
12878
12879 PR build/7701:
12880 * target-delegates.c: New file.
12881 * target.c: Include target-delegates.c.
12882 (init_dummy_target): Call install_dummy_methods.
12883 (complete_target_initialization): Call install_delegators.
12884 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12885 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12886 * make-target-delegates: New file.
12887
8b06beed
TT
128882014-02-19 Tom Tromey <tromey@redhat.com>
12889
12890 * record.c (find_record_target): Use find_target_at.
12891 * target.c (find_target_at): New function.
12892 * target.h (find_target_at): Declare.
12893
6a109b6b
TT
128942014-02-19 Tom Tromey <tromey@redhat.com>
12895
12896 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12897 Add 'ops' argument.
12898 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12899 'ops' argument.
12900 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12901 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12902 'ops' argument.
12903 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12904 argument.
12905 * linux-nat.c (save_sigtrap): Update.
12906 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12907 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12908 (linux_nat_close): Update.
12909 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12910 argument.
12911 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12912 argument.
12913 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12914 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12915 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12916 (tmp_to_async): Add 'ops' argument.
12917 (record_full_stopped_by_watchpoint, record_full_async)
12918 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12919 argument.
12920 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12921 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12922 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12923 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12924 (remote_is_async_p, remote_async): Add 'ops' argument.
12925 (remote_stopped_data_address): Update.
12926 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12927 * target.c (update_current_target)
12928 (find_default_can_async_p, find_default_is_async_p): Update.
12929 (init_dummy_target): Update.
12930 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12931 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12932 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12933 (target_can_async_p, target_is_async_p, target_async)
12934 (target_stopped_by_watchpoint): Update.
12935
e095146b
YQ
129362014-02-19 Yao Qi <yao@codesourcery.com>
12937
12938 PR gdb/16220
12939 * gdbarch.sh: Remove startup_gdbarch.
12940 * gdbarch.c: Regenerated.
12941 * gdbarch.h: Likewise.
12942
bc3c6b36
KB
129432014-02-17 Kevin Buettner <kevinb@redhat.com>
12944
12945 * rl78-tdep.c (rl78_g10_register_name): New function.
12946 (rl78_return_value): Add g10 support.
12947 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12948 g10.
12949
98dc0167 129502014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12951
12952 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12953 (SUBDIR_GUILE_SRCS): Ditto.
12954 (scm-gsmob.o): Ditto.
12955
842c05cd
YQ
129562014-02-17 Yao Qi <yao@codesourcery.com>
12957
12958 * gnu-nat.c (ILL_RPC): Declare defined function.
12959
25c0bd04
YQ
129602014-02-17 Yao Qi <yao@codesourcery.com>
12961
12962 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12963 mach_msg_type_number_t.
12964 (gnu_write_inferior): Likewise.
12965
a9a758e3
YQ
129662014-02-17 Yao Qi <yao@codesourcery.com>
12967
12968 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12969 in format string.
12970 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12971 (inf_validate_procs, inf_signal): Likewise.
12972 (S_exception_raise_request): Likewise.
12973 (do_mach_notify_dead_name): Likewise.
12974 (steal_exc_port): Likewise.
12975 (gnu_read_inferior): Change 'copy_count''s type to
12976 mach_msg_type_number_t.
12977 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12978 format string.
12979
bae8023e
TS
129802014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12981
c82f56d9
TS
12982 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12983 flag. Adjust all users; in particular...
12984 (gnu_wait): ..., don't decrement its value in here...
12985 (gnu_create_inferior): ..., and instead set the flag in here,
12986 around the startup_inferior call, and call that one with
12987 START_INFERIOR_TRAPS_EXPECTED.
12988
3398af6a
TS
12989 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12990 (ILL_RPC): ... new macro.
12991 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12992 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12993 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12994 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12995 functions with ILL_RPC macro.
12996 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12997 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12998 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12999 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13000 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13001 (S_proc_getlogin_reply, S_proc_getsid_reply)
13002 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13003 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13004 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13005 (S_proc_getnports_reply, S_proc_is_important_reply)
13006 (S_proc_get_code_reply): New stub functions, generated with
13007 ILL_RPC macro.
13008
d47642c9
TS
13009 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13010 collected the type check structures.
13011
bae8023e
TS
13012 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13013
8a55ffb0
DE
130142014-02-14 Doug Evans <dje@google.com>
13015
13016 * target.c (target_write_partial): Fix result type.
13017
c2853f3d
JM
130182014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13019
13020 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13021 the proper offsets to access fpregset_t.
13022
ac61d2db
SA
130232014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13024
13025 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13026 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13027 * h8300-tdep.c (setmachinelist): Remove global.
13028 * hppa-tdep.c (hppa_sigtramp): Remove global.
13029 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13030 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13031 * ravenscar-thread.c (update_target_observer): Remove global.
13032 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13033
9d2d0b8b
TT
130342014-02-12 Tom Tromey <tromey@redhat.com>
13035
13036 * common/rsp-low.c: Update comments.
13037 * common/rsp-low.h: Update comments.
13038
a7191e8b
TT
130392014-02-12 Tom Tromey <tromey@redhat.com>
13040
13041 * common/rsp-low.c (convert_ascii_to_int): Remove.
13042 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13043
ff0e980e
TT
130442014-02-12 Tom Tromey <tromey@redhat.com>
13045
13046 * common/rsp-low.h (unhexify): Don't declare.
13047 * common/rsp-low.c (unhexify): Remove.
13048
e9371aff
TT
130492014-02-12 Tom Tromey <tromey@redhat.com>
13050
13051 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13052 * common/rsp-low.c (convert_int_to_ascii): Remove.
13053
971dc0b8
TT
130542014-02-12 Tom Tromey <tromey@redhat.com>
13055
13056 * common/rsp-low.h (hexify): Don't declare.
13057 * common/rsp-low.c (hexify): Remove.
13058
0a822afb
TT
130592014-02-12 Tom Tromey <tromey@redhat.com>
13060
13061 * common/rsp-low.c (hexify): Never take strlen of argument.
13062
9f1b45b0
TT
130632014-02-12 Tom Tromey <tromey@redhat.com>
13064
13065 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13066 * remote.c (extended_remote_run, remote_rcmd)
13067 (remote_download_trace_state_variable, remote_save_trace_data)
13068 (remote_set_trace_notes): Update.
13069 * tracepoint.c (encode_source_string, tfile_write_status)
13070 (tfile_write_uploaded_tsv): Update.
13071
9c3d6531
TT
130722014-02-12 Tom Tromey <tromey@redhat.com>
13073
13074 * tracepoint.c: Include rsp-low.h.
13075 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13076 * remote.c: Include rsp-low.h.
13077 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13078 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13079 (remote_unescape_input): Move to common/rsp-low.c.
13080 * common/rsp-low.h: New file.
13081 * common/rsp-low.c: New file.
13082 * Makefile.in (SFILES): Add common/rsp-low.c.
13083 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13084 (COMMON_OBS): Add rsp-low.o.
13085 (rsp-low.o): New target.
13086
01fd3ea5
TT
130872014-02-12 Tom Tromey <tromey@redhat.com>
13088
13089 * utils.h: Include print-utils.h.
13090 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13091 (int_string, core_addr_to_string, core_addr_to_string_nz)
13092 (hex_string, hex_string_custom): Don't declare.
13093 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13094 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13095 (hex_string_custom, int_string, core_addr_to_string)
13096 (core_addr_to_string_nz, host_address_to_string): Move to
13097 common/print-utils.c.
13098 * common/print-utils.h: New file.
13099 * common/print-utils.c: New file
13100 * Makefile.in (SFILES): Add common/print-utils.c.
13101 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13102 (COMMON_OBS): Add print-utils.o.
13103 (print-utils.o): New target.
13104
9fb50108
TT
131052014-02-12 Tom Tromey <tromey@redhat.com>
13106
13107 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13108
0548b5db
MK
131092014-02-12 Mark Kettenis <kettenis@gnu.org>
13110
13111 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13112
493443a4
MK
131132014-02-12 Mark Kettenis <kettenis@gnu.org>
13114
13115 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13116 if a PT_IO ptrace request returns sucessfully but indicates that 0
13117 bytes were transferred.
13118
706d0883
PA
131192014-02-12 Pedro Alves <palves@redhat.com>
13120 Kevin Buettner <kevinb@redhat.com>
13121
13122 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13123 TYPE_INSTANCE_FLAG_CODE_SPACE.
13124
5caa2f0b
PA
131252014-02-12 Pedro Alves <palves@redhat.com>
13126
13127 * h8300-tdep.c (pseudo_from_raw_register)
13128 (raw_from_pseudo_register): New functions.
13129 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13130 them.
13131
76fd5f74
PA
131322014-02-12 Pedro Alves <palves@redhat.com>
13133
13134 * h8300-tdep.c (h8300_register_sim_regno): New function.
13135 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13136 gdbarch_register_sim_regno hook.
13137
8f008406
SA
131382014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13139
13140 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13141
195abc10
SA
131422014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13143
13144 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13145
93ffa5b9
MK
131462014-02-12 Mark Kettenis <kettenis@gnu.org>
13147
13148 * obsd-tdep.h (obsd_init_abi): New prototype.
13149 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13150 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13151 (obsd_init_abi): New functions.
13152 * i386obsd-tdep.c: Include "obsd-tdep.h".
13153 (i386obsd_init_abi): Call obsd_init_abi.
13154 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13155 (amd64obsd_init_abi): Call obsd_init_abi.
13156 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13157 obsd-tdep.c to gdb_target_obs.
13158
49caec94
JM
131592014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13160
13161 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13162 double float arguments to 16-byte in the argument slots.
13163
e1402065
DE
131642014-02-11 Doug Evans <xdje42@gmail.com>
13165
13166 * configure.ac: Don't crash if pkg-config is not found and guile
13167 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13168 in guile checks.
13169 * configure: Regenerate.
13170
edcc890f
YQ
131712014-02-11 Yao Qi <yao@codesourcery.com>
13172
13173 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13174 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13175 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13176 * gnu-nat.c (gnu_xfer_memory): Likewise.
13177 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13178 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13179 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13180 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13181
9b409511
YQ
131822014-02-11 Yao Qi <yao@codesourcery.com>
13183
13184 * target.h (enum target_xfer_error): Rename to ...
13185 (enum target_xfer_status): ... it. New. All users updated.
13186 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13187 New.
13188 (TARGET_XFER_STATUS_ERROR_P): New macro.
13189 (target_xfer_error_to_string): Remove declaration.
13190 (target_xfer_status_to_string): Declare.
13191 (target_xfer_partial_ftype): Adjust it.
13192 (struct target_ops) <to_xfer_partial>: Return
13193 target_xfer_status. Add argument xfered_len. Update
13194 comments.
13195 * target.c (target_xfer_error_to_string): Rename to ...
13196 (target_xfer_status_to_string): ... it. New. All callers
13197 updated.
13198 (target_read_live_memory): Likewise. Call target_xfer_partial
13199 instead of target_read.
13200 (memory_xfer_live_readonly_partial): Return
13201 target_xfer_status. Add argument xfered_len.
13202 (raw_memory_xfer_partial): Likewise.
13203 (memory_xfer_partial_1): Likewise.
13204 (memory_xfer_partial): Likewise.
13205 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13206 properly. Update debug message.
13207 (default_xfer_partial, current_xfer_partial): Likewise.
13208 (target_write_partial): Likewise.
13209 (target_read_partial): Likewise. All callers updated.
13210 (read_whatever_is_readable): Likewise.
13211 (target_write_with_progress): Likewise.
13212 (target_read_alloc_1): Likewise.
13213
13214 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13215 * auxv.c (procfs_xfer_auxv): Likewise.
13216 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13217 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13218 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13219 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13220 * corefile.c (read_memory): Adjust.
13221 * corelow.c (core_xfer_partial): Likewise.
13222 * ctf.c (ctf_xfer_partial): Likewise.
13223 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13224 updated.
13225 (darwin_xfer_partial): Likewise.
13226 * exec.c (section_table_xfer_memory_partial): Likewise. All
13227 callers updated.
13228 (exec_xfer_partial): Likewise.
13229 * exec.h (section_table_xfer_memory_partial): Update
13230 declaration.
13231 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13232 negative.
13233 (gnu_xfer_partial): Likewise.
13234 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13235 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13236 (ia64_hpux_xfer_solib_got): Likewise.
13237 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13238 type of 'partial_len' to ULONGEST.
13239 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13240 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13241 (linux_nat_xfer_partial): Likewise.
13242 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13243 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13244 * monitor.c (monitor_xfer_memory): Likewise.
13245 (monitor_xfer_partial): Likewise.
13246 * procfs.c (procfs_xfer_partial): Likewise.
13247 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13248 * record-full.c (record_full_xfer_partial): Likewise.
13249 (record_full_core_xfer_partial): Likewise.
13250 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13251 (gdbsim_xfer_partial): Likewise.
13252 * remote.c (remote_write_bytes_aux): Likewise. All callers
13253 updated.
13254 (remote_write_bytes, remote_read_bytes): Likewise. All
13255 callers updated.
13256 (remote_flash_erase): Likewise. All callers updated.
13257 (remote_write_qxfer): Likewise. All callers updated.
13258 (remote_read_qxfer): Likewise. All callers updated.
13259 (remote_xfer_partial): Likewise.
13260 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13261 (rs6000_xfer_shared_libraries): Likewise.
13262 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13263 (sol_thread_xfer_partial): Likewise.
13264 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13265 (sparc_xfer_partial): Likewise.
13266 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13267 updated.
13268 (spu_xfer_partial): Likewise.
13269 * spu-multiarch.c (spu_xfer_partial): Likewise.
13270 * tracepoint.c (tfile_xfer_partial): Likewise.
13271 * windows-nat.c (windows_xfer_memory): Likewise.
13272 (windows_xfer_shared_libraries): Likewise.
13273 (windows_xfer_partial): Likewise.
13274 * valprint.c: Replace 'target_xfer_error' with
13275 'target_xfer_status' in comments.
13276
a8e63083
JB
132772014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13278
13279 Checked in by Joel Brobecker <brobecker@adacore.com>.
13280 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13281
e86b67d3
JB
132822014-02-11 Joel Brobecker <brobecker@adacore.com>
13283
13284 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13285 function parameters.
13286
4b7d1f7f
WN
132872014-02-10 Will Newton <will.newton@linaro.org>
13288
13289 * elfread.c (elf_rel_plt_read): Look for a .got section if
13290 looking up .got.plt fails.
13291 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13292 on address passed to elf_gnu_ifunc_record_cache.
13293 (elf_gnu_ifunc_resolve_addr): Likewise.
13294 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13295
961842b2
JM
132962014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13297
13298 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13299 (X_RETTURN): New macro.
13300 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13301
13302 * sparc64-tdep.c (sparc64_init_abi): Hook
13303 sparc_in_function_epilogue_p.
13304
3f03e7b1
GB
133052014-02-10 Gary Benson <gbenson@redhat.com>
13306
13307 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13308 Rename name_matcher to symbol_matcher.
13309
96f861ef
GB
133102014-02-10 Gary Benson <gbenson@redhat.com>
13311
13312 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13313 Use expand_symtabs_file_matcher_ftype and
13314 expand_symtabs_symbol_matcher_ftype.
13315
ee01b665
JB
133162014-02-10 Joel Brobecker <brobecker@adacore.com>
13317
13318 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13319 (struct ada_symbol_cache): New.
13320 (ada_free_symbol_cache): Forward declare.
13321 (struct ada_pspace_data): New.
13322 (ada_pspace_data_handle): New static global.
13323 (get_ada_pspace_data, ada_pspace_data_cleanup)
13324 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13325 (cache_space, cache): Delete, now folded inside struct
13326 ada_pspace_data.
13327 (ada_get_symbol_cache): New function.
13328 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13329 implementation.
13330 (_initialize_ada_language): Remove initialization of cache_space.
13331 Move call to observer_attach_inferior_exit up, grouping it
13332 with the other observer registrations inside this function.
13333 Rename command to be more general. Add call to
13334 register_program_space_data_with_cleanup.
13335
143adbbf
JB
133362014-02-10 Joel Brobecker <brobecker@adacore.com>
13337
13338 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13339 ada_new_objfile_observer.
13340 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13341 (_initialize_tasks): Update uses of ada_new_objfile_observer
13342 and ada_tasks_normal_stop_observer.
13343
aa4fb036
JB
133442014-02-10 Joel Brobecker <brobecker@adacore.com>
13345
13346 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13347 returned by the 'Length attribute to integer.
13348
9dee8cc6
JB
133492014-02-10 Joel Brobecker <brobecker@adacore.com>
13350
13351 * ada-lang.c (_initialize_ada_language): Initialize
13352 cache_space obstack.
13353
3d9434b5
JB
133542014-02-10 Joel Brobecker <brobecker@adacore.com>
13355
13356 * ada-lang.c (HASH_SIZE): New macro.
13357 (struct cache_entry): New type.
13358 (cache_space, cache): New static globals.
13359 (ada_clear_symbol_cache, find_entry): New functions.
13360 (lookup_cached_symbol, cache_symbol): Implement.
13361 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13362 (_initialize_ada_language): Attach ada_new_objfile_observer
13363 and ada_free_objfile_observer.
13364
f0c5f9b2
JB
133652014-02-10 Joel Brobecker <brobecker@adacore.com>
13366
13367 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13368 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13369 struct block * parameter.
13370 (ada_lookup_symbol_list_worker): Constify local variable "block".
13371 Remove cast which is no longer necessary.
13372
ed3ef339
DE
133732014-02-10 Doug Evans <xdje42@gmail.com>
13374
13375 Add Guile as an extension language.
13376 * NEWS: Mention Guile scripting.
13377 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13378 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13379 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13380 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13381 (CLIBS): Add GUILE_LIBS.
13382 (install-guile): New rule.
13383 (guile.o): New rule.
13384 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13385 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13386 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13387 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13388 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13389 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13390 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13391 * configure.ac: New option --with-guile.
13392 * configure: Regenerate.
13393 * config.in: Regenerate.
13394 * auto-load.c: Remove #include "python/python.h". Add #include
13395 "gdb/section-scripts.h".
13396 (source_section_scripts): Handle Guile scripts.
13397 (_initialize_auto_load): Add name of Guile objfile script to
13398 scripts-directory help text.
13399 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13400 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13401 (struct breakpoint): New member scm_bp_object.
13402 * defs.h (enum command_control_type): New value guile_control.
13403 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13404 "extension.h".
13405 (show_user): Update comment.
13406 (_initialize_cli_cmds): Update help text for "show user". Update help
13407 text for max-user-call-depth.
13408 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13409 "extension.h".
13410 (multi_line_command_p): Add guile_control.
13411 (print_command_lines): Handle guile_control.
13412 (execute_control_command, recurse_read_control_structure): Ditto.
13413 (process_next_line): Recognize "guile" commands.
13414 * disasm.c (gdb_disassemble_info): Make non-static.
13415 * disasm.h: #include "dis-asm.h".
13416 (struct gdbarch): Add forward decl.
13417 (gdb_disassemble_info): Declare.
13418 * extension.c: #include "guile/guile.h".
13419 (extension_languages): Add guile.
13420 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13421 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13422 * gdbtypes.c (get_unsigned_type_max): New function.
13423 (get_signed_type_minmax): New function.
13424 * gdbtypes.h (get_unsigned_type_max): Declare.
13425 (get_signed_type_minmax): Declare.
13426 * guile/README: New file.
13427 * guile/guile-internal.h: New file.
13428 * guile/guile.c: New file.
13429 * guile/guile.h: New file.
13430 * guile/scm-arch.c: New file.
13431 * guile/scm-auto-load.c: New file.
13432 * guile/scm-block.c: New file.
13433 * guile/scm-breakpoint.c: New file.
13434 * guile/scm-disasm.c: New file.
13435 * guile/scm-exception.c: New file.
13436 * guile/scm-frame.c: New file.
13437 * guile/scm-gsmob.c: New file.
13438 * guile/scm-iterator.c: New file.
13439 * guile/scm-lazy-string.c: New file.
13440 * guile/scm-math.c: New file.
13441 * guile/scm-objfile.c: New file.
13442 * guile/scm-ports.c: New file.
13443 * guile/scm-pretty-print.c: New file.
13444 * guile/scm-safe-call.c: New file.
13445 * guile/scm-string.c: New file.
13446 * guile/scm-symbol.c: New file.
13447 * guile/scm-symtab.c: New file.
13448 * guile/scm-type.c: New file.
13449 * guile/scm-utils.c: New file.
13450 * guile/scm-value.c: New file.
13451 * guile/lib/gdb.scm: New file.
13452 * guile/lib/gdb/boot.scm: New file.
13453 * guile/lib/gdb/experimental.scm: New file.
13454 * guile/lib/gdb/init.scm: New file.
13455 * guile/lib/gdb/iterator.scm: New file.
13456 * guile/lib/gdb/printing.scm: New file.
13457 * guile/lib/gdb/types.scm: New file.
13458 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13459 (VPATH): Add $(GUILE_SRCDIR).
13460 (GUILE_DIR): New variable.
13461 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13462 (all): Add stamp-guile dependency.
13463 (stamp-guile): New rule.
13464 (clean-guile, install-guile, uninstall-guile): New rules.
13465 (install-only): Add install-guile dependency.
13466 (uninstall): Add uninstall-guile dependency.
13467 (clean): Add clean-guile dependency.
13468
ac020ec5
DE
134692014-02-09 Doug Evans <xdje42@gmail.com>
13470
13471 Revert this patch (which I approved, mea culpa).
13472
13473 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13474
13475 * Makefile.in (all-lib): Remove.
13476 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13477
2a081c59
JK
134782014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13479
13480 Fix Python stack corruption.
13481 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13482 gdb_py_longest.
13483
0a6bd22d
MK
134842014-02-08 Mark Kettenis <kettenis@gnu.org>
13485
13486 * Makefile.in (all-lib): Remove.
13487 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13488
1a860409
DE
134892014-02-07 Doug Evans <dje@google.com>
13490
13491 * extension-priv.h (extension_language_script_ops): Add comment.
13492 (extension_language_ops): Add comment.
caf5a491 13493 (active_ext_lang_state): Fix typo in comment.
1a860409 13494
d137e6dc
PA
134952014-02-07 Pedro Alves <palves@redhat.com>
13496
0dcb32c3 13497 PR breakpoints/16292
d137e6dc
PA
13498 * infrun.c (handle_signal_stop) <signal arrives while stepping
13499 over a breakpoint>: Switch back to the stepping thread.
13500
ce6d0892
YQ
135012014-02-07 Yao Qi <yao@codesourcery.com>
13502
13503 * target.c (target_xfer_partial): Return zero if LEN is zero.
13504
2ed4b548
YQ
135052014-02-07 Yao Qi <yao@codesourcery.com>
13506
13507 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13508 (ld_so_xfer_auxv): Likewise.
13509 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13510 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13511 * corelow.c (core_xfer_partial): Likewise.
13512 * ctf.c (ctf_xfer_partial): Likewise.
13513 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13514 (darwin_xfer_partial): Likewise.
13515 * exec.c (exec_xfer_partial): Likewise.
13516 * gnu-nat.c (gnu_xfer_partial): Likewise.
13517 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13518 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13519 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13520 * linux-nat.c (linux_xfer_siginfo): Likewise.
13521 (linux_proc_xfer_spu): Likewise.
13522 * procfs.c (procfs_xfer_partial): Likewise.
13523 * record-full.c (record_full_xfer_partial): Likewise.
13524 (record_full_core_xfer_partial): Likewise.
13525 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13526 * remote.c (remote_write_qxfer): Likewise.
13527 (remote_write_qxfer, remote_read_qxfer): Likewise.
13528 (remote_xfer_partial): Likewise.
13529 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13530 (rs6000_xfer_shared_libraries): Likewise.
13531 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13532 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13533 (spu_xfer_partial): Likewise.
13534 * target.c (memory_xfer_partial_1): Likewise.
13535 * tracepoint.c (tfile_xfer_partial): Likewise.
13536 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13537 (windows_xfer_partial): Likewise.
13538
c09f20e4
YQ
135392014-02-07 Yao Qi <yao@codesourcery.com>
13540
13541 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13542 comments.
13543 (core_xfer_shared_libraries_aix): Likewise.
13544 * gdbarch.c, gdbarch.h: Regenerated.
13545 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13546 ULONGEST. Change 'len_avail' type to ULONGEST.
13547 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13548 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13549 declaration.
13550 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13551
8635b3bf
YQ
135522014-02-07 Yao Qi <yao@codesourcery.com>
13553
13554 * corefile.c (memory_error): Get 'exception' from ERR and pass
13555 'exception' to throw_error.
13556
6dddc817
DE
135572014-02-06 Doug Evans <xdje42@gmail.com>
13558
13559 * configure.ac (libpython checking): Remove all but python.o from
13560 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13561 * configure: Regenerate.
13562
13563 * Makefile.in (SFILES): Add extension.c.
13564 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13565 (COMMON_OBS): Add extension.o.
13566 * extension.h: New file.
13567 * extension-priv.h: New file.
13568 * extension.c: New file.
13569
13570 * python/python-internal.h: #include "extension.h".
13571 (gdbpy_auto_load_enabled): Declare.
13572 (gdbpy_apply_val_pretty_printer): Declare.
13573 (gdbpy_apply_frame_filter): Declare.
13574 (gdbpy_preserve_values): Declare.
13575 (gdbpy_breakpoint_cond_says_stop): Declare.
13576 (gdbpy_breakpoint_has_cond): Declare.
13577 (void source_python_script_for_objfile): Delete.
13578 * python/python.c: #include "extension-priv.h".
13579 Delete inclusion of "observer.h".
13580 (extension_language_python): Moved here and renamed from
13581 script_language_python in py-auto-load.c.
13582 Redefined to be of type extension_language_defn.
13583 (python_extension_script_ops): New global.
13584 (python_extension_ops): New global.
13585 (struct python_env): New member previous_active.
13586 (restore_python_env): Call restore_active_ext_lang.
13587 (ensure_python_env): Call set_active_ext_lang.
13588 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13589 New arg extlang.
13590 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13591 New arg extlang.
13592 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13593 New arg extlang.
13594 (gdbpy_eval_from_control_command): Renamed from
13595 eval_python_from_control_command, made static. New arg extlang.
13596 (gdbpy_source_script) Renamed from source_python_script, made static.
13597 New arg extlang.
13598 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13599 result to int. New arg extlang.
13600 (gdbpy_source_objfile_script): Renamed from
13601 source_python_script_for_objfile, made static. New arg extlang.
13602 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13603 static. New args extlang, extlang_printers. Change result type to
13604 "void".
13605 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13606 static. New arg extlang. Rename arg printers to extlang_printers
13607 and change type to ext_lang_type_printers *.
13608 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13609 static. Replace argument arg with extlang, extlang_printers.
13610 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13611 (!HAVE_PYTHON, source_python_script): Delete.
13612 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13613 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13614 (!HAVE_PYTHON, start_type_printers): Delete.
13615 (!HAVE_PYTHON, apply_type_printers): Delete.
13616 (!HAVE_PYTHON, free_type_printers): Delete.
13617 (_initialize_python): Delete call to observer_attach_before_prompt.
13618 (finalize_python): Set/restore active extension language.
13619 (gdbpy_finish_initialization) Renamed from
13620 finish_python_initialization, made static. New arg extlang.
13621 (gdbpy_initialized): New function.
13622 * python/python.h: #include "extension.h". Delete #include
13623 "value.h", "mi/mi-cmds.h".
13624 (extension_language_python): Declare.
13625 (GDBPY_AUTO_FILE_NAME): Delete.
13626 (enum py_bt_status): Moved to extension.h and renamed to
13627 ext_lang_bt_status.
13628 (enum frame_filter_flags): Moved to extension.h.
13629 (enum py_frame_args): Moved to extension.h and renamed to
13630 ext_lang_frame_args.
13631 (finish_python_initialization): Delete.
13632 (eval_python_from_control_command): Delete.
13633 (source_python_script): Delete.
13634 (apply_val_pretty_printer): Delete.
13635 (apply_frame_filter): Delete.
13636 (preserve_python_values): Delete.
13637 (gdbpy_script_language_defn): Delete.
13638 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13639 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13640
13641 * auto-load.c: #include "extension.h".
13642 (GDB_AUTO_FILE_NAME): Delete.
13643 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13644 (script_language_gdb): Delete, moved to extension.c and renamed to
13645 extension_language_gdb.
13646 (source_gdb_script_for_objfile): Delete.
13647 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13648 (loaded_script): Change type of language member to
13649 struct extension_language_defn *.
13650 (init_loaded_scripts_info): Initialize
13651 unsupported_script_warning_printed.
13652 (maybe_add_script): Make static. Change type of language arg to
13653 struct extension_language_defn *.
13654 (clear_section_scripts): Reset unsupported_script_warning_printed.
13655 (auto_load_objfile_script_1): Rewrite to use extension language API.
13656 (auto_load_objfile_script): Make public. Remove support-compiled-in
13657 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13658 (source_section_scripts): Rewrite to use extension language API.
13659 (load_auto_scripts_for_objfile): Rewrite to use
13660 auto_load_scripts_for_objfile.
13661 (collect_matching_scripts_data): Change type of language member to
13662 struct extension_language_defn *.
13663 (auto_load_info_scripts): Change type of language arg to
13664 struct extension_language_defn *.
13665 (unsupported_script_warning_print): New function.
13666 (script_not_found_warning_print): Make static.
13667 (_initialize_auto_load): Rewrite construction of scripts-directory
13668 help.
13669 * auto-load.h (struct objfile): Add forward decl.
13670 (struct script_language): Delete.
13671 (struct auto_load_pspace_info): Add forward decl.
13672 (struct extension_language_defn): Add forward decl.
13673 (maybe_add_script): Delete.
13674 (auto_load_objfile_script): Declare.
13675 (script_not_found_warning_print): Delete.
13676 (auto_load_info_scripts): Update prototype.
13677 (auto_load_gdb_scripts_enabled): Declare.
13678 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13679 auto_load_python_scripts_enabled and made public.
13680 (script_language_python): Delete, moved to python.c.
13681 (gdbpy_script_language_defn): Delete.
13682 (info_auto_load_python_scripts): Update to use
13683 extension_language_python.
13684
13685 * breakpoint.c (condition_command): Replace call to
13686 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13687 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13688 with call to breakpoint_ext_lang_cond_says_stop.
13689 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13690 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13691 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13692 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13693 New arg slang.
13694 (local_setattro): Print name of extension language with existing
13695 stop condition.
13696
13697 * valprint.c (val_print, value_print): Update to call
13698 apply_ext_lang_val_pretty_printer.
13699 * cp-valprint.c (cp_print_value): Update call to
13700 apply_ext_lang_val_pretty_printer.
13701 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13702 (gdbpy_apply_val_pretty_printer): Renamed from
13703 apply_val_pretty_printer. New arg extlang.
13704 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13705
13706 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13707 extension language API.
13708 * cli/cli-script.c (execute_control_command): Update to call
13709 eval_ext_lang_from_control_command.
13710
13711 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13712 enum ext_lang_bt_status values. Update call to
13713 apply_ext_lang_frame_filter.
13714 (mi_cmd_stack_list_locals): Ditto.
13715 (mi_cmd_stack_list_args): Ditto.
13716 (mi_cmd_stack_list_variables): Ditto.
13717 * mi/mi-main.c: Delete #include "python/python-internal.h".
13718 Add #include "extension.h".
13719 (mi_cmd_list_features): Replace reference to python internal variable
13720 gdb_python_initialized with call to ext_lang_initialized_p.
13721
13722 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13723 Update to use enum ext_lang_frame_args. Update to call
13724 apply_ext_lang_frame_filter.
13725 * python/py-framefilter.c (extract_sym): Update to use enum
13726 ext_lang_bt_status.
13727 (extract_value, py_print_type, py_print_value): Ditto.
13728 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13729 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13730 (py_print_frame): Ditto.
13731 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13732 New arg extlang. Update to use enum ext_lang_bt_status.
13733
13734 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13735 finish_python_initialization. Replace with call to
13736 finish_ext_lang_initialization.
13737
13738 * typeprint.c (do_free_global_table): Update to call
13739 free_ext_lang_type_printers.
13740 (create_global_typedef_table): Update to call
13741 start_ext_lang_type_printers.
13742 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13743 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13744 (type_print_options): Change type of global_printers from "void *"
13745 to "struct ext_lang_type_printers *".
13746
13747 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13748 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13749 (gdbpy_preserve_values): Renamed from preserve_python_values.
13750 New arg extlang.
13751 (!HAVE_PYTHON, preserve_python_values): Delete.
13752
13753 * utils.c (quit_flag): Delete, moved to extension.c.
13754 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13755 extension.c.
13756
13757 * eval.c: Delete #include "python/python.h".
13758 * main.c: Delete #include "python/python.h".
13759
13760 * defs.h: Update comment.
13761
6af79985
JB
137622014-02-06 Joel Brobecker <brobecker@adacore.com>
13763
13764 GDB 7.7 released.
13765
12c5175d
MK
137662014-02-05 Mark Kettenis <kettenis@gnu.org>
13767
13768 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13769 defined.
13770
8dc5b319
YQ
137712014-02-05 Yao Qi <yao@codesourcery.com>
13772
13773 * remote.c (remote_pass_signals): Remove local 'buf' and use
13774 rs->buf.
13775 (remote_program_signals): Likewise.
13776
de7b2893
YQ
137772014-02-05 Yao Qi <yao@codesourcery.com>
13778
13779 * ctf.c: Include "inferior.h" and "gdbthread.h".
13780 (CTF_PID): A new macro.
13781 (ctf_open): Call inferior_appeared and add_thread_silent.
13782 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13783 (ctf_thread_alive): New function.
13784 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13785
66d032ac
YQ
137862014-02-05 Yao Qi <yao@codesourcery.com>
13787
13788 Revert this patch:
13789
13790 2013-05-24 Yao Qi <yao@codesourcery.com>
13791
13792 * tracepoint.c (TFILE_PID): Remove.
13793 (tfile_open): Don't add thread and inferior.
13794 (tfile_close): Don't set 'inferior_ptid'. Don't call
13795 exit_inferior_silent.
13796 (tfile_thread_alive): Remove.
13797 (init_tfile_ops): Don't set field 'to_thread_alive' of
13798 tfile_ops.
13799
f4ccffad
CE
138002014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13801
13802 * remote.c (remote_start_remote): Call remote_check_symbols even
13803 if only symbol-file (not file) has been given.
13804
591a12a1
UW
138052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13806
13807 * gdbarch.sh (skip_entrypoint): New callback.
13808 * gdbarch.c, gdbarch.h: Regenerate.
13809 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13810 * infrun.c (fill_in_stop_func): Likewise.
13811 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13812 (ppc_elfv2_elf_make_msymbol_special): New function.
13813 (ppc_elfv2_skip_entrypoint): Likewise.
13814 (ppc_linux_init_abi): Install them for ELFv2.
13815
cc0e89c5
UW
138162014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13817
13818 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13819 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13820 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13821 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13822 structures returned in GPRs.
13823
52f548e4
UW
138242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13825
13826 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13827 offset to the stack parameter list for the ELFv2 ABI.
13828
d4094b6a
UW
138292014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13830
13831 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13832 set_gdbarch_convert_from_func_ptr_addr and
13833 set_gdbarch_elf_make_msymbol_special for ELFv1.
13834 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13835 function descriptors on ELFv1.
13836 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13837 set up r12 at function entry.
13838
cd453cd0
UW
138392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13840
13841 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13842 (struct gdbarch_tdep): New member elf_abi.
13843
13844 * rs6000-tdep.c: Include "elf/ppc64.h".
13845 (rs6000_gdbarch_init): Detect ELF ABI version.
13846
0ff3e01f
UW
138472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13848
13849 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13850 within a register pair holding a DFP 128-bit value on little-endian.
13851 (ppc64_sysv_abi_return_value_base): Likewise.
13852 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13853 (dfp_pseudo_register_write): Likewise.
13854
5b757e5d
UW
138552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13856
13857 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13858 offset on little-endian when passing _Decimal32.
13859 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13860
084ee545
UW
138612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13862
13863 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13864 of the overlapped FP register within the VSX register on little-
13865 endian platforms.
13866 (efpr_pseudo_register_write): Likewise.
13867
d63167af
UW
138682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13869
13870 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13871 offset on little-endian when passing small structures.
13872
e765b44c
UW
138732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13874
13875 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13876 (struct ppc64_sysv_argpos): New data structure.
13877 (ppc64_sysv_abi_push_float): Remove.
13878 (ppc64_sysv_abi_push_val): New function.
13879 (ppc64_sysv_abi_push_integer): Likewise.
13880 (ppc64_sysv_abi_push_freg): Likewise.
13881 (ppc64_sysv_abi_push_vreg): Likewise.
13882 (ppc64_sysv_abi_push_param): Likewise.
13883 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13884 (ppc64_sysv_abi_return_value_base): New function.
13885 (ppc64_sysv_abi_return_value): Refactor to use it.
13886
36c24d95
UW
138872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13888
13889 * NEWS: Document new target powerpc64le-*-linux*.
13890
26fd9228
MK
138912014-02-04 Mark Kettenis <kettenis@gnu.org>
13892
13893 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13894 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13895 core dumps.
13896 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13897 register set used in ELF core dumps. Add floating-point register set.
13898
c5bb7362
KB
138992014-02-03 Kevin Buettner <kevinb@redhat.com>
13900
74228e77 13901 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13902 dwarf2_to_gdb[] table using symbolic constants. Adjust
13903 penultimate entry from number representing the PC register
13904 to symbolic constant representing the MDR register. Add
13905 constant for the PC register to the end of the table.
13906
af09351e
MK
139072014-02-03 Mark Kettenis <kettenis@gnu.org>
13908
13909 * bsd-kvm.c: Include <sys/param.h>
13910
8507e05d
MK
139112014-02-03 Mark Kettenis <kettenis@gnu.org>
13912
13913 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13914
ae56bfb8
JB
139152014-01-31 Joel Brobecker <brobecker@adacore.com>
13916
13917 * ada-lang.h (clear_ada_sym_cache): Delete.
13918
718ee4dc
UW
139192014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13920
13921 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13922
401e27fd
JM
139232014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13924
13925 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13926 the sigreturn register save area only if the syscall is
13927 sigreturn.
13928
a7c88acd
JB
139292014-01-29 Joel Brobecker <brobecker@adacore.com>
13930
13931 * valops.c (value_slice): Minor reformatting.
13932
fa0079ea
UW
139332014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13934
13935 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13936
c6044dd1
JB
139372014-01-28 Joel Brobecker <brobecker@adacore.com>
13938
13939 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13940 New static globals.
13941 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13942 (ada_ignore_descriptive_types_p): New static global.
13943 (find_parallel_type_by_descriptive_type): Return immediately
13944 if ada_ignore_descriptive_types_p is set.
13945 (_initialize_ada_language): Register new commands "maintenance
13946 set ada", "maintenance show ada", "maintenance set ada
13947 ignore-descriptive-types" and "maintenance show ada
13948 ignore-descriptive-types".
13949 * NEWS: Add entry for new "maint ada set/show
13950 ignore-descriptive-types" commands.
13951
568e808b
MM
139522014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13953
13954 * record-btrace.c (record_btrace_close): Call btrace_teardown
13955 for all threads.
13956
467d141b
JB
139572014-01-27 Joel Brobecker <brobecker@adacore.com>
13958
13959 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13960 "ui-out.h".
13961
fb151210
JB
139622014-01-27 Joel Brobecker <brobecker@adacore.com>
13963
13964 * ada-typeprint (type_is_full_subrange_of_target_type):
13965 New function.
13966 (print_range): Add parameter bounds_prefered_p. If not set,
13967 try printing range types using the name of their base type.
13968 (print_range_type): Add parameter bounds_prefered_p.
13969 Use it in call to print_range.
13970 (print_array_type, ada_print_type): Update calls to print_range
13971 and print_range_type.
13972
aba02109
JB
139732014-01-27 Joel Brobecker <brobecker@adacore.com>
13974
13975 * ada-typeprint.c (print_array_type, print_choices, print_range)
13976 (print_range_bound, print_dynamic_range_bound, print_range_type):
13977 Remove declaration.
13978
e62e21fd
JB
139792014-01-27 Joel Brobecker <brobecker@adacore.com>
13980
13981 * ada-typeprint.c (print_range): Add missing empty line
13982 after local declaration.
13983
859cf5d1
JB
139842014-01-27 Joel Brobecker <brobecker@adacore.com>
13985
13986 * ada-valprint.c (print_optional_low_bound): Get index_type's
13987 target type for as long as it is a TYPE_CODE_RANGE.
13988
25790f6f
JB
139892014-01-27 Joel Brobecker <brobecker@adacore.com>
13990
13991 * procfs.c (procfs_make_note_section): Remove assertion and
13992 associated comment.
13993
6b6aa828
YQ
139942014-01-24 Yao Qi <yao@codesourcery.com>
13995
13996 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13997 * corelow.c (get_core_siginfo): Likewise.
13998
5d6df423
YQ
139992014-01-24 Yao Qi <yao@codesourcery.com>
14000
14001 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14002 ULONGEST. Don't check 'len' is negative.
14003 (remote_write_bytes): Change type of 'len' to ULONGEST.
14004
83b645b8
TT
140052014-01-23 Tom Tromey <tromey@redhat.com>
14006
14007 PR python/16485:
14008 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14009 Handle exception from frame.block.
14010 (FrameVars.fetch_frame_locals): Likewise.
14011
0740f8d8
TT
140122014-01-23 Tom Tromey <tromey@redhat.com>
14013
14014 PR python/16487:
14015 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14016 on a NULL pointer. Move "goto error" to correct place.
14017
21909fa1
TT
140182014-01-23 Tom Tromey <tromey@redhat.com>
14019
14020 PR python/16491:
14021 * python/py-framefilter.c (apply_frame_filter): Call
14022 ensure_python_env after computing gdbarch.
14023
17fde6d0
YQ
140242014-01-23 Yao Qi <yao@codesourcery.com>
14025
14026 * target.c (raw_memory_xfer_partial): Change argument type
14027 from void * to gdb_byte *.
14028 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14029
87ce2a04
DE
140302014-01-22 Doug Evans <dje@google.com>
14031
14032 New gdbserver option --debug-format=timestamp.
14033 * NEWS: Mention it.
14034
237b092b
AA
140352014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14036
14037 * syscalls/s390x-linux.xml: New file.
14038 * syscalls/s390-linux.xml: New file.
14039 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14040 (XML_SYSCALL_FILENAME_S390X): Likewise.
14041 (op_svc): New enum value for SVC opcode.
14042 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14043 (s390_linux_get_syscall_number): New function.
14044 (s390_gdbarch_init): Register '*get_syscall_number' and the
14045 syscall xml file name.
14046 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14047 "s390-linux.xml" and "s390x-linux.xml".
14048 * NEWS: Announce new feature.
14049
54bff650
BS
140502014-01-22 Baruch Siach <baruch@tkos.co.il>
14051
14052 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14053
14e361d7
PA
140542014-01-22 Pedro Alves <palves@redhat.com>
14055
14056 * xtensa-config.c: Include defs.h.
14057
46bbb3ed
JB
140582014-01-22 Joel Brobecker <brobecker@adacore.com>
14059
14060 * common/common-utils.h: Add "ARI:" comment beside __func__
14061 reference.
14062
3a80edfc
JB
140632014-01-22 Joel Brobecker <brobecker@adacore.com>
14064
14065 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14066 documentation a bit.
14067
4869db5e
RM
140682014-01-21 Roland McGrath <mcgrathr@google.com>
14069
14070 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14071 * configure: Regenerate.
14072 * aclocal.m4: Regenerate.
14073 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14074 New substituted variables.
14075 (install-strip): New target.
14076 (INSTALL_SCRIPT): New substituted variable.
14077 (FLAGS_TO_PASS): Add it.
14078 (install-only): Use $(INSTALL_SCRIPT) rather than
14079 $(INSTALL_PROGRAM) for gcore.
14080
9ea4267d
TT
140812014-01-20 Tom Tromey <tromey@redhat.com>
14082
14083 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14084 together.
14085
1f2bdf09
TT
140862014-01-20 Tom Tromey <tromey@redhat.com>
14087
14088 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14089 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14090 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14091 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14092 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14093 (struct cmd_list_element) <flags>: Remove.
14094 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14095 doc_allocated>: New fields.
14096 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14097 bitfields.
14098 * maint.c (maintenance_do_deprecate): Update.
14099 * top.c (execute_command): Update.
14100
e671835b
BS
141012014-01-20 Baruch Siach <baruch@tkos.co.il>
14102
14103 * xtensa-linux-nat.c: Include asm/ptrace.h.
14104
50367cd2
IB
141052014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14106
14107 * Makefile.in (SFILES): Add d-support.c.
14108 (COMMON_OBS): Add d-support.o.
14109 * d-lang.h (d_parse_symbol): Add comment, now defined in
14110 d-support.c.
14111 * d-lang.c (parse_call_convention)
14112 (parse_attributes, parse_function_types)
14113 (parse_function_args, parse_type, parse_identifier)
14114 (call_convention_p, d_parse_symbol): Move functions to ...
14115 * d-support.c: ... New file.
14116
ec9f644a
IB
141172014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14118
14119 * d-lang.h (d_parse_symbol): Add declaration.
14120 * d-lang.c (extract_identifiers)
14121 (extract_type_info): Remove functions.
14122 (parse_call_convention, parse_attributes)
14123 (parse_function_types, parse_function_args)
14124 (parse_type, parse_identifier, call_convention_p)
14125 (d_parse_symbol): New functions.
14126 (d_demangle): Use d_parse_symbol to demangle D symbols.
14127
94b1b47e
IB
141282014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14129
14130 * d-lang.h (struct builtin_d_type): New data type.
14131 (builtin_d_type): Add declaration.
14132 * d-lang.c (d_language_arch_info, build_d_types)
14133 (builtin_d_type): New functions.
14134 (enum d_primitive_types): New data type.
14135 (d_language_defn): Change c_language_arch_info to
14136 d_language_arch_info.
14137 (d_type_data): New static variable.
14138 (_initialize_d_language): Initialize d_type_data.
14139
63778547
IB
141402014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14141
14142 * d-lang.h (d_main_name): Add declaration.
14143 * d-lang.c (d_main_name): New function.
14144 * symtab.c (find_main_name): Add call to d_main_name.
14145
3271ba66
IB
141462014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14147
14148 * d-lang.c (d_language_defn): Change macro_expansion_c to
14149 macro_expansion_no.
14150
d36b3012
IB
141512014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14152
14153 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14154
c90a6fb7
SDJ
141552014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14156
14157 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14158 gdb_exception" declaration.
14159 * remote.c (getpkt_or_notif_sane): Likewise.
14160
749234e5
DE
141612014-01-17 Doug Evans <dje@google.com>
14162
14163 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14164 function, contents of dirnames_to_char_ptr_vec_append moved here.
14165 (delim_string_to_char_ptr_vec): New function.
14166 (dirnames_to_char_ptr_vec_append): Rewrite.
14167 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14168
df049a58
DE
141692014-01-17 Doug Evans <dje@google.com>
14170
14171 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14172 and moved here ...
14173 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14174 #include "common-utils.h".
14175 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14176 * common/vec.h (VEC_ASSERT_PASS): Update.
14177 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14178 (MACH_CHECK_ERROR): Update.
14179
69f97648
SM
141802014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14181
14182 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14183 comments.
14184 * gdbarch.h: Regenerate.
14185
98b1cfdc
TT
141862014-01-16 Tom Tromey <tromey@redhat.com>
14187
14188 * value.c (struct value) <regnum>: Move earlier.
14189
77a19445
TT
141902014-01-16 Tom Tromey <tromey@redhat.com>
14191
14192 * remote.c (extended_remote_create_inferior): Rename from
14193 extended_remote_create_inferior_1. Add "ops" argument. Remove
14194 old implementation.
14195
62261490
PA
141962014-01-16 Pedro Alves <palves@redhat.com>
14197
14198 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14199 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14200 the backchain.
14201
4d65956b
DE
142022014-01-16 Doug Evans <dje@google.com>
14203
14204 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14205
52834460
MM
142062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14207
14208 * btrace.h (btrace_thread_flag): New.
14209 (struct btrace_thread_info) <flags>: New.
14210 * record-btrace.c (record_btrace_resume_thread)
14211 (record_btrace_find_thread_to_move, btrace_step_no_history)
14212 (btrace_step_stopped, record_btrace_start_replaying)
14213 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14214 (record_btrace_find_resume_thread): New.
14215 (record_btrace_resume, record_btrace_wait): Extend.
14216 (record_btrace_can_execute_reverse): New.
14217 (record_btrace_open): Fail in non-stop mode.
14218 (record_btrace_set_replay): Split into this, ...
14219 (record_btrace_stop_replaying): ... this, ...
14220 (record_btrace_clear_histories): ... and this.
14221 (init_record_btrace_ops): Init to_can_execute_reverse.
14222 * NEWS: Announce it.
14223
118e6252
MM
142242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14225
14226 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14227 (forward_target_decr_pc_after_break)
14228 (target_decr_pc_after_break): New.
14229 * target.c (forward_target_decr_pc_after_break)
14230 (target_decr_pc_after_break): New.
14231 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14232 instead of gdbarch_decr_pc_after_break.
14233 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14234 instead of gdbarch_decr_pc_after_break.
14235 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14236 instead of gdbarch_decr_pc_after_break.
14237 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14238 instead of gdbarch_decr_pc_after_break.
14239 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14240 instead of gdbarch_decr_pc_after_break.
14241 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14242 instead of gdbarch_decr_pc_after_break.
14243
6e07b1d2
MM
142442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14245
14246 * btrace.c: Include regcache.h.
14247 (btrace_add_pc): New.
14248 (btrace_enable): Call btrace_add_pc.
14249 (btrace_is_empty): New.
14250 * btrace.h (btrace_is_empty): New.
14251 * record-btrace.c (require_btrace, record_btrace_info): Call
14252 btrace_is_empty.
14253
969c39fb
MM
142542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14255
14256 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14257 Support delta reads.
14258 (linux_disable_btrace): Change return type.
14259 * common/linux-btrace.h (linux_read_btrace): Change parameters
14260 and return type to allow error reporting. Update users.
14261 (linux_disable_btrace): Change return type. Update users.
14262 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14263 New.
14264 (btrace_error): New.
14265 (btrace_block) <begin>: Comment on BEGIN == 0.
14266 * btrace.c (btrace_compute_ftrace): Start from the end of
14267 the current trace.
14268 (btrace_stitch_trace, btrace_clear_history): New.
14269 (btrace_fetch): Read delta trace, return if replaying.
14270 (btrace_clear): Move clear history code to btrace_clear_history.
14271 (parse_xml_btrace): Throw an error if parsing failed.
14272 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14273 and return type to allow error reporting.
14274 (target_read_btrace): Change parameters and return type to allow
14275 error reporting.
14276 * target.c (target_read_btrace): Update.
14277 * remote.c (remote_read_btrace): Support delta reads. Pass
14278 errors on.
14279 * NEWS: Announce it.
14280
0b722aec
MM
142812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14282
14283 * record.h (record_btrace_frame_unwind)
14284 (record_btrace_tailcall_frame_unwind): New declarations.
14285 * dwarf2-frame: Include record.h
14286 (dwarf2_frame_cfa): Throw an error for btrace frames.
14287 * record-btrace.c: Include hashtab.h.
14288 (btrace_get_bfun_name): New.
14289 (btrace_call_history): Call btrace_get_bfun_name.
14290 (struct btrace_frame_cache): New.
14291 (bfcache): New.
14292 (bfcache_hash, bfcache_eq, bfcache_new): New.
14293 (btrace_get_frame_function): New.
14294 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14295 (record_btrace_frame_this_id): Compute own id.
14296 (record_btrace_frame_prev_register): Provide PC, throw_error
14297 for all other registers.
14298 (record_btrace_frame_sniffer): Detect btrace frames.
14299 (record_btrace_tailcall_frame_sniffer): New.
14300 (record_btrace_frame_dealloc_cache): New.
14301 (record_btrace_frame_unwind): Add new functions.
14302 (record_btrace_tailcall_frame_unwind): New.
14303 (_initialize_record_btrace): Allocate cache.
14304 * btrace.c (btrace_clear): Call reinit_frame_cache.
14305 * NEWS: Announce it.
14306
066ce621
MM
143072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14308
14309 * record-btrace.c (record_btrace_set_replay)
14310 (record_btrace_goto_begin, record_btrace_goto_end)
14311 (record_btrace_goto): New.
14312 (init_record_btrace_ops): Initialize them.
14313 * NEWS: Announce it.
14314
e2887aa3
MM
143152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14316
14317 * record-btrace.c (record_btrace_find_new_threads)
14318 (record_btrace_thread_alive): New.
14319 (init_record_btrace_ops): Initialize to_find_new_threads and
14320 to_thread_alive.
14321
b2f4cfde
MM
143222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14323
14324 * record-btrace.c (record_btrace_resume): New.
14325 (record_btrace_wait): New.
14326 (init_record_btrace_ops): Initialize to_wait and to_resume.
14327
633785ff
MM
143282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14329
14330 * record-btrace.c (record_btrace_xfer_partial)
14331 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14332 (record_btrace_allow_memory_access): New.
14333 (init_record_btrace_ops): Initialize new methods.
14334 * target.c (raw_memory_xfer_partial): Bail out if target reports
14335 that this memory is not available.
14336
3db08215
MM
143372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14338
14339 * target.h (target_ops) <to_insert_breakpoint>
14340 <to_remove_breakpoint>: Add target_ops parameter.
14341 (forward_target_insert_breakpoint): New.
14342 (forward_target_remove_breakpoint): New.
14343 (memory_remove_breakpoint, memory_insert_breakpoint):
14344 Add target_ops parameter.
14345 * target.c (target_insert_breakpoint): Split into this and ...
14346 (forward_target_insert_breakpoint): ... this.
14347 (target_remove_breakpoint): Split into this and ...
14348 (forward_target_remove_breakpoint): ... this.
14349 (debug_to_insert_breakpoint): Add target_ops parameter.
14350 Call forward_target_insert_breakpoint.
14351 (debug_to_remove_breakpoint): Add target_ops parameter.
14352 Call forward_target_remove_breakpoint.
14353 (update_current_target): Do not inherit or default to_insert_breakpoint
14354 and to_remove_breakpoint.
14355 * corelow.c (ignore): Add target_ops parameter.
14356 * exec.c (ignore): Add target_ops parameter.
14357 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14358 Add target_ops parameter.
14359 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14360 Add target_ops parameter.
14361 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14362 Add target_ops parameter.
14363 * record-full.c (record_full_beneath_to_insert_breakpoint)
14364 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14365 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14366 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14367 (record_full_core_remove_breakpoint): Add target_ops parameter.
14368 Update users.
14369 (record_full_beneath_to_insert_breakpoint_ops)
14370 (record_full_beneath_to_remove_breakpoint_ops)
14371 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14372 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14373 tmp_to_remove_breakpoint_ops,
14374 record_full_beneath_to_insert_breakpoint_ops, and
14375 record_full_beneath_to_remove_breakpoint_ops.
14376 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14377 (m32r_remove_breakpoint): Add target_ops parameter.
14378 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14379 Add target_ops parameter.
14380 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14381 Add target_ops parameter.
14382
cecac1ab
MM
143832014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14384 Markus Metzger <markus.t.metzger@intel.com>
14385
14386 * record-btrace.c: Include frame-unwind.h.
14387 (record_btrace_frame_unwind_stop_reason)
14388 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14389 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14390 New.
14391 (init_record_btrace_ops): Install it.
14392
824344ca
MM
143932014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14394
14395 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14396 get_prev_frame_1.
14397
32261e52
MM
143982014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14399
14400 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14401 earlier.
14402
ea001bdc
MM
144032014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14404
14405 * frame-unwind.c: Include target.h.
14406 (frame_unwind_try_unwinder): New function with code from ...
14407 (frame_unwind_find_by_frame): ... here. New variable
14408 unwinder_from_target, call also target_get_unwinder)
14409 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14410 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14411 * target.h (struct target_ops): New fields to_get_unwinder and
14412 to_get_tailcall_unwinder.
14413 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14414
1f3ef581
MM
144152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14416
14417 * record-btrace.c (record_btrace_fetch_registers)
14418 (record_btrace_store_registers)
14419 (record_btrace_to_prepare_to_store): New.
14420 (init_record_btrace_ops): Add the above.
14421
f32dbf8c
MM
144222014-01-16 Tom Tromey <tromey@redhat.com>
14423
14424 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14425 * target.h (struct target_ops) <to_prepare_to_store>: Add
14426 argument.
14427 (target_prepare_to_store): Add argument.
14428 * target.c (debug_to_prepare_to_store): Add argument.
14429 (update_current_target): Update.
14430 * remote.c (remote_prepare_to_store): Add 'self' argument.
14431 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14432 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14433 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14434 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14435 argument.
14436 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14437 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14438 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14439 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14440 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14441
07bbe694
MM
144422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14443
14444 * btrace.h (replay) <replay>: New.
14445 (btrace_is_replaying): New.
14446 * btrace.c (btrace_clear): Free replay iterator.
14447 (btrace_is_replaying): New.
14448 * record-btrace.c (record_btrace_is_replaying): New.
14449 (record_btrace_info): Print insn number if replaying.
14450 (record_btrace_insn_history): Start at replay position.
14451 (record_btrace_call_history): Start at replay position.
14452 (init_record_btrace_ops): Init to_record_is_replaying.
14453
0688d04e
MM
144542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14455
14456 * record-btrace.c (record_btrace_insn_history_range): Include
14457 end.
14458 (record_btrace_insn_history_from): Adjust range.
14459 (record_btrace_call_history_range): Include
14460 end.
14461 (record_btrace_call_history_from): Adjust range.
14462 * NEWS: Announce changes.
14463
8710b709
MM
144642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14465
14466 * record.h (enum record_print_flag)
14467 <record_print_indent_calls>: New.
14468 * record.c (get_call_history_modifiers): Recognize /c modifier.
14469 (_initialize_record): Document /c modifier.
14470 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14471 Reorder fields. Optionally indent the function name. Update
14472 all users.
14473 * NEWS: Announce changes.
14474
d0fa7535
MM
144752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14476
14477 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14478
5de9129b
MM
144792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14480
14481 * btrace.c (ftrace_new_function): Start counting at one.
14482 * record-btrace.c (record_btrace_info): Adjust number of calls
14483 and insns.
14484 * NEWS: Announce it.
14485
7acbe133
MM
144862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14487
14488 * record-btrace.c (btrace_call_history_insn_range): Print
14489 insn range as [begin, end].
14490
23a7fe75
MM
144912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14492
14493 * btrace.h (struct btrace_func_link): New.
14494 (enum btrace_function_flag): New.
14495 (struct btrace_inst): Rename to ...
14496 (struct btrace_insn): ...this. Update all users.
14497 (struct btrace_func) <ibegin, iend>: Remove.
14498 (struct btrace_func_link): New.
14499 (struct btrace_func): Rename to ...
14500 (struct btrace_function): ...this. Update all users.
14501 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14502 (number, level, flags>: New.
14503 (struct btrace_insn_iterator): Rename to ...
14504 (struct btrace_insn_history): ...this.
14505 Update all users.
14506 (struct btrace_insn_iterator, btrace_call_iterator): New.
14507 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14508 (struct btrace_target_info) <begin, end, level>
14509 <insn_history, call_history>: New.
14510 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14511 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14512 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14513 (btrace_call_number, btrace_call_begin, btrace_call_end)
14514 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14515 (btrace_find_function_by_number, btrace_set_insn_history)
14516 (btrace_set_call_history): New.
14517 * btrace.c (btrace_init_insn_iterator)
14518 (btrace_init_func_iterator, compute_itrace): Remove.
14519 (ftrace_print_function_name, ftrace_print_filename)
14520 (ftrace_skip_file): Change
14521 parameter to const.
14522 (ftrace_init_func): Remove.
14523 (ftrace_debug): Use new btrace_function fields.
14524 (ftrace_function_switched): Also consider gaining and
14525 losing symbol information).
14526 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14527 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14528 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14529 New.
14530 (ftrace_new_function): Move. Remove debug print.
14531 (ftrace_update_lines, ftrace_update_insns): New.
14532 (ftrace_update_function): Check for call, ret, and jump.
14533 (compute_ftrace): Renamed to ...
14534 (btrace_compute_ftrace): ...this. Rewritten to compute call
14535 stack.
14536 (btrace_fetch, btrace_clear): Updated.
14537 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14538 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14539 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14540 (btrace_call_number, btrace_call_begin, btrace_call_end)
14541 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14542 (btrace_find_function_by_number, btrace_set_insn_history)
14543 (btrace_set_call_history): New.
14544 * record-btrace.c (require_btrace): Use new btrace thread
14545 info fields.
14546 (record_btrace_info, btrace_insn_history)
14547 (record_btrace_insn_history, record_btrace_insn_history_range):
14548 Use new btrace thread info fields and new iterator.
14549 (btrace_func_history_src_line): Rename to ...
14550 (btrace_call_history_src_line): ...this. Use new btrace
14551 thread info fields.
14552 (btrace_func_history): Rename to ...
14553 (btrace_call_history): ...this. Use new btrace thread info
14554 fields and new iterator.
14555 (record_btrace_call_history, record_btrace_call_history_range):
14556 Use new btrace thread info fields and new iterator.
14557
8372a7cb
MM
145582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14559
14560 * frame.h (frame_id_build_unavailable_stack_special): New.
14561 * frame.c (frame_id_build_unavailable_stack_special): New.
14562
c2170eef
MM
145632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14564
14565 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14566 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14567 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14568 to gdbarch.
14569 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14570 (i386_insn_is_jump, i386_jmp_p): New.
14571 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14572 insn_is_jump to gdbarch.
14573 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14574 * gdbarch.h: Regenerated.
14575 * gdbarch.c: Regenerated.
14576 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14577 (default_insn_is_jump): New.
14578 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14579 (default_insn_is_jump): New.
14580
864089d2
MM
145812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14582
14583 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14584 Change to ...
14585 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14586 (btrace_read_type) <btrace_read_new>: Change to ...
14587 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14588
ed9edfb5
MM
145892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14590
14591 * common/linux-btrace.c (linux_read_btrace): Free trace from
14592 previous iteration.
14593
fbcbc3fd
DE
145942014-01-15 Doug Evans <dje@google.com>
14595
14596 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14597 uint32_t.
14598
3d548a53
TT
145992014-01-15 Tom Tromey <tromey@redhat.com>
14600
14601 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14602 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14603 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14604 (set_objfile_main_name): New function.
14605 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14606 language_of_main>: New fields.
14607 (set_objfile_main_name): Declare.
14608 * symtab.c (find_main_name): Loop over objfiles to find the main
14609 name and language.
14610 (set_main_name): Now static.
14611 (get_main_info): Add comment.
14612 * symtab.h (set_main_name): Don't declare.
14613
32ac0d11
TT
146142014-01-15 Tom Tromey <tromey@redhat.com>
14615
14616 * symtab.c (main_progspace_key): New global.
14617 (struct main_info): New.
14618 (name_of_main, language_of_main): Remove.
14619 (get_main_info, main_info_cleanup): New function.
14620 (set_main_name, main_name, main_language): Use get_main_info.
14621 (_initialize_symtab): Initialize main_progspace_key.
14622
9e6c82ad
TT
146232014-01-15 Tom Tromey <tromey@redhat.com>
14624
14625 * dbxread.c (process_one_symbol): Update.
14626 * dwarf2read.c (read_partial_die): Update.
14627 * symfile.c (set_initial_language): Call main_language.
14628 * symtab.c (language_of_main): Now static.
14629 (set_main_name): Add 'lang' parameter.
14630 (find_main_name): Update.
14631 (main_language): New function.
14632 (symtab_observer_executable_changed): Update.
14633 * symtab.h (set_main_name): Update.
14634 (language_of_main): Remove.
14635 (main_language): Declare.
14636
6ef55de7
TT
146372014-01-15 Tom Tromey <tromey@redhat.com>
14638
14639 * symfile.c (init_entry_point_info): Use new "initialized" field.
14640 Update.
14641 * objfiles.h (struct entry_point) <initialized>: New field.
14642 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14643 (struct objfile) <ei>: ...here. Remove.
14644 * objfiles.c (entry_point_address_query): Update.
14645
53eddfa6
TT
146462014-01-15 Tom Tromey <tromey@redhat.com>
14647
14648 * objfiles.c (entry_point_address_query): Relocate entry point
14649 address.
14650 (objfile_relocate1): Do not relocate entry point address.
14651 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14652 <the_bfd_section_index>: New field.
14653 * symfile.c (init_entry_point_info): Find the entry point's
14654 section.
14655
d56e56aa
TT
146562014-01-15 Tom Tromey <tromey@redhat.com>
14657
14658 * solib-frv.c (enable_break): Use entry_point_address_query.
14659
33a97bbe
OJ
146602014-01-15 Omair Javaid <omair.javaid@linaro.org>
14661
14662 * NEWS: Add note on improved process record-replay on
14663 arm*-linux* targets.
14664
c6ec2b30
OJ
146652014-01-15 Omair Javaid <omair.javaid@linaro.org>
14666
14667 * arm-tdep.c (enum arm_record_result): New enum.
14668 (arm_record_unsupported_insn): New function.
14669 (arm_record_coproc_data_proc): Removed.
14670 (thumb2_record_ld_st_multiple): New function.
14671 (thumb2_record_ld_st_dual_ex_tbb): New function.
14672 (thumb2_record_data_proc_sreg_mimm): New function.
14673 (thumb2_record_ps_dest_generic): New function.
14674 (thumb2_record_branch_misc_cntrl): New function.
14675 (thumb2_record_str_single_data): New function.
14676 (thumb2_record_ld_mem_hints): New function.
14677 (thumb2_record_ld_word): New function.
14678 (thumb2_record_lmul_lmla_div): New function.
14679 (thumb2_record_decode_insn_handler): New function.
14680 (decode_insn): Add thumb32 instruction handlers.
14681
97dfe206
OJ
146822014-01-15 Omair Javaid <omair.javaid@linaro.org>
14683
14684 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14685 (struct arm_linux_record_tdep): Declare.
14686 (arm_canonicalize_syscall): New function.
14687 (arm_all_but_pc_registers_record): New function.
14688 (arm_linux_syscall_record): New function.
14689 (arm_linux_init_abi): Add syscall recording constructs.
14690 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14691 decoding. (arm_record_coproc_data_proc): Update arm syscall
14692 decoding.
14693 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14694 <arm_syscall_record>: New field.
14695 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14696 gdb_target_obs.
14697
9904a494
OJ
146982014-01-15 Omair Javaid <omair.javaid@linaro.org>
14699
14700 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14701 register for push instruction recording.
14702
f969241e
OJ
147032014-01-15 Omair Javaid <omair.javaid@linaro.org>
14704
14705 * arm-tdep.c (thumb_record_misc): Update to correct logical
14706 error while recording ldm, ldmia and pop instructions.
14707
bfbbec00
OJ
147082014-01-15 Omair Javaid <omair.javaid@linaro.org>
14709
14710 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14711
e40adcc9
PA
147122014-01-15 Pedro Alves <palves@redhat.com>
14713
14714 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14715 (go32_resume, go32_fetch_registers, store_register)
14716 (go32_store_registers, go32_prepare_to_store)
14717 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14718 (go32_create_inferior, go32_can_run, go32_terminal_init)
14719 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14720 declarations.
14721
b0a16e66
TT
147222014-01-15 Tom Tromey <tromey@redhat.com>
14723
14724 * target.h (async_callback_ftype): New typedef.
14725 (struct target_ops) <to_async>: Use it.
14726
bf7105a4
JB
147272014-01-15 Joel Brobecker <brobecker@adacore.com>
14728
14729 * python/py-value.c (get_field_type): Remove unnecessary curly
14730 braces for single-statement if block.
14731
a8f35c2e
JB
147322014-01-15 Joel Brobecker <brobecker@adacore.com>
14733
14734 * python/py-type.c (convert_field): Add missing empty line
14735 after declarations.
14736
bb4142cf
DE
147372014-01-14 Doug Evans <dje@google.com>
14738
14739 * symfile.h (expand_symtabs_matching): Renamed from
14740 expand_partial_symbol_names. Update prototype.
14741 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14742 * symfile.c (expand_symtabs_matching): Renamed from
14743 expand_partial_symbol_names. New args file_matcher, kind.
14744 Rename arg fun to symbol_matcher.
14745 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14746 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14747 ada_expand_partial_symbol_name.
14748 (ada_make_symbol_completion_list): Update to call
14749 expand_symtabs_matching.
14750 (ada_add_global_exceptions): Call expand_symtabs_matching.
14751 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14752 call map_symbol_filenames.
14753 * symtab.c (sources_info): Update to call map_symbol_filenames.
14754 (search_symbols): Call expand_symtabs_matching.
14755 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14756 (default_make_symbol_completion_list_break_on): Update to call
14757 expand_symtabs_matching.
14758 (make_source_files_completion_list): Update to call
14759 map_symbol_filenames.
14760
206f2a57
DE
147612014-01-14 Doug Evans <dje@google.com>
14762
14763 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14764 (expand_symtabs_symbol_matcher_ftype): New typedef.
14765 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14766 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14767 * symfile.c (expand_partial_symbol_names): Update to use
14768 expand_symtabs_symbol_matcher_ftype.
14769 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14770 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14771 Arg name_matcher renamed to symbol_matcher.
14772 * psymtab.c (recursively_search_psymtabs): Update to use
14773 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14774 sym_matcher.
14775 (expand_symtabs_matching_via_partial): Update to use
14776 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14777 Arg name_matcher renamed to symbol_matcher.
14778
540c2971
DE
147792014-01-14 Doug Evans <dje@google.com>
14780
14781 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14782 (map_partial_symbol_filenames): Ditto.
14783 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14784 (map_partial_symbol_filenames): Ditto.
14785 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14786 (map_partial_symbol_filenames): Ditto.
14787 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14788 (map_partial_symbol_filenames): Ditto.
14789 * symtab.c: Delete #include "psymtab.h".
14790
8213266a
PA
147912014-01-14 Pedro Alves <palves@redhat.com>
14792 Tom Tromey <tromey@redhat.com>
14793
14794 * infrun.c (use_displaced_stepping): Use find_record_target
14795 instead of RECORD_IS_USED.
14796 (adjust_pc_after_break): Use record_full_is_used instead of
14797 RECORD_IS_USED.
14798 * record-btrace.c (record_btrace_open): Call record_preopen
14799 instead of checking RECORD_IS_USED.
14800 * record-full.c (record_full_shortname)
14801 (record_full_core_shortname): New globals.
14802 (record_full_is_used): New function.
14803 (find_full_open): Call record_preopen instead of checking
14804 RECORD_IS_USED.
14805 (init_record_full_ops): Set the target's shortname to
14806 record_full_shortname.
14807 (init_record_full_core_ops): Set the target's shortname to
14808 record_full_core_shortname.
14809 * record-full.h (record_full_is_used): Declare.
14810 * record.c (find_record_target): Make extern.
14811 (record_preopen): New function.
14812 * record.h (RECORD_IS_USED): Delete macro.
14813 (find_record_target, record_preopen): Declare functions.
14814
7ec1862d
YQ
148152014-01-14 Yao Qi <yao@codesourcery.com>
14816
14817 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14818 'len''s type to ULONGEST.
14819 (core_xfer_shared_libraries_aix): Likewise.
14820 * gdbarch.c, gdbarch.h: Regenerated.
14821 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14822 Change type of 'len' to ULONGEST.
14823 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14824 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14825
dea80a27
YQ
148262014-01-14 Yao Qi <yao@codesourcery.com>
14827
14828 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14829 type of 'len' to ULONGEST.
14830 (linux_xfer_osdata_processgroups): Likewise.
14831 (linux_xfer_osdata_threads): Likewise.
14832 (linux_xfer_osdata_fds): Likewise.
14833 (linux_xfer_osdata_isockets): Likewise.
14834 (linux_xfer_osdata_shm): Likewise.
14835 (linux_xfer_osdata_sem): Likewise.
14836 (linux_xfer_osdata_msg): Likewise.
14837 (linux_common_xfer_osdata): Likewise.
14838 (struct osdata_type) <getter>: Likewise.
14839 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14840 the declaration.
14841
b55e14c7
YQ
148422014-01-14 Yao Qi <yao@codesourcery.com>
14843
14844 * target.h (target_xfer_partial_ftype): Update.
14845 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14846 ULONGEST.
14847 * aix-thread.c (aix_thread_xfer_partial): Change type of
14848 argument 'len' to ULONGEST.
14849 * auxv.c (procfs_xfer_auxv): Likewise.
14850 (ld_so_xfer_auxv): Likewise.
14851 (memory_xfer_auxv): Likewise.
14852 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14853 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14854 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14855 * corelow.c (core_xfer_partial): Likewise.
14856 * ctf.c (ctf_xfer_partial): Likewise.
14857 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14858 '%u'.
14859 (darwin_read_dyld_info): Likewise.
14860 (darwin_xfer_partial): Likewise.
14861 * exec.c (section_table_xfer_memory_partial): Likewise.
14862 (exec_xfer_partial): Likewise.
14863 * exec.h (section_table_xfer_memory_partial): Update
14864 declaration.
14865 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14866 instead of plongest.
14867 (gnu_xfer_partial): Likewise.
14868 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14869 (ia64_hpux_xfer_solib_got): Likewise.
14870 (ia64_hpux_xfer_partial): Likewise.
14871 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14872 * inf-ptrace.c (inf_ptrace_xfer_partial):
14873 * inf-ttrace.c (inf_ttrace_xfer_partial):
14874 * linux-nat.c (linux_xfer_siginfo): Likewise.
14875 (linux_nat_xfer_partial): Likewise.
14876 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14877 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14878 * monitor.c (monitor_xfer_memory): Likewise.
14879 (monitor_xfer_partial): Likewise.
14880 * procfs.c (procfs_xfer_partial): Likewise.
14881 * record-full.c (record_full_xfer_partial): Likewise.
14882 (record_full_core_xfer_partial): Likewise.
14883 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14884 instead of plongest.
14885 (gdbsim_xfer_partial): Likewise.
14886 * remote.c (remote_xfer_partial): Likewise.
14887 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14888 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14889 declaration.
14890 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14891 (rs6000_xfer_shared_libraries): Likewise.
14892 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14893 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14894 (sparc_xfer_partial): Likewise.
14895 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14896 (spu_xfer_partial): Likewise.
14897 * spu-multiarch.c (spu_xfer_partial): Likewise.
14898 * target.c (target_read_live_memory): Likewise.
14899 (memory_xfer_live_readonly_partial): Likewise.
14900 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14901 (target_xfer_partial, default_xfer_partial): Likewise.
14902 (current_xfer_partial): Likewise.
14903 * tracepoint.c (tfile_xfer_partial): Likewise.
14904 * windows-nat.c (windows_xfer_memory): Likewise. Call
14905 pulongest instead of plongest.
14906 (windows_xfer_partial): Likewise.
14907 (windows_xfer_shared_libraries): Likewise.
14908
05804640
YQ
149092014-01-14 Yao Qi <yao@codesourcery.com>
14910
14911 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14912 target_xfer_partial_ftype.
14913
b5b08fb4
SC
149142014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14915
14916 PR python/15464
14917 PR python/16113
14918 * valops.c (value_struct_elt_bitpos): New function
14919 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14920 object to 'None' if the field name is an empty string ("").
14921 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14922 attribute to look for a field when 'name' is 'None'.
14923 (get_field_type): New function
14924
13aaf454
DE
149252014-01-13 Doug Evans <dje@google.com>
14926
14927 PR symtab/16426
14928 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14929 (try_open_dwop_file): Ditto.
14930 * gdb_bfd.c: #include "vec.h".
14931 (bfdp): New typedef.
14932 (struct gdb_bfd_data): New member included_bfds.
14933 (gdb_bfd_unref): Unref all included bfds.
14934 (gdb_bfd_record_inclusion): New function.
14935 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14936
c2cec97c
TT
149372014-01-13 Tom Tromey <tromey@redhat.com>
14938
14939 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14940
78e5999d
TT
149412014-01-13 Tom Tromey <tromey@redhat.com>
14942
14943 * defs.h (use_windows): Remove.
14944 * gdb.c (main): Update.
14945 * main.c (captured_main, gdb_main): Update.
14946 * main.h (struct captured_main_args) <use_windows>: Remove.
14947 * top.c (use_windows): Remove.
14948
f2052bbe
TT
149492014-01-13 Tom Tromey <tromey@redhat.com>
14950
14951 * defs.h (deprecated_flush_hook): Remove.
14952
fde4f8ed
JK
149532014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14954
14955 PR threads/16216
14956 * linux-thread-db.c (try_thread_db_load): Add parameter
14957 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14958 (try_thread_db_load_from_pdir_1): Move it there from here.
14959 (try_thread_db_load_from_sdir): Update caller.
14960 (try_thread_db_load_from_dir): Move it there from here.
14961
bdf61915
PP
149622014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14963
14964 * regformats/regdat.sh: Always rewrite the register file.
14965
f71e1a8d
PA
149662014-01-13 Pedro Alves <palves@redhat.com>
14967
14968 * Makefile.in (CHECK_HEADERS): New variable.
14969 (check-headers:): New rule.
14970
42c85435
TT
149712014-01-13 Tom Tromey <tromey@redhat.com>
14972
14973 * cli/cli-setshow.c (do_set_command): Update.
14974 * defs.h (deprecated_set_hook): Remove.
14975 * top.c (deprecated_set_hook): Remove.
14976
f8de5129
PA
149772014-01-13 Pedro Alves <palves@redhat.com>
14978
14979 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14980 the tracepoint if the PC is a pseudo-register.
14981
fc270c35
TT
149822014-01-13 Tom Tromey <tromey@redhat.com>
14983
14984 * defs.h (XCALLOC): Remove.
14985 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14986 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14987 * dwarf2loc.c (allocate_piece_closure): Likewise.
14988 * elfread.c (elf_symfile_segments): Likewise.
14989 (elf_symfile_segments): Likewise.
14990 * gdbtypes.c (copy_type_recursive): Likewise.
14991 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14992 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14993 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14994 XCALLOC.
14995 * mt-tdep.c (mt_gdbarch_init): Likewise.
14996 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14997 XCALLOC.
14998 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14999 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15000 * registry.c (registry_alloc_data): Likewise.
15001 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15002 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15003 * serial.c (serial_fdopen_ops): Likewise.
15004 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15005 XCALLOC.
15006 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15007 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15008 not XCALLOC.
15009
70ba0933
TT
150102014-01-13 Tom Tromey <tromey@redhat.com>
15011
15012 * defs.h (XMALLOC): Remove.
15013 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15014 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15015 * cli-out.c (struct ui_out *): Likewise.
15016 * cli/cli-dump.c (add_dump_command): Likewise.
15017 (add_dump_command): Likewise.
15018 * complaints.c (get_complaints): Likewise.
15019 (find_complaint): Likewise.
15020 * dwarf2-frame.c (execute_cfa_program): Likewise.
15021 * dwarf2read.c (abbrev_table_read_table): Likewise.
15022 * gdbarch.sh: Likewise.
15023 * gdbarch.c: Rebuild.
15024 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15025 * interps.c (interp_new): Likewise.
15026 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15027 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15028 * mi/mi-console.c (mi_console_file_new): Likewise.
15029 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15030 * mi/mi-out.c (mi_out_new): Likewise.
15031 * mi/mi-parse.c (mi_parse): Likewise.
15032 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15033 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15034 * observer.c (xalloc_observer_list_node): Likewise.
15035 * regcache.c (regcache_xmalloc_1): Likewise.
15036 * reggroups.c (reggroup_new): Likewise.
15037 (_initialize_reggroup): Likewise.
15038 * registry.c (register_data_with_cleanup): Likewise.
15039 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15040 * ser-base.c (serial_ttystate): Likewise.
15041 * ser-mingw.c (make_pipe_state): Likewise.
15042 * ser-pipe.c (pipe_open): Likewise.
15043 * serial.c (serial_open): Likewise.
15044 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15045 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15046 (tui_alloc_win_info): Likewise.
15047 (tui_add_content_elements): Likewise.
15048 * tui/tui-file.c (tui_file_new): Likewise.
15049 * tui/tui-out.c (tui_out_new): Likewise.
15050 * ui-file.c (mem_file_new): Likewise.
15051 * ui-out.c (push_level): Likewise.
15052 (make_cleanup_ui_out_end): Likewise.
15053 (append_header_to_list): Likewise.
15054 (ui_out_new): Likewise.
15055 * user-regs.c (user_reg_add_builtin): Likewise.
15056
41bf6aca
TT
150572014-01-13 Tom Tromey <tromey@redhat.com>
15058
15059 * defs.h (XZALLOC): Remove.
15060 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15061 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15062 (get_ada_tasks_inferior_data): Likewise.
15063 * auto-load.c (get_auto_load_pspace_data): Likewise.
15064 * auxv.c (get_auxv_inferior_data): Likewise.
15065 * bfd-target.c (target_bfd_reopen): Likewise.
15066 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15067 (deprecated_insert_raw_breakpoint): Likewise.
15068 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15069 * corelow.c (core_open): Likewise.
15070 * darwin-nat.c (darwin_check_new_threads): Likewise.
15071 (darwin_attach_pid): Likewise.
15072 * dummy-frame.c (dummy_frame_push): Likewise.
15073 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15074 * dwarf2loc.c (allocate_piece_closure): Likewise.
15075 * elfread.c (elf_symfile_segments): Likewise.
15076 * eval.c (ptrmath_type_p): Likewise.
15077 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15078 * gdbtypes.c (alloc_type_arch): Likewise.
15079 (alloc_type_instance): Likewise.
15080 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15081 * inf-child.c (inf_child_can_use_agent): Likewise.
15082 * inflow.c (get_inflow_inferior_data): Likewise.
15083 * infrun.c (save_infcall_suspend_state): Likewise.
15084 * jit.c (jit_reader_load): Likewise.
15085 (get_jit_objfile_data): Likewise.
15086 (get_jit_program_space_data): Likewise.
15087 (jit_object_open_impl): Likewise.
15088 (jit_symtab_open_impl): Likewise.
15089 (jit_block_open_impl): Likewise.
15090 (jit_frame_sniffer): Likewise.
15091 * linux-fork.c (add_fork): Likewise.
15092 * maint.c (make_command_stats_cleanup): Likewise.
15093 * objfiles.c (get_objfile_pspace_data): Likewise.
15094 * opencl-lang.c (struct lval_closure): Likewise.
15095 * osdata.c (osdata_start_osdata): Likewise.
15096 * progspace.c (new_address_space): Likewise.
15097 (add_program_space): Likewise.
15098 * remote-sim.c (get_sim_inferior_data): Likewise.
15099 * sh-tdep.c (sh_gdbarch_init): Likewise.
15100 * skip.c (Ignore): Likewise.
15101 (skip_delete_command): Likewise.
15102 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15103 (library_list_start_library): Likewise.
15104 (solib_aix_current_sos): Likewise.
15105 * solib-darwin.c (get_darwin_info): Likewise.
15106 (darwin_current_sos): Likewise.
15107 * solib-dsbt.c (get_dsbt_info): Likewise.
15108 * solib-ia64-hpux.c (new_so_list): Likewise.
15109 (ia64_hpux_get_solib_linkage_addr): Likewise.
15110 * solib-spu.c (append_ocl_sos): Likewise.
15111 (spu_current_sos): Likewise.
15112 * solib-svr4.c (get_svr4_info): Likewise.
15113 (svr4_keep_data_in_core): Likewise.
15114 (library_list_start_library): Likewise.
15115 (svr4_default_sos): Likewise.
15116 (svr4_read_so_list): Likewise.
15117 * solib-target.c (library_list_start_library): Likewise.
15118 (solib_target_current_sos): Likewise.
15119 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15120 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15121 * symfile.c (default_symfile_segments): Likewise.
15122 * target-descriptions.c (tdesc_data_init): Likewise.
15123 (tdesc_create_reg): Likewise.
15124 (struct tdesc_type *): Likewise.
15125 (tdesc_create_vector): Likewise.
15126 (tdesc_set_struct_size): Likewise.
15127 (struct tdesc_type *): Likewise.
15128 (tdesc_free_feature): Likewise.
15129 (tdesc_create_feature): Likewise.
15130 * windows-nat.c (windows_add_thread): Likewise.
15131 (windows_make_so): Likewise.
15132 * xml-support.c (gdb_xml_body_text): Likewise.
15133 (gdb_xml_create_parser_and_cleanup): Likewise.
15134 (xml_process_xincludes): Likewise.
15135 * xml-syscall.c (allocate_syscalls_info): Likewise.
15136 (syscall_create_syscall_desc): Likewise.
15137
5acfdbae
SDJ
151382014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15139
15140 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15141 function, with code from i386_stap_parse_special_token.
15142 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15143 (i386_stap_parse_special_token): Move code to the two functions
15144 above; simplify it.
15145
0000e5cc
PA
151462014-01-09 Pedro Alves <palves@redhat.com>
15147 Hui Zhu <hui@codesourcery.com>
15148
15149 PR gdb/16101
15150 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15151 bp_err_string. Don't mark the location shlib_disabled if the
15152 error thrown wasn't a generic or memory error. Catch errors
15153 thrown while inserting breakpoints in overlayed code. Output
15154 error message of software breakpoints.
15155 * remote.c (remote_insert_breakpoint): If this breakpoint has
15156 target-side commands but this stub doesn't support Z0 packets,
15157 throw NOT_SUPPORTED_ERROR error.
15158 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15159 * target.h (target_insert_breakpoint): Extend comment.
15160 (target_insert_hw_breakpoint): Add comment.
15161
b7ea362b
PA
151622014-01-08 Pedro Alves <palves@redhat.com>
15163
15164 * remote.c (remote_add_thread): Add threads silently if starting
15165 up.
15166 (remote_notice_new_inferior): If in all-stop, and starting up,
15167 don't call notice_new_inferior.
15168 (get_current_thread): New function, factored out from ...
15169 (add_current_inferior_and_thread): ... this. Adjust.
15170 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15171 found any thread, then select the remote's current thread as GDB's
15172 current thread too.
15173
b7bba001
JB
151742014-01-08 Joel Brobecker <brobecker@adacore.com>
15175
15176 * NEWS: Create a new section for the next release branch.
15177 Rename the section of the current branch, now that it has
15178 been cut.
15179
16dfbded
JB
151802014-01-08 Joel Brobecker <brobecker@adacore.com>
15181
15182 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15183 * version.in: Bump version to 7.7.50.DATE-cvs.
15184
22c90ac1
YQ
151852014-01-08 Yao Qi <yao@codesourcery.com>
15186
15187 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15188 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15189 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15190
d64ad97c
YQ
151912014-01-08 Yao Qi <yao@codesourcery.com>
15192
15193 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15194 return value of bfd_get_filename to symbol_file_add_from_bfd.
15195
f93ba80c
PM
151962014-01-08 Pierre Muller <muller@sourceware.org>
15197
15198 Fix PR16201.
15199 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15200 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15201 to prim_record_mininal_symbol_and_info.
15202 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15203 in call to prim_record_minimal_symbol_and_info.
15204 (read_pe_exported_syms): Set index field of section_data.
15205
a4d9ba85
AP
152062014-01-07 Andrew Pinski <apinski@cavium.com>
15207
15208 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15209 * features/aarch64.c: Regenerate.
15210
1b67eb02
AS
152112014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15212
15213 * target.c (return_null): Define.
15214 (update_current_target): Use it instead of return_zero for
15215 functions that return a pointer.
15216
5e3f4fab
EBM
152172014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15218
15219 * source.c (add_path): Fix check for duplicated paths in the previously
15220 included paths.
15221
e2616788
HK
152222014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15223
15224 * ada-lang.c: Remove duplicated include statements.
15225 * alphabsd-nat.c: Ditto.
15226 * amd64-darwin-tdep.c: Ditto.
15227 * amd64fbsd-nat.c: Ditto.
15228 * auto-load.c: Ditto.
15229 * ax-gdb.c: Ditto.
15230 * breakpoint.c: Ditto.
15231 * dbxread.c: Ditto.
15232 * fork-child.c: Ditto.
15233 * gdb_usleep.c: Ditto.
15234 * i386-darwin-tdep.c: Ditto.
15235 * i386fbsd-nat.c: Ditto.
15236 * infcmd.c: Ditto.
15237 * inferior.c: Ditto.
15238 * jv-lang.c: Ditto.
15239 * linux-nat.c: Ditto.
15240 * linux-tdep.c: Ditto.
15241 * m68kbsd-nat.c: Ditto.
15242 * m68klinux-nat.c: Ditto.
15243 * microblaze-tdep.c: Ditto.
15244 * mips-linux-tdep.c: Ditto.
15245 * mn10300-tdep.c: Ditto.
15246 * nto-tdep.c: Ditto.
15247 * opencl-lang.c: Ditto.
15248 * osdata.c: Ditto.
15249 * printcmd.c: Ditto.
15250 * regcache.c: Ditto.
15251 * remote-m32r-sdi.c: Ditto.
15252 * remote.c: Ditto.
15253 * symfile.c: Ditto.
15254 * symtab.c: Ditto.
15255 * tilegx-linux-nat.c: Ditto.
15256 * tilegx-tdep.c: Ditto.
15257 * tracepoint.c: Ditto.
15258 * valops.c: Ditto.
15259 * vaxbsd-nat.c: Ditto.
15260 * windows-nat.c: Ditto.
15261 * xtensa-tdep.c: Ditto.
15262
bd1f7788
YQ
152632014-01-07 Yao Qi <yao@codesourcery.com>
15264
15265 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15266
79301218
JB
152672014-01-07 Yao Qi <yao@codesourcery.com>
15268 Joel Brobecker <brobecker@adacore.com>
15269
15270 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15271 (pdc_write_regs): Likewise.
15272 (fetch_regs_kernel_thread): Likewise.
15273 (store_regs_kernel_thread): Likewise.
15274
152752014-01-07 Joel Brobecker <brobecker@adacore.com>
15276
15277 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15278 tagged type objects to their actual type.
15279
8e355c5d
JB
152802014-01-07 Joel Brobecker <brobecker@adacore.com>
15281
15282 * ada-valprint.c (print_field_values): Add "language" parameter.
15283 Update calls to print_field_values and print_variant_part.
15284 Pass new parameter "language" in call to val_print instead
15285 of "current_language". Replace call to ada_val_print by call
15286 to val_print.
15287 (print_variant_part): Add "language" parameter.
15288 (ada_val_print_struct_union): Update call to print_field_values.
15289
4fbf5aa5
JB
152902014-01-07 Joel Brobecker <brobecker@adacore.com>
15291
15292 * ada-valprint.c (ui_memcpy): Delete.
15293 (ada_print_floating): Update documentation. Add empty line
15294 between between function documentation and implementation.
15295 Delete variable "buffer". Use ui_file_xstrdup in place of
15296 ui_file_put. Minor adjustments following this change.
15297
71855601
JB
152982014-01-07 Joel Brobecker <brobecker@adacore.com>
15299
15300 * ada-valprint.c (ada_val_print_string): New function,
15301 extracted from ada_val_print_array.
15302 (ada_val_print_array): Replace extracted code by call
15303 to ada_val_print_string followed by a return. Move
15304 "else" branch to the function's top block.
15305
4eb27a30
JB
153062014-01-07 Joel Brobecker <brobecker@adacore.com>
15307
15308 * ada-valprint.c (ada_val_print_array): Move implementation
15309 down. Rename parameter "offset" and "val" into "offset_aligned"
15310 and "original_value" respectively. Add parameter "offset".
15311
34b27950
JB
153122014-01-07 Joel Brobecker <brobecker@adacore.com>
15313
15314 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15315 re-organizing the code. Change the "???" message printed
15316 when target type is a TYPE_CODE_UNDEF into
15317 "<ref to undefined type>".
15318
079e4591
JB
153192014-01-07 Joel Brobecker <brobecker@adacore.com>
15320
15321 * ada-valprint.c (print_record): Delete, implementation inlined...
15322 (ada_val_print_struct_union): ... here. Remove call to
15323 ada_check_typedef in inlined implementation.
15324
8004dfd1
JB
153252014-01-07 Joel Brobecker <brobecker@adacore.com>
15326
15327 * ada-valprint.c (ada_val_print_gnat_array): New function,
15328 extracted from ada_val_print_1;
15329 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15330 (ada_val_print_flt, ada_val_print_struct_union)
15331 (ada_val_print_ref): Likewise.
15332 (ada_val_print_1): Delete variables i and elttype.
15333 Replace extracted-out code by call to corresponding
15334 new functions.
15335
760a2db0
JB
153362014-01-07 Joel Brobecker <brobecker@adacore.com>
15337
15338 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15339
3a92c861
JB
153402014-01-07 Joel Brobecker <brobecker@adacore.com>
15341
15342 * ada-valprint.c (ada_val_print_1): Replace calls to
15343 ada_val_print_1 by calls to val_print.
15344
cd1630f9
JB
153452014-01-07 Joel Brobecker <brobecker@adacore.com>
15346
15347 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15348 Update calls to self accordingly. Replace calls to c_val_print
15349 by calls to val_print.
15350
bdf779a0
JB
153512014-01-07 Joel Brobecker <brobecker@adacore.com>
15352
15353 * ada-valprint.c (print_record): Delete declaration.
15354 (adjust_type_signedness, ada_val_print_1): Likewise.
15355 (ada_val_print): Move function implementation down.
15356 (print_variant_part, print_field_values, print_record):
15357 Move function implementation up.
15358
c0d48811
JB
153592014-01-07 Joel Brobecker <brobecker@adacore.com>
15360
15361 * python/py-type.c (typy_get_name): New function.
15362 (type_object_getset): Add entry for attribute "name".
15363 * NEWS: Add entry mentioning this new attribute.
15364
c26e9cbb
YQ
153652014-01-07 Yao Qi <yao@codesourcery.com>
15366
15367 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15368 statement.
15369
0cc6f43d
YQ
153702014-01-07 Yao Qi <yao@codesourcery.com>
15371
15372 * gnu-nat.c (info_port_rights): Add qualifier const to
15373 argument args.
15374
eec03155
YQ
153752014-01-07 Yao Qi <yao@codesourcery.com>
15376
15377 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15378
f04a82ef
YQ
153792014-01-07 Yao Qi <yao@codesourcery.com>
15380
15381 * gnu-nat.c (make_inf) Update declaration.
15382 (make_inf): Make it static.
15383 (inf_set_traced): Likewise.
15384 (inf_port_to_thread, inf_task_died_status): Likewise.
15385
d57dda0a
YQ
153862014-01-07 Yao Qi <yao@codesourcery.com>
15387
15388 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15389
3aa8c969
YQ
153902014-01-07 Yao Qi <yao@codesourcery.com>
15391
15392 * gnu-nat.c (_initialize_gnu_nat): Declare.
15393
94123b4f
YQ
153942014-01-07 Yao Qi <yao@codesourcery.com>
15395
15396 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15397 'enum bfd_endian'.
15398 (struct gdbarch_info) <byte_order>: Change type to
15399 'enum bfd_endian'.
15400 <byte_order_for_code>: Likewise.
15401 * gdbarch.c, gdbarch.h: Regenerated.
15402
dc81d70a
TT
154032014-01-06 Sasha Smundak <asmundak@google.com>
15404
15405 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15406
cc2f3c35
TT
154072014-01-06 Tom Tromey <tromey@redhat.com>
15408
15409 * doublest.c (convert_doublest_to_floatformat): Use const, not
15410 CONST.
15411 * somread.c (som_symtab_read): Likewise.
15412
adcf2eed
HZ
154132014-01-07 Hui Zhu <hui@codesourcery.com>
15414
15415 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15416 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15417 (gdb_bfd_fopen): Ditto.
15418 (gdb_bfd_openr): Ditto.
15419 (gdb_bfd_openw): Ditto.
15420 (gdb_bfd_openr_iovec): Ditto.
15421 (gdb_bfd_fdopenr): Ditto.
15422 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15423 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15424 with xstrdup.
15425 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15426 with xstrdup.
15427 * symfile-mem.c (symbol_file_add_from_memory): Removed
15428 gdb_bfd_stash_filename.
15429
50722198
DE
154302014-01-03 Doug Evans <dje@google.com>
15431
15432 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15433 output.
15434
2fa4b862
JB
154352014-01-01 Joel Brobecker <brobecker@adacore.com>
15436
15437 Update year range in copyright notice of all files.
15438
28498c42
JB
154392014-01-01 Joel Brobecker <brobecker@adacore.com>
15440
15441 * top.c (print_gdb_version): Set copyright year to 2014.
15442
7b6e1046
JB
154432014-01-01 Joel Brobecker <brobecker@adacore.com>
15444
15445 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15446
df96af55 15447For older changes see ChangeLog-2013.
c906108c
SS
15448\f
15449Local Variables:
15450mode: change-log
15451left-margin: 8
15452fill-column: 74
15453version-control: never
57da7796 15454coding: utf-8
c906108c 15455End:
This page took 2.972764 seconds and 4 git commands to generate.