Refine read_string
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
88db67ef
YQ
12014-11-23 Yao Qi <yao@codesourcery.com>
2
3 * valprint.c (read_string): Move local variables 'found_nul',
4 'chunksize' and 'limit' to inner scope. Update comments.
5
01465b56
DE
62014-11-22 Doug Evans <xdje42@gmail.com>
7
8 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
9 function comment.
10 (search_symbols): Fix comments and whitespace.
11
07a1c2c3
DE
122014-11-22 Doug Evans <xdje42@gmail.com>
13
14 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
15
b2a919a8
DE
162014-11-21 Doug Evans <dje@google.com>
17
18 * psymtab.c (psymtab_search_name): Fix whitespace.
19
278289d5
YQ
202014-11-21 Yao Qi <yao@codesourcery.com>
21
22 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
23 errno.
24 * gnulib/import/Makefile.am: Re-generated.
25 * gnulib/import/Makefile.in: Likewise.
26 * gnulib/import/m4/gnulib-cache.m4: Likewise.
27
e01e2baa
YQ
282014-11-21 Yao Qi <yao@codesourcery.com>
29
30 * gdb_wchar.h: Include wchar.h and wctype.h.
31 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
32 include wchar.h and wctype.h.
33 Don't check HAVE_WCHAR_H.
34
f0c00af8
YQ
352014-11-21 Yao Qi <yao@codesourcery.com>
36
37 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
38 and wctype-h.
39 * gnulib/import/Makefile.am: Re-generated.
40 * gnulib/import/Makefile.in: Likewise.
41 * gnulib/import/m4/gnulib-cache.m4: Likewise.
42
0cae13bb
YQ
432014-11-21 Yao Qi <yao@codesourcery.com>
44
45 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
46 memchr.
47 * gnulib/import/Makefile.am: Re-generated.
48 * gnulib/import/Makefile.in: Likewise.
49 * gnulib/import/m4/gnulib-cache.m4: Likewise.
50
9c232dda
YQ
512014-11-21 Yao Qi <yao@codesourcery.com>
52
53 * common/common-defs.h: Include alloca.h
54 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
55 * configure: Re-generated.
56 * defs.h: Remove code handling alloca.
57 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
58 or not.
59
00d7f58f
YQ
602014-11-21 Yao Qi <yao@codesourcery.com>
61
62 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
63 alloca.
64 * gnulib/import/Makefile.am: Re-generated.
65 * gnulib/import/Makefile.in: Likewise..
66 * gnulib/import/m4/gnulib-cache.m4: Likewise.
67
6068ad5d
YQ
682014-11-21 Yao Qi <yao@codesourcery.com>
69
70 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
71 alphabetical order.
72
45e44d27
JB
732014-11-21 Joel Brobecker <brobecker@adacore.com>
74
75 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
76 flag_unsigned if HIGH_BOUND is constant and negative.
77
7e7cbeb3
SDJ
782014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
79
80 PR breakpoints/10737
81 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
82 modifier from "struct gdbarch" when compiling without Expat (XML)
83 support.
84 (get_syscall_by_number): Likewise.
85 (get_syscall_by_name): Likewise.
86 (get_syscall_names): Likewise.
87
458c8db8
SDJ
882014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
89
90 PR breakpoints/10737
91 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
92 set_xml_syscall_file_name to provide gdbarch.
93 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
94 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
95 * breakpoint.c (print_it_catch_syscall): Adjust call to
96 get_syscall_by_number to provide gdbarch.
97 (print_one_catch_syscall): Likewise.
98 (print_mention_catch_syscall): Likewise.
99 (print_recreate_catch_syscall): Likewise.
100 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
101 and get_syscall_by_name to provide gdbarch.
102 (catch_syscall_completer): Adjust call to get_syscall_names to
103 provide gdbarch.
104 * gdbarch.c: Regenerate.
105 * gdbarch.h: Likewise.
106 * gdbarch.sh: Forward declare "struct syscalls_info".
107 (xml_syscall_file): New variable.
108 (syscalls_info): Likewise.
109 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
110 set_xml_syscall_file_name to provide gdbarch.
111 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
112 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
113 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
114 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
115 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
116 * xml-syscall.c: Include gdbarch.h.
117 (set_xml_syscall_file_name): Accept gdbarch parameter.
118 (get_syscall_by_number): Likewise.
119 (get_syscall_by_name): Likewise.
120 (get_syscall_names): Likewise.
121 (my_gdb_datadir): Delete global variable.
122 (struct syscalls_info) <my_gdb_datadir>: New variable.
123 (struct syscalls_info) <sysinfo>: Rename variable to
124 "syscalls_info".
125 (sysinfo): Delete global variable.
126 (have_initialized_sysinfo): Likewise.
127 (xml_syscall_file): Likewise.
128 (sysinfo_free_syscalls_desc): Rename to...
129 (syscalls_info_free_syscalls_desc): ... this.
130 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
131 code to the new layout of "struct syscalls_info".
132 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
133 "syscalls_info".
134 (syscall_create_syscall_desc): Likewise.
135 (syscall_start_syscall): Likewise.
136 (syscall_parse_xml): Likewise.
137 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
138 (init_sysinfo): Rename to...
139 (init_syscalls_info): ...this. Add gdbarch as a parameter.
140 Adjust function to deal with gdbarch.
141 (xml_get_syscall_number): Delete parameter sysinfo. Accept
142 gdbarch as a parameter. Adjust code.
143 (xml_get_syscall_name): Likewise.
144 (xml_list_of_syscalls): Likewise.
145 (set_xml_syscall_file_name): Accept gdbarch as parameter.
146 (get_syscall_by_number): Likewise.
147 (get_syscall_by_name): Likewise.
148 (get_syscall_names): Likewise.
149 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
150 (get_syscall_by_number): Likewise.
151 (get_syscall_by_name): Likewise.
152 (get_syscall_names): Likewise.
153
43f3e411
DE
1542014-11-20 Doug Evans <xdje42@gmail.com>
155
156 Split struct symtab into two: struct symtab and compunit_symtab.
157 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
158 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
159 to "struct compunit_symtab *". All callers updated.
160 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
161 "struct symtab *" argument to "struct compunit_symtab *".
162 All callers updated.
163 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
164 result to "struct compunit_symtab *". All callers updated.
165 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
166 Change result to "struct compunit_symtab *". All callers updated.
167 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
168 hange type to "struct compunit_symtab *". All uses updated.
169 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
170 Change type to "struct compunit_symtab *". All uses updated.
171 * buildsym.c (struct buildsym_compunit): New struct.
172 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
173 (buildsym_compunit): New static global.
174 (finish_block_internal): Update to fetch objfile from
175 buildsym_compunit.
176 (make_blockvector): Delete objfile argument.
177 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
178 debugformat, producer.
179 (start_buildsym_compunit): New function.
180 (free_buildsym_compunit): Renamed from free_subfiles_list.
181 All callers updated.
182 (patch_subfile_names): Rewrite to use buildsym_compunit.
183 (get_compunit_symtab): New function.
184 (get_macro_table): Delete argument comp_dir. All callers updated.
185 (start_symtab): Change result to "struct compunit_symtab *".
186 All callers updated. Create the subfile of the main source file.
187 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
188 (reset_symtab_globals): Update.
189 (end_symtab_get_static_block): Update to use buildsym_compunit.
190 (end_symtab_without_blockvector): Rewrite.
191 (end_symtab_with_blockvector): Change result to
192 "struct compunit_symtab *". All callers updated.
193 Update to use buildsym_compunit. Don't set symtab->dirname,
194 instead set it in the compunit.
195 Explicitly make sure main symtab is first in its list.
196 Set debugformat, producer, blockvector, block_line_section, and
197 macrotable in the compunit.
198 (end_symtab_from_static_block): Change result to
199 "struct compunit_symtab *". All callers updated.
200 (end_symtab, end_expandable_symtab): Ditto.
201 (set_missing_symtab): Change symtab argument to
202 "struct compunit_symtab *". All callers updated.
203 (augment_type_symtab): Ditto.
204 (record_debugformat): Update to use buildsym_compunit.
205 (record_producer): Update to use buildsym_compunit.
206 * buildsym.h (struct subfile) <dirname>: Delete.
207 <producer, debugformat>: Delete.
208 <buildsym_compunit>: New member.
209 (get_compunit_symtab): Declare.
210 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
211 from primary_symtab. Change type to "struct compunit_symtab *".
212 All uses updated.
213 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
214 All callers updated.
215 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
216 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
217 symtab. Change type to "struct compunit_symtab *". All uses updated.
218 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
219 All callers updated.
220 (dw2_find_last_source_symtab): Ditto.
221 (dw2_lookup_symbol): Ditto.
222 (recursively_find_pc_sect_compunit_symtab): Renamed from
223 recursively_find_pc_sect_symtab. Change result to
224 "struct compunit_symtab *". All callers updated.
225 (dw2_find_pc_sect_compunit_symtab): Renamed from
226 dw2_find_pc_sect_symtab. Change result to
227 "struct compunit_symtab *". All callers updated.
228 (get_compunit_symtab): Renamed from get_symtab. Change result to
229 "struct compunit_symtab *". All callers updated.
230 (recursively_compute_inclusions): Change type of immediate_parent
231 argument to "struct compunit_symtab *". All callers updated.
232 (compute_compunit_symtab_includes): Renamed from
233 compute_symtab_includes. All callers updated. Rewrite to compute
234 includes of compunit_symtabs and not symtabs.
235 (process_full_comp_unit): Update to work with struct compunit_symtab.
236 (process_full_type_unit): Ditto.
237 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
238 (dwarf_decode_lines): Remove special case handling of main subfile.
239 (macro_start_file): Delete argument comp_dir. All callers updated.
240 (dwarf_decode_macro_bytes): Ditto.
241 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
242 use struct compunit_symtab.
243 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
244 * jit.c (finalize_symtab): Build compunit_symtab.
245 * jv-lang.c (get_java_class_symtab): Change result to
246 "struct compunit_symtab *". All callers updated.
247 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
248 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
249 comp_dir. Change type to "struct compunit_symtab *".
250 All uses updated.
251 (new_macro_table): Change comp_dir argument to cust,
252 "struct compunit_symtab *". All callers updated.
253 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
254 nr_primary_symtabs. All uses updated.
255 (count_symtabs_and_blocks): Update to handle compunits.
256 (report_command_stats): Update output, "primary symtabs" renamed to
257 "compunits".
258 * mdebugread.c (new_symtab): Change result to
259 "struct compunit_symtab *". All callers updated.
260 (parse_procedure): Change type of search_symtab argument to
261 "struct compunit_symtab *". All callers updated.
262 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
263 separate loop.
264 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
265 symtabs. Change type to "struct compunit_symtab *". All uses updated.
266 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
267 All uses updated.
268 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
269 All uses updated.
270 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
271 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
272 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
273 symtab. Change type to "struct compunit_symtab *". All uses updated.
274 * psymtab.c (psymtab_to_symtab): Change result type to
275 "struct compunit_symtab *". All callers updated.
276 (find_pc_sect_compunit_symtab_from_partial): Renamed from
277 find_pc_sect_symtab_from_partial. Change result type to
278 "struct compunit_symtab *". All callers updated.
279 (lookup_symbol_aux_psymtabs): Change result type to
280 "struct compunit_symtab *". All callers updated.
281 (find_last_source_symtab_from_partial): Ditto.
282 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
283 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
284 and macro_table from compunit.
285 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
286 type to "struct compunit_symtab *". All callers updated.
287 (debug_qf_lookup_symbol): Ditto.
288 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
289 debug_qf_find_pc_sect_symtab, change result type to
290 "struct compunit_symtab *". All callers updated.
291 * symfile.c (allocate_symtab): Delete objfile argument.
292 New argument cust.
293 (allocate_compunit_symtab): New function.
294 (add_compunit_symtab_to_objfile): New function.
295 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
296 Change result type to "struct compunit_symtab *". All uses updated.
297 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
298 Change result type to "struct compunit_symtab *". All uses updated.
299 * symmisc.c (print_objfile_statistics): Compute blockvector count in
300 separate loop.
301 (dump_symtab_1): Update test for primary source symtab.
302 (maintenance_info_symtabs): Update to handle compunit symtabs.
303 (maintenance_check_symtabs): Ditto.
304 * symtab.c (set_primary_symtab): Delete.
305 (compunit_primary_filetab): New function.
306 (compunit_language): New function.
307 (iterate_over_some_symtabs): Change type of arguments "first",
308 "after_last" to "struct compunit_symtab *". All callers updated.
309 Update to loop over symtabs in each compunit.
310 (error_in_psymtab_expansion): Rename symtab argument to cust,
311 and change type to "struct compunit_symtab *". All callers updated.
312 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
313 Change result type to "struct compunit_symtab *". All callers updated.
314 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
315 Change result type to "struct compunit_symtab *". All callers updated.
316 (find_pc_sect_line): Only loop over symtabs within selected compunit
317 instead of all symtabs in the objfile.
318 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
319 <compunit_symtab> New member.
320 <block_line_section>: Moved to compunit_symtab.
321 <locations_valid>: Ditto.
322 <epilogue_unwind_valid>: Ditto.
323 <macro_table>: Ditto.
324 <dirname>: Ditto.
325 <debugformat>: Ditto.
326 <producer>: Ditto.
327 <objfile>: Ditto.
328 <call_site_htab>: Ditto.
329 <includes>: Ditto.
330 <user>: Ditto.
331 <primary>: Delete
332 (SYMTAB_COMPUNIT): New macro.
333 (SYMTAB_BLOCKVECTOR): Update definition.
334 (SYMTAB_OBJFILE): Update definition.
335 (SYMTAB_DIRNAME): Update definition.
336 (struct compunit_symtab): New type. Common members among all source
337 symtabs within a compilation unit moved here. All uses updated.
338 (COMPUNIT_OBJFILE): New macro.
339 (COMPUNIT_FILETABS): New macro.
340 (COMPUNIT_DEBUGFORMAT): New macro.
341 (COMPUNIT_PRODUCER): New macro.
342 (COMPUNIT_DIRNAME): New macro.
343 (COMPUNIT_BLOCKVECTOR): New macro.
344 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
345 (COMPUNIT_LOCATIONS_VALID): New macro.
346 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
347 (COMPUNIT_CALL_SITE_HTAB): New macro.
348 (COMPUNIT_MACRO_TABLE): New macro.
349 (ALL_COMPUNIT_FILETABS): New macro.
350 (compunit_symtab_ptr): New typedef.
351 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
352
005e2509
JB
3532014-11-20 Joel Brobecker <brobecker@adacore.com>
354
355 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
356 if the TYPE_CODE of range_type's base type does not match
357 the TYPE_CODE of encoding_type's base type.
358
2b0f535a
JB
3592014-11-19 Joel Brobecker <brobecker@adacore.com>
360
361 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
362 it starts with '<'.
363
8908fca5
JB
3642014-11-19 Joel Brobecker <brobecker@adacore.com>
365
366 * ada-lang.c (ada_is_redundant_range_encoding): New function.
367 (ada_is_redundant_index_type_desc): New function.
368 (to_fixed_array_type): Ignore parallel XA type if redundant.
369
4a46959e
JB
3702014-11-19 Joel Brobecker <brobecker@adacore.com>
371
372 * ada-lang.c (constrained_packed_array_type): Set the length
373 of the return array as if both bounds where zero if that
374 returned array's index type is dynamic.
375
2acf986b
YQ
3762014-11-19 Yao Qi <yao@codesourcery.com>
377
378 * config/i386/go32.mh (CC): Remove.
379
439247b6
DE
3802014-11-18 Doug Evans <xdje42@gmail.com>
381
382 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
383 updated.
384
4d663531
DE
3852014-11-18 Doug Evans <xdje42@gmail.com>
386
387 * buildsym.c (buildsym_objfile): New static global.
388 (buildsym_comp_dir): New static global.
389 (finish_block_internal): Delete arg objfile. All callers updated.
390 (finish_block): Delete arg objfile. All callers updated.
391 (start_subfile): Delete arg dirname. All callers updated.
392 (patch_subfile_names): Update buildsym_comp_dir.
393 (get_macro_table): Delete arg objfile. All callers updated.
394 (start_symtab): New arg objfile. All callers updated.
395 Rename arg dirname to comp_dir.
396 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
397 (end_symtab_get_static_block): Delete arg objfile. All callers
398 updated.
399 (end_symtab_without_blockvector): Ditto.
400 (end_symtab_with_blockvector): Ditto.
401 (end_symtab_from_static_block): Ditto.
402 (end_symtab): Ditto.
403 (end_expandable_symtab): Ditto.
404 (augment_type_symtab): Ditto.
405 * coffread.c (coff_start_symtab): New arg objfile. All callers
406 updated.
407
8435453b
DE
4082014-11-18 Doug Evans <xdje42@gmail.com>
409
410 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
411 updated.
412
ee6f8984
DE
4132014-11-18 Doug Evans <xdje42@gmail.com>
414
415 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
416 symtab.dirname updated to use it.
417
eb822aa6
DE
4182014-11-18 Doug Evans <xdje42@gmail.com>
419
420 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
421 symtab.objfile updated to use it.
422
98387a29
DE
4232014-11-18 Doug Evans <xdje42@gmail.com>
424
425 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
426
aff08958
DE
4272014-11-18 Doug Evans <xdje42@gmail.com>
428
429 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
430 SYMBOL_OBJFILE.
431 * findvar.c (default_read_var_value): Ditto.
432 * jv-lang.c (add_class_symtab_symbol): Ditto.
433 * parse.c (operator_check_standard): Ditto.
434 * printcmd.c (address_info): Ditto.
435 * symtab.c (fixup_symbol_section): Ditto.
436 (skip_prologue_sal): Ditto.
437 * tracepoint.c (scope_info): Ditto.
438 * valops.c (find_function_in_inferior): Ditto.
439 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
440 * python/py-symbol.c (set_symbol): Ditto.
441
7bab9b58
DE
4422014-11-18 Doug Evans <xdje42@gmail.com>
443
444 * buildsym.c (main_subfile): New static global.
445 (free_subfiles_list): New function.
446 (start_symtab): Set main_subfile.
447 (restart_symtab): Replace init of subfiles, current_subfile with
448 call to free_subfiles_list.
449 (watch_main_source_file_lossage): Use main_subfile.
450 (reset_symtab_globals): Replace init of current_subfile with call
451 to free_subfiles_list.
452 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
453 functions, split out from ...
454 (end_symtab_from_static_block): ... here. Rewrite to call them.
455
f194fefb
DE
4562014-11-18 Doug Evans <xdje42@gmail.com>
457
458 The result of symtab expansion is always a primary symtab.
459 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
460 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
461 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
462 (psymtab_to_symtab): Add comment and assert.
463 (map_matching_symbols_psymtab): Remove unnecessary test for
464 non-primary symtab.
465
34248c3a
DE
4662014-11-15 Doug Evans <xdje42@gmail.com>
467
468 PR symtab/17559
469 * symtab.c (find_pc_line_symtab): New function.
470 * symtab.h (find_pc_line_symtab): Declare.
471 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
472 find_pc_symtab.
473 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
474 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
475 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
476 * tui/tui-win.c (make_visible_with_new_height): Ditto.
477 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
478 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
479
2097ae25
DE
4802014-11-15 Doug Evans <xdje42@gmail.com>
481
482 * symtab.c (expand_symtab_containing_pc): Renamed from
483 find_pc_sect_symtab_via_partial. All callers updated.
484
1ada499f
YQ
4852014-11-15 Yao Qi <yao@codesourcery.com>
486
487 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
488
355e2102
JB
4892014-11-14 Joel Brobecker <brobecker@adacore.com>
490
491 * common/common-defs.h: Move <stdarg.h> #include ahead of
492 <stdio.h> #include.
493
83030110
PA
4942014-11-14 Pedro Alves <palves@redhat.com>
495
496 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
497 [!PHONY_ICONV] (gdb_iconv): New function.
498 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
499
a8719064
DE
5002014-11-13 Doug Evans <dje@google.com>
501
502 PR symtab/17591
503 * dwarf2read.c (find_slot_in_mapped_hash): Handle
504 "(anonymous namespace)".
505
60f7655a
DE
5062014-11-13 Doug Evans <dje@google.com>
507
508 * dwarf2read.c (update_enumeration_type_from_children): Avoid
509 infinite loop.
510
5784b3ca
JK
5112014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
512
513 * NEWS (maint set target-async): Fix typo.
514
6218dc4b
PA
5152014-11-12 Pedro Alves <palves@redhat.com>
516
517 * infrun.c (enum infwait_states, infwait_state): Delete.
518
af48d08f
PA
5192014-11-12 Pedro Alves <palves@redhat.com>
520
521 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
522 Rewrite stepping over a permanent breakpoint.
523 (thread_still_needs_step_over, proceed): Don't set
524 stepping_over_breakpoint for permanent breakpoints.
525 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
526 single-step breakpoints out of the target on hardware step
527 targets.
528 (process_event_stop_test): If stepping a permanent breakpoint
529 doesn't hit the step-resume breakpoint, delete the step-resume
530 breakpoint.
531 (switch_back_to_stepped_thread): Also check if the stepped thread
532 has advanced already on hardware step targets.
533 (currently_stepping): Return true if the thread stepped a
534 breakpoint.
535
1a853c52
PA
5362014-11-12 Pedro Alves <palves@redhat.com>
537
538 Mark locations as permanent, not the whole breakpoint.
539 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
540 (mark_breakpoints_out): Don't mark permanent breakpoints as
541 uninserted.
542 (breakpoint_init_inferior): Use mark_breakpoints_out.
543 (breakpoint_here_p): Adjust.
544 (bpstat_stop_status, describe_other_breakpoints): Remove handling
545 of permanent breakpoints.
546 (make_breakpoint_permanent): Mark each location as permanent,
547 instead of marking the breakpoint.
548 (add_location_to_breakpoint): If the location is permanent, mark
549 it as such, and as inserted.
550 (init_breakpoint_sal): Don't make the breakpoint permanent here.
551 (bp_location_compare, update_global_location_list): Adjust.
552 (update_breakpoint_locations): Don't make the breakpoint permanent
553 here.
554 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
555 breakpoints.
556 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
557 (struct bp_location) <permanent>: New field.
558 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
559 reference to bp_permanent.
560
ae9bb220
PA
5612014-11-12 Pedro Alves <palves@redhat.com>
562
563 * arch-utils.c (default_skip_permanent_breakpoint): New function.
564 * arch-utils.h (default_skip_permanent_breakpoint): New
565 declaration.
566 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
567 Install default_skip_permanent_breakpoint as default method.
568 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
569 (i386_gdbarch_init): Don't install it.
570 * infrun.c (resume): Assume there's always a
571 gdbarch_skip_permanent_breakpoint implementation.
572 * gdbarch.h, gdbarch.c: Regenerate.
573
015de688
DC
5742014-11-11 Daniel Colascione <dancol@dancol.org>
575
576 Warn about cross-PID-namespace debugging.
577 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
578 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
579 * linux-thread-db.c (check_pid_namespace_match): New function.
580 (thread_db_inferior_created): Call it.
581
26a84859
DE
5822014-11-10 Doug Evans <xdje42@gmail.com>
583
584 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
585 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
586
712a2e6d
DE
5872014-11-10 Doug Evans <xdje42@gmail.com>
588
589 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
590
af3768e9
DE
5912014-11-10 Doug Evans <xdje42@gmail.com>
592
593 PR symtab/17564
594 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
595 (lookup_static_symbol): Move definition to new location and rewrite.
596 (lookup_symbol_in_objfile): New function.
597 (lookup_symbol_global_iterator_cb): Call it.
598
b1f28d99
UW
5992014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
600
601 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
602
b7a084be
PA
6032014-11-07 Pedro Alves <palves@redhat.com>
604
605 * infrun.c (process_event_stop_test) <subroutine check>: Don't
606 check if we did a "nexti" inside a prologue.
607 * symtab.c (in_prologue): Delete function.
608 * symtab.h (in_prologue): Delete declaration.
609
67be31e5
DE
6102014-11-06 Doug Evans <xdje42@gmail.com>
611
612 * symtab.h (lookup_global_symbol): Improve function comment.
613
08724ab7
DE
6142014-11-06 Doug Evans <xdje42@gmail.com>
615
616 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
617 All callers updated.
618 * symtab.h (lookup_global_symbol): Update decl.
619 (lookup_static_symbol): Move decl to better location.
620
d9060ba6
DE
6212014-11-06 Doug Evans <xdje42@gmail.com>
622
623 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
624
74016e12
DE
6252014-11-06 Doug Evans <xdje42@gmail.com>
626
627 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
628 All callers updated.
629 (lookup_symbol_in_all_objfiles): Renamed from
630 lookup_symbol_aux_symtabs. All callers updated.
631 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
632 All callers updated.
633 (lookup_symbol_in_objfile_symtabs): Renamed from
634 lookup_symbol_aux_objfile. All callers updated.
635
d1a2d36d
DE
6362014-11-06 Doug Evans <xdje42@gmail.com>
637
638 * symtab.c (lookup_symbol_in_block): Renamed from
639 lookup_symbol_aux_block. All callers updated.
640
24d864bb
DE
6412014-11-06 Doug Evans <xdje42@gmail.com>
642
643 * symtab.c (lookup_static_symbol): Renamed from
644 lookup_static_symbol_aux. All callers updated.
645 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
646 All callers updated.
647
358d6ab3
DE
6482014-11-06 Doug Evans <xdje42@gmail.com>
649
650 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
651 * block.c (block_lookup_symbol): Use it.
652 * cp-support.c (make_symbol_overload_list_block): Use it.
653 * symtab.c (iterate_over_symbols): Use it.
654
16b2eaa1
DE
6552014-11-06 Doug Evans <xdje42@gmail.com>
656
657 * symtab.c (lookup_block_symbol): Moved to ...
658 * block.c (block_lookup_symbol): ... here and renamed.
659 All callers updated.
660 * block.h (block_lookup_symbol): Declare.
661 * symtab.h (lookup_block_symbol): Delete.
662
2dd2cd1c
DE
6632014-11-06 Doug Evans <xdje42@gmail.com>
664
665 * ada-lang.c (ada_make_symbol_completion_list): Use
666 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
667 * symtab.c (lookup_objfile_from_block): Ditto.
668
d4c58915
DE
6692014-11-06 Doug Evans <xdje42@gmail.com>
670
671 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
672 TYPE_CODE_STRUCT.
673
9c1877ea
DE
6742014-11-06 Doug Evans <xdje42@gmail.com>
675
676 * objfiles.c (get_objfile_arch): Constify.
677 * objfiles.h (get_objfile_arch): Update prototype.
678 * solib.c (solib_global_lookup): Fetch arch from objfile,
679 not target_gdbarch.
680
426a4079
SL
6812014-11-06 Sandra Loosemore <sandra@codesourcery.com>
682
683 * nios2-tdep.c (wild_insn): Delete.
684 (profiler_insn, irqentry_insn): Delete.
685 (nios2_match_sequence): Delete.
686 (nios2_analyze_prologue): Update comments. Remove matching
687 of obsolete profiler_insn and irqentry_insn sequences.
688
ee11262d
AM
6892014-11-05 Alan Modra <amodra@gmail.com>
690
691 * charset.c (convert_between_encodings): Shrink obstack using
692 obstack_blank_fast.
693 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
694 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
695 to char* before doing pointer arithmetic.
ee11262d 696
c87e6d00
SM
6972014-11-04 Simon Marchi <simon.marchi@ericsson.com>
698
699 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
700
441ef17f
PA
7012014-11-04 Pedro Alves <palves@redhat.com>
702
703 * breakpoint.c (breakpoint_thread_match): Delete function.
704 * breakpoint.h (breakpoint_thread_match): Delete declaration.
705
e0f52461
SC
7062014-11-03 Siva Chandra Reddy <sivachandra@google.com>
707
708 PR c++/17494
709 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
710 the method args also under EVAL_SKIP when evaluating method
711 calls under EVAL_SKIP.
712
a0b4d890
YQ
7132014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
714
715 * dwarf2loc.c (read_pieced_value): Do big endian
716 processing only if gdb_regnum is not -1.
717 (write_pieced_value): Ditto.
718
7192014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
720
721 * arm-linux-tdep.c (arm_linux_init_abi): Use
722 info.byte_order_for_code to choose endianity of breakpoint
723 instructions snippets.
724
7252014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
726
727 * arm-tdep.c (extract_arm_insn): Use
728 gdbarch_byte_order_for_code to read arm instruction.
729
e82149ff
DE
7302014-11-02 Doug Evans <xdje42@gmail.com>
731
732 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
733
d7ee84f1
DE
7342014-11-02 Doug Evans <xdje42@gmail.com>
735
736 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
737 main_subfile before returning.
738
4f072d17
DE
7392014-10-31 Doug Evans <xdje42@gmail.com>
740
741 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
742 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
743
8301c89e
DE
7442014-10-31 Doug Evans <xdje42@gmail.com>
745
746 * valops.c (value_cast_pointers): Fix whitespace.
747 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
748 Ditto.
749
02be9a71
DE
7502014-10-30 Doug Evans <dje@google.com>
751
752 * NEWS: Mention ability add attributes to gdb.Objfile and
753 gdb.Progspace objects.
754 * python/py-objfile.c (objfile_object): New member dict.
755 (objfpy_dealloc): Py_XDECREF dict.
756 (objfpy_initialize): Initialize dict.
757 (objfile_getset): Add __dict__.
758 (objfile_object_type): Set tp_dictoffset member.
759 * python/py-progspace.c (progspace_object): New member dict.
760 (pspy_dealloc): Py_XDECREF dict.
761 (pspy_initialize): Initialize dict.
762 (pspace_getset): Add __dict__.
763 (pspace_object_type): Set tp_dictoffset member.
764
6427bef6
YQ
7652014-10-30 Yao Qi <yao@codesourcery.com>
766
767 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
768 replace '\\' with '\\\\'.
769
f60325be
JB
7702014-10-29 Joel Brobecker <brobecker@adacore.com>
771
772 GDB 7.8.1 released.
773
ab917dfb
PA
7742014-10-29 Pedro Alves <palves@redhat.com>
775
776 PR gdb/17408
777 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
778 instead of assuming a thread with a stepping range is always
779 stepping.
780
d3d4baed
PA
7812014-10-29 Pedro Alves <palves@redhat.com>
782
783 PR python/17372
784 * event-top.c (change_line_handler): Call
785 gdb_rl_callback_handler_remove instead of
786 rl_callback_handler_remove.
787 (callback_handler_installed): New global.
788 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
789 (gdb_rl_callback_handler_reinstall): New functions.
790 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
791 gdb_rl_callback_handler_install instead of
792 rl_callback_handler_remove and rl_callback_handler_install.
793 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
794 instead of rl_callback_handler_remove.
795 * event-top.h (gdb_rl_callback_handler_remove)
796 (gdb_rl_callback_handler_install)
797 (gdb_rl_callback_handler_reinstall): New declarations.
798 * infrun.c (reinstall_readline_callback_handler_cleanup): New
799 cleanup function.
800 (fetch_inferior_event): Install it.
801 * top.c (gdb_readline_wrapper_line) Call
802 gdb_rl_callback_handler_remove instead of
803 rl_callback_handler_remove.
804 (gdb_readline_wrapper_cleanup): Don't call
805 rl_callback_handler_install.
806
6e5d7f39
PA
8072014-10-29 Pedro Alves <palves@redhat.com>
808
809 * event-top.c (command_line_handler): Clear the first byte of
810 linebuffer, when it is first allocated.
811
551cb6a5
PA
8122014-10-29 Pedro Alves <palves@redhat.com>
813
814 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
815 TRY_CATCH.
816
1e1e619b
PA
8172014-10-29 Pedro Alves <palves@redhat.com>
818
819 PR tui/16138
820 PR tui/17519
821 * tui/tui-interp.c (tui_is_toplevel): Delete global.
822 (tui_allowed_p): Delete function.
823 * tui/tui.c: Include "interps.h".
824 (tui_enable): Don't use tui_allowed_p. Error out here with
825 detailed error messages if the TUI is the top level interpreter,
826 or if output is not a terminal. Use newterm instead of initscr,
827 and error out if initializing the terminal fails. Also error out if
828 the terminal doesn't support cursor addressing.
829 * tui/tui.h (tui_allowed_p): Delete declaration.
830
6041179a
JB
8312014-10-29 Joel Brobecker <brobecker@adacore.com>
832
833 * arm-tdep.c (arm_skip_stack_protector): Return early if
834 address loaded by first "ldr" instruction does not have
835 a corresponding minimal symbol. Update comment.
836
6ae274b7
YQ
8372014-10-29 Yao Qi <yao@codesourcery.com>
838
839 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
840 loaded address correctly of ldr instruction.
841
7f5ef605
PA
8422014-10-28 Pedro Alves <palves@redhat.com>
843
844 PR gdb/12623
845 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
846 field.
847 * infrun.c (resume) <stepping breakpoint instruction>: Set the
848 thread's stepped_breakpoint field. Skip if reverse debugging.
849 Add comment.
850 (init_thread_stepping_state, handle_signal_stop): Clear the
851 thread's stepped_breakpoint field.
852
7d1a114c
PA
8532014-10-27 Pedro Alves <palves@redhat.com>
854
855 * remote.c (remote_thread_alive): New, factored out from ...
856 (remote_thread_alive): ... this.
857 (remote_update_thread_list): Bail out before deleting threads if
858 the target returned an empty list, and, the current thread has a
859 magic/fake ptid.
860
e5f8a7cc
PA
8612014-10-27 Pedro Alves <palves@redhat.com>
862
863 * infrun.c (handle_signal_stop): Also skip handlers when a random
864 signal arrives while handling a "stepi" or a "nexti". Set the
865 thread's 'step_after_step_resume_breakpoint' flag.
866
71e396f9
LM
8672014-10-27 Luis Machado <lgustavo@codesourcery.com>
868
869 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
870 (arm_record_ld_st_imm_offset): Reimplement to cover all
871 load/store cases for ARM opcode 010.
872 (arm_record_ld_st_multiple): Reimplement to cover all
873 load/store cases for ARM opcode 100.
874
3aee438b
DE
8752014-10-26 Doug Evans <xdje42@gmail.com>
876
877 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
878
f88cb4b6
DE
8792014-10-26 Doug Evans <xdje42@gmail.com>
880
881 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
882 parameter "kind" to "block_index".
883 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
884 "block_index".
885 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
886
a023a30f
DE
8872014-10-26 Doug Evans <xdje42@gmail.com>
888
889 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
890
4c35218e
DE
8912014-10-26 Doug Evans <xdje42@gmail.com>
892
893 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
894 obstack_alloc.
895
f08e8df3
DE
8962014-10-26 Doug Evans <xdje42@gmail.com>
897
898 * parser-defs.h (block_found): Move decl from here ...
899 * symtab.h (block_found): ... to here.
900
cf901d3b
DE
9012014-10-26 Doug Evans <xdje42@gmail.com>
902
903 * symtab.h (struct field_of_this_result): Fix typo in comment.
904 (lookup_symbol_in_language): Move function comment here.
905 (lookup_symbol): Improve function comment.
906 (basic_lookup_symbol_nonlocal): Ditto.
907 (lookup_symbol_static, lookup_symbol_global): Ditto.
908 (lookup_symbol_aux_block): Ditto.
909 (lookup_language_this): Add function comment.
910 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
911 function comment.
912 (lookup_block_symbol): Improve function comment.
913 (lookup_struct): Fix capitalization in function comment.
914 (lookup_transparent_type): Add function comment.
915 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
916 Improve function comment.
917 (lookup_objfile_from_block): Add function comment.
918 * symtab.c (lookup_symbol_in_language): Update function comment.
919 (lookup_symbol, lookup_language_this): Ditto.
920 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
921 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
922 (basic_lookup_symbol_nonlocal): Ditto.
923 (lookup_symbol_static, lookup_symbol_global): Ditto.
924 (lookup_transparent_type, lookup_block_symbol): Ditto.
925
ff6c39cf
DE
9262014-10-25 Doug Evans <xdje42@gmail.com>
927
928 * symtab.c (types_info): Delete forward decl.
929 (functions_info, variables_info, sources_info): Ditto.
930 (_initialize_symtab): Rewrite forward decl to use
931 initialize_file_ftype.
932
ec201f0c
DE
9332014-10-25 Doug Evans <xdje42@gmail.com>
934
935 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
936
ca040673
DE
9372014-10-25 Doug Evans <xdje42@gmail.com>
938
939 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
940 of local var child_die.
941
6f259a23
DB
9422014-10-24 Don Breazeal <donb@codesourcery.com>
943
944 * infrun.c (follow_fork_inferior): Update fork message printing
945 to use target_terminal_ours_for_output instead of
946 target_terminal_ours, to use _() for all format strings, to print
947 "vfork" instead of "fork" for vforks, and to add a detach message.
948 (handle_vfork_child_exec_or_exit): Update message printing to use
949 target_terminal_ours_for_output instead of target_terminal_ours, to
950 use _() for all format strings, and to fix some formatting.
951
09dd9a69
PA
9522014-10-24 Pedro Alves <palves@redhat.com>
953
954 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
955 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
956 * config/vax/vax.mh: Delete.
957 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
958 obsolete configurations section.
959 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
960 * vax-nat.c: Delete file.
961
5ab806de
PA
9622014-10-24 Pedro Alves <palves@redhat.com>
963
964 * NEWS (Removed targets): Add OS/arch column.
965
3433cfa5
SC
9662014-10-24 Siva Chandra Reddy <sivachandra@google.com>
967
968 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
969 on the arg type of a constructor only if it is of reference type.
970
96ba4233
SL
9712014-10-23 Sandra Loosemore <sandra@codesourcery.com>
972
973 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
974 accessors and constants from nios2 opcodes update.
975 (nios2_get_next_pc): Likewise.
976
28153fd3
DE
9772014-10-19 Doug Evans <xdje42@gmail.com>
978
979 * gdbthread.h (set_running): Fix comment.
980 (set_executing, finish_thread_state): Fix comment.
981
fc9b8e47
DE
9822014-10-18 Doug Evans <xdje42@gmail.com>
983
984 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
985
4ffbba72
DE
9862014-10-17 Doug Evans <dje@google.com>
987
988 * NEWS: Mention new event gdb.clear_objfiles.
989 * python/py-event.h (emit_clear_objfiles_event): Clear
990 * python/py-events.h (events_object): New member clear_objfiles.
991 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
992 event.
993 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
994 emit clear_objfiles event.
995 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
996 function.
997 (emit_clear_objfiles_event): New function.
998 (clear_objfiles): New event.
999 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1000 Declare.
1001 * python/python.c (_initialize_python): Call
1002 gdbpy_initialize_clear_objfiles_event.
1003
d096d8c1
DE
10042014-10-17 Doug Evans <dje@google.com>
1005
1006 * NEWS: Mention new gdb.Objfile.progspace attribute.
1007 * python/py-objfile.c (objfpy_get_progspace): New function.
1008 (objfile_getset): New entry for "progspace".
1009
6c4486e6
PA
10102014-10-17 Pedro Alves <palves@redhat.com>
1011
1012 PR gdb/17471
1013 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1014 returns a copy of the input.
1015 (run_command_1, continue_command, step_1, jump_command)
1016 (signal_command, until_command, advance_command, finish_command)
1017 (attach_command): Adjust and install a cleanup to free the
1018 stripped args.
1019
0ff33695
PA
10202014-10-17 Pedro Alves <palves@redhat.com>
1021
1022 PR gdb/17300
1023 * infcmd.c (continue_1): If continuing all threads in the
1024 foreground, make sure the inferior's terminal settings are put in
1025 effect.
1026
6fdebc3d
PA
10272014-10-17 Pedro Alves <palves@redhat.com>
1028
1029 PR gdb/17472
1030 * annotate.c (annotate_breakpoints_invalid): Use
1031 target_terminal_our_for_output instead of target_terminal_ours.
1032 Give back the terminal to the target.
1033 (annotate_frames_invalid): Likewise.
1034
5842f62a
PA
10352014-10-17 Pedro Alves <palves@redhat.com>
1036
1037 * target.c (enum terminal_state): New enum.
1038 (terminal_state): New global.
1039 (target_terminal_init): New function.
1040 (target_terminal_inferior): Skip if inferior already owns the
1041 terminal.
1042 (target_terminal_ours, target_terminal_ours_for_output): New
1043 functions.
1044 * target.h (target_terminal_init): Convert to function prototype.
1045 (target_terminal_ours_for_output): Convert to function prototype
1046 and tweak comment.
1047 (target_terminal_ours): Convert to function prototype and tweak
1048 comment.
1049 * windows-nat.c (do_initial_windows_stuff): Call
1050 target_terminal_init instead of child_terminal_init_with_pgrp.
1051
32a8097b
PA
10522014-10-17 Pedro Alves <palves@redhat.com>
1053
1054 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1055 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1056 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1057 solib-osf.c.
1058 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1059 * ada-lang.h [__alpha__ && __osf__]
1060 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1061 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1062 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1063 GDB_OSABI_OSF1.
1064 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1065 files.
1066 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1067 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1068 * configure: Regenerate.
1069 * configure.ac: Remove references to osf.
1070 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1071 section. Remove all other references to osf.
1072 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1073 Remove all other references to osf.
1074 * dec-thread.c: Delete file.
1075 * defs.h (GDB_OSABI_OSF1): Delete.
1076 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1077 defined.
1078 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1079 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1080 Delete code.
1081 (unconditionally_kill_inferior)
1082 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1083 * solib-osf.c: Delete file.
1084
80134cf5
PA
10852014-10-17 Pedro Alves <palves@redhat.com>
1086
1087 * remote.c (clear_threads_listing_context): Move higher up, out of
1088 the HAVE_LIBEXPAT guard.
1089
89c7137f
TG
10902014-10-16 Tristan Gingold <gingold@adacore.com>
1091
1092 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1093 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1094 on amd64.
1095
44ee4a52
PA
10962014-10-15 Pedro Alves <palves@redhat.com>
1097
1098 * dec-thread.c (dec_thread_count_gdb_threads)
1099 (dec_thread_add_gdb_thread): Delete.
1100 (dec_thread_update_thread_list): Delete.
1101 (dec_thread_find_new_threads): Rename to ...
1102 (dec_thread_update_thread_list): ... this. Delete GDB-size
1103 threads that are no longer found in dec_thread_list.
1104 (resync_thread_list): Delete.
1105 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1106 resync_thread_list.
1107
ab970af1
PA
11082014-10-15 Pedro Alves <palves@redhat.com>
1109
1110 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1111 * remote.c (remote_update_thread_list): Skip calling prune_threads
1112 if any thread listing method is supported, and instead walk over
1113 the set of remote threads listed, deleting those that are not
1114 found in GDB's thread list.
1115
e8032dde
PA
11162014-10-15 Pedro Alves <palves@redhat.com>
1117
1118 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1119 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1120 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1121 (bsd_uthread_target): Adjust.
1122 * corelow.c (core_open): Adjust.
1123 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1124 (dec_thread_update_thread_list): New function.
1125 (init_dec_thread_ops): Adjust.
1126 * gdbthread.h (prune_threads): New declaration.
1127 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1128 (thread_db_update_thread_list): ... this. Call prune_threads.
1129 (init_thread_db_ops): Adjust.
1130 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1131 (procfs_update_thread_list): ... this. Call prune_threads.
1132 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1133 Adjust.
1134 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1135 (obsd_update_thread_list): ... this. Call prune_threads.
1136 (obsd_add_target): Adjust.
1137 * procfs.c (procfs_target): Adjust.
1138 (procfs_notice_thread): Update comment.
1139 (procfs_find_new_threads): Rename to ...
1140 (procfs_update_thread_list): ... this. Call prune_threads.
1141 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1142 comment.
1143 (ravenscar_wait): Adjust.
1144 (ravenscar_find_new_threads): Rename to ...
1145 (ravenscar_update_thread_list): ... this. Call prune_threads.
1146 (init_ravenscar_thread_ops): Adjust.
1147 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1148 (record_btrace_update_thread_list): ... this. Adjust comment.
1149 (init_record_btrace_ops): Adjust.
1150 * remote.c (remote_threads_info): Rename to ...
1151 (remote_update_thread_list): ... this. Call prune_threads.
1152 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1153 Adjust.
1154 * sol-thread.c (check_for_thread_db): Adjust.
1155 (sol_find_new_threads_callback): Rename to ...
1156 (sol_update_thread_list_callback): ... this.
1157 (sol_find_new_threads): Rename to ...
1158 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1159 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1160 * target-delegates.c: Regenerate.
1161 * target.c (target_find_new_threads): Rename to ...
1162 (target_update_thread_list): ... this.
1163 * target.h (struct target_ops): Rename to_find_new_threads field
1164 to to_update_thread_list.
1165 (target_find_new_threads): Rename to ...
1166 (target_update_thread_list): ... this.
1167 * thread.c (prune_threads): Make extern.
1168 (update_thread_list): Adjust.
1169
6dc54d91
PA
11702014-10-15 Pedro Alves <palves@redhat.com>
1171
1172 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1173 Add describing comment. Return -1 if the qL packet is not
1174 supported.
1175 (struct thread_item, thread_item_t): Move higher up in
1176 the file. Add comments.
1177 (struct threads_parsing_context): Move higher up in
1178 the file, add comments, and remote to ...
1179 (struct threads_listing_context): ... this.
1180 (remote_newthread_step): Don't add the thread to GDB's thread
1181 database here. Instead push it to the thread_listing_context
1182 list.
1183 (remote_find_new_threads): Rename to ...
1184 (remote_get_threads_with_ql): ... this. Add target_ops and
1185 targets_listing_context parameters. Pass down context.
1186 (start_thread): Adjust.
1187 (clear_threads_parsing_context): Rename to ...
1188 (clear_threads_listing_context): ... this.
1189 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1190 remote_threads_info.
1191 (remote_get_threads_with_qthreadinfo): Ditto.
1192 (remote_threads_info): Reimplement.
1193
36728e82
PA
11942014-10-15 Pedro Alves <palves@redhat.com>
1195
1196 * infrun.c (resume): Don't force displaced-stepping for all
1197 single-steps on software single-stepping archs.
1198
34b7e8a6
PA
11992014-10-15 Pedro Alves <palves@redhat.com>
1200
1201 * breakpoint.c (single_step_breakpoints): Delete global.
1202 (insert_single_step_breakpoint): Adjust to store the breakpoint
1203 pointer in the current thread.
1204 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1205 (cancel_single_step_breakpoints): Delete functions.
1206 (breakpoint_has_location_inserted_here): Make extern.
1207 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1208 breakpoint list.
1209 * breakpoint.h (breakpoint_has_location_inserted_here): New
1210 declaration.
1211 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1212 (cancel_single_step_breakpoints): Remove declarations.
1213 * gdbthread.h (struct thread_control_state)
1214 <single_step_breakpoints>: New field.
1215 (delete_single_step_breakpoints)
1216 (thread_has_single_step_breakpoints_set)
1217 (thread_has_single_step_breakpoint_here): New declarations.
1218 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1219 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1220 (singlestep_pc): Delete globals.
1221 (infrun_thread_ptid_changed): Remove references to removed
1222 globals.
1223 (resume_cleanups): Delete the current thread's single-step
1224 breakpoints.
1225 (maybe_software_singlestep): Remove references to removed globals.
1226 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1227 delete_single_step_breakpoints.
1228 (init_wait_for_inferior): Remove references to removed globals.
1229 (delete_thread_infrun_breakpoints): Delete the thread's
1230 single-step breakpoints too.
1231 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1232 single-step breakpoints here.
1233 (delete_stopped_threads_single_step_breakpoints): New function.
1234 (adjust_pc_after_break): Adjust to use
1235 thread_has_single_step_breakpoints_set.
1236 (handle_inferior_event): Remove references to removed globals.
1237 Use delete_stopped_threads_single_step_breakpoints.
1238 (handle_signal_stop): Adjust to per-thread single-step
1239 breakpoints. Swap test order to do cheaper tests first.
1240 (switch_back_to_stepped_thread): Extend debug output. Remove
1241 references to removed globals.
1242 * record-full.c (record_full_wait_1): Adjust to per-thread
1243 single-step breakpoints.
1244 * thread.c (delete_single_step_breakpoints)
1245 (thread_has_single_step_breakpoints_set)
1246 (thread_has_single_step_breakpoint_here): New functions.
1247 (clear_thread_inferior_resources): Also delete the thread's
1248 single-step breakpoints.
1249
5b834a0a
PA
12502014-10-15 Pedro Alves <palves@redhat.com>
1251
1252 * thread.c (delete_thread_breakpoint): New function.
1253 (delete_step_resume_breakpoint)
1254 (delete_exception_resume_breakpoint): Use it.
1255 (delete_at_next_stop): New function.
1256 (clear_thread_inferior_resources): Use delete_at_next_stop.
1257
a1fd2fa5
PA
12582014-10-15 Pedro Alves <palves@redhat.com>
1259
1260 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1261 (breakpoint_inserted_here_p): ... here. Remove special case for
1262 software single-step breakpoints.
1263 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1264 (software_breakpoint_inserted_here_p): ... here. Remove special
1265 case for software single-step breakpoints.
1266 (bp_target_info_copy_insertion_state)
1267 (deprecated_insert_raw_breakpoint)
1268 (deprecated_remove_raw_breakpoint): Delete functions.
1269 * breakpoint.h (deprecated_insert_raw_breakpoint)
1270 (deprecated_remove_raw_breakpoint): Remove declarations.
1271
7c16b83e
PA
12722014-10-15 Pedro Alves <palves@redhat.com>
1273
1274 PR breakpoints/9649
1275 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1276 Delete array globals.
1277 (single_step_breakpoints): New global.
1278 (breakpoint_xfer_memory): Remove special handling for single-step
1279 breakpoints.
1280 (update_breakpoints_after_exec): Delete bp_single_step
1281 breakpoints.
1282 (detach_breakpoints): Remove special handling for single-step
1283 breakpoints.
1284 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1285 (bpstat_stop_status): Add comment.
1286 (bpstat_what, bptype_string, print_one_breakpoint_location)
1287 (adjust_breakpoint_address, init_bp_location): Handle
1288 bp_single_step.
1289 (new_single_step_breakpoint): New function.
1290 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1291 handling for single-step breakpoints.
1292 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1293 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1294 Rewrite.
1295 (detach_single_step_breakpoints, find_single_step_breakpoint):
1296 Delete functions.
1297 (breakpoint_has_location_inserted_here): New function.
1298 (single_step_breakpoint_inserted_here_p): Rewrite.
1299 * breakpoint.h: Remove FIXME.
1300 (enum bptype) <bp_single_step>: New enum value.
1301 (insert_single_step_breakpoint): Update comment.
1302 * infrun.c (resume_cleanups)
1303 (delete_step_thread_step_resume_breakpoint): Remove single-step
1304 breakpoints.
1305 (fetch_inferior_event): Install a cleanup that removes infrun
1306 breakpoints.
1307 (switch_back_to_stepped_thread) <expect thread advanced also>:
1308 Clear step-over info.
1309
0cbcdb96
PA
13102014-10-15 Pedro Alves <palves@redhat.com>
1311
1312 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1313 (delete_thread_infrun_breakpoints): New function, with parts
1314 salvaged from delete_step_resume_breakpoint_callback.
1315 (delete_step_thread_step_resume_breakpoint): Delete.
1316 (for_each_just_stopped_thread_callback_func): New typedef.
1317 (for_each_just_stopped_thread): New function.
1318 (delete_just_stopped_threads_infrun_breakpoints): New function.
1319 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1320 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1321 ... this. Adjust.
1322 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1323
963f9c80
PA
13242014-10-15 Pedro Alves <palves@redhat.com>
1325
1326 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1327 trying to step past a non-steppable watchpoint.
1328 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1329 field.
1330 * infrun.c (struct step_over_info): Add new field
1331 'nonsteppable_watchpoint_p' and adjust comments.
1332 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1333 Adjust.
1334 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1335 (stepping_past_nonsteppable_watchpoint): New function.
1336 (step_over_info_valid_p): Also return true if stepping past a
1337 nonsteppable watchpoint.
1338 (proceed): Adjust call to set_step_over_info. Remove reference to
1339 init_infwait_state.
1340 (init_wait_for_inferior): Remove reference to init_infwait_state.
1341 (waiton_ptid): Delete global.
1342 (struct execution_control_state)
1343 <stepped_after_stopped_by_watchpoint>: Delete field.
1344 (wait_for_inferior, fetch_inferior_event): Always pass
1345 minus_one_ptid to target_wait.
1346 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1347 field.
1348 (init_infwait_state): Delete function.
1349 (handle_inferior_event): Remove infwait_state handling.
1350 (handle_signal_stop) <watchpoints handling>: Adjust after
1351 stepped_after_stopped_by_watchpoint removal. Don't remove
1352 breakpoints here nor set infwait_state. Set the thread's
1353 stepping_over_watchpoint flag, and call keep_going instead.
1354 (keep_going): Handle stepping_over_watchpoint. Adjust
1355 set_step_over_info calls.
1356 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1357 function.
1358
6cc83d2a
PA
13592014-10-15 Pedro Alves <palves@redhat.com>
1360
1361 * infrun.c (step_over_info_valid_p): New function.
1362 (resume): Use step_over_info_valid_p instead of checking the
1363 threads's trap_expected flag.
1364
6979730b
DE
13652014-10-15 Doug Evans <dje@google.com>
1366 Walfred Tedeschi <walfred.tedeschi@intel.com>
1367
1368 PR python/17364
1369 * python/lib/gdb/__init__.py (packages): Add "printer".
1370 * python/lib/gdb/command/bound_registers.py: Moved to ...
1371 * python/lib/gdb/printer/bound_registers.py: ... here.
1372 Add printer to global set of builtin printers. Rename printer from
1373 "bound" to "mpx_bound128".
1374 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1375 registered as global "builtin" printer.
1376 (add_builtin_pretty_printer): New function.
1377 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1378 gdb/printer/__init__.py.
1379
35a49624
IB
13802014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1381
1382 * Makefile.in (SFILES): Remove d-support.c.
1383 (COMMON_OBS): Remove d-support.o.
1384 * d-lang.h (d_parse_symbol): Remove declaration.
1385 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1386 * d-support.c: Remove file.
1387
8fa0c4f8
AA
13882014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1389
1390 * gdb/infrun.c (process_event_stop_test): Apply
1391 gdbarch_addr_bits_remove to longjmp resume address.
1392
3666da81
PA
13932014-10-15 Pedro Alves <palves@redhat.com>
1394
1395 * regformats/microblaze.dat: Delete file.
1396
449aa9df
AKA
13972014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1398
1399 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1400 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1401
ebb8ece2
SC
14022014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1403
1404 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1405 as non-trivial.
1406
82c48ac7
SC
14072014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1408
1409 PR c++/13403
1410 PR c++/15154
1411 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1412 with qualified args.
1413
c40cc657
JB
14142014-10-14 Joel Brobecker <brobecker@adacore.com>
1415
1416 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1417 of the case where the second operand is a pointer.
1418 <BINOP_SUB>: Likewise.
1419
0ea5cda8
SDJ
14202014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1421
1422 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1423 only if it is not NULL.
1424 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1425 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1426 (struct probe_ops) <clear_semaphore>: Likewise.
1427 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1428 not NULL.
1429 (stop_tracing): Likewise, for clear_semaphore.
1430
f7088df3
SDJ
14312014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1432
1433 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1434 using language_c, instead of current_language.
1435
4e1bbde0
DE
14362014-10-13 Doug Evans <dje@google.com>
1437
6ff5a0f6 1438 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 1439 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 1440 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
1441 (pspy_new, pspace_to_pspace_object): Call it.
1442
c780cc2f
JK
14432014-10-13 Miroslav Franc <mfranc@redhat.com>
1444 Jan Kratochvil <jan.kratochvil@redhat.com>
1445
1446 Fix "save breakpoints" for "catch" command.
1447 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1448 newline.
1449
99894e11
JK
14502014-10-12 Miroslav Franc <mfranc@redhat.com>
1451
1452 Fix "save breakpoints" for "disable $bpnum" command.
1453 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1454
3831839c
PA
14552014-10-10 Pedro Alves <palves@redhat.com>
1456
1457 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1458 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1459 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1460 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1461 and been removed.
1462 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1463 * configure.ac: Remove references to IRIX.
1464 * configure.host: Add *-*-irix* to the obsolete hosts section.
1465 Remove all other references to irix.
1466 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1467 Delete files.
1468
cc3afae2
AKA
14692014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1470
1471 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1472 isn't valid, release the tdesc arch data and return NULL.
1473
cdfa0b0a
PA
14742014-10-10 Pedro Alves <palves@redhat.com>
1475
1476 * linux-tdep.c: Include observer.h.
1477 (linux_inferior_data): New global.
1478 (struct linux_info): New structure.
1479 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1480 (get_linux_inferior_data): New functions.
1481 (linux_vsyscall_range): Rename to ...
1482 (linux_vsyscall_range_raw): ... this.
1483 (linux_vsyscall_range): New function; handles caching.
1484 (_initialize_linux_tdep): Register linux_inferior_data. Install
1485 inferior_exit and inferior_appeared observers.
1486
8b9a549d
PA
14872014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1488 Pedro Alves <palves@redhat.com>
1489
1490 PR symtab/14466
1491 * solib-svr4.c (svr4_read_so_list): Rename to ...
1492 (svr4_current_sos_1): ... this and change the function comment.
1493 (svr4_current_sos): New function.
1494
3437254d
PA
14952014-10-10 Pedro Alves <palves@redhat.com>
1496
1497 * arch-utils.c (default_vsyscall_range): New function.
1498 * arch-utils.h (default_vsyscall_range): New declaration.
1499 * gdbarch.sh (vsyscall_range): New hook.
1500 * gdbarch.h, gdbarch.c: Regenerate.
1501 * linux-tdep.c (linux_vsyscall_range): New function.
1502 (linux_init_abi): Install linux_vsyscall_range as
1503 vsyscall_range gdbarch hook.
1504 * memrange.c (address_in_mem_range): New function.
1505 * memrange.h (address_in_mem_range): New declaration.
1506 * symfile-mem.c (find_vdso_size): Delete function.
1507 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1508
31cc0b80
PA
15092014-10-10 Pedro Alves <palves@redhat.com>
1510
1511 * infrun.c (normal_stop): Fix typo in comment.
1512
3e3286a2
SDJ
15132014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1514
1515 PR tdep/9390
1516 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1517 typo when using logical AND to determine instruction type.
1518
fcbdedf8
YQ
15192014-10-09 Yao Qi <yao@codesourcery.com>
1520
1521 * infrun.c (handle_signal_stop): Remove local variable
1522 'printed'.
1523
db984616
SS
15242014-10-08 Stan Shebs <stan@codesourcery.com>
1525
1526 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1527
3ba37e6c
GB
15282014-10-08 Gary Benson <gbenson@redhat.com>
1529
1530 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1531
a442d071
GB
15322014-10-08 Gary Benson <gbenson@redhat.com>
1533
1534 * common/common-defs.h: Include common-exceptions.h.
1535 * exceptions.h: Do not include common-exceptions.h.
1536
6f1947e8
GB
15372014-10-08 Gary Benson <gbenson@redhat.com>
1538
1539 * common/common-defs.h: Include cleanups.h.
1540 * common/common-exceptions.c: Do not include cleanups.h.
1541 * utils.h: Likewise.
1542
c765fdb9
GB
15432014-10-08 Gary Benson <gbenson@redhat.com>
1544
1545 * ada-lang.c: Do not include exceptions.h.
1546 * ada-valprint.c: Likewise.
1547 * amd64-tdep.c: Likewise.
1548 * auto-load.c: Likewise.
1549 * block.c: Likewise.
1550 * break-catch-throw.c: Likewise.
1551 * breakpoint.c: Likewise.
1552 * btrace.c: Likewise.
1553 * c-lang.c: Likewise.
1554 * cli/cli-cmds.c: Likewise.
1555 * cli/cli-interp.c: Likewise.
1556 * cli/cli-script.c: Likewise.
1557 * completer.c: Likewise.
1558 * corefile.c: Likewise.
1559 * corelow.c: Likewise.
1560 * cp-abi.c: Likewise.
1561 * cp-support.c: Likewise.
1562 * cp-valprint.c: Likewise.
1563 * darwin-nat.c: Likewise.
1564 * dwarf2-frame-tailcall.c: Likewise.
1565 * dwarf2-frame.c: Likewise.
1566 * dwarf2loc.c: Likewise.
1567 * dwarf2read.c: Likewise.
1568 * eval.c: Likewise.
1569 * event-loop.c: Likewise.
1570 * event-top.c: Likewise.
1571 * f-valprint.c: Likewise.
1572 * frame-unwind.c: Likewise.
1573 * frame.c: Likewise.
1574 * gdbtypes.c: Likewise.
1575 * gnu-v2-abi.c: Likewise.
1576 * gnu-v3-abi.c: Likewise.
1577 * guile/scm-auto-load.c: Likewise.
1578 * guile/scm-breakpoint.c: Likewise.
1579 * guile/scm-cmd.c: Likewise.
1580 * guile/scm-frame.c: Likewise.
1581 * guile/scm-lazy-string.c: Likewise.
1582 * guile/scm-param.c: Likewise.
1583 * guile/scm-symbol.c: Likewise.
1584 * guile/scm-type.c: Likewise.
1585 * hppa-hpux-tdep.c: Likewise.
1586 * i386-tdep.c: Likewise.
1587 * inf-loop.c: Likewise.
1588 * infcall.c: Likewise.
1589 * infcmd.c: Likewise.
1590 * infrun.c: Likewise.
1591 * interps.c: Likewise.
1592 * interps.h: Likewise.
1593 * jit.c: Likewise.
1594 * linespec.c: Likewise.
1595 * linux-nat.c: Likewise.
1596 * linux-thread-db.c: Likewise.
1597 * m32r-rom.c: Likewise.
1598 * main.c: Likewise.
1599 * memory-map.c: Likewise.
1600 * mi/mi-cmd-break.c: Likewise.
1601 * mi/mi-cmd-stack.c: Likewise.
1602 * mi/mi-interp.c: Likewise.
1603 * mi/mi-main.c: Likewise.
1604 * monitor.c: Likewise.
1605 * nto-procfs.c: Likewise.
1606 * objc-lang.c: Likewise.
1607 * p-valprint.c: Likewise.
1608 * parse.c: Likewise.
1609 * ppc-linux-tdep.c: Likewise.
1610 * printcmd.c: Likewise.
1611 * probe.c: Likewise.
1612 * python/py-auto-load.c: Likewise.
1613 * python/py-breakpoint.c: Likewise.
1614 * python/py-cmd.c: Likewise.
1615 * python/py-finishbreakpoint.c: Likewise.
1616 * python/py-frame.c: Likewise.
1617 * python/py-framefilter.c: Likewise.
1618 * python/py-function.c: Likewise.
1619 * python/py-gdb-readline.c: Likewise.
1620 * python/py-inferior.c: Likewise.
1621 * python/py-infthread.c: Likewise.
1622 * python/py-lazy-string.c: Likewise.
1623 * python/py-linetable.c: Likewise.
1624 * python/py-param.c: Likewise.
1625 * python/py-prettyprint.c: Likewise.
1626 * python/py-symbol.c: Likewise.
1627 * python/py-type.c: Likewise.
1628 * python/py-value.c: Likewise.
1629 * python/python-internal.h: Likewise.
1630 * python/python.c: Likewise.
1631 * record-btrace.c: Likewise.
1632 * record-full.c: Likewise.
1633 * regcache.c: Likewise.
1634 * remote-fileio.c: Likewise.
1635 * remote-mips.c: Likewise.
1636 * remote.c: Likewise.
1637 * rs6000-aix-tdep.c: Likewise.
1638 * rs6000-nat.c: Likewise.
1639 * skip.c: Likewise.
1640 * solib-darwin.c: Likewise.
1641 * solib-dsbt.c: Likewise.
1642 * solib-frv.c: Likewise.
1643 * solib-ia64-hpux.c: Likewise.
1644 * solib-spu.c: Likewise.
1645 * solib-svr4.c: Likewise.
1646 * solib.c: Likewise.
1647 * spu-tdep.c: Likewise.
1648 * stack.c: Likewise.
1649 * stap-probe.c: Likewise.
1650 * symfile-mem.c: Likewise.
1651 * symmisc.c: Likewise.
1652 * target.c: Likewise.
1653 * thread.c: Likewise.
1654 * top.c: Likewise.
1655 * tracepoint.c: Likewise.
1656 * tui/tui-interp.c: Likewise.
1657 * typeprint.c: Likewise.
1658 * utils.c: Likewise.
1659 * valarith.c: Likewise.
1660 * valops.c: Likewise.
1661 * valprint.c: Likewise.
1662 * value.c: Likewise.
1663 * varobj.c: Likewise.
1664 * windows-nat.c: Likewise.
1665 * xml-support.c: Likewise.
1666
484933d1
MR
16672014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1668
1669 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1670 name implies.
1671 (extended_mips16_next_pc): Update accordingly.
1672
ab50adb6
MR
16732014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1674
1675 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1676 function.
1677 (micromips_instruction_is_compact_branch): Likewise.
1678 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1679 or a compact jump, reaching a jump delay slot, or seeing a
1680 second non-prologue instruction.
1681 (micromips_scan_prologue): Also terminate scanning upon seeing a
1682 compact branch or jump, or reaching a branch or jump delay slot.
1683 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1684 or jump delay slot, or seeing a second non-prologue instruction.
1685 (mips32_instruction_has_delay_slot): Retain instruction
1686 examination code only, update arguments accordingly and move
1687 instruction fetch pieces to...
1688 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1689 (micromips_instruction_has_delay_slot): Likewise and to...
1690 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1691 (mips16_instruction_has_delay_slot): Likewise and to...
1692 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1693 (mips_single_step_through_delay): Update accordingly.
1694 (mips_adjust_breakpoint_address): Likewise.
1695
ae790652
MR
16962014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1697
1698 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1699 !mustbe32 also return 1 for 32-bit instructions.
1700 (mips16_instruction_has_delay_slot): Likewise. Add an
1701 explanatory comment.
1702
9b807e7b
MR
17032014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1704
1705 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1706 symbols special.
1707
0d5ed153
MR
17082014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1709
1710 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1711 update comments.
1712 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1713 for the breakpoint's address. Don't preinitialize `placed_size'.
1714 (insert_bp_location): Set `reqstd_address' rather than
1715 `placed_address'.
1716 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1717 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1718 address.
1719 (bkpt_remove_location): Likewise.
1720 (deprecated_insert_raw_breakpoint): Likewise.
1721 (deprecated_remove_raw_breakpoint): Likewise.
1722 (find_single_step_breakpoint): Likewise.
1723 * mem-break.c (default_memory_insert_breakpoint): Use
1724 `reqstd_address' for the breakpoint's address. Don't set
1725 `placed_address' or `placed_size' if breakpoint contents couldn't
1726 have been determined.
1727 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1728 the breakpoint's address.
1729 (remote_insert_hw_breakpoint): Likewise. Don't set
1730 `placed_address' or `placed_size' if breakpoint couldn't have been
1731 set.
1732 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1733 `reqstd_address' for the breakpoint's address.
1734 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1735 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1736 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1737 * microblaze-linux-tdep.c
1738 (microblaze_linux_memory_remove_breakpoint): Likewise.
1739 * monitor.c (monitor_insert_breakpoint): Likewise.
1740 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1741 (procfs_insert_hw_breakpoint): Likewise.
1742 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1743 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1744 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1745 * remote-mips.c (mips_insert_breakpoint): Likewise.
1746 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1747
3e871532
LM
17482014-10-03 Luis Machado <lgustavo@codesourcery.com>
1749
1750 * valops.c (value_assign): Check for bit field assignments
1751 before calling architecture-specific register value
1752 conversion functions.
1753
ec48dc8b
PM
17542014-10-03 Pierre Muller <muller@sourceware.org>
1755
1756 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1757
b57bacec
PA
17582014-10-02 Pedro Alves <palves@redhat.com>
1759
1760 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1761 threads_are_executing.
1762 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1763 describing comment.
1764 * gdbthread.h (threads_are_executing): Declare.
1765 (handle_signal_stop) <random signals>: Don't print about the
1766 signal here if stopping.
1767 (end_stepping_range): Don't notify observers here.
1768 (normal_stop): Update the thread list. If stopped by a random
1769 signal or a stepping range ended, notify observers.
1770 * thread.c (threads_executing): New global.
1771 (init_thread_list): Clear 'threads_executing'.
1772 (set_executing): Set or clear 'threads_executing'.
1773 (threads_are_executing): New function.
1774 (update_threads_executing): New function.
1775 (update_thread_list): Use it.
1776
13fd3ff3
PA
17772014-10-02 Pedro Alves <palves@redhat.com>
1778
1779 PR breakpoints/17431
1780 * breakpoint.c (update_breakpoints_after_exec): Don't create
1781 overlay, longjmp, std terminate nor exception breakpoints here.
1782
32990ada
PA
17832014-10-02 Pedro Alves <palves@redhat.com>
1784
1785 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1786 Adjust comments.
1787 * inferior.c (find_inferior_for_program_space): Give preference to
1788 the current inferior.
1789 * inferior.h (find_inferior_for_program_space): Update comment.
1790 * progspace.c (switch_to_program_space_and_thread): Prefer the
1791 current inferior if it's bound to the program space requested. If
1792 the inferior found doesn't have a PID yet, don't bother looking up
1793 a thread.
1794 * progspace.h (switch_to_program_space_and_thread): Adjust
1795 comment.
1796 * thread.c (any_thread_of_process, any_live_thread_of_process):
1797 Give preference to the current thread.
1798
0fec99e8
PA
17992014-10-01 Pedro Alves <palves@redhat.com>
1800
1801 * breakpoint.c (insert_bp_location): Error out if inserting a
1802 software breakpoint at a read-only address.
1803 * target.c (memory_xfer_check_region): New function, factored out
1804 from ...
1805 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1806 ULONGEST.
1807 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1808 against the memory region attributes.
1809
2ddf4301
SM
18102014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1811
1812 * NEWS: Announce new exit-code field in -list-thread-groups
1813 output.
1814 * inferior.c (exit_inferior_1): Don't clear exit code.
1815 (inferior_appeared): Clear exit code.
1816 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1817 code.
1818
5fdeec1d
PA
18192014-10-01 Pedro Alves <palves@redhat.com>
1820
1821 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1822 GENERATED" along with emacs/vi read-only markers.
1823 * regformats/aarch64.dat: Regenerate.
1824 * regformats/arm-with-iwmmxt.dat: Regenerate.
1825 * regformats/arm-with-neon.dat: Regenerate.
1826 * regformats/arm-with-vfpv2.dat: Regenerate.
1827 * regformats/arm-with-vfpv3.dat: Regenerate.
1828 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1829 * regformats/i386/amd64-avx.dat: Regenerate.
1830 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1831 * regformats/i386/amd64-avx512.dat: Regenerate.
1832 * regformats/i386/amd64-linux.dat: Regenerate.
1833 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1834 * regformats/i386/amd64-mpx.dat: Regenerate.
1835 * regformats/i386/amd64.dat: Regenerate.
1836 * regformats/i386/i386-avx-linux.dat: Regenerate.
1837 * regformats/i386/i386-avx.dat: Regenerate.
1838 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1839 * regformats/i386/i386-avx512.dat: Regenerate.
1840 * regformats/i386/i386-linux.dat: Regenerate.
1841 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1842 * regformats/i386/i386-mmx.dat: Regenerate.
1843 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1844 * regformats/i386/i386-mpx.dat: Regenerate.
1845 * regformats/i386/i386.dat: Regenerate.
1846 * regformats/i386/x32-avx-linux.dat: Regenerate.
1847 * regformats/i386/x32-avx.dat: Regenerate.
1848 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1849 * regformats/i386/x32-avx512.dat: Regenerate.
1850 * regformats/i386/x32-linux.dat: Regenerate.
1851 * regformats/i386/x32.dat: Regenerate.
1852 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1853 * regformats/mips-dsp-linux.dat: Regenerate.
1854 * regformats/mips-linux.dat: Regenerate.
1855 * regformats/mips64-dsp-linux.dat: Regenerate.
1856 * regformats/mips64-linux.dat: Regenerate.
1857 * regformats/nios2-linux.dat: Regenerate.
1858 * regformats/rs6000/powerpc-32.dat: Regenerate.
1859 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1860 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1861 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1862 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1863 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1864 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1865 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1866 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1867 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1868 * regformats/s390-linux32.dat: Regenerate.
1869 * regformats/s390-linux32v1.dat: Regenerate.
1870 * regformats/s390-linux32v2.dat: Regenerate.
1871 * regformats/s390-linux64.dat: Regenerate.
1872 * regformats/s390-linux64v1.dat: Regenerate.
1873 * regformats/s390-linux64v2.dat: Regenerate.
1874 * regformats/s390-te-linux64.dat: Regenerate.
1875 * regformats/s390x-linux64.dat: Regenerate.
1876 * regformats/s390x-linux64v1.dat: Regenerate.
1877 * regformats/s390x-linux64v2.dat: Regenerate.
1878 * regformats/s390x-te-linux64.dat: Regenerate.
1879 * regformats/tic6x-c62x-linux.dat: Regenerate.
1880 * regformats/tic6x-c62x.dat: Regenerate.
1881 * regformats/tic6x-c64x-linux.dat: Regenerate.
1882 * regformats/tic6x-c64x.dat: Regenerate.
1883 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1884 * regformats/tic6x-c64xp.dat: Regenerate.
1885
db74e4ba
PA
18862014-10-01 Pedro Alves <palves@redhat.com>
1887
1888 * features/Makefile: Update comments.
1889 (XMLTOC): List all xml files we build C files from.
1890 (clean-cfiles): New rule.
1891
d63f2f84
PA
18922014-10-01 Pedro Alves <palves@redhat.com>
1893
1894 * features/i386/amd64-avx512-linux.c: Regenerate.
1895 * features/i386/amd64-avx512.c: Regenerate.
1896 * features/i386/x32-avx512-linux.c: Regenerate.
1897 * features/i386/x32-avx512.c: Regenerate.
1898
20ad026d
PA
18992014-10-01 Pedro Alves <palves@redhat.com>
1900
1901 * features/Makefile (WHICH): Remove arm-with-m,
1902 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1903
acc9fe45
PA
19042014-10-01 Pedro Alves <palves@redhat.com>
1905
1906 * features/Makefile (clean): New rule.
1907
e001e535
PA
19082014-10-01 Pedro Alves <palves@redhat.com>
1909
1910 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1911 (zmm14h): Add missing end quotes.
1912
bdc14417
PA
19132014-10-01 Pedro Alves <palves@redhat.com>
1914
1915 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1916 * features/aarch64.c: Regenerate.
1917
d83ad864
DB
19182014-09-30 Don Breazeal <donb@codesourcery.com>
1919
1920 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1921 code so as to work with follow_fork_inferior.
1922 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1923 (inf_ttrace_create_inferior): Remove reference to
1924 inf_ttrace_vfork_ppid.
1925 (inf_ttrace_attach): Ditto.
1926 (inf_ttrace_detach): Ditto.
1927 (inf_ttrace_kill): Use current_inferior instead of
1928 inf_ttrace_vfork_ppid.
1929 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1930 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1931 inferior away from the parent.
1932 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1933 target_follow_fork.
1934 (follow_fork_inferior): New function.
1935 (follow_inferior_reset_breakpoints): Make function static.
1936 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1937 * linux-nat.c (linux_child_follow_fork): Move target-independent
1938 code to infrun.c:follow_fork_inferior.
1939
29082443
AA
19402014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1941
1942 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1943 * gdbarch.c: Regenerate.
1944 * gdbarch.h: Likewise.
1945 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1946 gdbarch method 'regset_from_core_section'.
1947 (get_core_register_section): Remove handling for the case that
1948 regset == NULL and regset_from_core_section is defined.
1949 (get_core_registers): Drop check for deleted method.
1950 * procfs.c (procfs_do_thread_registers): Adjust comment.
1951
f968fe80
AA
19522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1953
1954 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1955 (linux_nat_make_corefile_notes): Remove.
1956 (linux_target_install_ops): Do not set target method
1957 'make_corefile_notes'.
1958 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1959 Remove field.
1960 (linux_corefile_thread_callback): Instead of args->collect, call
1961 linux_collect_thread_registers.
1962 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1963 NULL unless there is a regset iterator.
1964 (linux_make_corefile_notes_1): Remove.
1965 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1966 by linux_make_corefile_notes.
1967 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1968
174ad59a
AA
19692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1970
1971 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1972 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1973 Remove.
1974 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1975
97094034
AA
19762014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1977
1978 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1979 (xtensa_iterate_over_regset_sections): New.
1980 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1981
f73d3ce7
AA
19822014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1983
1984 * vax-tdep.c (vax_regset_from_core_section): Remove.
1985 (vax_iterate_over_regset_sections): New.
1986 (vax_gdbarch_init): Adjust gdbarch initialization.
1987
cb24567a
AA
19882014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1989
1990 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1991 (tilegx_regset_from_core_section): Remove.
1992 (tilegx_iterate_over_regset_sections): New.
1993 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1994
e5139de8
AA
19952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1996
1997 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1998 (sparc_iterate_over_regset_sections): New.
1999 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2000 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2001 targets.
2002 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2003 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2004 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2005 target method 'make_corefile_notes'.
2006
c6d41a6f
AA
20072014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2008
2009 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2010 'sizeof_gregset' and 'sizeof_fpregset'.
2011 * sh-tdep.c (sh_regset_from_core_section): Remove.
2012 (sh_iterate_over_regset_sections): New.
2013 (sh_gdbarch_init): Adjust gdbarch initialization.
2014 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2015 sizeof_fpregset.
2016 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2017 'sizeof_gregset'.
2018
9845a0b5
AA
20192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2020
2021 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2022 (score7_linux_iterate_over_regset_sections): New.
2023 (score_gdbarch_init): Adjust gdbarch initialization.
2024
23ea9aeb
AA
20252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2026
2027 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2028 FreeBSD targets.
2029 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2030 method 'make_corefile_notes'.
2031 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2032 (ppcfbsd_regset_from_core_section): Remove.
2033 (ppcfbsd_iterate_over_regset_sections): New.
2034 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2035 initialization.
2036 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2037 (ppcnbsd_iterate_over_regset_sections): New.
2038 (ppcnbsd_init_abi): Adjust.
2039 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2040 (ppcobsd_iterate_over_regset_sections): New.
2041 (ppcobsd_init_abi): Adjust.
2042 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2043 (rs6000_aix_iterate_over_regset_sections): New.
2044 (rs6000_aix_init_osabi): Adjust.
2045
c5b8d704
AA
20462014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2047
2048 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2049 (nios2_regset_from_core_section): Remove.
2050 (nios2_iterate_over_regset_sections): New.
2051 (nios2_linux_init_abi): Adjust gdbarch initialization.
2052
3636e608
AA
20532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2054
2055 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2056 (am33_iterate_over_regset_sections): New.
2057 (am33_linux_init_osabi): Adjust gdbarch initialization.
2058
d4036235
AA
20592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2060
2061 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2062 (mips_linux_iterate_over_regset_sections): New.
2063 (mips_linux_init_abi): Adjust gdbarch initialization.
2064 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2065 (mips64obsd_iterate_over_regset_sections): New.
2066 (mips64obsd_init_abi): Adjust.
2067 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2068 (mipsnbsd_iterate_over_regset_sections): New.
2069 (mipsnbsd_init_abi): Adjust.
2070
b61ddd6e
AA
20712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2072
2073 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2074 (m88k_iterate_over_regset_sections): New.
2075 (m88k_gdbarch_init): Adjust gdbarch initialization.
2076
55a2906a
AA
20772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2078
2079 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2080 (ia64_linux_iterate_over_regset_sections): New.
2081 (ia64_linux_init_abi): Adjust gdbarch initialization.
2082
022c98ab
AA
20832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2084
2085 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2086 (m68kbsd_iterate_over_regset_sections): New.
2087 (m68kbsd_init_abi): Adjust gdbarch initialization.
2088 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2089 (m68k_linux_iterate_over_regset_sections): New.
2090 (m68k_linux_init_abi): Adjust gdbarch initialization.
2091
5fac247f
AA
20922014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2093
2094 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2095 (m32r_linux_regset_from_core_section): Remove.
2096 (m32r_linux_iterate_over_regset_sections): New.
2097 (m32r_linux_init_abi): Adjust gdbarch initialization.
2098
490496c3
AA
20992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2100
2101 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2102 (amd64obsd_iterate_over_regset_sections): New.
2103 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2104 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2105 Remove.
2106 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2107 regset_from_core_section initialization.
2108 * i386-tdep.c (i386_regset_from_core_section): Remove.
2109 (i386_iterate_over_regset_sections): New.
2110 (i386_gdbarch_init): Adjust gdbarch initialization.
2111 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2112 (i386_iterate_over_regset_sections): New prototype.
2113 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2114 Remove.
2115 (i386obsd_aout_iterate_over_regset_sections): New.
2116 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2117 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2118 targets.
2119 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2120 (amd64fbsd_init_abi): Call fbsd_init_abi.
2121 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2122 (i386fbsd4_init_abi): Call fbsd_init_abi.
2123 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2124 target method 'make_corefile_notes'.
2125 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2126
50c5eb53
AA
21272014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2128
2129 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2130 (hppa_hpux_iterate_over_regset_sections): New.
2131 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2132 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2133 (hppa_linux_iterate_over_regset_sections): New.
2134 (hppa_linux_init_abi): Adjust.
2135 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2136 (hppanbsd_iterate_over_regset_sections): New.
2137 (hppanbsd_init_abi): Adjust.
2138 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2139 (hppaobsd_iterate_over_regset_sections): New.
2140 (hppaobsd_init_abi): Adjust.
2141
66afae4f
AA
21422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2143
2144 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2145 (frv_linux_iterate_over_regset_sections): New.
2146 (frv_linux_init_abi): Adjust gdbarch initialization.
2147
ed09174e
AA
21482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2149
2150 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2151 (armbsd_iterate_over_regset_sections): New prototype.
2152 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2153 (armbsd_iterate_over_regset_sections): New.
2154 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2155 initialization.
2156
dff2166e
AA
21572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2158
2159 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2160 (alpha_linux_iterate_over_regset_sections): New.
2161 (alpha_linux_init_abi): Adjust gdbarch initialization.
2162 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2163 prototype.
2164 (alphanbsd_iterate_over_regset_sections): New prototype.
2165
4108500a
AA
21662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2167
2168 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2169 Remove.
2170 (aarch64_linux_iterate_over_regset_sections): New.
2171 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2172
a904c024
AA
21732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2174
2175 * fbsd-tdep.c: New file.
2176 * fbsd-tdep.h: New file.
2177 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2178 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2179 (ALLDEPFILES): Add fbsd-tdep.c.
2180
8f0435f7
AA
21812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2182
2183 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2184 parameter.
2185 * gdbarch.h: Regenerate.
2186 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2187 iterator.
2188 (get_core_register_section): Add parameter 'regset' and use it, if
2189 set. Add parameter 'min_size' and verify the bfd section size
2190 against it.
2191 (get_core_registers_cb): Add parameter 'regset' and pass it to
2192 get_core_register section. For the "standard" register sections
2193 ".reg" and ".reg2", set an appropriate default for human_name.
2194 (get_core_registers): Don't abort when the gdbarch has an iterator
2195 but no regset_from_core_section. Add NULL/0 for parameters
2196 'regset'/'min_size' in calls to get_core_register_section.
2197 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2198 'regset' and use it instead of calling the
2199 regset_from_core_section gdbarch method.
2200 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2201 * i386-tdep.c (i386_supply_xstateregset)
2202 (i386_collect_xstateregset, i386_xstateregset): Moved to
2203 i386-linux-tdep.c.
2204 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2205 .reg-xstate.
2206 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2207 core file support only if the regset iterator hasn't been set.
2208 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2209 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2210 Moved from i386-tdep.c and renamed to *_linux*.
2211 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2212 each callback invocation. Allow any .reg-xstate size when reading
2213 from a core file.
2214 * amd64-tdep.c (amd64_supply_xstateregset)
2215 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2216 amd64-linux-tdep.c.
2217 (amd64_regset_from_core_section): Remove.
2218 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2219 install an amd64-specific regset_from_core_section gdbarch method.
2220 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2221 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2222 Moved from amd64-tdep.c and renamed to *_linux*.
2223 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2224 to each callback invocation. Allow any .reg-xstate size when
2225 reading from a core file.
2226 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2227 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2228 each callback invocation.
2229 (arm_linux_init_abi): No longer set the regset_from_core_section
2230 gdbarch method.
2231 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2232 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2233 each callback invocation.
2234 (ppc_linux_init_abi): No longer set the regset_from_core_section
2235 gdbarch method.
2236 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2237 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2238 (s390_regset_from_core_section): Remove.
2239 (s390_iterate_over_regset_sections): Add regset parameter to each
2240 callback invocation.
2241 (s390_gdbarch_init): No longer set the regset_from_core_section
2242 gdbarch method. Drop initialization of deleted tdep fields.
2243
5aa82d05
AA
22442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2245
2246 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2247 (amd64_linux_iterate_over_regset_sections): New.
2248 (amd64_linux_init_abi_common): Don't install the regset section
2249 list, but the new iterator in gdbarch.
2250 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2251 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2252 (arm_linux_iterate_over_regset_sections): ...here. New function.
2253 (arm_linux_init_abi): Set iterator instead of section list.
2254 * corelow.c (get_core_registers_cb): New function, logic moved
2255 from...
2256 (get_core_registers): ...loop body here. Use new iterator method
2257 instead of walking through the regset section list.
2258 * gdbarch.sh: Remove 'core_regset_sections'. New method
2259 'iterate_over_regset_sections'. New typedef
2260 'iterate_over_regset_sections_cb'.
2261 * gdbarch.c: Regenerate.
2262 * gdbarch.h: Likewise.
2263 * i386-linux-tdep.c (i386_linux_regset_sections)
2264 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2265 Remove.
2266 (i386_linux_iterate_over_regset_sections): New.
2267 (i386_linux_init_abi): Don't choose a regset section list, but
2268 install new iterator in gdbarch.
2269 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2270 (linux_collect_regset_section_cb): New function, logic moved
2271 from...
2272 (linux_collect_thread_registers): ...loop body here. Use iterator
2273 method instead of walking through list.
2274 (linux_make_corefile_notes_1): Check for presence of iterator
2275 method instead of regset section list.
2276 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2277 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2278 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2279 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2280 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2281 (ppc_linux_init_abi): Don't choose from above regset section
2282 lists, but install new iterator in gdbarch.
2283 * regset.h (struct core_regset_section): Remove.
2284 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2285 have_linux_v1, have_linux_v2, and have_tdb.
2286 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2287 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2288 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2289 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2290 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2291 (s390_iterate_over_regset_sections): ...here. New function. Use
2292 new tdep fields.
2293 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2294 regset section lists, but install new iterator.
2295
2eca4a8d
JK
22962014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2297
2298 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2299
a73c2b56
SM
23002014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2301
2302 * progspace.c (print_program_space): Don't prune program spaces
2303 before printing them.
2304
03d46957
PA
23052014-09-25 Pedro Alves <palves@redhat.com>
2306
2307 * infrun.c (user_visible_resume_ptid): Don't check
2308 singlestep_breakpoints_inserted_p.
2309
e558d7c1
PA
23102014-09-25 Pedro Alves <palves@redhat.com>
2311
2312 * breakpoint.c (should_be_inserted): Add debug output.
2313
7f89fd65
PA
23142014-09-25 Pedro Alves <palves@redhat.com>
2315
2316 * infrun.c (stepping_past_instruction_at)
2317 (clear_exit_convenience_vars): Point at infrun.h instead of
2318 inferior.h.
2319 (handle_signal_stop): Fix typo.
2320
b7576e5c
YQ
23212014-09-24 Yao Qi <yao@codesourcery.com>
2322
2323 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2324 bitmask.
2325
9a6cf368
GB
23262014-09-22 Gary Benson <gbenson@redhat.com>
2327
2328 * target.c (target_stop): Updated comment.
2329
03f4463b
GB
23302014-09-22 Gary Benson <gbenson@redhat.com>
2331
2332 * target/target.h (target_stop_ptid): Renamed as...
2333 (target_stop_and_wait): New function. Updated comment.
2334 All uses updated.
2335 (target_continue_ptid): Renamed as...
2336 (target_continue_no_signal): New function. Updated comment.
2337 All uses updated.
2338
a25a5a45
PA
23392014-09-22 Pedro Alves <palves@redhat.com>
2340
2341 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2342 and "auto" merged.
2343 * breakpoint.c (enum ugll_insert_mode): New enum.
2344 (always_inserted_mode): Now a plain boolean.
2345 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2346 (breakpoints_always_inserted_mode): Delete.
2347 (breakpoints_should_be_inserted_now): New function.
2348 (insert_breakpoints): Pass UGLL_INSERT to
2349 update_global_location_list instead of calling
2350 insert_breakpoint_locations manually.
2351 (create_solib_event_breakpoint_1): New, factored out from ...
2352 (create_solib_event_breakpoint): ... this.
2353 (create_and_insert_solib_event_breakpoint): Use
2354 create_solib_event_breakpoint_1 instead of calling
2355 insert_breakpoint_locations manually.
2356 (update_global_location_list): Change parameter type from boolean
2357 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2358 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2359 (update_global_location_list_nothrow): Change parameter type from
2360 boolean to enum ugll_insert_mode.
2361 (_initialize_breakpoint): "breakpoint always-inserted" option is
2362 now a boolean command. Update help text.
2363 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2364 (breakpoints_should_be_inserted_now): New declaration.
2365 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2366 Remove breakpoints_always_inserted_mode check.
2367 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2368 * remote.c (remote_start_remote): Likewise.
2369
04086b45
PA
23702014-09-22 Pedro Alves <palves@redhat.com>
2371
2372 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2373 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2374 Instead, pass UGLL_INSERT to update_global_location_list.
2375 (update_global_location_list): Change parameter type from boolean
2376 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2377 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2378 (create_solib_event_breakpoint_1): New, factored out from ...
2379 (create_solib_event_breakpoint): ... this.
2380 (create_and_insert_solib_event_breakpoint): Use
2381 create_solib_event_breakpoint_1 instead of calling
2382 insert_breakpoint_locations manually.
2383 (update_global_location_list): Handle UGLL_INSERT.
2384
44702360
PA
23852014-09-22 Pedro Alves <palves@redhat.com>
2386
2387 * breakpoint.c (enum ugll_insert_mode): New enum.
2388 (update_global_location_list)
2389 (update_global_location_list_nothrow): Change parameter type from
2390 boolean to enum ugll_insert_mode. All callers adjusted.
2391
93c6145a
JB
23922014-09-19 Joel Brobecker <brobecker@adacore.com>
2393
2394 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2395 SystemTap support in GDB.
2396
89a5711c
DB
23972014-09-19 Don Breazeal <donb@codesourcery.com>
2398
2399 * linux-nat.c (linux_handle_extended_wait): Call
2400 linux_ptrace_get_extended_event.
2401 (wait_lwp): Call linux_is_extended_waitstatus.
2402 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2403 and linux_is_extended_waitstatus.
2404 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2405 linux_ptrace_get_extended_event.
2406 (linux_ptrace_get_extended_event): New function.
2407 (linux_is_extended_waitstatus): New function.
2408 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2409 (linux_is_extended_waitstatus): New declarations.
2410
c3b7b696
YQ
24112014-09-19 Yao Qi <yao@codesourcery.com>
2412
2413 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2414 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2415 comments. Callers update.
2416 (dwarf_decode_lines): Likewise.
2417 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2418 comments. Skip the line table if 'lowpc' is greater than
2419 'address'. Don't check
2420 dwarf2_per_objfile->has_section_at_zero.
2421
2b4fd423
DE
24222014-09-18 Doug Evans <dje@google.com>
2423
2424 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2425 * python/py-symtab.c (stpy_get_producer): New function.
2426 (symtab_object_getset): Add "producer" attribute.
2427
5e43d467
UW
24282014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2429
2430 PR gdb/17384
2431 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2432 (do_captured_read_memory_integer): Remove.
2433 (safe_read_memory_integer): Use target_read_memory directly instead
2434 of catching errors in do_captured_read_memory_integer.
2435
04e79979
MR
24362014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2437
2438 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2439 not gdb/doc.
2440
76aeec5b
SDJ
24412014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2442
2443 * objc-lang.c (find_implementation_from_class): Remove dead code.
2444
2f693f9d
SDJ
24452014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2446
2447 PR cli/7233
2448 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2449 "fprintf_unfiltered (gdb_stdlog...)".
2450
bb9d5f81
PP
24512014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2452
2453 PR breakpoints/12526
2454 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2455 val_bitsize.
2456 * breakpoint.c (watch_command_1): Use these fields to retain
2457 bitfield information.
2458 (extract_bitfield_from_watchpoint_value): New function.
2459 (watchpoint_check): Use it.
2460 (update_watchpoint): Use it. Optimize the address and length of a
2461 HW watchpoint pointing to a bitfield.
2462 * value.h (unpack_value_bitfield): New prototype.
2463 * value.c (unpack_value_bitfield): Make extern.
2464
05db5edd
ST
24652014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2466
2467 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2468 x86-dregs.o.
2469 * gnu-nat.c (inf_threads): New function.
2470 * gnu-nat.h (inf_threads_ftype): New typedef.
2471 (inf_threads): New declaration.
2472 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2473 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2474 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2475 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2476 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2477 (i386_gnu_dr_get_control): New functions.
2478 (reg_addr): New structure.
2479 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2480 i386 debugging register hooks.
2481 * NEWS: Mention this.
2482
5a578da5
OJ
24832014-08-13 Omair Javaid <omair.javaid@linaro.org>
2484
2485 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2486 vector data transfer instructions.
2487 (arm_record_coproc_data_proc): Updated.
2488
f20f80dd
OJ
24892014-08-13 Omair Javaid <omair.javaid@linaro.org>
2490
2491 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2492 arm_record_exreg_ld_st_insn.
2493 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2494 load/store insns.
2495
851f26ae
OJ
24962014-08-13 Omair Javaid <omair.javaid@linaro.org>
2497
2498 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2499 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2500 processing instructions.
2501
1e1b6563
OJ
25022014-08-13 Omair Javaid <omair.javaid@linaro.org>
2503
2504 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2505 for advance SIMD struct ld/st insn.
2506 (thumb2_record_decode_insn_handler): Replace stub handler with
2507 thumb2_record_asimd_struct_ld_st.
2508
60cc5e93
OJ
25092014-08-13 Omair Javaid <omair.javaid@linaro.org>
2510
2511 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2512 for asimd, vfp and coprocessor insns.
2513 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2514 and coprocessor insns.
2515 (thumb2_record_coproc_insn): New function.
2516 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2517 handlers.
2518 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2519 opcode 110 insns.
2520
81219e53
DE
25212014-09-13 Doug Evans <xdje42@gmail.com>
2522
2523 * NEWS: Mention new "queue-signal" command.
2524 * infcmd.c (queue_signal_command): New function.
2525 (_initialize_infcmd): Add new queue-signal command.
2526
d36bf488
DE
25272014-09-13 Doug Evans <xdje42@gmail.com>
2528
2529 * linux-nat.c (wait_lwp): Add debugging printf.
2530 (linux_nat_wait_1): Ditto.
2531
f37f681c
PA
25322014-09-12 Pedro Alves <palves@redhat.com>
2533
2534 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2535 (create_and_insert_solib_event_breakpoint): New functions.
2536 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2537 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2538 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2539 (remove_dbx_link_breakpoint): Delete function.
2540 (insert_dbx_link_bpt_in_file): Use
2541 create_and_insert_solib_event_breakpoint instead of
2542 deprecated_insert_raw_breakpoint.
2543 (procfs_wait): Don't check whether we hit __dbx_link here.
2544 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2545 here.
2546 * solib-irix.c (base_breakpoint): Delete global.
2547 (disable_break): Delete function.
2548 (enable_break): Use create_solib_event_breakpoint
2549 instead of deprecated_insert_raw_breakpoint.
2550 (irix_solib_handle_event): New function.
2551 (irix_solib_create_inferior_hook): Don't run the target or disable
2552 the mapping-complete breakpoint here.
2553 (_initialize_irix_solib): Install irix_solib_handle_event as
2554 so_ops->handle_event hook.
2555
9d9bf2df
EBM
25562014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2557 Ulrich Weigand  <uweigand@de.ibm.com>
2558
2559 PR tdep/17379
2560 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2561 instead of read_memory_unsigned_integer.
2562
b006a80e
GB
25632014-09-12 Gary Benson <gbenson@redhat.com>
2564
2565 * nat/linux-waitpid.c: Include common-defs.h.
2566 [GDBSERVER]: Add FIXME comment.
2567 [!GDBSERVER]: Don't include defs.h or signal.h.
2568 (linux_debug) [!GDBSERVER]: Remove empty block.
2569
296b1496
GB
25702014-09-12 Gary Benson <gbenson@redhat.com>
2571
2572 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2573 Don't include defs.h or server.h.
2574
53f81362
GB
25752014-09-12 Gary Benson <gbenson@redhat.com>
2576
2577 * nat/linux-btrace.c: Include common-defs.h.
2578 Don't include defs.h, server.h or gdbthread.h.
2579 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2580
727605ca
GB
25812014-09-12 Gary Benson <gbenson@redhat.com>
2582
2583 * common/agent.c: Include common-defs.h.
2584 Don't include defs.h or server.h.
2585 * common/buffer.c: Likewise.
2586 * common/common-debug.c: Likewise.
2587 * common/common-utils.c: Likewise.
2588 * common/errors.c: Likewise.
2589 * common/filestuff.c: Likewise.
2590 * common/format.c: Likewise.
2591 * common/gdb_vecs.c: Likewise.
2592 * common/print-utils.c: Likewise.
2593 * common/ptid.c: Likewise.
2594 * common/rsp-low.c: Likewise.
2595 * common/signals.c: Likewise.
2596 * common/vec.c: Likewise.
2597 * common/xml-utils.c: Likewise.
2598 * nat/linux-osdata.c: Likewise.
2599 * nat/linux-procfs.c: Likewise.
2600 * nat/linux-ptrace.c: Likewise.
2601 * nat/mips-linux-watch.c: Likewise.
2602 * target/waitstatus.c: Likewise.
2603
361c8ade
GB
26042014-09-12 Tom Tromey <tromey@redhat.com>
2605 Gary Benson <gbenson@redhat.com>
2606
2607 * common/common-regcache.h: New file.
2608 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2609 * regcache.h: Include common-regcache.h.
2610 (regcache_read_pc): Don't declare.
2611 * regcache.c (get_thread_regcache_for_ptid): New function.
2612 * nat/linux-btrace.c: Don't include regcache.h.
2613 Include common-regcache.h.
2614 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2615
a01cbb49
TS
26162014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2617
2618 * regcache.h (struct regset): Declare.
2619
98880d46
PA
26202014-09-11 Pedro Alves <palves@redhat.com>
2621
2622 PR gdb/17347
2623 * main.c: Include "infrun.h".
2624 (catch_command_errors, catch_command_errors_const): Wait for the
2625 foreground command to complete.
2626 * top.c (maybe_wait_sync_command_done): New function, factored out
2627 from ...
2628 (maybe_wait_sync_command_done): ... here.
2629 * top.h (maybe_wait_sync_command_done): New declaration.
2630
bd9269f7
GB
26312014-09-11 Tom Tromey <tromey@redhat.com>
2632 Gary Benson <gbenson@redhat.com>
2633
2634 * common/symbol.h: New file.
2635 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2636 * minsyms.c (find_minimal_symbol_address): New function.
2637 * common/agent.c: Include common/symbol.h.
2638 [!GDBSERVER]: Don't include objfiles.h.
2639 (agent_look_up_symbols): Use find_minimal_symbol_address.
2640
f8c1d06b
GB
26412014-09-11 Gary Benson <gbenson@redhat.com>
2642
2643 * target/target.h (target_stop_ptid, target_continue_ptid):
2644 Declare.
2645 * target.c (target_stop_ptid, target_continue_ptid): New
2646 functions.
2647 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2648 (agent_run_command): Always use target_stop_ptid and
2649 target_continue_ptid.
2650
721ec300
GB
26512014-09-11 Tom Tromey <tromey@redhat.com>
2652 Gary Benson <gbenson@redhat.com>
2653
2654 * target/target.h: New file.
2655 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2656 * target.h: Include target/target.h.
2657 (target_read_memory, target_write_memory): Don't declare.
2658 * target.c (target_read_uint32): New function.
2659 * common/agent.c: Include target/target.h.
2660 [!GDBSERVER]: Don't include target.h.
2661 (helper_thread_id): Type changed to uint32_t.
2662 (agent_get_helper_thread_id): Use target_read_uint32.
2663 (agent_run_command): Always use target_read_memory and
2664 target_write_memory.
2665 (agent_capability): Type changed to uint32_t.
2666 (agent_capability_check): Use target_read_uint32.
2667
c5e92cca
GB
26682014-09-11 Gary Benson <gbenson@redhat.com>
2669
2670 * common/common-debug.h (show_debug_regs): Declare.
2671 * common/common-debug.c (show_debug_regs): Define.
2672 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2673 all uses with show_debug_regs. Replace all uses that considered
2674 debug_hw_points as a multi-value integer with straight boolean
2675 uses.
2676 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2677 with show_debug_regs.
2678 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2679 all uses with show_debug_regs.
2680 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2681 uses with show_debug_regs.
2682
eeef931a
UW
26832014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2684
2685 * findvar.c (address_from_register): Handle targets requiring
2686 a special conversion routine even for plain pointer types.
2687
8efa9855
UW
26882014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2689
2690 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2691 (store_register): Do not call exec_one_dummy_insn.
2692
eb479039
JB
26932014-09-10 Joel Brobecker <brobecker@adacore.com>
2694
2695 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2696 dereference it first. Use value_enclosing_type instead of
2697 value_type.
2698 (ada_array_length): Likewise.
2699
deede10c
JB
27002014-09-10 Joel Brobecker <brobecker@adacore.com>
2701
2702 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2703 Adjust function implementation and documentation accordingly.
2704 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2705 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2706 Update call to ada_value_ptr_subscript.
2707
7828a5f5
JB
27082014-09-10 Joel Brobecker <brobecker@adacore.com>
2709
2710 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2711 instead of VAL's type.
2712
35782f14
JB
27132014-09-10 Joel Brobecker <brobecker@adacore.com>
2714
2715 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2716
d342a0da
DE
27172014-09-09 Doug Evans <xdje42@gmail.com>
2718
2719 PR guile/17367
2720 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2721 last parameter to pkg-config, not first.
2722 * configure.ac: Pass --with-guile provided pkg-config path to
2723 GDB_GUILE_PROGRAM_NAMES.
2724 * configure: Regenerate.
2725
b4a3d263
GKB
27262014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2727
2728 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2729 Bertazi".
2730
6e466374
MR
27312014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2732
2733 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2734 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2735 the list of sections determining GDB_OSABI_IRIX.
2736
a1ada89a
JH
27372014-09-09 James Hogan <james.hogan@imgtec.com>
2738
2739 * MAINTAINERS (Write After Approval): Add "James Hogan".
2740
86db008d
JH
27412014-09-09 James Hogan <james.hogan@imgtec.com>
2742
2743 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2744
72fde3df
JB
27452014-09-09 Joel Brobecker <brobecker@adacore.com>
2746
2747 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2748
92d8d229
DE
27492014-09-08 Doug Evans <xdje42@gmail.com>
2750
2751 PR 17247
2752 * guile.c: #include <signal.h>.
2753 (_initialize_guile): Block SIGCHLD while initializing Guile.
2754
2755 Replaces the following, which is reverted.
2756
2757 2014-07-26 Doug Evans <xdje42@gmail.com>
2758
2759 PR 17185
2760 * configure.ac: Add check for header gc/gc.h.
2761 Add check for function setenv.
2762 * configure: Regenerate.
2763 * config.in: Regenerate.
2764 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2765
d81412aa
DE
27662014-09-08 Doug Evans <xdje42@gmail.com>
2767
2768 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2769 with named constant. Fix style of pointer comparison.
2770 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2771
a9f116cb
GKB
27722014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2773
2774 PR gdb/17035
2775 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2776 decide whether we display the command on "show user".
2777 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2778 printing command name.
2779 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2780 * cli/cli-decode.c (cli_user_command_p): Create helper function
2781 to verify whether cmd_list_element is a user-defined command.
2782
c75bd3a2
JK
27832014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2784
2785 PR python/17355
2786 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2787 Fix goto out of TRY_CATCH.
2788
faa42425 27892014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2790 Tom Tromey <tromey@redhat.com>
faa42425
DE
2791
2792 PR 15276
2793 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2794 $_any_caller_matches.
2795 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2796 * python/lib/gdb/function/caller_is.py: New file.
2797
0d41ba00
DE
27982014-09-06 Doug Evans <xdje42@gmail.com>
2799
2800 * infcmd.c (program_info): Fix typo.
2801
474ca4f6
SDJ
28022014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2803
2804 PR gdb/17235
2805 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2806 'number'. New variable 'has_digit'. Rewrite code to deal with
2807 subexpressions on SDT probes.
2808
ebf13736
PA
28092014-09-04 Pedro Alves <palves@redhat.com>
2810
2811 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2812 the input is only one character long.
2813
eb0b0463
SDJ
28142014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2815
2816 PR fortran/17237
2817 * f-valprint.c (f_val_print): Specify the correct print option to
2818 use when printing integer values.
2819
5ee44bfa
GB
28202014-09-04 Gary Benson <gbenson@redhat.com>
2821
2822 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2823 Remove code to cope with LWPs wrapped as PIDs.
2824 Add assertions to ensure no wrapped LWPs are passed.
2825
4875ffdb
PA
28262014-09-04 Pedro Alves <palves@redhat.com>
2827
2828 * value.c (value_ranges_copy_adjusted): New function, factored out
2829 from ...
2830 (value_contents_copy_raw): ... here.
2831 (unpack_value_bits_as_long_1): Rename back to ...
2832 (unpack_bits_as_long): ... this. Remove 'original_value' and
2833 'result' parameters. Change return type to LONGEST.
2834 (unpack_value_bits_as_long): Delete.
2835 (unpack_value_field_as_long_1): Delete.
2836 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2837 (unpack_value_bitfield): New function.
2838 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2839 (value_fetch_lazy): Use unpack_value_bitfield.
2840 * value.h (unpack_value_bits_as_long): Delete declaration.
2841
5f3b99cf
SS
28422014-09-03 Sasha Smundak <asmundak@google.com>
2843
2844 * python/py-frame.c (frapy_read_register): New function.
2845
ac740bc7
JH
28462014-09-03 James Hogan <james.hogan@imgtec.com>
2847
2848 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2849 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2850
7d793aa9
SDJ
28512014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2852
2853 PR python/16699
2854 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2855 function.
2856 (add_cmd): Set "completer_handle_brkchars" to NULL.
2857 * cli/cli-decode.h (struct cmd_list_element)
2858 <completer_handle_brkchars>: New field.
2859 * command.h (completer_ftype_void): New typedef.
2860 (set_cmd_completer_handle_brkchars): New prototype.
2861 * completer.c (set_gdb_completion_word_break_characters): New
2862 function.
2863 (complete_line_internal): Call "completer_handle_brkchars"
2864 callback from command.
2865 * completer.h: Include "command.h".
2866 (set_gdb_completion_word_break_characters): New prototype.
2867 * python/py-cmd.c (cmdpy_completer_helper): New function.
2868 (cmdpy_completer_handle_brkchars): New function.
2869 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2870 (cmdpy_init): Set completer_handle_brkchars to
2871 cmdpy_completer_handle_brkchars.
2872
97ea6506
GB
28732014-09-03 Gary Benson <gbenson@redhat.com>
2874
2875 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2876 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2877 Loop conditions changed to equivalent form.
2878 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2879 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2880 ALL_DEBUG_ADDRESS_REGISTERS.
2881
d1437815
JB
28822014-09-03 Joel Brobecker <brobecker@adacore.com>
2883
2884 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2885 description fix.
2886
9b94fcf1
DE
28872014-09-02 Doug Evans <dje@google.com>
2888
2889 * typeprint.c (find_global_typedef): Fix comment.
2890
df7e5265
GB
28912014-09-02 Gary Benson <gbenson@redhat.com>
2892
2893 * i386-nat.h: Renamed as...
2894 * x86-nat.h: New file. All type, function and variable name
2895 prefixes changed from "i386_" to "x86_". All references updated.
2896 * i386-nat.c: Renamed as...
2897 * x86-nat.c: New file. All type, function and variable name
2898 prefixes changed from "i386_" to "x86_". All references updated.
2899 * common/i386-xstate.h: Renamed as...
2900 * common/x86-xstate.h: New file. All type, function and variable
2901 name prefixes changed from "i386_" to "x86_". All references
2902 updated.
2903 * nat/i386-cpuid.h: Renamed as...
2904 * nat/x86-cpuid.h: New file. All type, function and variable name
2905 prefixes changed from "i386_" to "x86_". All references updated.
2906 * nat/i386-gcc-cpuid.h: Renamed as...
2907 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2908 name prefixes changed from "i386_" to "x86_". All references
2909 updated.
2910 * nat/i386-dregs.h: Renamed as...
2911 * nat/x86-dregs.h: New file. All type, function and variable name
2912 prefixes changed from "i386_" to "x86_". All references updated.
2913 * nat/i386-dregs.c: Renamed as...
2914 * nat/x86-dregs.c: New file. All type, function and variable name
2915 prefixes changed from "i386_" to "x86_". All references updated.
2916
1c3569d4
MR
29172014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2918
2919 * varobj.c (_initialize_varobj): Move to the end of file.
2920
ff55e1b5
GB
29212014-08-29 Gary Benson <gbenson@redhat.com>
2922
2923 * common/common-exceptions.h: New file.
2924 * common/common-exceptions.c: Likewise.
2925 * Makefile.in (SFILES): Add common/common-exceptions.c.
2926 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2927 (COMMON_OBS): Add common-exceptions.o.
2928 (common-exceptions.o): New rule.
2929 * exceptions.h (common-exceptions.h): Include.
2930 (gdb_setjmp.h): Do not include.
2931 (return_reason): Moved to common-exceptions.h.
2932 (enum return_reason): Likewise.
2933 (RETURN_MASK): Likewise.
2934 (typedef return_mask): Likewise.
2935 (enum errors): Likewise.
2936 (struct gdb_exception): Likewise.
2937 (exceptions_state_mc_init): Likewise.
2938 (exceptions_state_mc_action_iter): Likewise.
2939 (exceptions_state_mc_action_iter_1): Likewise.
2940 (TRY_CATCH): Likewise.
2941 (throw_exception): Likewise.
2942 (throw_verror): Likewise.
2943 (throw_vquit): Likewise.
2944 (throw_error): Likewise.
2945 (throw_quit): Likewise.
2946 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2947 (enum catcher_action): Likewise.
2948 (struct catcher): Likewise.
2949 (current_catcher): Likewise.
2950 (catcher_list_size): Likewise.
2951 (exceptions_state_mc_init): Likewise.
2952 (catcher_pop): Likewise.
2953 (exceptions_state_mc): Likewise.
2954 (exceptions_state_mc_action_iter): Likewise.
2955 (exceptions_state_mc_action_iter_1): Likewise.
2956 (throw_exception): Likewise.
2957 (exception_messages): Likewise.
2958 (exception_messages_size): Likewise.
2959 (throw_it): Likewise.
2960 (throw_verror): Likewise.
2961 (throw_vquit): Likewise.
2962 (throw_error): Likewise.
2963 (throw_quit): Likewise.
2964 (prepare_to_throw_exception): New function.
2965
e9bcb658
GB
29662014-08-29 Gary Benson <gbenson@redhat.com>
2967
2968 * common/gdb_setjmp.h: New file.
2969 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2970 * configure.ac: Move sigsetjmp check...
2971 * common/common.m4: ...here.
2972 * configure: Regenerate.
2973 * cp-support.c (SIGJMP_BUF): Delete.
2974 (SIGSETJMP): Likewise.
2975 (SIGLONGJMP): Likewise.
2976 * exceptions.h (gdb_setjmp.h): Include.
2977 (setjmp.h): Do not include.
2978 (EXCEPTIONS_SIGJMP_BUF): Delete.
2979 (EXCEPTIONS_SIGSETJMP): Likewise.
2980 (EXCEPTIONS_SIGLONGJMP): Likewise.
2981 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2982 from gdb_setjmp.h.
2983 * exceptions.c: Likewise.
2984
e3180625
GB
29852014-08-29 Gary Benson <gbenson@redhat.com>
2986
2987 * cleanups.h: Moved to...
2988 * common/cleanups.h: New file.
2989 * cleanups.c: Moved to...
2990 * common/cleanups.c: New file. Include common-defs.h and
2991 cleanups.h. Do not include defs.h.
2992 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2993 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2994 (cleanups.o): New rule.
2995
e3d6ba5d
GB
29962014-08-29 Gary Benson <gbenson@redhat.com>
2997
2998 * common/errors.h (internal_warning): New declaration.
2999 (internal_vwarning): Likewise.
3000 * common/errors.c (internal_warning): New function.
3001 * utils.h (internal_warning): Don't declare.
3002 (internal_vwarning): Likewise.
3003 * utils.c (internal_warning): Removed.
3004
075c7033
GB
30052014-08-29 Gary Benson <gbenson@redhat.com>
3006
3007 * main.c (captured_main): Use warning during startup.
3008 Prefix startup warning messages with command name.
3009
91b35fd0
GB
30102014-08-29 Gary Benson <gbenson@redhat.com>
3011
3012 * main.c (captured_main): Handle usage errors with error.
3013
b1ec390e
GB
30142014-08-29 Gary Benson <gbenson@redhat.com>
3015
3016 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3017 exit pair with a call to error. Wrap the message with _().
3018
fd0ef3dd
GB
30192014-08-29 Gary Benson <gbenson@redhat.com>
3020
3021 * main.c (captured_main): Replace a fprintf/exit
3022 pair with a call to error. Wrap the message with _().
3023
e0e6bcab
GB
30242014-08-29 Gary Benson <gbenson@redhat.com>
3025
3026 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3027 pairs with calls to error. Wrap the message with _().
3028
0d2f5c07
GB
30292014-08-29 Gary Benson <gbenson@redhat.com>
3030
3031 * utils.c (vwarning): Protect calls to target_terminal_ours
3032 and wrap_here.
3033
5df43998
GB
30342014-08-29 Gary Benson <gbenson@redhat.com>
3035
3036 * exceptions.c (print_flush): Protect calls to
3037 target_terminal_ours and wrap_here.
3038
2437fd32
GB
30392014-08-29 Gary Benson <gbenson@redhat.com>
3040
3041 * utils.h (filtered_printing_initialized): New declaration.
3042 * utils.c (abort_with_message): New function.
3043 (internal_vproblem): Use abort_with_message for first level
3044 recursive internal problems, and if gdb_stderr is not set up.
3045 Protect calls to target_terminal_ours, begin_line and query.
3046
f1f58506
DE
30472014-08-28 Doug Evans <dje@google.com>
3048
3049 * symtab.c (in_prologue): Move definition to better spot.
3050 (skip_prologue_using_sal): Ditto.
3051
aab2f208
DE
30522014-08-28 Doug Evans <dje@google.com>
3053
3054 * symtab.c (find_function_start_sal): Move definition to better spot.
3055
6b65d1b6
YQ
30562014-08-28 Yao Qi <yao@codesourcery.com>
3057
3058 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3059 found_stack_adjust in forward scan. Remove condition check
3060 on found_stack_adjust which is always true. Indent the code.
3061
a1b34d15
YQ
30622014-08-28 Yao Qi <yao@codesourcery.com>
3063
3064 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3065 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3066 (dwarf_decode_lines): Remove argument
3067 want_line_info. Remove condition check on want_line_info.
3068 Callers update.
3069
d5962de5
DE
30702014-08-27 Doug Evans <dje@google.com>
3071
3072 * dwarf2read.c (dwarf_record_line): Fix typo.
3073
9b139002
SDJ
30742014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3075
3076 * target.h (struct target_ops::to_terminal_save_ours): Remove
3077 declaration.
3078 (target_terminal_save_ours): Remove macro.
3079 * target-delegates.c: Regenerate.
3080 * inf-child.c (inf_child_target): Don't set the nonexistent
3081 field to_terminal_save_ours.
3082 * inferior.h (child_terminal_save_ours): Remove declaration.
3083 * terminal.h (gdb_save_tty_state): New declaration.
3084 * inflow.c (child_terminal_save_ours): Rename to ...
3085 (gdb_save_tty_state): ... this.
3086 * tui/tui.c: Include terminal.h.
3087 (tui_enable): Use gdb_save_tty_state instead of
3088 target_terminal_save_ours.
3089 (tui_disable): Likewise.
3090
9debeba0
DE
30912014-08-25 Doug Evans <dje@google.com>
3092
3093 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3094 Pass NULL instead of 0 for context pointer.
3095
428fc5fc
YQ
30962014-08-25 Yao Qi <yao@codesourcery.com>
3097
3098 * dwarf2read.c: Fix grammatical error.
3099
cdc07690
YQ
31002014-08-24 Yao Qi <yao@codesourcery.com>
3101
3102 * dwarf2read.c (scan_partial_symbols): Update comments.
3103 Rename argument 'need_pc' with 'set_addrmap'.
3104 (add_partial_namespace): Rename argument 'need_pc' with
3105 'set_addrmap'.
3106 (add_partial_module): Likewise.
3107 (add_partial_subprogram): Likewise. Update comments.
3108 (dwarf2_name): Fix typo.
3109
a05a36a5
DE
31102014-08-22 Doug Evans <dje@google.com>
3111
3112 PR 17276
3113 * dwarf2read.c (dwarf_record_line_p): New function.
3114 (dwarf_decode_lines_1): Ignore subsequent line number entries
3115 for the same line if any entry had a non-zero discriminator.
3116
252a6764
DE
31172014-08-22 Doug Evans <dje@google.com>
3118
3119 * buildsym.h (record_line_ftype): New typedef.
3120 (record_line): Use it.
3121 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3122 (dwarf_decode_lines_1): Call them.
3123
510db052
YQ
31242014-08-22 Yao Qi <yao@codesourcery.com>
3125
3126 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3127 (ctf_end): Remove code.
3128
22fd09ae
JK
31292014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3130
3131 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3132 (linux_make_corefile_notes): call update_thread_list, protected against
3133 exceptions.
3134
656e8868
PA
31352014-08-21 Pedro Alves <palves@redhat.com>
3136
3137 * infcmd.c (attach_command): Remove comment.
3138
de589d04
WN
31392014-08-21 Bin Cheng <bin.cheng@arm.com>
3140
3141 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3142 unsigned LONGEST to ULONGEST.
3143
2a31c623
PA
31442014-08-20 Pedro Alves <palves@redhat.com>
3145
3146 * Makefile.in (check-read1): New rule.
3147
d36430db
JB
31482014-08-20 Joel Brobecker <brobecker@adacore.com>
3149
3150 * value.c (value_from_contents_and_address): Strip resolved_type's
3151 typedef layers before checking its TYPE_DATA_LOCATION.
3152
000339af
PA
31532014-08-20 Pedro Alves <palves@redhat.com>
3154
3155 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3156
5f52445b
YQ
31572014-08-20 Yao Qi <yao@codesourcery.com>
3158
3159 * amd64-tdep.c (amd64_classify): Add a blank line after the
3160 example. Move "*/" to a new line.
3161 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3162 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3163 * dwarf2read.c (psymtab_include_file_name): Likewise.
3164
9a0dc9e3
PA
31652014-08-19 Andrew Burgess <aburgess@broadcom.com>
3166 Pedro Alves <palves@redhat.com>
3167
3168 PR symtab/14604
3169 PR symtab/14605
3170 * ada-lang.c (coerce_unspec_val_to_type): Use
3171 value_contents_copy_raw.
3172 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3173 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3174 * cp-valprint.c (cp_print_value_fields): Let the common printing
3175 code handle optimized out values.
3176 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3177 * d-valprint.c (dynamic_array_type): Use
3178 value_bits_any_optimized_out.
3179 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3180 check_any_valid fields.
3181 (check_pieced_value_bits): Delete and inline ...
3182 (check_pieced_synthetic_pointer): ... here.
3183 (check_pieced_value_validity): Delete.
3184 (check_pieced_value_invalid): Delete.
3185 (pieced_value_funcs): Remove check_validity and check_any_valid
3186 fields.
3187 (read_pieced_value): Use mark_value_bits_optimized_out.
3188 (write_pieced_value): Switch to use
3189 mark_value_bytes_optimized_out.
3190 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3191 of assuming the whole value is optimized out.
3192 * findvar.c (read_frame_register_value): Remove special handling
3193 of optimized out registers.
3194 (value_from_register): Use mark_value_bytes_optimized_out.
3195 * frame-unwind.c (frame_unwind_got_optimized): Use
3196 mark_value_bytes_optimized_out.
3197 * jv-valprint.c (java_value_print): Adjust.
3198 (java_print_value_fields): Let the common printing code handle
3199 optimized out values.
3200 * mips-tdep.c (mips_print_register): Remove special handling of
3201 optimized out registers.
3202 * opencl-lang.c (lval_func_check_validity): Delete.
3203 (lval_func_check_any_valid): Delete.
3204 (opencl_value_funcs): Remove check_validity and check_any_valid
3205 fields.
3206 * p-valprint.c (pascal_object_print_value_fields): Let the common
3207 printing code handle optimized out values.
3208 * stack.c (read_frame_arg): Remove special handling of optimized
3209 out values. Fetch both VAL and ENTRYVAL before comparing
3210 contents. Adjust to value_available_contents_eq rename.
3211 * valprint.c (valprint_check_validity)
3212 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3213 (val_print_array_elements): Adjust.
3214 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3215 (value_bits_any_optimized_out): New function.
3216 (value_entirely_covered_by_range_vector): New function, factored
3217 out from value_entirely_unavailable.
3218 (value_entirely_unavailable): Reimplement.
3219 (value_entirely_optimized_out): New function.
3220 (insert_into_bit_range_vector): New function, factored out from
3221 mark_value_bits_unavailable.
3222 (mark_value_bits_unavailable): Reimplement.
3223 (struct ranges_and_idx): New struct.
3224 (find_first_range_overlap_and_match): New function, factored out
3225 from value_available_contents_bits_eq.
3226 (value_available_contents_bits_eq): Rename to ...
3227 (value_contents_bits_eq): ... this. Check both unavailable
3228 contents and optimized out contents.
3229 (value_available_contents_eq): Rename to ...
3230 (value_contents_eq): ... this.
3231 (allocate_value_lazy): Remove reference to the old optimized_out
3232 boolean.
3233 (allocate_optimized_out_value): Use
3234 mark_value_bytes_optimized_out.
3235 (require_not_optimized_out): Adjust to check whether the
3236 optimized_out vec is empty.
3237 (ranges_copy_adjusted): New function, factored out from
3238 value_contents_copy_raw.
3239 (value_contents_copy_raw): Also copy the optimized out ranges.
3240 Assert the destination ranges aren't optimized out.
3241 (value_contents_copy): Update comment, remove call to
3242 require_not_optimized_out.
3243 (value_contents_equal): Adjust to check whether the optimized_out
3244 vec is empty.
3245 (set_value_optimized_out, value_optimized_out_const): Delete.
3246 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3247 New functions.
3248 (value_entirely_optimized_out, value_bits_valid): Delete.
3249 (value_copy): Take a VEC copy of the 'optimized_out' field.
3250 (value_primitive_field): Remove special handling of optimized out.
3251 (value_fetch_lazy): Assert that lazy values have no unavailable
3252 regions. Use value_bits_any_optimized_out. Remove some special
3253 handling for optimized out values.
3254 * value.h: Add intro comment about <optimized out> and
3255 <unavailable>.
3256 (struct lval_funcs): Remove check_validity and check_any_valid
3257 fields.
3258 (set_value_optimized_out, value_optimized_out_const): Remove.
3259 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3260 New declarations.
3261 (value_bits_any_optimized_out): New declaration.
3262 (value_bits_valid): Delete declaration.
3263 (value_available_contents_eq): Rename to ...
3264 (value_contents_eq): ... this, and extend comments.
3265
6694c411
JK
32662014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3267
3268 Fix -fsanitize=address on unreadable inferior strings.
3269 * valprint.c (val_print_string): Fix access before BUFFER.
3270
89a1c21a
SM
32712014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3272
3273 * target.c (target_struct_size): Remove.
3274 (target_struct_allocsize): Remove.
3275 (DEFAULT_ALLOCSIZE): Remove.
3276 (target_ops_p): New typedef.
3277 (DEF_VEC_P (target_ops_p)): New vector type.
3278 (target_structs): Change type to VEC (target_ops_p).
3279 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3280 (find_default_run_target): Rewrite for loop following changes to
3281 target_structs.
3282
cb417230
JB
32832014-08-19 Joel Brobecker <brobecker@adacore.com>
3284
3285 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3286 Adjust code accordingly. Adjust function description comment.
3287
817e0957
YQ
32882014-08-19 Yao Qi <yao@codesourcery.com>
3289
3290 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3291 types.
3292
2974be62
AM
32932014-08-19 Alan Modra <amodra@gmail.com>
3294
3295 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3296 * config.in: Regenerate.
3297 * configure: Regenerate.
3298
34abf635
GB
32992014-08-19 Tom Tromey <tromey@redhat.com>
3300 Gary Benson <gbenson@redhat.com>
3301
3302 * common/common-debug.h: New file.
3303 * common/common-debug.c: Likewise.
3304 * debug.c: Likewise.
3305 * Makefile.in (SFILES): Add common/common-debug.c.
3306 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3307 (COMMON_OBS): Add common-debug.o and debug.o.
3308 (common-debug.o): New rule.
3309 * common/common-defs.h: Include common-debug.h.
3310 * common/agent.c (debug_agent_printf): New function.
3311 (DEBUG_AGENT): Redefine.
3312 * nat/i386-dregs.c (debug_printf): Undefine.
3313
f6e94d78
GB
33142014-08-19 Gary Benson <gbenson@redhat.com>
3315
3316 * common/common-defs.h: Include print-utils.h.
3317 * utils.h: Do not include print-utils.h.
3318
9239eeab
GB
33192014-08-19 Tom Tromey <tromey@redhat.com>
3320 Gary Benson <gbenson@redhat.com>
3321
3322 * common/common-types.h: New file.
3323 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3324 * common/common-defs.h: Include common-types.h.
3325 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3326 (ULONGEST): Remove.
3327
ef87c8bb
GB
33282014-08-19 Tom Tromey <tromey@redhat.com>
3329 Gary Benson <gbenson@redhat.com>
3330
3331 * common/errors.h: New file.
3332 * common/errors.c: Likewise.
3333 * Makefile.in (SFILES): Add common/errors.c.
3334 (HFILES_NO_SRCDIR): Add common/errors.h.
3335 (COMMON_OBS): Add errors.o.
3336 (errors.o): New rule.
3337 * common/common-defs.h: Include errors.h.
3338 * utils.h (perror_with_name, error, verror, warning, vwarning):
3339 Don't declare.
3340 * common/common-utils.h: (malloc_failure, internal_error):
3341 Likewise.
3342
196a707b
GB
33432014-08-19 Gary Benson <gbenson@redhat.com>
3344
3345 * utils.c (internal_vproblem): Always print the message.
3346
ded4fc8f
DE
33472014-08-18 Doug Evans <dje@google.com>
3348
3349 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3350
950c97d8
JB
33512014-08-18 Joel Brobecker <brobecker@adacore.com>
3352
3353 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3354 Return 0 if TYPE is dynamic.
3355 (print_range): Add handling of dynamic ranges.
3356
3cdcd0ce
JB
33572014-08-18 Keven Boell <keven.boell@intel.com>
3358 Joel Brobecker <brobecker@adacore.com>
3359
3360 * gdbtypes.h (struct main_type): Add field "data_location".
3361 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3362 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3363 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3364 a dynamic data location.
3365 (resolve_dynamic_type): Add DW_AT_data_location handling.
3366 (copy_recursive, copy_type): Copy the data_location information
3367 when present.
3368 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3369 * value.c (value_from_contents_and_address): Add
3370 DW_AT_data_location handling.
3371
08412b07
JB
33722014-08-18 Keven Boell <keven.boell@intel.com>
3373 Joel Brobecker <brobecker@adacore.com>
3374
3375 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3376 field "get_object_address".
3377 * dwarf2expr.c (execute_stack_op): Add handling for
3378 DW_OP_push_object_address.
3379 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3380 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3381 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3382 (dwarf_expr_get_obj_addr): New function.
3383 (dwarf_expr_ctx_funcs): Add get_object_address field.
3384 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3385 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3386 (dwarf2_evaluate_property): Add parameter "address". Use it.
3387 (needs_get_obj_addr): New function.
3388 (needs_frame_ctx_funcs): Add get_object_address field.
3389 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3390 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3391 (resolve_dynamic_array): Likewise.
3392
84754697
JB
33932014-08-18 Joel Brobecker <brobecker@adacore.com>
3394
3395 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3396 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3397 fixed value for records and unions for which some GNAT encodings
3398 are present.
3399
da5c522f
JB
34002014-08-18 Joel Brobecker <brobecker@adacore.com>
3401
3402 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3403 rewrite to avoid "else if" and "else" constructs. Should be
3404 a no-op in practice.
3405
0d72a7c3
JB
34062014-08-18 Joel Brobecker <brobecker@adacore.com>
3407
3408 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3409 of lexical block.
3410
e66d4446
SC
34112014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3412
3413 PR c++/17132
3414 * eval.c: Update all calls to find_overload_match.
3415 * valarith.c: Likewise.
3416 (value_user_defined_cpp_op, value_user_defined_op): New
3417 argument NOSIDE. Update all callers.
3418 * valops.c (find_overload_match): New argument NOSIDE.
3419 * value.h (find_overload_match): Update signature.
3420
940df408
SC
34212014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3422
3423 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3424 'items' methods instead of 'iteritems' method on dictionaries.
3425
699ca60a
DE
34262014-08-15 Doug Evans <dje@google.com>
3427
3428 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3429 closer to use.
3430
37780ee5
DE
34312014-08-15 Doug Evans <dje@google.com>
3432
3433 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3434
0ad93d4f
DE
34352014-08-15 Doug Evans <dje@google.com>
3436
3437 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3438
20d8c372
DE
34392014-08-15 Doug Evans <dje@google.com>
3440
3441 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3442 unused.
3443
cb039ba4
EZ
34442014-08-15 Eli Zaretskii <eliz@gnu.org>
3445
3446 * dcache.h: Include target.h, to avoid compile time warnings.
3447
eb7a547a
JB
34482014-08-15 Joel Brobecker <brobecker@adacore.com>
3449
3450 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3451 frame_info" partial declaration.
3452 * gdbarch.h: Regenerate.
3453
783cecc8
YQ
34542014-08-15 Yao Qi <yao@codesourcery.com>
3455
3456 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3457 Add parameter 'decode_for_pst_p'. Callers update.
3458
65c749e7
YQ
34592014-08-13 Yao Qi <yao@codesourcery.com>
3460
3461 PR build/17104
3462 * configure.ac: Use local variable 'pos'.
3463 * configure: Regenerated.
3464
d769e349
DE
34652014-08-11 Doug Evans <dje@google.com>
3466
3467 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3468 message, it is redundant with "Reading symbols from ..." message.
3469
24f1235e
DE
34702014-08-10 Doug Evans <xdje42@gmail.com>
3471
3472 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3473
dcd2e6ef
YQ
34742014-08-09 Yao Qi <yao@codesourcery.com>
3475
3476 PR remote/9053
3477 * remote.c (remote_xfer_partial): Remove dead code.
3478
070bdf0b
AA
34792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3480
3481 * ia64-linux-tdep.c: Include "regset.h".
3482 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3483 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3484 (ia64_linux_supply_fpregset): New function.
3485 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3486 (ia64_linux_regset_from_core_section): New function.
3487 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3488 method.
3489
08f9f542
AA
34902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3491
3492 * m68klinux-tdep.c: Include "regset.h".
3493 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3494 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3495 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3496 (m68k_linux_regset_from_core_section): New function.
3497 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3498 method.
3499
8f1cee41
AA
35002014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3501
3502 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3503 function. Move logic to...
3504 (tilegx_linux_regmap): ... this new register map.
3505 (tilegx_linux_regset): Refer to register map, replace supply
3506 method by regcache_supply_regset, and add collect method.
3507 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3508 TILEGX_FIRST_EASY_REGNUM.
3509
c5741217
AA
35102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3511
3512 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3513 that calls regcache_supply_regset and handles the EPC register
3514 separately. Move main logic to...
3515 (score7_linux_gregmap): ... this new register map.
3516 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3517 (score7_linux_gregset): Refer to register map. Add collect method.
3518 (score7_linux_regset_from_core_section): Replace
3519 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3520 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3521 (struct regset): Delete unused forward declaraction.
3522 (struct pt_regs): Delete structure definition.
3523 (elf_gregset_t): Delete typedef.
3524
81580573
AA
35252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3526
3527 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3528 (nios2_core_regset): Add collect method.
3529
ba199d7d
AA
35302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3531
3532 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3533 platform-independent and don't write to read-only input buffer.
3534 (m32r_linux_collect_gregset): New function.
3535 (m32r_linux_gregset): Add collect method.
3536
0006a9da
AA
35372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3538
3539 * hppa-linux-tdep.c (greg_map): Rename to...
3540 (hppa_linux_gregmap): ... this. Also convert to
3541 regcache_map_entry format.
3542 (hppa_linux_supply_regset): Delete function.
3543 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3544 (hppa_linux_fpregmap): ... this new register map.
3545 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3546 register map, replace supply method by regcache_supply_regset, and
3547 add collect method regcache_collect_regset.
3548
901e1b23
AA
35492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3550
3551 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3552 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3553 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3554 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3555 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3556 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3557 (frv_linux_supply_gregset): Replace main logic by call to
3558 regcache_supply_regset, but keep clearing gr32-gr63.
3559 (frv_linux_supply_fpregset): Delete function.
3560 (frv_linux_gregset): Refer to appropriate register map and add
3561 regcache_collect_regset as the collect method.
3562 (frv_linux_fpregset): Likewise. Also exchange the supply method
3563 by regcache_supply_regset.
3564
1d6e7555
AA
35652014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3566
3567 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3568 by call to alpha_supply_int_regs.
3569 (alpha_linux_collect_gregset): New function.
3570 (alpha_linux_supply_fpregset): Replace logic by call to
3571 alpha_supply_fp_regs.
3572 (alpha_linux_collect_fpregset): New function.
3573 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3574
d4d793bf
AA
35752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3576
3577 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3578 by call to regcache_collect_regset.
3579 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3580 instead of aarch64_linux_supply_gregset/_fpregset.
3581 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3582 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3583 header file instead.
3584 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3585 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3586 functions. Move logic to ...
3587 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3588 register maps.
3589 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3590 refer to new register maps, replace *_regset_from_core by
3591 regcache_supply_regset, and also use regcache_collect_regset.
3592 * aarch64-linux-tdep.h: Include "regset.h".
3593 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3594 Delete prototypes.
3595 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3596 macros, moved from C source file.
3597 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3598 variable declarations.
3599
99b7da5d
AA
36002014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3601
3602 * s390-linux-nat.c: Include "regset.h".
3603 (regmap_gregset): Delete macro.
3604 (s390_64_regmap_gregset): New register map for
3605 regcache_supply/_collect_regset.
3606 (s390_64_gregset): New regset.
3607 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3608 (regmap_fpregset): Delete macro.
3609 (s390_native_supply, s390_native_collect): Delete functions.
3610 (supply_gregset, fill_gregset): Replace s390-specific regmap
3611 handling by a call to regcache_supply/_collect_regset.
3612 (supply_fpregset, fill_fpregset): Call regcache_supply/
3613 _collect_regset instead of s390_native_supply/_collect.
3614 (fetch_regset, store_regset): Likewise. Also change the last
3615 parameter to a regset instead of a regmap.
3616 (s390_linux_fetch_inferior_registers)
3617 (390_linux_store_inferior_registers): Adjust last parameter in
3618 calls to fetch_regset and store_regset.
3619 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3620 (s390_gregmap): ... this. Also make static const and convert to
3621 regcache_map_entry format.
3622 (s390x_regmap_gregset): Delete.
3623 (s390_regmap_fpregset): Rename to...
3624 (s390_fpregmap): ... this. Make static const and convert to
3625 regcache_map_entry format.
3626 (s390_regmap_upper, s390_regmap_last_break)
3627 (s390x_regmap_last_break, s390_regmap_system_call)
3628 (s390_regmap_tdb): Likewise.
3629 (s390_supply_regset, s390_collect_regset): Remove functions.
3630 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3631 s390_supply_regset.
3632 (s390_gregset, s390_fpregset, s390_upper_regset)
3633 (s390_last_break_regset, s390x_last_break_regset)
3634 (s390_system_call_regset, s390_tdb_regset): Make global and
3635 replace s390_supply/_collect_regset by regcache_supply/
3636 _collect_regset.
3637 (s390x_gregset): Delete.
3638 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3639 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3640 (s390_regmap_fpregset, s390_regmap_last_break)
3641 (s390x_regmap_last_break, s390_regmap_system_call)
3642 (s390_regmap_tdb): Delete global variable declarations.
3643 (s390_gregset, s390_fpregset, s390_last_break_regset)
3644 (s390x_last_break_regset, s390_system_call_regset)
3645 (s390_tdb_regset): New global variable declarations.
3646
0b309272
AA
36472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3648
3649 * regcache.c: Include "regset.h".
3650 (regcache_transfer_regset): New local function.
3651 (regcache_supply_regset, regcache_collect_regset): New functions.
3652 * regcache.h (struct regcache_map_entry): New structure.
3653 (REGCACHE_MAP_SKIP): New enum value.
3654 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3655
7fefa8d7
AA
36562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3657
3658 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3659 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3660 (ppc_linux_collect_gregset ): Likewise.
3661 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3662 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3663 (ppc_collect_vrregset): Likewise.
3664 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3665 Likewise.
3666
96c4f946
YQ
36672014-08-07 Yao Qi <yao@codesourcery.com>
3668
3669 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3670 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3671 * remote.c (remote_read_bytes): Likewise.
3672
fffbe6a8
YQ
36732014-08-07 Yao Qi <yao@codesourcery.com>
3674
3675 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3676
5ee8a82c
YQ
36772014-08-07 Yao Qi <yao@codesourcery.com>
3678
3679 PR remote/17230
3680 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3681 TARGET_XFER_OK instead of 0.
3682
bb974a24
GB
36832014-08-07 Gary Benson <gbenson@redhat.com>
3684
3685 * common/common-defs.h: Include errno.h.
3686 * defs.h: Do not include errno.h.
3687 * ada-typeprint.c: Likewise.
3688 * c-typeprint.c: Likewise.
3689 * core-regset.c: Likewise.
3690 * corefile.c: Likewise.
3691 * corelow.c: Likewise.
3692 * event-loop.c: Likewise.
3693 * f-typeprint.c: Likewise.
3694 * gnu-nat.c: Likewise.
3695 * go32-nat.c: Likewise.
3696 * i386gnu-nat.c: Likewise.
3697 * m2-typeprint.c: Likewise.
3698 * nat/linux-btrace.c: Likewise.
3699 * p-typeprint.c: Likewise.
3700 * procfs.c: Likewise.
3701 * remote-sim.c: Likewise.
3702 * rs6000-nat.c: Likewise.
3703 * target.c: Likewise.
3704 * typeprint.c: Likewise.
3705 * ui-file.c: Likewise.
3706 * valops.c: Likewise.
3707 * valprint.c: Likewise.
3708
6d3d12eb
GB
37092014-08-07 Gary Benson <gbenson@redhat.com>
3710
3711 * common/common-defs.h: Include string.h.
3712 * aarch64-tdep.c: Do not include string.h.
3713 * ada-exp.y: Likewise.
3714 * ada-lang.c: Likewise.
3715 * ada-lex.l: Likewise.
3716 * ada-typeprint.c: Likewise.
3717 * ada-valprint.c: Likewise.
3718 * aix-thread.c: Likewise.
3719 * alpha-linux-tdep.c: Likewise.
3720 * alpha-mdebug-tdep.c: Likewise.
3721 * alpha-nat.c: Likewise.
3722 * alpha-osf1-tdep.c: Likewise.
3723 * alpha-tdep.c: Likewise.
3724 * alphanbsd-tdep.c: Likewise.
3725 * amd64-dicos-tdep.c: Likewise.
3726 * amd64-linux-tdep.c: Likewise.
3727 * amd64-nat.c: Likewise.
3728 * amd64-sol2-tdep.c: Likewise.
3729 * amd64fbsd-tdep.c: Likewise.
3730 * amd64obsd-tdep.c: Likewise.
3731 * arch-utils.c: Likewise.
3732 * arm-linux-nat.c: Likewise.
3733 * arm-linux-tdep.c: Likewise.
3734 * arm-tdep.c: Likewise.
3735 * arm-wince-tdep.c: Likewise.
3736 * armbsd-tdep.c: Likewise.
3737 * armnbsd-nat.c: Likewise.
3738 * armnbsd-tdep.c: Likewise.
3739 * armobsd-tdep.c: Likewise.
3740 * avr-tdep.c: Likewise.
3741 * ax-gdb.c: Likewise.
3742 * ax-general.c: Likewise.
3743 * bcache.c: Likewise.
3744 * bfin-tdep.c: Likewise.
3745 * breakpoint.c: Likewise.
3746 * build-id.c: Likewise.
3747 * buildsym.c: Likewise.
3748 * c-exp.y: Likewise.
3749 * c-lang.c: Likewise.
3750 * c-typeprint.c: Likewise.
3751 * c-valprint.c: Likewise.
3752 * charset.c: Likewise.
3753 * cli-out.c: Likewise.
3754 * cli/cli-cmds.c: Likewise.
3755 * cli/cli-decode.c: Likewise.
3756 * cli/cli-dump.c: Likewise.
3757 * cli/cli-interp.c: Likewise.
3758 * cli/cli-logging.c: Likewise.
3759 * cli/cli-script.c: Likewise.
3760 * cli/cli-setshow.c: Likewise.
3761 * cli/cli-utils.c: Likewise.
3762 * coffread.c: Likewise.
3763 * common/agent.c: Likewise.
3764 * common/buffer.c: Likewise.
3765 * common/buffer.h: Likewise.
3766 * common/common-utils.c: Likewise.
3767 * common/filestuff.c: Likewise.
3768 * common/filestuff.c: Likewise.
3769 * common/format.c: Likewise.
3770 * common/print-utils.c: Likewise.
3771 * common/rsp-low.c: Likewise.
3772 * common/signals.c: Likewise.
3773 * common/vec.h: Likewise.
3774 * common/xml-utils.c: Likewise.
3775 * core-regset.c: Likewise.
3776 * corefile.c: Likewise.
3777 * corelow.c: Likewise.
3778 * cp-abi.c: Likewise.
3779 * cp-name-parser.y: Likewise.
3780 * cp-support.c: Likewise.
3781 * cp-valprint.c: Likewise.
3782 * cris-tdep.c: Likewise.
3783 * d-exp.y: Likewise.
3784 * darwin-nat.c: Likewise.
3785 * dbxread.c: Likewise.
3786 * dcache.c: Likewise.
3787 * demangle.c: Likewise.
3788 * dicos-tdep.c: Likewise.
3789 * disasm.c: Likewise.
3790 * doublest.c: Likewise.
3791 * dsrec.c: Likewise.
3792 * dummy-frame.c: Likewise.
3793 * dwarf2-frame.c: Likewise.
3794 * dwarf2loc.c: Likewise.
3795 * dwarf2read.c: Likewise.
3796 * elfread.c: Likewise.
3797 * environ.c: Likewise.
3798 * eval.c: Likewise.
3799 * event-loop.c: Likewise.
3800 * exceptions.c: Likewise.
3801 * exec.c: Likewise.
3802 * expprint.c: Likewise.
3803 * f-exp.y: Likewise.
3804 * f-lang.c: Likewise.
3805 * f-typeprint.c: Likewise.
3806 * f-valprint.c: Likewise.
3807 * fbsd-nat.c: Likewise.
3808 * findcmd.c: Likewise.
3809 * findvar.c: Likewise.
3810 * fork-child.c: Likewise.
3811 * frame.c: Likewise.
3812 * frv-linux-tdep.c: Likewise.
3813 * frv-tdep.c: Likewise.
3814 * gdb.c: Likewise.
3815 * gdb_bfd.c: Likewise.
3816 * gdbarch.c: Likewise.
3817 * gdbarch.sh: Likewise.
3818 * gdbtypes.c: Likewise.
3819 * gnu-nat.c: Likewise.
3820 * gnu-v2-abi.c: Likewise.
3821 * gnu-v3-abi.c: Likewise.
3822 * go-exp.y: Likewise.
3823 * go-lang.c: Likewise.
3824 * go32-nat.c: Likewise.
3825 * guile/guile.c: Likewise.
3826 * guile/scm-auto-load.c: Likewise.
3827 * hppa-hpux-tdep.c: Likewise.
3828 * hppa-linux-nat.c: Likewise.
3829 * hppanbsd-tdep.c: Likewise.
3830 * hppaobsd-tdep.c: Likewise.
3831 * i386-cygwin-tdep.c: Likewise.
3832 * i386-dicos-tdep.c: Likewise.
3833 * i386-linux-tdep.c: Likewise.
3834 * i386-nto-tdep.c: Likewise.
3835 * i386-sol2-tdep.c: Likewise.
3836 * i386-tdep.c: Likewise.
3837 * i386bsd-tdep.c: Likewise.
3838 * i386gnu-nat.c: Likewise.
3839 * i386nbsd-tdep.c: Likewise.
3840 * i386obsd-tdep.c: Likewise.
3841 * i387-tdep.c: Likewise.
3842 * ia64-libunwind-tdep.c: Likewise.
3843 * ia64-linux-nat.c: Likewise.
3844 * inf-child.c: Likewise.
3845 * inf-ptrace.c: Likewise.
3846 * inf-ttrace.c: Likewise.
3847 * infcall.c: Likewise.
3848 * infcmd.c: Likewise.
3849 * inflow.c: Likewise.
3850 * infrun.c: Likewise.
3851 * interps.c: Likewise.
3852 * iq2000-tdep.c: Likewise.
3853 * irix5-nat.c: Likewise.
3854 * jv-exp.y: Likewise.
3855 * jv-lang.c: Likewise.
3856 * jv-typeprint.c: Likewise.
3857 * jv-valprint.c: Likewise.
3858 * language.c: Likewise.
3859 * linux-fork.c: Likewise.
3860 * linux-nat.c: Likewise.
3861 * lm32-tdep.c: Likewise.
3862 * m2-exp.y: Likewise.
3863 * m2-typeprint.c: Likewise.
3864 * m32c-tdep.c: Likewise.
3865 * m32r-linux-nat.c: Likewise.
3866 * m32r-linux-tdep.c: Likewise.
3867 * m32r-rom.c: Likewise.
3868 * m32r-tdep.c: Likewise.
3869 * m68hc11-tdep.c: Likewise.
3870 * m68k-tdep.c: Likewise.
3871 * m68kbsd-tdep.c: Likewise.
3872 * m68klinux-nat.c: Likewise.
3873 * m68klinux-tdep.c: Likewise.
3874 * m88k-tdep.c: Likewise.
3875 * machoread.c: Likewise.
3876 * macrocmd.c: Likewise.
3877 * main.c: Likewise.
3878 * mdebugread.c: Likewise.
3879 * mem-break.c: Likewise.
3880 * memattr.c: Likewise.
3881 * memory-map.c: Likewise.
3882 * mep-tdep.c: Likewise.
3883 * mi/mi-cmd-break.c: Likewise.
3884 * mi/mi-cmd-disas.c: Likewise.
3885 * mi/mi-cmd-env.c: Likewise.
3886 * mi/mi-cmd-stack.c: Likewise.
3887 * mi/mi-cmd-var.c: Likewise.
3888 * mi/mi-cmds.c: Likewise.
3889 * mi/mi-console.c: Likewise.
3890 * mi/mi-getopt.c: Likewise.
3891 * mi/mi-interp.c: Likewise.
3892 * mi/mi-main.c: Likewise.
3893 * mi/mi-parse.c: Likewise.
3894 * microblaze-rom.c: Likewise.
3895 * microblaze-tdep.c: Likewise.
3896 * mingw-hdep.c: Likewise.
3897 * minidebug.c: Likewise.
3898 * minsyms.c: Likewise.
3899 * mips-irix-tdep.c: Likewise.
3900 * mips-linux-tdep.c: Likewise.
3901 * mips-tdep.c: Likewise.
3902 * mips64obsd-tdep.c: Likewise.
3903 * mipsnbsd-tdep.c: Likewise.
3904 * mipsread.c: Likewise.
3905 * mn10300-linux-tdep.c: Likewise.
3906 * mn10300-tdep.c: Likewise.
3907 * monitor.c: Likewise.
3908 * moxie-tdep.c: Likewise.
3909 * mt-tdep.c: Likewise.
3910 * nat/linux-btrace.c: Likewise.
3911 * nat/linux-osdata.c: Likewise.
3912 * nat/linux-procfs.c: Likewise.
3913 * nat/linux-ptrace.c: Likewise.
3914 * nat/linux-waitpid.c: Likewise.
3915 * nbsd-tdep.c: Likewise.
3916 * nios2-linux-tdep.c: Likewise.
3917 * nto-procfs.c: Likewise.
3918 * nto-tdep.c: Likewise.
3919 * objc-lang.c: Likewise.
3920 * objfiles.c: Likewise.
3921 * opencl-lang.c: Likewise.
3922 * osabi.c: Likewise.
3923 * osdata.c: Likewise.
3924 * p-exp.y: Likewise.
3925 * p-lang.c: Likewise.
3926 * p-typeprint.c: Likewise.
3927 * parse.c: Likewise.
3928 * posix-hdep.c: Likewise.
3929 * ppc-linux-nat.c: Likewise.
3930 * ppc-sysv-tdep.c: Likewise.
3931 * ppcfbsd-tdep.c: Likewise.
3932 * ppcnbsd-tdep.c: Likewise.
3933 * ppcobsd-tdep.c: Likewise.
3934 * printcmd.c: Likewise.
3935 * procfs.c: Likewise.
3936 * prologue-value.c: Likewise.
3937 * python/py-auto-load.c: Likewise.
3938 * python/py-gdb-readline.c: Likewise.
3939 * ravenscar-thread.c: Likewise.
3940 * regcache.c: Likewise.
3941 * registry.c: Likewise.
3942 * remote-fileio.c: Likewise.
3943 * remote-m32r-sdi.c: Likewise.
3944 * remote-mips.c: Likewise.
3945 * remote-notif.c: Likewise.
3946 * remote-sim.c: Likewise.
3947 * remote.c: Likewise.
3948 * reverse.c: Likewise.
3949 * rs6000-aix-tdep.c: Likewise.
3950 * ser-base.c: Likewise.
3951 * ser-go32.c: Likewise.
3952 * ser-mingw.c: Likewise.
3953 * ser-pipe.c: Likewise.
3954 * ser-tcp.c: Likewise.
3955 * ser-unix.c: Likewise.
3956 * serial.c: Likewise.
3957 * sh-tdep.c: Likewise.
3958 * sh64-tdep.c: Likewise.
3959 * shnbsd-tdep.c: Likewise.
3960 * skip.c: Likewise.
3961 * sol-thread.c: Likewise.
3962 * solib-dsbt.c: Likewise.
3963 * solib-frv.c: Likewise.
3964 * solib-osf.c: Likewise.
3965 * solib-som.c: Likewise.
3966 * solib-spu.c: Likewise.
3967 * solib-target.c: Likewise.
3968 * solib.c: Likewise.
3969 * somread.c: Likewise.
3970 * source.c: Likewise.
3971 * sparc-nat.c: Likewise.
3972 * sparc-sol2-tdep.c: Likewise.
3973 * sparc-tdep.c: Likewise.
3974 * sparc64-tdep.c: Likewise.
3975 * sparc64fbsd-tdep.c: Likewise.
3976 * sparc64nbsd-tdep.c: Likewise.
3977 * sparcnbsd-tdep.c: Likewise.
3978 * spu-linux-nat.c: Likewise.
3979 * spu-multiarch.c: Likewise.
3980 * spu-tdep.c: Likewise.
3981 * stabsread.c: Likewise.
3982 * stack.c: Likewise.
3983 * std-regs.c: Likewise.
3984 * symfile.c: Likewise.
3985 * symmisc.c: Likewise.
3986 * symtab.c: Likewise.
3987 * target.c: Likewise.
3988 * thread.c: Likewise.
3989 * tilegx-linux-nat.c: Likewise.
3990 * tilegx-tdep.c: Likewise.
3991 * top.c: Likewise.
3992 * tracepoint.c: Likewise.
3993 * tui/tui-command.c: Likewise.
3994 * tui/tui-data.c: Likewise.
3995 * tui/tui-disasm.c: Likewise.
3996 * tui/tui-file.c: Likewise.
3997 * tui/tui-layout.c: Likewise.
3998 * tui/tui-out.c: Likewise.
3999 * tui/tui-regs.c: Likewise.
4000 * tui/tui-source.c: Likewise.
4001 * tui/tui-stack.c: Likewise.
4002 * tui/tui-win.c: Likewise.
4003 * tui/tui-windata.c: Likewise.
4004 * tui/tui-winsource.c: Likewise.
4005 * typeprint.c: Likewise.
4006 * ui-file.c: Likewise.
4007 * ui-out.c: Likewise.
4008 * user-regs.c: Likewise.
4009 * utils.c: Likewise.
4010 * v850-tdep.c: Likewise.
4011 * valarith.c: Likewise.
4012 * valops.c: Likewise.
4013 * valprint.c: Likewise.
4014 * value.c: Likewise.
4015 * varobj.c: Likewise.
4016 * vax-tdep.c: Likewise.
4017 * vaxnbsd-tdep.c: Likewise.
4018 * vaxobsd-tdep.c: Likewise.
4019 * windows-nat.c: Likewise.
4020 * xcoffread.c: Likewise.
4021 * xml-support.c: Likewise.
4022 * xstormy16-tdep.c: Likewise.
4023 * xtensa-linux-nat.c: Likewise.
4024
dccbb609
GB
40252014-08-07 Gary Benson <gbenson@redhat.com>
4026
4027 * common/common-defs.h: Include gdb_assert.h.
4028 * aarch64-tdep.c: Do not include gdb_assert.h.
4029 * addrmap.c: Likewise.
4030 * aix-thread.c: Likewise.
4031 * alpha-linux-tdep.c: Likewise.
4032 * alpha-mdebug-tdep.c: Likewise.
4033 * alphanbsd-tdep.c: Likewise.
4034 * amd64-nat.c: Likewise.
4035 * amd64-tdep.c: Likewise.
4036 * amd64bsd-nat.c: Likewise.
4037 * amd64fbsd-nat.c: Likewise.
4038 * amd64fbsd-tdep.c: Likewise.
4039 * amd64nbsd-nat.c: Likewise.
4040 * amd64nbsd-tdep.c: Likewise.
4041 * amd64obsd-nat.c: Likewise.
4042 * amd64obsd-tdep.c: Likewise.
4043 * arch-utils.c: Likewise.
4044 * arm-tdep.c: Likewise.
4045 * armbsd-tdep.c: Likewise.
4046 * auxv.c: Likewise.
4047 * bcache.c: Likewise.
4048 * bfin-tdep.c: Likewise.
4049 * blockframe.c: Likewise.
4050 * breakpoint.c: Likewise.
4051 * bsd-kvm.c: Likewise.
4052 * bsd-uthread.c: Likewise.
4053 * buildsym.c: Likewise.
4054 * c-exp.y: Likewise.
4055 * c-lang.c: Likewise.
4056 * charset.c: Likewise.
4057 * cleanups.c: Likewise.
4058 * cli-out.c: Likewise.
4059 * cli/cli-decode.c: Likewise.
4060 * cli/cli-dump.c: Likewise.
4061 * cli/cli-logging.c: Likewise.
4062 * cli/cli-script.c: Likewise.
4063 * cli/cli-utils.c: Likewise.
4064 * coffread.c: Likewise.
4065 * common/common-utils.c: Likewise.
4066 * common/queue.h: Likewise.
4067 * common/signals.c: Likewise.
4068 * common/vec.h: Likewise.
4069 * complaints.c: Likewise.
4070 * completer.c: Likewise.
4071 * corelow.c: Likewise.
4072 * cp-abi.c: Likewise.
4073 * cp-name-parser.y: Likewise.
4074 * cp-namespace.c: Likewise.
4075 * cp-support.c: Likewise.
4076 * cris-tdep.c: Likewise.
4077 * dbxread.c: Likewise.
4078 * dictionary.c: Likewise.
4079 * doublest.c: Likewise.
4080 * dsrec.c: Likewise.
4081 * dummy-frame.c: Likewise.
4082 * dwarf2-frame-tailcall.c: Likewise.
4083 * dwarf2-frame.c: Likewise.
4084 * dwarf2expr.c: Likewise.
4085 * dwarf2loc.c: Likewise.
4086 * dwarf2read.c: Likewise.
4087 * eval.c: Likewise.
4088 * event-loop.c: Likewise.
4089 * exceptions.c: Likewise.
4090 * expprint.c: Likewise.
4091 * f-valprint.c: Likewise.
4092 * fbsd-nat.c: Likewise.
4093 * findvar.c: Likewise.
4094 * frame-unwind.c: Likewise.
4095 * frame.c: Likewise.
4096 * frv-tdep.c: Likewise.
4097 * gcore.c: Likewise.
4098 * gdb-dlfcn.c: Likewise.
4099 * gdb_bfd.c: Likewise.
4100 * gdbarch.c: Likewise.
4101 * gdbarch.sh: Likewise.
4102 * gdbtypes.c: Likewise.
4103 * gnu-nat.c: Likewise.
4104 * gnu-v3-abi.c: Likewise.
4105 * go-lang.c: Likewise.
4106 * guile/scm-exception.c: Likewise.
4107 * guile/scm-gsmob.c: Likewise.
4108 * guile/scm-lazy-string.c: Likewise.
4109 * guile/scm-math.c: Likewise.
4110 * guile/scm-pretty-print.c: Likewise.
4111 * guile/scm-safe-call.c: Likewise.
4112 * guile/scm-utils.c: Likewise.
4113 * guile/scm-value.c: Likewise.
4114 * h8300-tdep.c: Likewise.
4115 * hppa-hpux-nat.c: Likewise.
4116 * hppa-tdep.c: Likewise.
4117 * hppanbsd-tdep.c: Likewise.
4118 * hppaobsd-tdep.c: Likewise.
4119 * i386-darwin-nat.c: Likewise.
4120 * i386-darwin-tdep.c: Likewise.
4121 * i386-nto-tdep.c: Likewise.
4122 * i386-tdep.c: Likewise.
4123 * i386bsd-nat.c: Likewise.
4124 * i386fbsd-tdep.c: Likewise.
4125 * i386gnu-nat.c: Likewise.
4126 * i386nbsd-tdep.c: Likewise.
4127 * i386obsd-tdep.c: Likewise.
4128 * i387-tdep.c: Likewise.
4129 * ia64-libunwind-tdep.c: Likewise.
4130 * ia64-tdep.c: Likewise.
4131 * inf-ptrace.c: Likewise.
4132 * inf-ttrace.c: Likewise.
4133 * infcall.c: Likewise.
4134 * infcmd.c: Likewise.
4135 * infrun.c: Likewise.
4136 * inline-frame.c: Likewise.
4137 * interps.c: Likewise.
4138 * jv-lang.c: Likewise.
4139 * jv-typeprint.c: Likewise.
4140 * linux-fork.c: Likewise.
4141 * linux-nat.c: Likewise.
4142 * linux-thread-db.c: Likewise.
4143 * m32c-tdep.c: Likewise.
4144 * m32r-linux-nat.c: Likewise.
4145 * m32r-tdep.c: Likewise.
4146 * m68k-tdep.c: Likewise.
4147 * m68kbsd-nat.c: Likewise.
4148 * m68kbsd-tdep.c: Likewise.
4149 * m88k-tdep.c: Likewise.
4150 * machoread.c: Likewise.
4151 * macroexp.c: Likewise.
4152 * macrotab.c: Likewise.
4153 * maint.c: Likewise.
4154 * mdebugread.c: Likewise.
4155 * memory-map.c: Likewise.
4156 * mep-tdep.c: Likewise.
4157 * mi/mi-common.c: Likewise.
4158 * microblaze-tdep.c: Likewise.
4159 * mingw-hdep.c: Likewise.
4160 * mips-linux-nat.c: Likewise.
4161 * mips-linux-tdep.c: Likewise.
4162 * mips-tdep.c: Likewise.
4163 * mips64obsd-tdep.c: Likewise.
4164 * mipsnbsd-tdep.c: Likewise.
4165 * mn10300-linux-tdep.c: Likewise.
4166 * mn10300-tdep.c: Likewise.
4167 * moxie-tdep.c: Likewise.
4168 * mt-tdep.c: Likewise.
4169 * nat/linux-btrace.c: Likewise.
4170 * nat/linux-osdata.c: Likewise.
4171 * nat/linux-ptrace.c: Likewise.
4172 * nat/mips-linux-watch.c: Likewise.
4173 * nios2-linux-tdep.c: Likewise.
4174 * nios2-tdep.c: Likewise.
4175 * objc-lang.c: Likewise.
4176 * objfiles.c: Likewise.
4177 * obsd-nat.c: Likewise.
4178 * opencl-lang.c: Likewise.
4179 * osabi.c: Likewise.
4180 * parse.c: Likewise.
4181 * ppc-linux-nat.c: Likewise.
4182 * ppc-sysv-tdep.c: Likewise.
4183 * ppcfbsd-nat.c: Likewise.
4184 * ppcfbsd-tdep.c: Likewise.
4185 * ppcnbsd-nat.c: Likewise.
4186 * ppcnbsd-tdep.c: Likewise.
4187 * ppcobsd-nat.c: Likewise.
4188 * ppcobsd-tdep.c: Likewise.
4189 * printcmd.c: Likewise.
4190 * procfs.c: Likewise.
4191 * prologue-value.c: Likewise.
4192 * psymtab.c: Likewise.
4193 * python/py-lazy-string.c: Likewise.
4194 * python/py-value.c: Likewise.
4195 * regcache.c: Likewise.
4196 * reggroups.c: Likewise.
4197 * registry.c: Likewise.
4198 * remote-sim.c: Likewise.
4199 * remote.c: Likewise.
4200 * rs6000-aix-tdep.c: Likewise.
4201 * rs6000-tdep.c: Likewise.
4202 * s390-linux-tdep.c: Likewise.
4203 * score-tdep.c: Likewise.
4204 * ser-base.c: Likewise.
4205 * ser-mingw.c: Likewise.
4206 * sh-tdep.c: Likewise.
4207 * sh64-tdep.c: Likewise.
4208 * solib-darwin.c: Likewise.
4209 * solib-spu.c: Likewise.
4210 * solib-svr4.c: Likewise.
4211 * source.c: Likewise.
4212 * sparc-nat.c: Likewise.
4213 * sparc-sol2-tdep.c: Likewise.
4214 * sparc-tdep.c: Likewise.
4215 * sparc64-sol2-tdep.c: Likewise.
4216 * sparc64-tdep.c: Likewise.
4217 * sparc64fbsd-tdep.c: Likewise.
4218 * sparc64nbsd-tdep.c: Likewise.
4219 * sparc64obsd-tdep.c: Likewise.
4220 * sparcnbsd-tdep.c: Likewise.
4221 * sparcobsd-tdep.c: Likewise.
4222 * spu-multiarch.c: Likewise.
4223 * spu-tdep.c: Likewise.
4224 * stabsread.c: Likewise.
4225 * stack.c: Likewise.
4226 * symfile.c: Likewise.
4227 * symtab.c: Likewise.
4228 * target-descriptions.c: Likewise.
4229 * target-memory.c: Likewise.
4230 * target.c: Likewise.
4231 * tic6x-linux-tdep.c: Likewise.
4232 * tic6x-tdep.c: Likewise.
4233 * tilegx-linux-nat.c: Likewise.
4234 * tilegx-tdep.c: Likewise.
4235 * top.c: Likewise.
4236 * tramp-frame.c: Likewise.
4237 * tui/tui-out.c: Likewise.
4238 * tui/tui-winsource.c: Likewise.
4239 * ui-out.c: Likewise.
4240 * user-regs.c: Likewise.
4241 * utils.c: Likewise.
4242 * v850-tdep.c: Likewise.
4243 * valops.c: Likewise.
4244 * value.c: Likewise.
4245 * varobj.c: Likewise.
4246 * vax-nat.c: Likewise.
4247 * xml-syscall.c: Likewise.
4248 * xml-tdesc.c: Likewise.
4249 * xstormy16-tdep.c: Likewise.
4250 * xtensa-linux-nat.c: Likewise.
4251 * xtensa-tdep.c: Likewise.
4252
e76df0d0
GB
42532014-08-07 Gary Benson <gbenson@redhat.com>
4254
4255 * common/common-defs.h: Include common-utils.h.
4256 * defs.h: Do not include common-utils.h.
4257 * common/gdb_assert.h: Likewise.
4258 * darwin-nat.h: Likewise.
4259 * nat/linux-btrace.c: Likewise.
4260 * target/waitstatus.h: Likewise.
4261
4cb9c816
GB
42622014-08-07 Gary Benson <gbenson@redhat.com>
4263
4264 * common/common-defs.h: Include ptid.h.
4265 * defs.h: Do not include ptid.h.
4266 * inferior.h: Likewise.
4267 * infrun.h: Likewise.
4268 * nat/linux-btrace.h: Likewise.
4269 * nat/linux-osdata.h: Likewise.
4270 * target/waitstatus.h: Likewise.
4271
3995eeee
GB
42722014-08-07 Gary Benson <gbenson@redhat.com>
4273
4274 * common/common-defs.h: Include gdb_locale.h.
4275 * defs.h: Do not include gdb_locale.h.
4276
cb9f1a9b
GB
42772014-08-07 Gary Benson <gbenson@redhat.com>
4278
4279 * common/common-defs.h: Include gdb/signals.h.
4280 * defs.h: Do not include gdb/signals.h.
4281
a5fceff8
GB
42822014-08-07 Gary Benson <gbenson@redhat.com>
4283
4284 * common/common-defs.h: Include pathmax.h.
4285 * defs.h: Do not include pathmax.h.
4286
b9391142
GB
42872014-08-07 Gary Benson <gbenson@redhat.com>
4288
4289 * common/common-defs.h: Include libiberty.h.
4290 * defs.h: Do not include libiberty.h.
4291 * common/queue.h: Likewise.
4292 * cp-name-parser.y: Likewise.
4293 * mi/mi-cmd-catch.c: Likewise.
4294 * python/python.c: Likewise.
4295
0e443c87
GB
42962014-08-07 Gary Benson <gbenson@redhat.com>
4297
4298 * common/common-defs.h: Include ansidecl.h.
4299 * defs.h: Do not include ansidecl.h.
4300 * common/buffer.h: Likewise.
4301 * common/common-utils.h: Likewise.
4302
8ebb3f56
GB
43032014-08-07 Gary Benson <gbenson@redhat.com>
4304
4305 * common/common-defs.h: Include stddef.h.
4306 * defs.h: Do not include stddef.h.
4307 * common/common-utils.h: Likewise.
4308 * amd64fbsd-nat.c: Likewise.
4309 * bcache.c: Likewise.
4310 * charset.c: Likewise.
4311 * common/buffer.h: Likewise.
4312 * common/vec.h: Likewise.
4313 * i386bsd-nat.c: Likewise.
4314 * nat/linux-btrace.h: Likewise.
4315 * ppcfbsd-nat.c: Likewise.
4316 * ppcnbsd-tdep.h: Likewise.
4317 * ppcobsd-nat.c: Likewise.
4318 * ppcobsd-tdep.h: Likewise.
4319 * python/py-gdb-readline.c: Likewise.
4320
8980bdf6
GB
43212014-08-07 Gary Benson <gbenson@redhat.com>
4322
4323 * common/common-defs.h: Include stdarg.h.
4324 * defs.h: Do not include stdarg.h.
4325 * ada-lang.c: Likewise.
4326 * common/common-utils.h: Likewise.
4327 * guile/scm-string.c: Likewise.
4328 * guile/scm-utils.c: Likewise.
4329 * m32c-tdep.c: Likewise.
4330
d7096f71
GB
43312014-08-07 Gary Benson <gbenson@redhat.com>
4332
4333 * common/common-defs.h: Include stdlib.h.
4334 * defs.h: Do not include stdlib.h.
4335 * addrmap.c: Likewise.
4336 * bcache.c: Likewise.
4337 * common/buffer.c: Likewise.
4338 * common/common-utils.c: Likewise.
4339 * cp-name-parser.y: Likewise.
4340 * go32-nat.c: Likewise.
4341 * mn10300-linux-tdep.c: Likewise.
4342 * nat/linux-osdata.c: Likewise.
4343 * tui/tui.c: Likewise.
4344 * windows-nat.c: Likewise.
4345
d02f550d
GB
43462014-08-07 Gary Benson <gbenson@redhat.com>
4347
4348 * common/common-defs.h: Include stdio.h.
4349 * defs.h: Do not include stdio.h.
4350 * ada-lang.c: Likewise.
4351 * common/buffer.c: Likewise.
4352 * common/common-utils.c: Likewise.
4353 * cp-name-parser.y: Likewise.
4354 * gnu-nat.c: Likewise.
4355 * go32-nat.c: Likewise.
4356 * i386gnu-nat.c: Likewise.
4357 * proc-api.c: Likewise.
4358 * proc-events.c: Likewise.
4359 * proc-flags.c: Likewise.
4360 * proc-why.c: Likewise.
4361 * python/python-internal.h: Likewise.
4362 * target-memory.c: Likewise.
4363 * tui/tui-io.c: Likewise.
4364 * tui/tui.c: Likewise.
4365
b6d7a4bf
SM
43662014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4367
4368 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4369 (scan_dyntag_auxv): Same.
4370
af19829b
YQ
43712014-08-06 Yao Qi <yao@codesourcery.com>
4372
4373 * amd64-linux-nat.c: Remove duplicated include
4374 "x86-linux-nat.h".
4375 * i386-linux-nat.c: Likewise.
4376
8e07a239
YQ
43772014-08-06 Yao Qi <yao@codesourcery.com>
4378
4379 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4380 operand" with "Special opcode" in comments.
4381
7bfe8241
GB
43822014-08-05 Gary Benson <gbenson@redhat.com>
4383
4384 * interps.c (initialize_interps): Remove prototype.
4385 (interpreter_initialized): Remove static global.
4386 (interp_add): Do not call initialize_interps.
4387 (initialize_interps): Remove function.
4388
d6c95504
GB
43892014-08-05 Gary Benson <gbenson@redhat.com>
4390
4391 * utils.c (vwarning): Remove spurious va_end.
4392
241fd515
AM
43932014-08-05 Alan Modra <amodra@gmail.com>
4394
4395 * charset.c (convert_between_encodings): Cast result of obstack_base.
4396 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4397 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4398 (read_unwind_info): Use size_t for some locals.
4399 * jit.c (finalize_symtab): Likewise.
4400 * utils.c (hashtab_obstack_allocate): Likewise.
4401 * symmisc.c (print_objfile_statistics): Update format strings.
4402
dc304a94
JK
44032014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4404
4405 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4406 (Changes in GDB 7.8): ... here.
4407
3cecbbbe
TT
44082014-08-04 Tom Tromey <tromey@redhat.com>
4409
4410 * target.c (set_targetdebug): New function.
4411 (initialize_targets): Pass set_targetdebug when creating "set
4412 debug target".
4413
6908c509
JB
44142014-08-01 Joel Brobecker <brobecker@adacore.com>
4415
4416 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4417 if detecting a variable-sized field that is not the last field.
4418 Fix struct type length computation.
4419
53e8f97d
JB
44202014-08-01 Joel Brobecker <brobecker@adacore.com>
4421
4422 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4423 Add debug trace.
4424
e068c55d
JB
44252014-08-01 Joel Brobecker <brobecker@adacore.com>
4426
4427 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4428 Remove "+ 8" offset in computation of CHAIN_VMA.
4429
4d4ca2a1
DE
44302014-07-31 Doug Evans <dje@google.com>
4431
4432 * inflow.c (child_terminal_inferior): Add comment.
4433 (child_terminal_ours_for_output): Add comment.
4434 (child_terminal_ours): Add comment.
4435 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4436 (linux_nat_terminal_ours): Add comment.
4437
462f517e
GB
44382014-07-31 Gary Benson <gbenson@redhat.com>
4439
4440 * common/btrace-common.h: Do not include defs.h or server.h.
4441 * nat/mips-linux-watch.h: Likewise.
4442 * gdb-dlfcn.h: Do not include defs.h.
4443 * tracefile.h: Likewise.
4444
74228e77
RM
44452014-07-30 Roland McGrath <mcgrathr@google.com>
4446
4447 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4448
014f9477
TT
44492014-07-30 Tom Tromey <tromey@redhat.com>
4450
4451 * bsd-kvm.c (bsd_kvm_open): Constify.
4452 * corelow.c (core_open): Constify.
4453 * ctf.c (ctf_open): Constify.
4454 * dbug-rom.c (dbug_open): Constify.
4455 * exec.c (exec_open): Constify.
4456 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4457 * microblaze-rom.c (picobug_open): Constify.
4458 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4459 Constify.
4460 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4461 * record-btrace.c (record_btrace_open): Constify.
4462 * record-full.c (record_full_core_open_1, record_full_open_1)
4463 (record_full_open): Constify.
4464 * remote-m32r-sdi.c (m32r_open): Constify.
4465 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4466 (rockhopper_open, lsi_open): Constify.
4467 * remote-sim.c (gdbsim_open): Constify.
4468 * remote.c (remote_open, extended_remote_open, remote_open_1):
4469 Constify.
4470 * target.h (struct target_ops) <to_open>: Make "arg" const.
4471 * tracefile-tfile.c (tfile_open): Constify.
4472
e799154c
TT
44732014-07-30 Tom Tromey <tromey@redhat.com>
4474
4475 * breakpoint.c (map_breakpoint_numbers): Update.
4476 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4477 (get_number_const): New function.
4478 (get_number): Rewrite using get_number_const.
4479 (init_number_or_range): Make "string" const.
4480 (number_is_in_list): Make "list" const.
4481 * cli/cli-utils.h (get_number_const): Declare.
4482 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4483 (init_number_or_range, number_is_in_list): Update.
4484 * printcmd.c (map_display_numbers): Update.
4485 * value.c (value_from_history_ref): Constify.
4486 * value.h (value_from_history_ref): Update.
4487
5f08566b
TT
44882014-07-30 Tom Tromey <tromey@redhat.com>
4489
4490 * corefile.c (hook_type, call_extra_exec_file_hooks)
4491 (specify_exec_file_hook): Constify.
4492 * exec.c (exec_file_attach): Make "filename" const.
4493 * gdbcore.h (deprecated_exec_file_display_hook)
4494 (specify_exec_file_hook, exec_file_attach): Constify.
4495 * main.c (captured_main): Use catch_command_errors_const.
4496
8981c758
TT
44972014-07-30 Tom Tromey <tromey@redhat.com>
4498
4499 * target.c (open_target): New function.
4500 (add_target_with_completer, add_deprecated_target_alias): Use
4501 set_cmd_sfunc, set_cmd_context.
4502 (debug_to_open): Remove.
4503 (setup_target_debug): Update.
4504
a1c7835a
YQ
45052014-07-30 Yao Qi <yao@codesourcery.com>
4506
4507 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4508 comments.
4509 * parse.c (exp_iterate): Update comments.
4510
976411d6
GB
45112014-07-30 Gary Benson <gbenson@redhat.com>
4512
4513 * common/common-defs.h: New file.
4514 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4515 * defs.h: Include common-defs.h.
4516 Do not include config.h or build-gnulib/config.h.
4517
5d4848a4
GB
45182014-07-30 Gary Benson <gbenson@redhat.com>
4519
4520 * common/common-utils.h: Do not include config.h.
4521 * nat/linux-btrace.h: Likewise.
4522
d41f6d8e
GB
45232014-07-30 Gary Benson <gbenson@redhat.com>
4524
4525 * btrace.c: Include defs.h.
4526 * common/ptid.c: Include defs.h or server.h as appropriate.
4527 * nat/mips-linux-watch.c: Likewise.
4528
84202f9c
TT
45292014-07-29 Tom Tromey <tromey@redhat.com>
4530
4531 * target.c (target_is_pushed): Simplify.
4532
2530441c
JB
45332014-07-29 Joel Brobecker <brobecker@adacore.com>
4534
4535 GDB 7.8 released.
4536
7e09a223
YQ
45372014-07-29 Yao Qi <yao@codesourcery.com>
4538
4539 PR gdb/17206
4540 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4541
7ebdbe92
DE
45422014-07-28 Doug Evans <xdje42@gmail.com>
4543
4544 PR guile/17203
4545 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4546 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4547 parameters.
4548
f347ffc9
WN
45492014-07-28 Will Newton <will.newton@linaro.org>
4550
4551 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4552 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4553 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4554 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4555 (THUMB2_EABI_SYSCALL): Likewise.
4556 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4557 struct tramp_frame.
4558 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4559 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4560
37c5f1f7
DE
45612014-07-27 Doug Evans <xdje42@gmail.com>
4562
4563 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4564
0c3abbc7
DE
45652014-07-27 Doug Evans <xdje42@gmail.com>
4566
4567 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4568
e76c5d17
DE
45692014-07-26 Ludovic Courtès <ludo@gnu.org>
4570 Doug Evans <xdje42@gmail.com>
4571
4572 PR guile/17146
4573 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4574 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4575 * configure.ac: Try to use guild to compile an scm file, if it fails
4576 then disable guile support.
4577 * configure: Regenerate.
4578 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4579 GUILE_FILE_LIST.
4580 (GUILE_COMPILED_FILES): New variable.
4581 (GUILE_FILES) Update.
4582 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4583 (stamp-guile): Compile scm files.
4584 * guile/guile.c (boot_guile_support): New function.
4585 (standard_throw_args_p): New function.
4586 (print_standard_throw_error, print_throw_error): New functions.
4587 (handle_boot_error): New function.
4588 (initialize_scheme_side): Rewrite to call boot_guile_support.
4589 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4590 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4591
186fcde0
DE
45922014-07-26 Ludovic Courtès <ludo@gnu.org>
4593 Doug Evans <xdje42@gmail.com>
4594
4595 PR guile/17146
4596 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4597 * guile/lib/gdb/support.scm: New file.
4598 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4599 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4600 All uses updated.
4601 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4602 All uses updated.
4603 (%assert-type): Ditto, and renamed to assert-type.
4604 (%exception-print-style): Delete.
4605
4df42755
DE
46062014-07-26 Doug Evans <xdje42@gmail.com>
4607
4608 PR build/17105
4609 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4610 * configure: Regenerate.
4611 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4612 PYTHON_FILES.
4613 (PYTHON_FILES): New variable.
4614 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4615 (GUILE_FILES): New variable.
4616 (stamp-python, install-python, uninstall-python): Handle empty
4617 file list.
4618 (stamp-guile, install-guile, uninstall-guile): Ditto.
4619
ee7333ae
DE
46202014-07-26 Doug Evans <xdje42@gmail.com>
4621
4622 PR guile/17177
4623 * guile/lib/gdb.scm (pretty-printers): Export.
4624 (set-pretty-printers!): Export.
4625 * guile/lib/gdb/printing.scm (gdb module): Update.
4626 (prepend-pretty-printer!, append-pretty-printer!): Update.
4627 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4628 (pretty_printer_list_var): Delete.
4629 (pretty_printer_list): New static global.
4630 (gdbscm_pretty_printers): New function.
4631 (gdbscm_set_pretty_printers_x): New function.
4632 (ppscm_find_pretty_printer_from_gdb): Update.
4633 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4634 (gdbscm_initialize_pretty_printers): Update.
4635
74edf516
DE
46362014-07-26 Doug Evans <xdje42@gmail.com>
4637
4638 PR 17185
4639 * configure.ac: Add check for header gc/gc.h.
4640 Add check for function setenv.
4641 * configure: Regenerate.
4642 * config.in: Regenerate.
4643 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4644
d54398a7
MR
46452014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4646
4647 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4648 variation in gdbarch matching.
4649
ab16fce8
TT
46502014-07-25 Tom Tromey <tromey@redhat.com>
4651
4652 * exec.c (using_exec_ops): Remove.
4653 (exec_close_1): Update. Remove extraneous block, reindent.
4654 (add_target_sections): Use target_is_pushed.
4655
88056fbb
PA
46562014-07-25 Pedro Alves <palves@redhat.com>
4657
4658 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4659 * monitor.c (monitor_create_inferior): Likewise.
4660 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4661 * remote-sim.c (gdbsim_create_inferior): Likewise.
4662 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4663 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4664 * windows-nat.c (do_initial_windows_stuff): Likewise.
4665
70509625
PA
46662014-07-25 Pedro Alves <palves@redhat.com>
4667
4668 * NEWS: Mention signal passing and "signal" command changes.
4669 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4670 comment.
4671 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4672 call.
4673 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4674 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4675 (jump_command): Adjust clear_proceed_status call.
4676 (signal_command): Warn if other thread that are resumed have
4677 signals that will be delivered. Adjust clear_proceed_status call.
4678 (until_next_command, finish_command)
4679 (proceed_after_attach_callback, attach_command_post_wait)
4680 (attach_command): Adjust clear_proceed_status call.
4681 * infrun.c (proceed_after_vfork_done): Likewise.
4682 (proceed_after_attach_callback): Adjust comment.
4683 (clear_proceed_status_thread): Clear stop_signal if not in pass
4684 state.
4685 (clear_proceed_status_callback): Delete.
4686 (clear_proceed_status): New 'step' parameter. Only clear the
4687 proceed status of threads the command being prepared is about to
4688 resume.
4689 (proceed): If passed in an explicit signal, override stop_signal
4690 with it. Don't pass the last stop signal to the thread we're
4691 resuming.
4692 (init_wait_for_inferior): Adjust clear_proceed_status call.
4693 (switch_back_to_stepped_thread): Clear the signal if it should not
4694 be passed.
4695 * infrun.h (clear_proceed_status): New 'step' parameter.
4696 (user_visible_resume_ptid): Add comment.
4697 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4698 signal is in pass state.
4699 * remote.c (append_pending_thread_resumptions): Likewise.
4700 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4701
d8be2939
TT
47022014-07-25 Tom Tromey <tromey@redhat.com>
4703
4704 * target.h (target_stopped_data_address)
4705 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4706 parentheses.
4707
7d0d9d2b
PL
47082014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4709
4710 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4711 comments.
4712 (avr_pointer_to_address): Likewise.
4713
e9e7f724
TT
47142014-07-24 Tom Tromey <tromey@redhat.com>
4715
4716 * monitor.c (compile_pattern): Update.
4717 * target.h (struct target_ops) <to_shortname, to_longname,
4718 to_doc>: Now const.
4719
1947513d
TT
47202014-07-24 Tom Tromey <tromey@redhat.com>
4721
4722 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4723 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4724 (add_info_alias, add_com): Make "doc" const.
4725 (print_doc_line): Make "str" const.
4726 (delete_cmd): Update.
4727 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4728 (print_doc_line): Update.
4729 * cli/cli-script.c (document_command): Update.
4730 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4731 (add_com, add_info, add_info_alias): Update.
4732 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4733 * python/py-cmd.c (cmdpy_destroyer): Update.
4734
64e61d29
TT
47352014-07-24 Tom Tromey <tromey@redhat.com>
4736
4737 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4738 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4739 (help_cmd_list): Constify.
4740 (lookup_cmd): Update.
4741 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4742 const.
4743 (help_cmd_list, apropos_cmd): Update.
4744 * cli/cli-script.c (show_user): Update.
4745 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4746 * cli/cli-setshow.h (cmd_show_list): Update.
4747 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4748 (cmd_show_list): Update.
4749 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4750 * python/py-cmd.c (cmdpy_destroyer): Update.
4751
429e55ea
TT
47522014-07-24 Tom Tromey <tromey@redhat.com>
4753
4754 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4755 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4756 const.
4757 * command.h (deprecate_cmd): Update.
4758 * maint.c (maintenance_do_deprecate): Add casts.
4759
64669f3b
TT
47602014-07-24 Tom Tromey <tromey@redhat.com>
4761
4762 * cli/cli-decode.c (help_cmd): Make parameter "const".
4763 * cli/cli-decode.h (help_cmd): Update.
4764
d3d3328b
TT
47652014-07-24 Tom Tromey <tromey@redhat.com>
4766
4767 * stack.c (up_silently_base, down_silently_base): Make argument
4768 const.
4769
414842dc
TT
47702014-07-24 Tom Tromey <tromey@redhat.com>
4771
4772 * solib.c (solib_add): Make "pattern" const.
4773 * solib.h (solib_add): Update.
4774
baa336ce
TT
47752014-07-24 Tom Tromey <tromey@redhat.com>
4776
4777 * remote.c (remote_serial_open, print_packet, putpkt)
4778 (putpkt_binary): Constify.
4779 * remote.h (putpkt): Update.
4780
5a19e2d0
TT
47812014-07-24 Tom Tromey <tromey@redhat.com>
4782
4783 * monitor.c (monitor_open): Make "args" const.
4784 * monitor.h (monitor_open): Update.
4785
fc4baa5e
TT
47862014-07-24 Tom Tromey <tromey@redhat.com>
4787
4788 * maint.c (match_bfd_flags): Make "string" const.
4789 (print_bfd_section_info): Remove casts.
4790 (print_objfile_section_info): Make "string" const.
4791
0d5f0dbe
TT
47922014-07-24 Tom Tromey <tromey@redhat.com>
4793
4794 * inf-child.c (inf_child_open_target): Make "arg" const.
4795 * inf-child.h (inf_child_open_target): Update.
4796
41c77899
TT
47972014-07-24 Tom Tromey <tromey@redhat.com>
4798
4799 * environ.c (unset_in_environ): Make "var" const.
4800 * environ.h (unset_in_environ): Update.
4801
93db0d79
TT
48022014-07-24 Tom Tromey <tromey@redhat.com>
4803
4804 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4805 Make "cmd" const.
4806 (scan_filename_with_cleanup): Likewise.
4807 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4808 Make arguments const.
4809 (restore_command): Update.
4810
36d6eb95
PA
48112014-07-24 Pedro Alves <palves@redhat.com>
4812
4813 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4814
8009206a
TT
48152014-07-24 Tom Tromey <tromey@redhat.com>
4816 Gary Benson <gbenson@redhat.com>
4817
4818 * nat/linux-ptrace.c (additional_flags): New global.
4819 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4820 additional_flags; don't check GDBSERVER.
4821 (linux_ptrace_set_additional_flags): New function.
4822 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4823 Declare.
4824 * linux-nat.c (_initialize_linux_nat): Call
4825 linux_ptrace_set_additional_flags.
4826
a7068b60
TT
48272014-07-24 Tom Tromey <tromey@redhat.com>
4828
4829 * make-target-delegates (munge_type, write_debugmethod): New
4830 functions.
4831 (debug_names): New global.
4832 ($TARGET_DEBUG_PRINTER): New global.
4833 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4834 name.
4835 Write debug methods. Generate init_debug_target.
4836 * target-debug.h: New file.
4837 * target-delegates.c: Rebuild.
4838 * target.c: Include target-debug.h.
4839 (debug_target): Hoist definition.
4840 (target_kill, target_get_section_table, target_memory_map)
4841 (target_flash_erase, target_flash_done, target_detach)
4842 (target_disconnect, target_wait, target_resume)
4843 (target_pass_signals, target_program_signals, target_follow_fork)
4844 (target_mourn_inferior, target_search_memory)
4845 (target_thread_address_space, target_close)
4846 (target_find_new_threads, target_core_of_thread)
4847 (target_verify_memory, target_insert_mask_watchpoint)
4848 (target_remove_mask_watchpoint): Remove targetdebug code.
4849 (debug_to_post_attach, debug_to_prepare_to_store)
4850 (debug_to_files_info, debug_to_insert_breakpoint)
4851 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4852 (debug_to_region_ok_for_hw_watchpoint)
4853 (debug_to_can_accel_watchpoint_condition)
4854 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4855 (debug_to_watchpoint_addr_within_range)
4856 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4857 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4858 (debug_to_terminal_init, debug_to_terminal_inferior)
4859 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4860 (debug_to_terminal_save_ours, debug_to_terminal_info)
4861 (debug_to_load, debug_to_post_startup_inferior)
4862 (debug_to_insert_fork_catchpoint)
4863 (debug_to_remove_fork_catchpoint)
4864 (debug_to_insert_vfork_catchpoint)
4865 (debug_to_remove_vfork_catchpoint)
4866 (debug_to_insert_exec_catchpoint)
4867 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4868 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4869 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4870 (setup_target_debug): Call init_debug_target.
4871 * target.h (TARGET_DEBUG_PRINTER): New macro.
4872 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4873 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4874
2c51604d
GB
48752014-07-24 Gary Benson <gbenson@redhat.com>
4876
4877 * exceptions.h (throw_vfatal): Renamed to...
4878 (throw_vquit): New declaration.
4879 (throw_quit): Likewise.
4880 * exceptions.c (throw_vfatal): Renamed to...
4881 (throw_vquit): New function.
4882 (throw_quit): Likewise.
4883 (throw_error): Call throw_verror rather than throw_it.
4884 * utils.h (vfatal): Removed.
4885 (fatal): Likewise.
4886 * utils.c (vfatal): Removed.
4887 (fatal): Likewise.
4888 (internal_verror): Replaced call to fatal with call to throw_quit.
4889 (quit): Replaced calls to fatal with calls to throw_quit.
4890
34211963
ME
48912014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4892
4893 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4894 target_read_code.
4895
a52b4d3e
ME
48962014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4897
4898 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4899 less than zero in conditional expression.
4900
a8bdc56b
TT
49012014-07-23 Tom Tromey <tromey@redhat.com>
4902
4903 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4904 ($INTRO_PART): Don't match whitespace.
4905 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4906 argument matching.
4907 ($METHOD): Add $METHOD_TRAILER.
4908 (trim): Rewrite.
4909 (scan_target_h): New sub.
4910 Change main loop not to collect state.
4911 * target-delegates.c: Rebuild.
4912
91b52240
GB
49132014-07-23 Gary Benson <gbenson@redhat.com>
4914
4915 * cp-support.c (gdb_demangle): Fix build on systems without
4916 sigaltstack.
4917
45326f6f
JK
49182014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4919
4920 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4921 for reference entry value target data value.
4922
e214cf6c
JK
49232014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4924
4925 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4926 value_available_contents_eq.
4927
bddbbedd
PA
49282014-07-22 Pedro Alves <palves@redhat.com>
4929
4930 * value.c (allocate_optimized_out_value): Don't mark value as
4931 non-lazy.
4932
45c71484
JW
49332014-07-22 Jiong Wang <jiong.wang@arm.com>
4934
4935 * MAINTAINERS (Write After Approval): Update my email address.
4936
9597b22a
DE
49372014-07-20 Doug Evans <dje@google.com>
4938
4939 PR server/17147
4940 * remote.c (putpkt_binary): Add text to error message.
4941
91101fe5
YQ
49422014-07-20 Yao Qi <yao@codesourcery.com>
4943
4944 * eval.c: Remove "Chill" from comments.
4945 * gdbtypes.h: Likewise.
4946 * symtab.h: Likewise.
4947
c9402c95
YQ
49482014-07-20 Yao Qi <yao@codesourcery.com>
4949
4950 * std-operator.def: Update comments to TERNOP_SLICE.
4951
ae8fddda
YQ
49522014-07-20 Yao Qi <yao@codesourcery.com>
4953
4954 * std-operator.def: Remove BINOP_RANGE.
4955 * breakpoint.c (watchpoint_exp_is_const): Update.
4956 * expprint.c (dump_subexp_body_standard): Likewise.
4957 * eval.c (init_array_element): Remove dead code.
4958 (evaluate_subexp_standard): Likewise.
4959
9c816640
YQ
49602014-07-20 Yao Qi <yao@codesourcery.com>
4961
4962 * std-operator.def: Remove BINOP_IN.
4963 * breakpoint.c (watchpoint_exp_is_const): Update.
4964 * eval.c (evaluate_subexp_standard): Likewise.
4965 * expprint.c (dump_subexp_body_standard): Likewise.
4966
164224e9
ME
49672014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4968
4969 * microblaze-tdep.c (microblaze_register_names): Add
4970 the rshr and rslr register names.
4971 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4972 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4973 Use of tdesc_numbered_register. Use of
4974 microblaze_register_g_packet_guesses. Use of
4975 tdesc_use_registers. Use of set_gdbarch_register_type.
4976 (microblaze_register_g_packet_guesses): New.
4977 * microblaze-tdep.h (microblaze_reg_num): Add
4978 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4979 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4980 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4981 * features/microblaze-core.xml: New file.
4982 * features/microblaze-stack-protect.xml: New file.
4983 * features/microblaze-with-stack-protect.c: New file.
4984 * features/microblaze-with-stack-protect.xml: New file.
4985 * features/microblaze.xml: New file.
4986 * features/microblaze.c: New file.
4987 * features/Makefile (microblaze-with-stack-protect): Add
4988 microblaze-with-stack-protect microblaze and microblaze-expedite.
4989 * regformats/microblaze-with-stack-protect.dat: New file.
4990 * regformats/microblaze.dat: New file.
4991 * doc/gdb.texinfo (MicroBlaze Features): Added.
4992
e8b2341c
TT
49932014-07-18 Tom Tromey <tromey@redhat.com>
4994
4995 * exec.c (exec_ops): Now static.
4996 * exec.h (exec_ops): Don't declare.
4997
44e89118
TT
49982014-07-18 Tom Tromey <tromey@redhat.com>
4999
5000 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5001 to find_target_beneath.
5002 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5003 find_target_beneath.
5004 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5005
b0ed115f
TT
50062014-07-18 Tom Tromey <tromey@redhat.com>
5007
5008 PR gdb/17130:
5009 * utils.c (quit): Use target_supports_terminal_ours.
5010 * target.h (target_supports_terminal_ours): Declare.
5011 * target.c (target_supports_delete_record): Don't check
5012 to_delete_record against NULL.
5013 (target_supports_terminal_ours): New function.
5014
e75fdfca
TT
50152014-07-18 Tom Tromey <tromey@redhat.com>
5016
5017 PR gdb/17130:
5018 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5019 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5020 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5021 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5022 * windows-nat.c (windows_xfer_partial): Always delegate.
5023 * record-btrace.c (record_btrace_xfer_partial): Simplify
5024 delegation.
5025 (record_btrace_fetch_registers, record_btrace_store_registers)
5026 (record_btrace_prepare_to_store, record_btrace_resume)
5027 (record_btrace_wait, record_btrace_find_new_threads)
5028 (record_btrace_thread_alive): Likewise.
5029 * procfs.c (procfs_xfer_partial): Always delegate.
5030 * corelow.c (core_xfer_partial): Always delegate.
5031 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5032
83814951
TT
50332014-07-18 Tom Tromey <tromey@redhat.com>
5034
5035 * exec.c (exec_make_note_section): Move earlier.
5036
b8b8facf
DE
50372014-07-17 Doug Evans <dje@google.com>
5038
74b49205 5039 PR gdb/17170
b8b8facf
DE
5040 * maint.c (count_symtabs_and_blocks): Handle NULL
5041 current_program_space.
5042 (report_command_stats): Check global enabled flag in addition to
5043 recorded enabled flag.
5044 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5045
69ff6be5
PA
50462014-07-16 Pedro Alves <palves@redhat.com>
5047
5048 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5049
252db1b5
TT
50502014-07-16 Tom Tromey <tromey@redhat.com>
5051
5052 * target.h (struct target_ops) <to_delete_record>: Reformat
5053 comment.
5054
a432721e
TT
50552014-07-16 Tom Tromey <tromey@redhat.com>
5056
5057 * target-delegates.c: Rebuild.
5058
487d9753
PL
50592014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5060
5061 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5062 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5063 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5064 (avr_pointer_to_address): Likewise.
5065 (avr_address_class_type_flags): New function.
5066 (avr_address_class_type_flags_to_name): Likewise.
5067 (avr_address_class_name_to_type_flags): Likewise.
5068 (avr_gdbarch_init): Set address_class_type_flags,
5069 address_class_type_flags_to_name and
5070 address_class_name_to_type_flags.
5071
57745c90
PA
50722014-07-15 Pedro Alves <palves@redhat.com>
5073
5074 * linux-nat.c (kill_callback): Save errno and work with saved
5075 copy.
5076
2d40be18
SM
50772014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5078
5079 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5080
572f6555
EBM
50812014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5082
5083 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5084 breakpoint support correctly.
5085
cc1c52ad
PA
50862014-07-14 Pedro Alves <palves@redhat.com>
5087
5088 * utils.c (prompt_for_continue): Call target_terminal_ours.
5089
1e973570
PA
50902014-07-14 Pedro Alves <palves@redhat.com>
5091
5092 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5093 catch_errors. Don't re-enable stdin or notify observers where,
5094 and rethrow error.
5095 (fetch_inferior_event_wrapper): Delete.
5096
93d6eb10
PA
50972014-07-14 Pedro Alves <palves@redhat.com>
5098
5099 PR gdb/17072
5100 * top.c: Include "inf-loop.h".
5101 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5102 field.
5103 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5104 was async before.
5105 (gdb_readline_wrapper): Store whether the target is async, and
5106 make it sync.
5107
0017922d
PA
51082014-07-14 Pedro Alves <palves@redhat.com>
5109
5110 PR gdb/17072
5111 * top.c (gdb_readline_wrapper_line): Tweak comment.
5112 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5113 the input handler callback.
5114
94696ad3
PA
51152014-07-14 Pedro Alves <palves@redhat.com>
5116
5117 PR gdb/17072
5118 * main.c: Include event-top.h.
5119 (handle_command_errors): New function.
5120 (catch_command_errors, catch_command_errors_const): Use it.
5121
9d1e69a2
PA
51222014-07-14 Pedro Alves <palves@redhat.com>
5123
5124 * exceptions.c (catch_command_errors, catch_command_errors_const):
5125 Moved to main.c.
5126 * exceptions.h (catch_command_errors_ftype)
5127 (catch_command_errors_const_ftype): Moved to main.c.
5128 (catch_command_errors, catch_command_errors_const): Delete
5129 declarations.
5130 * main.c (catch_command_errors_ftype)
5131 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5132 (catch_command_errors, catch_command_errors_const)): Moved here
5133 from exceptions.c and make static.
5134
feefc97b
PA
51352014-07-14 Pedro Alves <palves@redhat.com>
5136
5137 * exceptions.c (print_any_exception): Delete.
5138 (catch_exceptions_with_msg): Use exception_print instead of
5139 print_any_exception.
5140 (catch_errors): Use exception_fprintf instead of
5141 print_any_exception.
5142 (catch_command_errors, catch_command_errors_const): Use
5143 exception_print instead of print_any_exception.
5144
c933f875
PA
51452014-07-14 Pedro Alves <palves@redhat.com>
5146
5147 * infcall.c (run_inferior_call): Set 'sync_execution' while
5148 running the inferior call.
5149
feb6f816
PA
51502014-07-14 Pedro Alves <palves@redhat.com>
5151
5152 * value.c (value_contents_equal): Delete function.
5153 * value.h (value_contents_equal): Delete declaration.
5154
d98b7a16
TT
51552014-07-14 Tom Tromey <tromey@redhat.com>
5156
5157 PR exp/17106:
5158 * gdbtypes.c (is_dynamic_type_internal): New function, from
5159 is_dynamic_type.
5160 (is_dynamic_type): Rewrite.
5161 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5162 (resolve_dynamic_struct): Likewise.
5163 (resolve_dynamic_type_internal): New function, from
5164 resolve_dynamic_type.
5165 (resolve_dynamic_type): Rewrite.
5166
548740d6
TT
51672014-07-14 Tom Tromey <tromey@redhat.com>
5168
5169 * target.c (target_require_runnable): Also check record_stratum.
5170 Update comment.
5171
808f7ab1
YQ
51722014-07-11 Yao Qi <yao@codesourcery.com>
5173
5174 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5175 thumb_instruction_restores_sp return true.
5176
540314bd
YQ
51772014-07-11 Yao Qi <yao@codesourcery.com>
5178
5179 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5180 (thumb_in_function_epilogue_p): Call
5181 thumb_instruction_restores_sp.
5182
1db01f22
YQ
51832014-07-11 Yao Qi <yao@codesourcery.com>
5184
5185 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5186 'add sp, #imm'.
5187 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5188
3116063b
GB
51892014-07-11 Gary Benson <gbenson@redhat.com>
5190
5191 * amd64-linux-nat.c (gdbcore.h): Remove include.
5192 (regset.h): Likewise.
5193 (nat/linux-btrace.h): Likewise.
5194 (btrace.h): Likewise.
5195 (gdb_assert.h): Likewise.
5196 (string.h): Likewise.
5197 (sys/uio.h): Likewise.
5198 (sys/debugreg.h): Likewise.
5199 (sys/syscall.h): Likewise.
5200 (sys/procfs.h): Likewise.
5201 (sys/user.h): Likewise.
5202 (asm/ptrace.h): Likewise.
5203 (i386-nat.h): Likewise.
5204 * i386-linux-nat.c (i386-nat.h): Likewise.
5205 (regset.h): Likewise.
5206 (target.h): Likewise.
5207 (linux-nat.h): Likewise.
5208 (nat/linux-btrace.h): Likewise.
5209 (btrace.h): Likewise.
5210 (gdb_assert.h): Likewise.
5211 (string.h): Likewise.
5212 (sys/uio.h): Likewise.
5213 (sys/user.h): Likewise.
5214 (sys/procfs.h): Likewise.
5215 (sys/reg.h): Likewise.
5216 (sys/debugreg.h): Likewise.
5217 (ORIG_EAX): Remove definition.
5218
040baaf6
GB
52192014-07-11 Gary Benson <gbenson@redhat.com>
5220
5221 * i386-linux-nat.h: New file.
5222 * x86-linux-nat.h: Likewise.
5223 * x86-linux-nat.c: Likewise.
5224 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5225 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5226 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5227 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5228 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5229 (PTRACE_SETREGSET): Likewise.
5230 (arch_lwp_info): Now in x86-linux-nat.c.
5231 (have_ptrace_getregset): Now in x86-linux-nat.h.
5232 (x86_linux_dr_get): Now in x86-linux-nat.c.
5233 (x86_linux_dr_set): Likewise.
5234 (x86_linux_dr_get_addr): Likewise.
5235 (x86_linux_dr_get_control): Likewise.
5236 (x86_linux_dr_get_status): Likewise.
5237 (update_debug_registers_callback): Likewise.
5238 (x86_linux_dr_set_control): Likewise.
5239 (x86_linux_dr_set_addr): Likewise.
5240 (x86_linux_prepare_to_resume): Likewise.
5241 (x86_linux_new_thread): Likewise.
5242 (x86_linux_new_fork): Likewise.
5243 (x86_linux_get_thread_area): Likewise.
5244 (super_post_startup_inferior): Likewise.
5245 (x86_linux_child_post_startup_inferior): Likewise.
5246 (AMD64_LINUX_USER64_CS): Likewise.
5247 (AMD64_LINUX_X32_DS): Likewise.
5248 (x86_linux_read_description): Likewise.
5249 (x86_linux_enable_btrace): Likewise.
5250 (x86_linux_disable_btrace): Likewise.
5251 (x86_linux_teardown_btrace): Likewise.
5252 (x86_linux_read_btrace): Likewise.
5253 (x86_linux_create_target): Likewise.
5254 (x86_linux_add_target): Likewise.
5255 * i386-linux-nat.c (x86-linux-nat.h): New include.
5256 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5257 (PTRACE_SETREGSET): Likewise.
5258 (arch_lwp_info): Now in x86-linux-nat.c.
5259 (have_ptrace_getregset): Now in x86-linux-nat.h.
5260 (x86_linux_dr_get): Now in x86-linux-nat.c.
5261 (x86_linux_dr_set): Likewise.
5262 (x86_linux_dr_get_addr): Likewise.
5263 (x86_linux_dr_get_control): Likewise.
5264 (x86_linux_dr_get_status): Likewise.
5265 (update_debug_registers_callback): Likewise.
5266 (x86_linux_dr_set_control): Likewise.
5267 (x86_linux_dr_set_addr): Likewise.
5268 (x86_linux_prepare_to_resume): Likewise.
5269 (x86_linux_new_thread): Likewise.
5270 (x86_linux_new_fork): Likewise.
5271 (x86_linux_get_thread_area): Likewise.
5272 (super_post_startup_inferior): Likewise.
5273 (x86_linux_child_post_startup_inferior): Likewise.
5274 (AMD64_LINUX_USER64_CS): Likewise.
5275 (AMD64_LINUX_X32_DS): Likewise.
5276 (x86_linux_read_description): Likewise.
5277 (x86_linux_enable_btrace): Likewise.
5278 (x86_linux_disable_btrace): Likewise.
5279 (x86_linux_teardown_btrace): Likewise.
5280 (x86_linux_read_btrace): Likewise.
5281 (x86_linux_create_target): Likewise.
5282 (x86_linux_add_target): Likewise.
5283
1aa7e42c
GB
52842014-07-11 Gary Benson <gbenson@redhat.com>
5285
5286 * amd64-linux-nat.c: Comment and whitespace changes.
5287 * i386-linux-nat.c: Comment and whitespace changes.
5288
c1e246a0
GB
52892014-07-11 Gary Benson <gbenson@redhat.com>
5290
5291 * amd64-linux-nat.c (x86_linux_create_target): New function.
5292 (x86_linux_add_target): Likewise.
5293 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5294 * i386-linux-nat.c (x86_linux_create_target): New function.
5295 (x86_linux_add_target): Likewise.
5296 (_initialize_i386_linux_nat): Delegate to the above new functions.
5297
8c420b8d
GB
52982014-07-11 Gary Benson <gbenson@redhat.com>
5299
5300 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5301 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5302 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5303 (ps_get_thread_area): Delegate to the above.
5304
cb1da100
GB
53052014-07-11 Gary Benson <gbenson@redhat.com>
5306
5307 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5308 x86_linux_read_description. All uses updated. amd64-specific
5309 code conditionalized. Conditionalized i386-specific code added.
5310 Redundant cast removed.
5311 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5312 x86_linux_read_description. All uses updated. i386-specific
5313 code conditionalized. Conditionalized amd64-specific code added.
5314 One sizeof replaced with the actual type it is describing.
5315
2acf3cd0
GB
53162014-07-11 Gary Benson <gbenson@redhat.com>
5317
5318 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5319 x86_linux_dr_get. All uses updated.
5320 (amd64_linux_dr_set): Renamed to
5321 x86_linux_dr_set. All uses updated.
5322 (amd64_linux_dr_get_addr): Renamed to
5323 x86_linux_dr_get_addr. All uses updated.
5324 (amd64_linux_dr_get_control): Renamed to
5325 x86_linux_dr_get_control. All uses updated.
5326 (amd64_linux_dr_get_status): Renamed to
5327 x86_linux_dr_get_status. All uses updated.
5328 (amd64_linux_dr_set_control): Renamed to
5329 x86_linux_dr_set_control. All uses updated.
5330 (amd64_linux_dr_set_addr): Renamed to
5331 x86_linux_dr_set_addr. All uses updated.
5332 (amd64_linux_prepare_to_resume): Renamed to
5333 x86_linux_prepare_to_resume. All uses updated.
5334 (amd64_linux_new_thread): Renamed to
5335 x86_linux_new_thread. All uses updated.
5336 (amd64_linux_new_fork): Renamed to
5337 x86_linux_new_fork. All uses updated.
5338 (amd64_linux_child_post_startup_inferior): Renamed to
5339 x86_linux_child_post_startup_inferior. All uses updated.
5340 (amd64_linux_enable_btrace): Renamed to
5341 x86_linux_enable_btrace. All uses updated.
5342 (amd64_linux_disable_btrace): Renamed to
5343 x86_linux_disable_btrace. All uses updated.
5344 (amd64_linux_teardown_btrace): Renamed to
5345 x86_linux_teardown_btrace. All uses updated.
5346 (amd64_linux_read_btrace): Renamed to
5347 x86_linux_read_btrace. All uses updated.
5348 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5349 x86_linux_dr_get. All uses updated.
5350 (i386_linux_dr_set): Renamed to
5351 x86_linux_dr_set. All uses updated.
5352 (i386_linux_dr_get_addr): Renamed to
5353 x86_linux_dr_get_addr. All uses updated.
5354 (i386_linux_dr_get_control): Renamed to
5355 x86_linux_dr_get_control. All uses updated.
5356 (i386_linux_dr_get_status): Renamed to
5357 x86_linux_dr_get_status. All uses updated.
5358 (i386_linux_dr_set_control): Renamed to
5359 x86_linux_dr_set_control. All uses updated.
5360 (i386_linux_dr_set_addr): Renamed to
5361 x86_linux_dr_set_addr. All uses updated.
5362 (i386_linux_prepare_to_resume): Renamed to
5363 x86_linux_prepare_to_resume. All uses updated.
5364 (i386_linux_new_thread): Renamed to
5365 x86_linux_new_thread. All uses updated.
5366 (i386_linux_new_fork): Renamed to
5367 x86_linux_new_fork. All uses updated.
5368 (i386_linux_child_post_startup_inferior): Renamed to
5369 x86_linux_child_post_startup_inferior. All uses updated.
5370 (i386_linux_enable_btrace): Renamed to
5371 x86_linux_enable_btrace. All uses updated.
5372 (i386_linux_disable_btrace): Renamed to
5373 x86_linux_disable_btrace. All uses updated.
5374 (i386_linux_teardown_btrace): Renamed to
5375 x86_linux_teardown_btrace. All uses updated.
5376 (i386_linux_read_btrace): Renamed to
5377 x86_linux_read_btrace. All uses updated.
5378
b9c1d481
AS
53792014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5380
5381 * remote.c (extended_remote_post_attach): New function.
5382 (init_extended_remote_ops): Install it as to_post_attach method.
5383
7180e04a
PA
53842014-07-09 Pedro Alves <palves@redhat.com>
5385
5386 * infcmd.c (attach_command_post_wait): Don't call
5387 target_terminal_inferior here.
5388 (attach_command): Call it here instead.
5389
9a9a7608
AB
53902014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5391
5392 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5393 field.
5394 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5395 from varobj.c, with additional checks.
5396 (c_varobj_ops): Fill in is_path_expr_parent field.
5397 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5398 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5399 field.
5400 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5401 ops method.
5402 (varobj_default_is_path_expr_parent): New function.
5403 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5404 (varobj_default_is_path_expr_parent): Declare new function.
5405
1f267ae3
MM
54062014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5407
5408 * infcmd.c (finish_backward): Turn internal error into normal error.
5409
b2ee242b
PA
54102014-07-07 Pedro Alves <palves@redhat.com>
5411
8a869bca 5412 PR gdb/17096
b2ee242b
PA
5413 * remote.c (async_handle_remote_sigint)
5414 (async_handle_remote_sigint_twice): Call
5415 gdb_call_async_signal_handler instead of
5416 mark_async_signal_handler.
5417
38e229b2
TT
54182014-07-07 Tom Tromey <tromey@redhat.com>
5419
5420 * target-delegates.c: Rebuild.
5421 * target.c (target_info_record): Remove.
5422 * record.c (info_record_command): Unconditionally call
5423 to_info_record.
5424 * target.h (struct target_ops) <to_info_record>: Use
5425 TARGET_DEFAULT_IGNORE.
5426 (target_info_record): Remove.
5427
f0f9ff95
TT
54282014-07-07 Tom Tromey <tromey@redhat.com>
5429
5430 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5431 TARGET_DEFAULT_NORETURN.
5432 * target.c (generic_tls_error): New function.
5433 (target_translate_tls_address): Don't search target stack.
5434 * target-delegates.c: Rebuild.
5435 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5436 stack.
5437 * linux-thread-db.c (thread_db_get_thread_local_address):
5438 Unconditionally call beneath target.
5439
4a5be5ee
MK
54402014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5441
5442 * cli/cli-logging.c (pop_output_files): Assign targerr to
5443 gdb_stdtargerr.
5444
92c3b204
AB
54452014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5446
5447 * MAINTAINERS (Write After Approval): Update my email address.
5448
9b11e3a7
GB
54492014-07-02 Gary Benson <gbenson@redhat.com>
5450
5451 * proc-service.c (ps_xfer_memory): Update comment.
5452 (ps_pstop): Remove unused function.
5453 (ps_pcontinue): Likewise.
5454 (ps_lstop): Likewise.
5455 (ps_lcontinue): Likewise.
5456 (ps_lgetxregsize): Likewise.
5457 (ps_lgetxregs): Likewise.
5458 (ps_lsetxregs): Likewise.
5459 (ps_plog): Likewise.
5460 (ps_ptread): Likewise.
5461 (ps_ptwrite): Likewise.
5462
cf363f18
MW
54632014-07-01 Mark Wielaard <mjw@redhat.com>
5464
5465 * dwarf2read.c (add_array_cv_type): New function.
5466 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5467 (read_tag_volatile_type): Likewise.
5468
82ae6c8d
TT
54692014-07-01 Tom Tromey <tromey@redhat.com>
5470
5471 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5472 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5473 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5474 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5475 * command.h (cmd_cfunc_ftype): Move earlier.
5476 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5477 (add_com, add_info): Use cmd_cfunc_ftype.
5478
96142726
TT
54792014-06-30 Tom Tromey <tromey@redhat.com>
5480
5481 * symtab.c (operator_chars): Make parameters and return type
5482 const.
5483 (file_matches): Make "files" const.
5484 (struct search_symbols_data) <files>: Now const.
5485 (search_symbols): Make "regexp" and "files" parameters const.
5486 Update.
5487 (symtab_symbol_info): Remove cast.
5488 (rbreak_command): Update.
5489 * symtab.h (search_symbols): Update.
5490
b67a2c6f
YQ
54912014-06-27 Yao Qi <yao@codesourcery.com>
5492
5493 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5494 Change parameter type to 'struct thread_info *'. Caller
5495 updated.
5496 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5497 Update declaration.
5498 * dummy-frame.c (struct dummy_frame_id): New.
5499 (dummy_frame_id_eq): New function.
5500 (struct dummy_frame) <id>: Change its type to 'struct
5501 dummy_frame_id'.
5502 (dummy_frame_push): Add parameter ptid and save it in
5503 dummy_frame_id.
5504 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5505 inferior_ptid.
5506 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5507 to inferior_ptid.
5508 (lookup_dummy_frame): Change parameter type to 'struct
5509 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5510 instead of frame_id_eq.
5511 (dummy_frame_pop): Add parameter ptid. Callers updated.
5512 Update comments. Compose dummy_frame_id and pass it to
5513 lookup_dummy_frame.
5514 (dummy_frame_discard): Add parameter ptid.
5515 (dummy_frame_sniffer): Compose dummy_frame_id and call
5516 dummy_frame_id_eq instead of frame_id_eq.
5517 (fprint_dummy_frames): Print ptid.
5518 * dummy-frame.h: Remove comments.
5519 (dummy_frame_push): Add ptid in declaration.
5520 (dummy_frame_pop, dummy_frame_discard): Likewise.
5521
5b10184c
TT
55222014-06-26 Tom Tromey <tromey@redhat.com>
5523
5524 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5525 * command.h (error_no_arg): Update.
5526
06900326
TT
55272014-06-26 Tom Tromey <tromey@redhat.com>
5528
5529 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5530 (do_show_command): Make "arg" const.
5531 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5532
c2bcbb1d
TT
55332014-06-26 Tom Tromey <tromey@redhat.com>
5534
5535 * record-full.c (record_full_get_bookmark): Make "args" const.
5536 (record_full_goto_bookmark): Make "raw_bookmark" const.
5537 * record.c (record_goto): New function.
5538 (cmd_record_goto): Use it. Now static.
5539 * record.h (record_goto): Declare.
5540 (cmd_record_goto): Remove declaration.
5541 * target-delegates.c: Rebuild.
5542 * target.h (struct target_ops) <to_get_bookmark,
5543 to_goto_bookmark>: Make parameter const.
5544
9cbe5fff
TT
55452014-06-26 Tom Tromey <tromey@redhat.com>
5546
5547 * defs.h (generic_load): Update.
5548 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5549 * monitor.c (monitor_load): Make "args" const.
5550 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5551 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5552 const.
5553 (mips_load): Make "file" const.
5554 * remote-sim.c (gdbsim_load): Make "args" const.
5555 * remote.c (remote_load): Make "name" const.
5556 * symfile.c (generic_load): Make "args" const.
5557 * target-delegates.c: Rebuild.
5558 * target.c (target_load): Make "arg" const.
5559 (debug_to_load): Make "args" const.
5560 * target.h (struct target_ops) <to_load>: Make parameter const.
5561 (target_load): Update.
5562
34a68019
TT
55632014-06-26 Tom Tromey <tromey@redhat.com>
5564
5565 PR symtab/16902:
5566 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5567 (dwarf2_physname, read_partial_die)
5568 (guess_partial_die_structure_name, fixup_partial_die)
5569 (guess_full_die_structure_name, anonymous_struct_prefix)
5570 (dwarf2_name): Use per-BFD obstack.
5571
efc889c1
YQ
55722014-06-26 Yao Qi <yao@codesourcery.com>
5573
5574 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5575 dummyframe and this_id into inner block below.
5576
4395285e
YQ
55772014-06-26 Yao Qi <yao@codesourcery.com>
5578
5579 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5580 with "signal_pass[0]" in the initialization of signal_pass.
5581
aef92902
MM
55822014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5583
5584 * record-btrace.c (record_btrace_generating_corefile)
5585 (record_btrace_prepare_to_generate_core)
5586 (record_btrace_done_generating_core): New.
5587 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5588 (record_btrace_store_registers, record_btrace_prepare_to_store):
5589 Forward request when generating a core file.
5590 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5591 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5592 to_done_generating_core.
5593
5fff78c4
MM
55942014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5595
5596 * target.h (target_ops) <to_prepare_to_generate_core>
5597 <to_done_generating_core>: New.
5598 (target_prepare_to_generate_core, target_done_generating_core): New.
5599 * target.c (target_prepare_to_generate_core)
5600 (target_done_generating_core): New.
5601 * target-delegates.c: Regenerate.
5602 * gcore.c: (write_gcore_file): Rename to ...
5603 (write_gcore_file_1): ...this.
5604 (write_gcore_file): Call target_prepare_to_generate_core
5605 and target_done_generating_core.
5606
1d1f1ccb
MM
56072014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5608
5609 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5610 * gcore.c (write_gcore_file): Free memory returned from
5611 make_corefile_notes.
5612 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5613 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5614
3343ef86
YQ
56152014-06-24 Yao Qi <yao@codesourcery.com>
5616
5617 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5618 (arm_linux_init_abi): Set skip_trampoline_code with
5619 gdbarch_skip_trampoline_code instead of
5620 find_solib_trampoline_target.
5621
18d18ac8
YQ
56222014-06-24 Yao Qi <yao@codesourcery.com>
5623
5624 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5625 arm_skip_bx_reg returns non-zero.
5626
80d8d390
YQ
56272014-06-24 Yao Qi <yao@codesourcery.com>
5628
5629 * arm-tdep.c (arm_skip_bx_reg): New function.
5630 (arm_skip_stub): Call arm_skip_bx_reg.
5631
6a18a01c
DB
56322014-06-23 Don Breazeal <donb@codesourcery.com>
5633
5634 * MAINTAINERS: Add myself as write-after-approval maintainer.
5635
8e9db26e
PA
56362014-06-23 Pedro Alves <palves@redhat.com>
5637
5638 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5639 DR_CONTROL before setting DR0..DR3.
5640 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5641 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5642 bits of DR_CONTROL related to the debug register slot being
5643 disabled. If all slots are vacant, clear local slowdown as well,
5644 and assert DR_CONTROL is 0.
5645
70afc5b7
SC
56462014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5647
5648 * python/lib/gdb/command/xmethods.py
5649 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5650 current progspace only if the string "progspace" matches LOCUS_RE.
5651
840ed64d
JK
56522014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5653
5654 Fix --with-system-readline with readline-6.3 patch 5.
5655 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5656 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5657 types.
5658
26f2dc30
TT
56592014-06-20 Tom Tromey <tromey@redhat.com>
5660
5661 * dwarf2read.c (dw2_get_real_path): Use correct type in
5662 OBSTACK_CALLOC.
5663 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5664
125f8a3d
GB
56652014-06-20 Gary Benson <gbenson@redhat.com>
5666
5667 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5668 * common/glibc_thread_db.h: Likewise.
5669 * common/i386-cpuid.h: Likewise.
5670 * common/i386-gcc-cpuid.h: Likewise.
5671 * common/linux-btrace.h: Likewise.
5672 * common/linux-osdata.h: Likewise.
5673 * common/linux-procfs.h: Likewise.
5674 * common/linux-ptrace.h: Likewise.
5675 * common/mips-linux-watch.h: Likewise.
5676 * common/linux-btrace.c: Moved to nat.
5677 * common/linux-osdata.c: Likewise.
5678 * common/linux-procfs.c: Likewise.
5679 * common/linux-ptrace.c: Likewise.
5680 * common/mips-linux-watch.c: Likewise.
5681 * nat/gdb_thread_db.h: Moved from common.
5682 * nat/glibc_thread_db.h: Likewise.
5683 * nat/i386-cpuid.h: Likewise.
5684 * nat/i386-gcc-cpuid.h: Likewise.
5685 * nat/linux-btrace.c: Likewise.
5686 * nat/linux-btrace.h: Likewise.
5687 * nat/linux-osdata.c: Likewise.
5688 * nat/linux-osdata.h: Likewise.
5689 * nat/linux-procfs.c: Likewise.
5690 * nat/linux-procfs.h: Likewise.
5691 * nat/linux-ptrace.c: Likewise.
5692 * nat/linux-ptrace.h: Likewise.
5693 * nat/mips-linux-watch.c: Likewise.
5694 * nat/mips-linux-watch.h: Likewise.
5695 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5696 (object file files): Reordered.
5697 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5698 of glibc_thread_db.h.
5699
42995dbd
GB
57002014-06-20 Gary Benson <gbenson@redhat.com>
5701
5702 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5703 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5704 (i386_dr_low): Likewise.
5705 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5706 (i386_dr_low_set_addr): Likewise.
5707 (i386_dr_low_get_addr): Likewise.
5708 (i386_dr_low_can_set_control): Likewise.
5709 (i386_dr_low_set_control): Likewise.
5710 (i386_dr_low_get_control): Likewise.
5711 (i386_dr_low_get_status): Likewise.
5712 (i386_get_debug_register_length): Likewise.
5713 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5714 (i386_dr_low): Likewise.
5715 * nat/i386-dregs.c (i386-low.h): Remove include.
5716 (i386-nat.h): Likewise.
5717 (nat/i386-dregs.h): New include.
5718 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5719 (i386_dr_low_set_addr): Likewise.
5720 (i386_dr_low_get_addr): Likewise.
5721 (i386_dr_low_can_set_control): Likewise.
5722 (i386_dr_low_set_control): Likewise.
5723 (i386_dr_low_get_control): Likewise.
5724 (i386_dr_low_get_status): Likewise.
5725 (i386_get_debug_register_length): Likewise.
5726 (debug_hw_points): Likewise.
5727
3ed9baed
IB
57282014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5729
5730 * Makefile.in (SFILES): Add d-exp.y.
5731 (YYFILES): Add d-exp.c.
5732 (YYOBJ): Add d-exp.o.
5733 (local-maintainer-clean): Delete d-exp.c.
5734 * d-exp.y: New file.
5735 * d-lang.h (d_parse): New declaration.
5736 (d_error): New declaration.
5737 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5738 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5739 PREC_ORDER operators.
5740 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5741
78c164b0
YQ
57422014-06-19 Yao Qi <yao@codesourcery.com>
5743
5744 * gdbthread.h (any_running): Remove the declaration.
5745 * thread.c (any_running): Remove.
5746
f6e29b6e
YQ
57472014-06-19 Yao Qi <yao@codesourcery.com>
5748
5749 * gdbthread.h (struct thread_info) <state>: Change its type to
5750 'enum thread_state'. Update comments.
5751
034f788c
PA
57522014-06-19 Pedro Alves <palves@redhat.com>
5753
5754 * gdbthread.h (ALL_THREADS): Delete.
5755 (ALL_NON_EXITED_THREADS): New macro.
5756 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5757 instead of ALL_THREADS.
5758 * infrun.c (find_thread_needs_step_over)
5759 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5760 instead of ALL_THREADS.
5761 * record-btrace.c (record_btrace_open)
5762 (record_btrace_stop_recording, record_btrace_close)
5763 (record_btrace_is_replaying, record_btrace_resume)
5764 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5765 * remote.c (append_pending_thread_resumptions): Likewise.
5766 * thread.c (thread_apply_all_command): Likewise.
5767
46e33252
GB
57682014-06-19 Gary Benson <gbenson@redhat.com>
5769
5770 * i386-nat.c (i386_stopped_by_watchpoint):
5771 Use i386_dr_stopped_by_watchpoint.
5772 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5773 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5774
3a8ee006
GB
57752014-06-19 Gary Benson <gbenson@redhat.com>
5776
5777 * nat/i386-dregs.c: New file.
5778 * Makefile.in (i386-dregs.o): New rule.
5779 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5780 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5781 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5782 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5783 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5784 * config/i386/go32.mh (NATDEPFILES): Likewise.
5785 * config/i386/linux.mh (NATDEPFILES): Likewise.
5786 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5787 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5788 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5789 * i386-nat.h (debug_hw_points): New declaration.
5790 * i386-nat.c (breakpoint.h): Remove include.
5791 (command.h): Likewise.
5792 (target.h): Likewise.
5793 (gdb_assert.h): Likewise.
5794 (debug_hw_points): Made nonstatic.
5795 (debug_printf): Now in i386-dregs.c.
5796 (TARGET_HAS_DR_LEN_8): Likewise.
5797 (DR_CONTROL_SHIFT): Likewise.
5798 (DR_CONTROL_SIZE): Likewise.
5799 (DR_RW_EXECUTE): Likewise.
5800 (DR_RW_WRITE): Likewise.
5801 (DR_RW_READ): Likewise.
5802 (DR_RW_IORW): Likewise.
5803 (DR_LEN_1): Likewise.
5804 (DR_LEN_2): Likewise.
5805 (DR_LEN_4): Likewise.
5806 (DR_LEN_8): Likewise.
5807 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5808 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5809 (DR_ENABLE_SIZE): Likewise.
5810 (DR_LOCAL_SLOWDOWN): Likewise.
5811 (DR_GLOBAL_SLOWDOWN): Likewise.
5812 (DR_CONTROL_RESERVED): Likewise.
5813 (I386_DR_CONTROL_MASK): Likewise.
5814 (I386_DR_VACANT): Likewise.
5815 (I386_DR_LOCAL_ENABLE): Likewise.
5816 (I386_DR_GLOBAL_ENABLE): Likewise.
5817 (I386_DR_DISABLE): Likewise.
5818 (I386_DR_SET_RW_LEN): Likewise.
5819 (I386_DR_GET_RW_LEN): Likewise.
5820 (I386_DR_WATCH_HIT): Likewise.
5821 (i386_wp_op_t): Likewise.
5822 (i386_show_dr): Likewise.
5823 (i386_length_and_rw_bits): Likewise.
5824 (i386_insert_aligned_watchpoint): Likewise.
5825 (i386_remove_aligned_watchpoint): Likewise.
5826 (i386_handle_nonaligned_watchpoint): Likewise.
5827 (i386_update_inferior_debug_regs): Likewise.
5828 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5829 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5830 (i386_region_ok_for_watchpoint):
5831 Use i386_dr_region_ok_for_watchpoint.
5832 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5833
322a8e06
GB
58342014-06-19 Gary Benson <gbenson@redhat.com>
5835
5836 * i386-nat.c (i386_insert_hw_breakpoint): Use
5837 i386_insert_watchpoint.
5838 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5839
8f26655c
GB
58402014-06-19 Gary Benson <gbenson@redhat.com>
5841
5842 * i386-nat.c (i386_dr_show): Renamed to
5843 i386_show_dr and made static. All uses updated.
5844 (i386_dr_length_and_rw_bits): Renamed to
5845 i386_length_and_rw_bits and made static.
5846 All uses updated.
5847 (i386_dr_insert_aligned_watchpoint): Renamed to
5848 i386_insert_aligned_watchpoint and made static.
5849 All uses updated.
5850 (i386_dr_remove_aligned_watchpoint): Renamed to
5851 i386_remove_aligned_watchpoint and made static.
5852 All uses updated.
5853 (i386_dr_update_inferior_debug_regs): Renamed to
5854 i386_update_inferior_debug_regs and made static.
5855 All uses updated.
5856 * nat/i386-dregs.h (i386_dr_show): Removed.
5857 (i386_dr_length_and_rw_bits): Likewise.
5858 (i386_dr_insert_aligned_watchpoint): Likewise.
5859 (i386_dr_remove_aligned_watchpoint): Likewise.
5860 (i386_dr_update_inferior_debug_regs): Likewise.
5861
992c7d70
GB
58622014-06-19 Gary Benson <gbenson@redhat.com>
5863
5864 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5865 * configure: Regenerate.
5866 * config.in: Likewise.
5867 * main.c (signal.h): New include.
5868 (setup_alternate_signal_stack): New function.
5869 (captured_main): Call the above.
5870 * cp-support.c (signal.h): New include.
5871 (catch_demangler_crashes): New flag.
5872 (SIGJMP_BUF): New define.
5873 (SIGSETJMP): Likewise.
5874 (SIGLONGJMP): Likewise.
5875 (gdb_demangle_jmp_buf): New static global.
5876 (gdb_demangle_attempt_core_dump): Likewise.
5877 (gdb_demangle_signal_handler): New function.
5878 (gdb_demangle): If catch_demangler_crashes is set, install the
5879 above signal handler before calling bfd_demangle, and restore
5880 the original signal handler afterwards. Display the offending
5881 symbol and call demangler_warning the first time a segmentation
5882 fault is caught.
5883 (_initialize_cp_support): New maint set/show command.
5884
eae7090b
GB
58852014-06-19 Gary Benson <gbenson@redhat.com>
5886
5887 * utils.h (resource_limit_kind): New enum.
5888 (can_dump_core): New declaration.
5889 (warn_cant_dump_core): Likewise.
5890 (dump_core): Likewise.
5891 * utils.c (dump_core): Made nonstatic. Added new
5892 parameter "limit_kind".
5893 (can_dump_core): Made nonstatic. Moved printing code to...
5894 (warn_cant_dump_core): New function.
5895 (can_dump_core_warn): Likewise.
5896 (internal_vproblem): Replace calls to can_dump_core with
5897 calls to can_dump_core_warn. Supply new argument to each.
5898
57fcfb1b
GB
58992014-06-19 Gary Benson <gbenson@redhat.com>
5900
5901 * utils.h (demangler_vwarning): New declaration.
5902 (demangler_warning): Likewise.
5903 * utils.c (struct internal_problem)
5904 <user_settable_should_quit>: New field.
5905 <user_settable_should_dump_core>: Likewise
5906 (internal_error_problem): Add values for above new fields.
5907 (internal_warning_problem): Likewise.
5908 (demangler_warning_problem): New static global.
5909 (demangler_vwarning): New function.
5910 (demangler_warning): Likewise.
5911 (add_internal_problem_command): Selectively add commands.
5912 (_initialize_utils): New internal problem command.
5913 * maint.c (maintenance_demangler_warning): New function.
5914 (_initialize_maint_cmds): New command.
5915
17a40b44
TT
59162014-06-18 Tom Tromey <tromey@redhat.com>
5917
5918 * f-valprint.c (info_common_command_for_block): Update.
5919 * symtab.h (struct general_symbol_info) <common_block>: Now
5920 const.
5921
346d1dfe
TT
59222014-06-18 Tom Tromey <tromey@redhat.com>
5923
5924 * symtab.h (struct symtab) <blockvector>: Now const.
5925 * ada-lang.c (ada_add_global_exceptions): Update.
5926 * buildsym.c (augment_type_symtab): Update.
5927 * dwarf2read.c (dw2_lookup_symbol): Update.
5928 * jit.c (finalize_symtab): Update.
5929 * jv-lang.c (add_class_symtab_symbol): Update.
5930 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5931 Update.
5932 * objfiles.c (objfile_relocate1): Update.
5933 * psymtab.c (lookup_symbol_aux_psymtabs)
5934 (maintenance_check_psymtabs): Update.
5935 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5936 Update.
5937 * spu-tdep.c (spu_catch_start): Update.
5938 * symmisc.c (dump_symtab_1): Update.
5939 * symtab.c (lookup_global_symbol_from_objfile)
5940 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5941 (basic_lookup_transparent_type_quick)
5942 (basic_lookup_transparent_type, find_pc_sect_symtab)
5943 (find_pc_sect_line, search_symbols): Update.
5944 * block.c (find_block_in_blockvector): Make "bl" const.
5945 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5946 const.
5947 (blockvector_contains_pc): Make "bv" const.
5948 (block_for_pc_sect): Update.
5949 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5950 (blockvector_contains_pc): Update.
5951 * breakpoint.c (resolve_sal_pc): Update.
5952 * inline-frame.c (block_starting_point_at): Update.
5953
1834676b
TT
59542014-06-18 Tom Tromey <tromey@redhat.com>
5955
5956 * completer.c (complete_line): Make "line_buffer" const.
5957 * completer.h (complete_line): Update.
5958
ac1a991b
TT
59592014-06-18 Tom Tromey <tromey@redhat.com>
5960
5961 * symtab.c (add_macro_name): Remove unneeded cast.
5962
5bc98e52
TT
59632014-06-18 Tom Tromey <tromey@redhat.com>
5964
5965 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5966 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5967
8236def8
TT
59682014-06-18 Tom Tromey <tromey@redhat.com>
5969
5970 * probe.c (info_probes_for_ops): Make "arg" const.
5971 * probe.h (info_probes_for_ops): Update.
5972
3977b71f
TT
59732014-06-18 Tom Tromey <tromey@redhat.com>
5974
5975 * varobj.c (varobj_create): Update.
5976 * valops.c (value_of_this): Update.
5977 * tracepoint.c (add_local_symbols, scope_info): Update.
5978 * symtab.h (struct general_symbol_info) <block>: Now const.
5979 * symtab.c (skip_prologue_sal)
5980 (default_make_symbol_completion_list_break_on)
5981 (skip_prologue_using_sal): Update.
5982 * stack.h (iterate_over_block_locals)
5983 (iterate_over_block_local_vars): Update.
5984 * stack.c (print_frame_args): Update.
5985 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5986 parameter const.
5987 (get_selected_block): Make return type const.
5988 * python/py-frame.c (frapy_block): Update.
5989 * python/py-block.c (gdbpy_block_for_pc): Update.
5990 * p-exp.y (%union) <bval>: Now const.
5991 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5992 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5993 * m2-exp.y (%union) <bval>: Now const.
5994 * linespec.c (get_current_search_block): Make return type const.
5995 (create_sals_line_offset, find_label_symbols): Update.
5996 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5997 Update.
5998 (block_starting_point_at): Make "block" const.
5999 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6000 (check_exception_resume): Update.
6001 * guile/scm-frame.c (gdbscm_frame_block): Update.
6002 * guile/scm-block.c (gdbscm_lookup_block): Update.
6003 * frame.h (get_frame_block): Update.
6004 (get_selected_block): Make return type const.
6005 * frame.c (frame_id_inner): Update.
6006 * f-valprint.c (info_common_command_for_block)
6007 (info_common_command): Update.
6008 * dwarf2loc.c (dwarf2_find_location_expression)
6009 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6010 (locexpr_describe_location_piece): Update.
6011 * c-exp.y (%union) <bval>: Now const.
6012 * breakpoint.c (resolve_sal_pc): Update.
6013 * blockframe.c (get_frame_block):Make return type const.
6014 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6015 (block_innermost_frame): Update.
6016 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6017 (block_for_pc, block_for_pc_sect): Update.
6018 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6019 'pblock' const.
6020 (block_for_pc_sect, block_for_pc): Make return type const.
6021 * ax-gdb.c (gen_expr): Update.
6022 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6023 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6024 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6025 (ada_read_var_value): Update.
6026 * ada-exp.y (struct name_info) <block>: Now const.
6027 (%union): Likewise.
6028 (block_lookup): Constify.
6029
b9228891
GB
60302014-06-18 Gary Benson <gbenson@redhat.com>
6031
6032 * nat/i386-dregs.h: New file.
6033 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6034 * i386-nat.h (i386-dregs.h): New include.
6035 (DR_FIRSTADDR): Now in i386-dregs.h.
6036 (DR_LASTADDR): Likewise.
6037 (DR_NADDR): Likewise.
6038 (DR_STATUS): Likewise.
6039 (DR_CONTROL): Likewise.
6040 (i386_debug_reg_state): Likewise.
6041 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6042
a1aa2221
LM
60432014-06-18 Don Breazeal <donb@codesourcery.com>
6044
6045 * breakpoint.c (set_longjmp_breakpoint): Call
6046 momentary_breakpoint_from_master with additional argument.
6047 (set_longjmp_breakpoint_for_call_dummy): Call
6048 momentary_breakpoint_from_master with additional argument.
6049 (set_std_terminate_breakpoint): Call
6050 momentary_breakpoint_from_master with additional argument.
6051 (momentary_breakpoint_from_master): Add argument to function
6052 definition and use it to initialize structure member flag.
74228e77 6053 (clone_momentary_breakpoint): Call
a1aa2221
LM
6054 momentary_breakpoint_from_master with additional argument.
6055 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6056 member flags set in momentary_breakpoint_from_master.
6057
4be83cc2
GB
60582014-06-18 Gary Benson <gbenson@redhat.com>
6059
6060 * i386-nat.c (i386_show_dr): Renamed to
6061 i386_dr_show and made nonstatic. All uses updated.
6062 (i386_length_and_rw_bits): Renamed to
6063 i386_dr_length_and_rw_bits and made nonstatic.
6064 All uses updated.
6065 (i386_insert_aligned_watchpoint): Renamed to
6066 i386_dr_insert_aligned_watchpoint and made nonstatic.
6067 All uses updated.
6068 (i386_remove_aligned_watchpoint): Renamed to
6069 i386_dr_remove_aligned_watchpoint and made nonstatic.
6070 All uses updated.
6071 (i386_update_inferior_debug_regs): Renamed to
6072 i386_dr_update_inferior_debug_regs and made nonstatic.
6073 All uses updated.
6074
131aa0d4
GB
60752014-06-18 Gary Benson <gbenson@redhat.com>
6076
6077 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6078 (i386_dr_low_can_set_control): Likewise.
6079 (i386_dr_low_set_addr): Likewise.
6080 (i386_dr_low_set_control): Likewise.
6081 (i386_dr_low_get_addr): Likewise.
6082 (i386_dr_low_get_status): Likewise.
6083 (i386_dr_low_get_control): Likewise.
6084 (i386_insert_aligned_watchpoint): Use new macros.
6085 (i386_update_inferior_debug_regs): Likewise.
6086 (i386_stopped_data_address): Likewise.
6087
d9305f7f
GB
60882014-06-18 Gary Benson <gbenson@redhat.com>
6089
6090 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6091 New parameter. All uses updated.
6092
ea008da4
GB
60932014-06-18 Gary Benson <gbenson@redhat.com>
6094
6095 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6096 All uses updated.
6097
1b6d4134
GB
60982014-06-18 Gary Benson <gbenson@redhat.com>
6099
6100 * i386-nat.c (debug_printf): New macro.
6101 (i386_get_debug_register_length): Likewise.
6102 (TARGET_HAS_DR_LEN_8): Use above macro.
6103 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6104 and printf_unfiltered. Use phex to format values.
6105
9b4550ef
GB
61062014-06-18 Gary Benson <gbenson@redhat.com>
6107
6108 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6109 Make const.
6110
6e62758f
GB
61112014-06-18 Gary Benson <gbenson@redhat.com>
6112
6113 * i386-nat.c: Comment changes.
6114
51c79e94
GB
61152014-06-18 Gary Benson <gbenson@redhat.com>
6116
6117 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6118
3e11889a
GB
61192014-06-18 Gary Benson <gbenson@redhat.com>
6120
6121 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6122 (i386_insert_aligned_watchpoint): Likewise.
6123 (i386_remove_aligned_watchpoint): Likewise.
6124 (i386_handle_nonaligned_watchpoint): Likewise.
6125
fc6e2f03
GB
61262014-06-18 Gary Benson <gbenson@redhat.com>
6127
6128 * i386-nat.c: Whitespace changes.
6129
2afe7d50
SB
61302014-06-17 Samuel Bronson <naesten@gmail.com>
6131
6132 * MAINTAINERS: Update Roland McGrath's email address.
6133 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6134 Red Hat a while ago, and giving me a current address.
2afe7d50 6135
3bca49ee
TT
61362014-06-17 Tom Tromey <tromey@redhat.com>
6137
6138 * utils.h (savestring): Remove declaration.
6139
6e366df1
TT
61402014-06-17 Tom Tromey <tromey@redhat.com>
6141
6142 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6143
6be47f0c
KS
61442014-06-16 Keith Seitz <keiths@redhat.com>
6145
6146 PR mi/15863
6147 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6148 to update the varobj if inferior_ptid is null_ptid.
6149
7bc112c1
TT
61502014-06-16 Tom Tromey <tromey@redhat.com>
6151
6152 * target.h (struct target_ops) <to_info_proc>: Make parameter
6153 const.
6154 (target_info_proc): Update.
6155 * target.c (target_info_proc): Make "args" const.
6156 * procfs.c (procfs_info_proc): Update.
6157 * linux-tdep.c (linux_info_proc): Update.
6158 (linux_core_info_proc_mappings): Make "args" const.
6159 (linux_core_info_proc): Update.
6160 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6161 * gdbarch.c: Rebuild.
6162 * gdbarch.h: Rebuild.
6163 * corelow.c (core_info_proc): Update.
6164
fee354ee
TT
61652014-06-16 Tom Tromey <tromey@redhat.com>
6166
6167 * target.h (struct target_ops) <to_disconnect>: Make parameter
6168 const.
6169 (target_disconnect): Update.
6170 * target.c (target_disconnect): Make "args" const.
6171 * target-delegates.c: Rebuild.
6172 * remote.c (remote_disconnect): Update.
6173 * record.h (record_disconnect): Update.
6174 * record.c (record_disconnect): Update.
6175 * inf-child.c (inf_child_disconnect): Update.
6176
a30bf1f1
TT
61772014-06-16 Tom Tromey <tromey@redhat.com>
6178
6179 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6180 * target.c (debug_to_rcmd, default_rcmd): Update.
6181 * target-delegates.c: Rebuild.
6182 * remote.c (remote_rcmd): Update.
6183 * monitor.c (monitor_rcmd): Update.
6184
d03de421
PA
61852014-06-16 Pedro Alves <palves@redhat.com>
6186
6187 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6188 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6189 have OBJF_SHARED set.
6190 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6191 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6192 instead of OBJF_USERLOADED.
6193 * objfiles.h (OBJF_SHARED): Update comment.
6194 (userloaded_objfile_contains_address_p): Rename to ...
6195 (shared_objfile_contains_address_p): ... this, and update
6196 comments.
6197 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6198 new objfile.
6199 (remove_symbol_file_command): Skip objfiles that don't have
6200 OBJF_SHARED set.
6201
99f4262f
TT
62022014-06-16 Tom Tromey <tromey@redhat.com>
6203
6204 * minsyms.h (prim_record_minimal_symbol)
6205 (prim_record_minimal_symbol_and_info): Update comments.
6206
97d66cc6
EZ
62072014-06-14 Eli Zaretskii <eliz@gnu.org>
6208
6209 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6210 or --without-guile, according to how GDB was built.
6211
635c7e8a
TT
62122014-06-13 Tom Tromey <tromey@redhat.com>
6213
6214 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6215 to help_list.
6216 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6217 to help_list.
6218 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6219 help_list.
6220 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6221 help_list.Pass all_commands, not -1, to help_list.
6222 * cli/cli-dump.c (dump_command, append_command)
6223 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6224 (binary_dump_command, binary_append_command): Pass all_commands,
6225 not -1, to help_list.
6226 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6227 -1, to help_list.
6228 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6229 -1, to help_list.
6230 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6231 help_list.
6232 * top.c (set_history): Pass all_commands, not -1, to help_list.
6233 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6234 all_commands, not -1, to help_list.
6235 * symfile.c (overlay_command): Pass all_commands, not -1, to
6236 help_list.
6237 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6238 help_list.
6239 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6240 help_list.
6241 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6242 -1, to help_list.
6243 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6244 not -1, to help_list.
6245 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6246 not -1, to help_list.
6247 * maint.c (maintenance_command, maintenance_info_command)
6248 (maintenance_print_command, maintenance_set_cmd): Pass
6249 all_commands, not -1, to help_list.
6250 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6251 help_list.
6252 * language.c (set_check): Pass all_commands, not -1, to help_list.
6253 * infcmd.c (unset_command): Pass all_commands, not -1, to
6254 help_list.
6255 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6256 help_list.
6257 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6258 help_list.
6259 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6260 help_list.
6261 * breakpoint.c (save_command): Pass all_commands, not -1, to
6262 help_list.
6263 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6264 all_commands, not -1, to help_list.
6265
b94ade42
PL
62662014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6267
6268 * regcache.c (struct register_to_invalidate): New structure.
6269 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6270 functions.
6271 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6272
31f628ae
YQ
62732014-06-12 Yao Qi <yao@codesourcery.com>
6274
6275 * varobj.c (varobj_get_num_children): Call
6276 varobj_is_dynamic_p.
6277 (varobj_list_children): Likewise.
6278 (varobj_update): Likewise. Update comments.
6279
cde5ef40
YQ
62802014-06-12 Yao Qi <yao@codesourcery.com>
6281
6282 * varobj.c (varobj_pretty_printed_p): Rename to ...
6283 (varobj_is_dynamic_p): ... this. New function.
6284 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6285 (varobj_is_dynamic_p): Declare.
6286 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6287 (mi_print_value_p, varobj_update_one): Likewise.
6288
576ea091
YQ
62892014-06-12 Pedro Alves <pedro@codesourcery.com>
6290 Yao Qi <yao@codesourcery.com>
6291
6292 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6293 (varobj_get_iterator): Wrap up code for pretty-printer by
6294 "#if HAVE_PYTHON" and "#endif".
6295 (update_dynamic_varobj_children): Likewise.
6296
827f100c
YQ
62972014-06-12 Pedro Alves <pedro@codesourcery.com>
6298 Yao Qi <yao@codesourcery.com>
6299
6300 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6301 gdb_python_initialized is false. Move some code from varobj.c.
6302 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6303 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6304 (struct varobj_item): Moved to varobj-iter.h".
6305 (varobj_clear_saved_item): New function.
6306 (update_dynamic_varobj_children): Move python-related code to
6307 py-varobj.c.
6308 (free_variable): Call varobj_clear_saved_item and
6309 varobj_iter_delete.
6310
e5250216
YQ
63112014-06-12 Pedro Alves <pedro@codesourcery.com>
6312 Yao Qi <yao@codesourcery.com>
6313
6314 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6315 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6316 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6317 (py-varobj.o): New rule.
6318 * python/py-varobj.c: New file.
6319 * python/python-internal.h (py_varobj_get_iterator): Declare.
6320 * varobj-iter.h: New file.
6321 * varobj.c: Include "varobj-iter.h"
6322 (struct varobj) <child_iter>: Change its type from "PyObject *"
6323 to "struct varobj_iter *".
6324 <saved_item>: Likewise.
6325 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6326 [HAVE_PYTHON] (varobj_get_iterator): New function.
6327 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6328 python-specific code to python/py-varobj.c.
6329 (install_visualizer): Call varobj_iter_delete instead of
6330 Py_XDECREF.
6331 * varobj.h (varobj_ensure_python_env): Declare.
6332
5a2e0d6e
YQ
63332014-06-12 Yao Qi <yao@codesourcery.com>
6334
6335 * varobj.c (struct varobj_item): New structure.
6336 (create_child_with_value): Update declaration.
6337 (varobj_add_child): Replace arguments 'name' and 'value' with
6338 'item'. All callers updated.
6339 (install_dynamic_child): Likewise.
6340 (update_dynamic_varobj_children): Likewise.
6341 (varobj_add_child): Likewise.
6342 (create_child_with_value): Likewise.
6343
919b9a93
JB
63442014-06-11 Joel Brobecker <brobecker@adacore.com>
6345
6346 * NEWS: Create a new section for the next release branch.
6347 Rename the section of the current branch, now that it has
6348 been cut.
6349
71a55bdf
JB
63502014-06-11 Joel Brobecker <brobecker@adacore.com>
6351
6352 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6353 * version.in: Bump version to 7.8.50.DATE-cvs.
6354
364fe1f7
PA
63552014-06-11 Pedro Alves <palves@redhat.com>
6356
6357 PR remote/17028
6358 * ser-mingw.c (net_windows_socket_check_pending): New function.
6359 (net_windows_select_thread): Ignore spurious wakeups. Use
6360 net_windows_socket_check_pending.
6361 (net_windows_wait_handle): Check for pending events with
6362 ioctlsocket, through net_windows_socket_check_pending, instead of
6363 checking the socket's event.
6364
5a6c7709
SC
63652014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6366
6367 * python/python-internal.h (gdb_PyObject_GetAttrString)
6368 (gdb_PyObject_HasAttrString): New inline function definitions.
6369 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6370 char * of the second argument to PyObject_GetAttrString.
74228e77 6371
0e58ee40
JB
63722014-06-10 Joel Brobecker <brobecker@adacore.com>
6373
6374 * serial.c (serial_write): Fix index of character to be printed
6375 in call to serial_logchar when serial debug traces are enabled.
6376
d190df30
JB
63772014-06-10 Joel Brobecker <brobecker@adacore.com>
6378
6379 * gdbtypes (resolve_dynamic_range): Add function description.
6380
b4b01d36
PA
63812014-06-09 Pedro Alves <palves@redhat.com>
6382
6383 * linux-nat.c (linux_child_follow_fork): Initialize status with
6384 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6385 inner block. Only pass the signal to PTRACE_DETACH if in pass
6386 state.
6387
3657956b
GB
63882014-06-09 Gary Benson <gbenson@redhat.com>
6389
6390 * common/signals.c (gdb_signal_from_host): Reorder to separate
6391 the always-available ANSI-standard signals from the signals that
6392 require checking.
6393 (do_gdb_signal_to_host): Likewise.
6394 * proc-events.c (signal_table): Likewise.
6395
c077881a
HZ
63962014-06-08 Hui Zhu <hui@codesourcery.com>
6397
6398 * common/linux-ptrace.c (linux_disable_event_reporting): New
6399 function.
6400 * common/linux-ptrace.h (linux_disable_event_reporting): New
6401 declaration.
6402 * linux-nat.c (linux_child_follow_fork): Do a single step before
6403 detach.
6404
4186eb54
KS
64052014-06-07 Keith Seitz <keiths@redhat.com>
6406
6407 Revert:
6408 PR c++/16253
6409 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6410 from symbol_matches_domain in symtab.c. All local callers
6411 of symbol_matches_domain updated.
6412 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6413 search STRUCT_DOMAIN.
6414 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6415 independently. standard_lookup will do that automatically.
6416 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6417 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6418 (cp_lookup_symbol_in_namespace): Likewise.
6419 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6420 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6421 may return a STRUCT_DOMAIN match.
6422 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6423 * cp-support.c: Include language.h.
6424 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6425 VAR_DOMAIN.
6426 * psymtab.c (match_partial_symbol): Compare the requested
6427 domain with the symbol's domain directly.
6428 (lookup_partial_symbol): Likewise.
6429 * symtab.c (lookup_symbol_in_language): Explain when/why
6430 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6431 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6432 appropriate languages.
6433 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6434 and moved to ada-lang.c
6435 (lookup_block_symbol): Explain that this function only returns
6436 symbol matching the requested DOMAIN.
6437 Compare the requested domain with the symbol's domain directly.
6438 (iterate_over_symbols): Compare the requested domain with the
6439 symbol's domain directly.
6440 * symtab.h (symbol_matches_domain): Remove.
6441
25326a28 64422014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
6443
6444 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6445 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6446 (gdbscm_guile_version_is_at_least): Declare.
6447 (gdbscm_scm_string_to_int): Declare.
6448 * guile/guile.c (gdbscm_guile_major_version): New global.
6449 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6450 (guile_datadir): New static global.
6451 (gdbscm_guile_data_directory): New function.
6452 (initialize_scheme_side): Update.
6453 (misc_guile_functions): Add guile-data-directory.
6454 (initialize_gdb_module): Fetch guile version number.
6455 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6456 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6457 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6458 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6459 comments.
6460 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6461 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6462 * guile/scm-value.c (gdbscm_value_to_string): Only call
6463 scm_port_conversion_strategy if Guile version >= 2.0.6.
6464
0a770bb2 64652014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6466
6467 * main.c (print_gdb_help): Add -q and --silent.
6468
73ba372c
GB
64692014-06-06 Gary Benson <gbenson@redhat.com>
6470
6471 * common/signals.c: Remove preprocessor conditionals for
6472 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6473 SIGSEGV and SIGTERM.
6474 * proc-events.c: Likewise.
6475
c33b2f12
MM
64762014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6477
6478 * symfile.c (symfile_free_objfile): Remove restriction to
6479 OBJF_USERLOADED.
6480 * symfile-mem.c (symbol_file_add_from_memory): Call
6481 add_target_sections_of_objfile.
6482
fb934770
LC
64832014-06-05 Ludovic Courtès <ludo@gnu.org>
6484
6485 * guile/scm-value.c (gdbscm_history_append_x): Use
6486 'vlscm_get_value_smob_arg_unsafe' instead of
6487 'vlscm_scm_to_value'.
6488
6ef284bd
SM
64892014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6490
6491 PR mi/15806
6492 * utils.c (printchar): Don't escape at all if quoter is NUL.
6493 Update function documentation to clarify effect of parameter
6494 QUOTER.
6495 * remote.c (escape_buffer): Pass '\\' as the quoter to
6496 fputstrn_unfiltered.
6497 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6498 generate the output.
6499 (mi_solib_unloaded): Same.
6500
270c9937
JB
65012014-06-05 Joel Brobecker <brobecker@adacore.com>
6502
6503 * development.sh: Delete.
6504 * Makefile.in (config.status): Adjust dependency on development.sh.
6505 * configure.ac: Adjust development.sh source call.
6506 * configure: Regenerate.
6507
16f691fb
DE
65082014-06-04 Doug Evans <xdje42@gmail.com>
6509
6510 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6511 is_scheme_bkpt, spec.
6512 (bpscm_make_breakpoint_smob): Initialize new members.
6513 (gdbscm_create_breakpoint_x): Split into two ...
6514 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6515 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6516 (scheme_function breakpoint_functions): Update.
6517 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6518 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6519 register-breakpoint!.
6520
ef7cab6b
JB
65212014-06-04 Joel Brobecker <brobecker@adacorer.com>
6522
6523 PR server/17023
6524 * mem-break.c (z_type_supported): Return zero if
6525 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6526
012370f6
TT
65272014-06-04 Tom Tromey <tromey@redhat.com>
6528
6529 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6530 value_from_contents_and_address_unresolved.
6531 (ada_template_to_fixed_record_type_1): Likewise.
6532 (ada_which_variant_applies): Likewise.
6533 * value.h (value_from_contents_and_address_unresolved): Declare.
6534 * value.c (value_from_contents_and_address_unresolved): New
6535 function.
6536 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6537 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6538 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6539
92e2a17f
TT
65402014-06-04 Tom Tromey <tromey@redhat.com>
6541
6542 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6543
c0939df1
TT
65442014-06-04 Tom Tromey <tromey@redhat.com>
6545
6546 * procfs.c (procfs_attach): Make "args" const.
6547 * windows-nat.c (windows_attach): Make "args" const.
6548 * nto-procfs.c (procfs_attach): Make "args" const.
6549 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6550 * go32-nat.c (go32_attach): Make "args" const.
6551 * gnu-nat.c (gnu_attach): Make "args" const.
6552 * darwin-nat.c (darwin_attach): Make "args" const.
6553 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6554 * linux-nat.c (linux_nat_attach): Make "args" const.
6555 * remote.c (extended_remote_attach_1, extended_remote_attach):
6556 Make "args" const.
6557 * target.h (struct target_ops) <to_attach>: Make "args" const.
6558 (find_default_attach): Likewise.
6559 * utils.c (parse_pid_to_attach): Make "args" const.
6560 * utils.h (parse_pid_to_attach): Update.
6561
8eaff7cd
TT
65622014-06-04 Tom Tromey <tromey@redhat.com>
6563
6564 * target-delegates.c: Rebuild.
6565 * target.c (default_thread_address_space): New function.
6566 (target_thread_address_space): Simplify.
6567 * target.h (struct target_ops) <to_thread_address_space>: Add
6568 TARGET_DEFAULT_FUNC.
6569
1913f160
DE
65702014-06-04 Doug Evans <xdje42@gmail.com>
6571
6572 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6573
70ad5bff
MM
65742014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6575
6576 * record-btrace.c: Include event-loop.h and inf-loop.h.
6577 (record_btrace_resume_exec_dir)
6578 (record_btrace_async_inferior_event_handler)
6579 (record_btrace_handle_async_inferior_event): New.
6580 (record_btrace_open): Create async event handler.
6581 (record_btrace_close): Delete async event handler.
6582 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6583 Mark async event handler.
6584 (record_btrace_execution_direction): New.
6585 (init_record_btrace_ops): Initialize to_execution_direction.
6586
b6210538
DE
65872014-06-03 Doug Evans <xdje42@gmail.com>
6588
6589 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6590 (gdbscm_make_parameter): Ditto.
6591
a5b1fd27
DE
65922014-06-03 Doug Evans <dje@google.com>
6593
6594 * exec.c (exec_close_1): Call clear_section_table instead of
6595 resize_section_table.
6596 (clear_section_table): New function.
6597 (resize_section_table): Make static. Rename arg num_added to
6598 adjustment.
6599 * exec.h (clear_section_table): Declare.
6600 (resize_section_table): Delete.
6601 * progspace.c (release_program_space): Call clear_section_table
6602 instead of resize_section_table.
6603
0c6e92a5
SC
66042014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6605
6606 * NEWS (Python Scripting): Add entry about the new xmethods
6607 feature.
6608
883964a7
SC
66092014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6610
6611 * python/py-xmethods.c: New file.
6612 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6613 (objfpy_dealloc): XDECREF on the new xmethods field.
6614 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6615 field.
6616 (objfpy_get_xmethods): New function.
6617 (objfile_getset): New entry 'xmethods'.
6618 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6619 (pspy_dealloc): XDECREF on the new xmethods field.
6620 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6621 field.
6622 (pspy_get_xmethods): New function.
6623 (pspace_getset): New entry 'xmethods'.
6624 * python/python-internal.h: Add declarations for new functions.
6625 * python/python.c (_initialize_python): Invoke
6626 gdbpy_initialize_xmethods.
6627 * python/lib/gdb/__init__.py (xmethods): New
6628 attribute.
6629 * python/lib/gdb/xmethod.py: New file.
6630 * python/lib/gdb/command/xmethods.py: New file.
6631
58992dc5
SC
66322014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6633
6634 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6635 best match method returned by find_overload_match is an xmethod.
6636 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6637 the best matching operator returned by find_overload_match is an
6638 xmethod.
6639 * valops.c: #include "extension.h".
6640 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6641 Return void. The list of matching source methods is returned in
6642 "fn_list" and a vector of matching debug method workers is
6643 returned in "xm_worker_vec". Update all callers.
6644 (value_find_oload_method_list): Likewise.
6645 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6646 non-NULL, then the index of the best matching method in this
6647 vector is returned. Update all callers.
6648 (find_overload_match): Include xmethods while performing overload
6649 resolution.
6650
e81e7f5e
SC
66512014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6652
6653 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6654 * extension-priv.h (struct extension_language_ops): Add the
6655 xmethod interface.
6656 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6657 get_matching_xmethod_workers, get_xmethod_argtypes,
6658 invoke_xmethod, free_xmethod_worker,
6659 free_xmethod_worker_vec): New functions.
6660 * extension.h: #include "common/vec.h".
6661 New function declarations.
6662 (struct xmethod_worker): New struct.
6663 (VEC (xmethod_worker_ptr)): New vector type.
6664 (xmethod_worker_ptr): New typedef.
6665 (xmethod_worker_vec): Likewise.
6666 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6667 builtin_type.
6668 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6669 (struct builtin_type): New field "xmethod".
6670 * valarith.c (value_ptradd): Assert that the value argument is not
6671 lval_xcallable.
6672 * valops.c (value_must_coerce_to_target): Return 0 for
6673 lval_xcallable values.
6674 * value.c (struct value): New field XM_WORKER in the field
6675 LOCATION.
6676 (value_address, value_raw_address): Return 0 for lval_xcallable
6677 values.
6678 (set_value_address): Assert that the value is not an
6679 lval_xcallable.
6680 (value_free): Free the associated xmethod worker when freeing
6681 lval_xcallable values.
6682 (set_value_component_location): Assert that the WHOLE value is not
6683 lval_xcallable.
6684 (value_of_xmethod, call_xmethod): New functions.
6685 * value.h: Declare "struct xmethod_worker".
6686 Declare new functions value_of_xmethod, call_xmethod.
6687
ef370185
JB
66882014-06-03 Joel Brobecker <brobecker@adacore.com>
6689 Pedro Alves <palves@redhat.com>
6690
6691 PR breakpoints/17000
6692 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6693 New function, extracted from software_breakpoint_inserted_here_p.
6694 (software_breakpoint_inserted_here_p): Replace factored out code
6695 by call to find_non_raw_software_breakpoint_inserted_here.
6696 (bp_target_info_copy_insertion_state): New function.
6697 (bkpt_insert_location): Handle the case of a single-step
6698 breakpoint already inserted at the same address.
6699 (bkpt_remove_location): Handle the case of a single-step
6700 breakpoint still inserted at the same address.
6701 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6702 breakpoint already inserted at the same address.
6703 (deprecated_remove_raw_breakpoint): Handle the case of a
6704 non-raw breakpoint still inserted at the same address.
6705 (find_single_step_breakpoint): New function, extracted from
6706 single_step_breakpoint_inserted_here_p.
6707 (find_single_step_breakpoint): New function,
6708 factored out from single_step_breakpoint_inserted_here_p.
6709 (single_step_breakpoint_inserted_here_p): Reimplement.
6710
1e2ccb61
BM
67112014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6712
6713 Pushed by Joel Brobecker <brobecker@adacore.com>
6714 * source.c (show_substitute_path_command): Fix display of matching
6715 substitution rules.
6716
d3448d85
GB
67172014-06-03 Gary Benson <gbenson@redhat.com>
6718
6719 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6720
06eb1586
DE
67212014-06-02 Doug Evans <xdje42@gmail.com>
6722
6723 Add parameter support for Guile.
6724 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6725 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6726 (scm-param.o): New rule.
6727 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6728 (gdbscm_misc_error): Declare.
6729 (gdbscm_canonicalize_command_name): Declare.
6730 (gdbscm_scm_to_host_string): Declare.
6731 (gdbscm_scm_from_host_string): Declare.
6732 (gdbscm_initialize_parameters): Declare.
6733 * guile/guile.c (initialize_gdb_module): Call
6734 gdbscm_initialize_parameters.
6735 * guile/lib/gdb.scm: Export parameter symbols.
6736 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6737 cmdscm_canonicalize_name and made public. All callers updated.
6738 * guile/scm-exception.c (gdbscm_misc_error): New function.
6739 * guile/scm-param.c: New file.
6740 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6741 (gdbscm_scm_to_host_string): New function.
6742 (gdbscm_scm_from_host_string): New function.
6743 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6744
e698b8c4
DE
67452014-06-02 Doug Evans <xdje42@gmail.com>
6746
6747 Add command support for Guile.
6748 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6749 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6750 (scm-cmd.o): New rule.
6751 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6752 (gdbscm_user_error_p): Declare.
6753 (gdbscm_parse_command_name): Declare.
6754 (gdbscm_valid_command_class_p): Declare.
6755 (gdbscm_initialize_commands): Declare.
6756 * guile/guile.c (initialize_gdb_module): Call
6757 gdbscm_initialize_commands.
6758 * guile/lib/gdb.scm: Export command symbols.
6759 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6760 (throw-user-error): New function.
6761 * guile/scm-cmd.c: New file.
6762 * guile/scm-exception.c (user_error_symbol): New static global.
6763 (gdbscm_user_error_p): New function.
6764 (gdbscm_initialize_exceptions): Set user_error_symbol.
6765 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6766
fb1f94b0
PM
67672014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6768
6769 * top.c (command_loop): Handle comments here...
6770 (command_line_input): ... not here.
6771
ded03782
DE
67722014-06-02 Doug Evans <xdje42@gmail.com>
6773
6774 Add progspace support for Guile.
6775 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6776 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6777 (scm-progspace.o): New rule.
6778 * guile/guile-internal.h (pspace_smob): New typedef.
6779 (psscm_pspace_smob_pretty_printers): Declare.
6780 (psscm_pspace_smob_from_pspace): Declare.
6781 (psscm_scm_from_pspace): Declare.
6782 * guile/guile.c (initialize_gdb_module): Call
6783 gdbscm_initialize_pspaces.
6784 * guile/lib/gdb.scm: Export progspace symbols.
6785 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6786 support.
6787 (append-pretty-printer!): Ditto.
6788 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6789 Implement.
6790 * guile/scm-progspace.c: New file.
6791
397998fc
AM
67922014-06-03 Alan Modra <amodra@gmail.com>
6793
6794 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6795 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6796
6aa5f3a6
DE
67972014-06-02 Doug Evans <dje@google.com>
6798
6799 Add support for skeletonless type units.
6800 * dwarf2read.c (struct dwarf2_per_objfile): New member
6801 n_allocated_type_units.
6802 (struct dwarf2_per_objfile) <tu_stats>: New member
6803 nr_all_type_units_reallocs.
6804 (create_signatured_type_table_from_index): Initialize
6805 n_allocated_type_units
6806 (create_all_type_units): Ditto.
6807 (add_type_unit): Move up in file. New arg slot.
6808 All callers updated. Increase space for all_type_units more
6809 efficiently.
6810 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6811 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6812 (lookup_dwp_signatured_type): Ditto.
6813 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6814 All callers updated.
6815 (build_type_psymtabs_1): Leave type_unit_groups as
6816 NULL if no TUs present.
6817 (print_tu_stats): New function.
6818 (process_skeletonless_type_unit): New function.
6819 (process_dwo_file_for_skeletonless_type_units): New
6820 function.
6821 (process_skeletonless_type_units): New function.
6822 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6823 Call print tu_stats if debugging enabled.
6824
41fac0cf
PA
68252014-06-02 Pedro Alves <palves@redhat.com>
6826
6827 * breakpoint.c (build_target_command_list): Don't build a command
6828 list if we have any duplicate location that isn't a dprintf.
6829
cd1608cc
PA
68302014-06-02 Pedro Alves <palves@redhat.com>
6831
6832 * breakpoint.c (dprintf_breakpoint_hit): New function.
6833 (initialize_breakpoint_ops): Install it as dprintf's
6834 breakpoint_hit method.
6835
486ef3b9
JB
68362014-06-02 Joel Brobecker <brobecker@adacore.com>
6837
6838 * source.c (substitute_path_rule_matches): Simplify using
6839 filename_ncmp instead of FILENAME_CMP.
6840
230cd560
JB
68412014-06-02 Joel Brobecker <brobecker@adacore.com>
6842
6843 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6844
16954d5d
LC
68452014-06-01 Ludovic Courtès <ludo@gnu.org>
6846
6847 * configure.ac: When Guile is available, check for the
6848 availability of 'scm_new_smob'.
6849 * configure, config.h.in: Regenerate.
6850 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6851 function.
6852
53e8a631
AB
68532014-05-30 Andrew Burgess <aburgess@broadcom.com>
6854
6855 * frame.c (struct frame_info): Add stop_string field.
6856 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6857 (get_prev_frame_always): Old content moved into
6858 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6859 TRY_CATCH, handle MEMORY_ERROR exceptions.
6860 (frame_stop_reason_string): New function definition.
6861 * frame.h (unwind_stop_reason_to_string): Extend comment to
6862 mention frame_stop_reason_string.
6863 (frame_stop_reason_string): New function declaration.
6864 * stack.c (frame_info): Switch to frame_stop_reason_string.
6865 (backtrace_command_1): Switch to frame_stop_reason_string.
6866 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6867 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6868 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6869
70e38b8e
AB
68702014-05-30 Andrew Burgess <aburgess@broadcom.com>
6871
6872 * frame.c (frame_stop_reason_string): Rename to ...
6873 (unwind_stop_reason_to_string): this.
6874 * frame.h (frame_stop_reason_string): Rename to ...
6875 (unwind_stop_reason_to_string): this.
6876 * stack.c (frame_info): Update call to frame_stop_reason_string.
6877 (backtrace_command_1): Likewise.
6878 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6879 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6880
938f0e2f
AB
68812014-05-30 Andrew Burgess <aburgess@broadcom.com>
6882
6883 * frame.c (remove_prev_frame): New function.
6884 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6885 remove_prev_frame.
6886
a09dd441
PA
68872014-05-29 Pedro Alves <palves@redhat.com>
6888
6889 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6890 and make it const. When a single-step decays to a continue,
6891 clear 'step', not 'hw_step'. Pass whether the caller wanted
6892 to step to user_visible_resume_ptid, not what we ask the
6893 target to do.
6894
bdc36728
PA
68952014-05-29 Pedro Alves <palves@redhat.com>
6896
6897 * infrun.c (process_event_stop_test, handle_step_into_function)
6898 (handle_step_into_function_backward): Adjust.
6899 Don't set the even thread's stop_step and call stop_waiting before
6900 calling end_stepping_range. Instead do that ...
6901 (end_stepping_range): ... here. Take an ecs pointer parameter.
6902
22bcd14b
PA
69032014-05-29 Pedro Alves <palves@redhat.com>
6904
6905 * infrun.c (stop_stepping): Rename to ...
6906 (stop_waiting): ... this.
6907 (proceed): Update comment.
6908 (process_event_stop_test, handle_inferior_event)
6909 (handle_signal_stop, handle_step_into_function)
6910 (handle_step_into_function_backward): Update.
6911
4ae57c05
PA
69122014-05-29 Pedro Alves <palves@redhat.com>
6913
6914 * infcall.c (run_inferior_call): Don't check whether the current
6915 thread is running after the proceed call.
6916
329ea579
PA
69172014-05-29 Pedro Alves <palves@redhat.com>
6918 Tom Tromey <tromey@redhat.com>
6919
6920 * NEWS: Mention "maint set target-async", "set mi-async", and that
6921 background execution commands are now always available.
6922 * target.h (target_async_permitted): Update comment.
6923 * target.c (target_async_permitted, target_async_permitted_1):
6924 Default to 1.
6925 (set_target_async_command): Rename to ...
6926 (maint_set_target_async_command): ... this.
6927 (show_target_async_command): Rename to ...
6928 (maint_show_target_async_command): ... this.
6929 (_initialize_target): Adjust.
6930 * infcmd.c (prepare_execution_command): Make extern.
6931 * inferior.h (prepare_execution_command): Declare.
6932 * infrun.c (set_observer_mode): Leave target async alone.
6933 * mi/mi-interp.c (mi_interpreter_init): Install
6934 mi_on_sync_execution_done as sync_execution_done observer.
6935 (mi_on_sync_execution_done): New function.
6936 (mi_execute_command_input_handler): Don't print the prompt if we
6937 just started a synchronous command with an async target.
6938 (mi_on_resume): Check sync_execution before printing prompt.
6939 * mi/mi-main.h (mi_async_p): Declare.
6940 * mi/mi-main.c: Include gdbcmd.h.
6941 (mi_async_p): New function.
6942 (mi_async, mi_async_1): New globals.
6943 (set_mi_async_command, show_mi_async_command, mi_async): New
6944 functions.
6945 (exec_continue): Call prepare_execution_command.
6946 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6947 (mi_execute_async_cli_command): Use mi_async_p.
6948 (_initialize_mi_main): Install "set mi-async". Make
6949 "target-async" a deprecated alias.
6950
92bcb5f9
PA
69512014-05-29 Pedro Alves <palves@redhat.com>
6952
6953 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6954 (_initialize_cli_interp): Adjust.
6955 * event-loop.c: Include "observer.h".
6956 (start_event_loop): Notify 'command_error' observers instead of
6957 calling display_gdb_prompt. Remove FIXME comment.
6958 * event-top.c (display_gdb_prompt): Remove call into the
6959 interpreters.
6960 * inf-loop.c: Include "observer.h".
6961 (inferior_event_handler): Notify 'command_error' observers instead
6962 of calling display_gdb_prompt.
6963 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6964 observers instead of calling display_gdb_prompt.
6965 * interps.c (interp_set): Don't call display_gdb_prompt.
6966 (current_interp_display_prompt_p): Delete.
6967 * interps.h (interp_prompt_p): Delete declaration.
6968 (interp_prompt_p_ftype): Delete.
6969 (struct interp_procs) <prompt_proc_p>: Delete field.
6970 (current_interp_display_prompt_p): Delete declaration.
6971 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6972 (_initialize_mi_interp): Adjust.
6973 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6974 'command_error' observers.
6975 (tui_on_sync_execution_done, tui_on_command_error): New
6976 functions.
6977 (tui_display_prompt_p): Delete.
6978 (_initialize_tui_interp): Adjust.
6979
fd664c91
PA
69802014-05-29 Pedro Alves <palves@redhat.com>
6981
6982 PR gdb/13860
6983 * cli/cli-interp.c: Include infrun.h and observer.h.
6984 (cli_uiout, cli_interp): New globals.
6985 (cli_on_signal_received, cli_on_end_stepping_range)
6986 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6987 functions.
6988 (cli_interpreter_init): Install them as 'end_stepping_range',
6989 'signal_received' 'signal_exited', 'exited' and 'no_history'
6990 observers.
6991 (_initialize_cli_interp): Remove cli_interp local.
6992 * infrun.c (handle_inferior_event): Call the several stop reason
6993 observers instead of printing the stop reason directly.
6994 (end_stepping_range): New function.
6995 (print_end_stepping_range_reason, print_signal_exited_reason)
6996 (print_exited_reason, print_signal_received_reason)
6997 (print_no_history_reason): Make static, and add an uiout
6998 parameter. Print to that instead of to CURRENT_UIOUT.
6999 * infrun.h (print_end_stepping_range_reason)
7000 (print_signal_exited_reason, print_exited_reason)
7001 (print_signal_received_reason print_no_history_reason): New
7002 declarations.
7003 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7004 'mi_uiout'.
7005 <cli_uiout>: New field.
7006 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7007 uiout for CLI output. Install 'signal_received',
7008 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7009 observers.
7010 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7011 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7012 (mi_on_no_history): New functions.
7013 (ui_out_free_cleanup): Delete function.
7014 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7015 instead use the one already stored in the MI interpreter data.
7016 (mi_ui_out): Adjust.
7017 * tui/tui-interp.c: Include infrun.h and observer.h.
7018 (tui_interp): New global.
7019 (tui_on_signal_received, tui_on_end_stepping_range)
7020 (tui_on_signal_exited, tui_on_exited)
7021 (tui_on_no_history): New functions.
7022 (tui_init): Install them as 'end_stepping_range',
7023 'signal_received' 'signal_exited', 'exited' and 'no_history'
7024 observers.
7025 (_initialize_tui_interp): Delete tui_interp local.
7026
8817a6f2
PA
70272014-05-29 Pedro Alves <palves@redhat.com>
7028
7029 PR gdb/15713
7030 * linux-nat.c (linux_nat_resume_callback): Rename the second
7031 parameter to 'except'. Skip LP if it points to EXCEPT.
7032 (linux_nat_resume): Don't mark the event lwp as not stopped
7033 before resuming sibling lwps. Instead ask
7034 linux_nat_resume_callback to skip the event lwp. Mark it as not
7035 stopped after actually resuming it.
7036 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7037 resuming it.
7038 (wait_lwp): Mark the lwp as stopped here.
7039 (stop_wait_callback): Mark the lwp as not stopped right after
7040 resuming it. Don't mark lwps as stopped here.
7041 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7042 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7043
251bde03
PA
70442014-05-29 Pedro Alves <palves@redhat.com>
7045
7046 PR PR15693
7047 * infrun.c (resume): Determine how much to resume depending on
7048 whether the caller wanted a step, not whether we can hardware step
7049 the target. Mark all threads that we intend to run as running,
7050 unless we're calling an inferior function.
7051 (normal_stop): If the thread is running an infcall, don't finish
7052 thread state.
7053 * target.c (target_resume): Don't mark threads as running here.
7054
7f3c0343
JB
70552014-05-28 Joel Brobecker <brobecker@adacore.com>
7056
7057 * serial.c (_initialize_serial): Remove support for
7058 the "set remotebaud" and "show remotebaud" commands.
7059 * NEWS: Add entry documenting the removal of that command.
7060
ee34b3f9
YQ
70612014-05-28 Yao Qi <yao@codesourcery.com>
7062
7063 * charset.c: Fix typo in comments.
7064
add6c04d
GB
70652014-05-27 Gary Benson <gbenson@redhat.com>
7066
7067 * utils.c (internal_vproblem): Prompt for a bug report.
7068
92c48fc5
AW
70692014-05-26 Andy Wingo <wingo@igalia.com>
7070
7071 * guile/scm-arch.c (arscm_mark_arch_smob):
7072 * guile/scm-block.c (bkscm_mark_block_smob)
7073 (bkscm_mark_block_syms_progress_smob):
7074 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7075 * guile/scm-exception.c (exscm_mark_exception_smob):
7076 * guile/scm-frame.c (frscm_mark_frame_smob):
7077 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7078 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7079 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7080 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7081 (ppscm_mark_pretty_printer_worker_smob):
7082 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7083 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7084 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7085 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7086 mark functions.
7087 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7088 function.
7089
b2715b27
AW
70902014-05-26 Andy Wingo <wingo@igalia.com>
7091 Doug Evans <xdje42@gmail.com>
7092
7093 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7094 empty_base_class. All uses updated.
7095 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7096 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7097 Adapt all callers.
7098 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7099 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7100 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7101 (gdbscm_gsmob_has_property_p, add_property_name)
7102 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7103 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7104 (gdb-object-has-property?, gdb-object-properties): Remove.
7105 (gdb-object-kind): Renamed from gsmob-kind.
7106
214ab2da
AW
71072014-05-26 Andy Wingo <wingo@igalia.com>
7108
7109 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7110 * configure: Regenerate.
7111
589fdceb
MM
71122014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7113
7114 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7115
67b5c0c1
MM
71162014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7117
7118 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7119 (replay_memory_access_read_only, replay_memory_access_read_write)
7120 (replay_memory_access_types, replay_memory_access)
7121 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7122 (cmd_set_record_btrace, cmd_show_record_btrace)
7123 (cmd_show_replay_memory_access): New.
7124 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7125 (record_btrace_remove_breakpoint): Replace
7126 record_btrace_allow_memory_access with replay_memory_access.
7127 (_initialize_record_btrace): Add commands.
7128 * NEWS: Announce it.
7129
036cd381
RR
71302014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7131
7132 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7133
c77c1e42
RR
71342014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7135
7136 * MAINTAINERS (Write After Approval): Move self back from
7137 paper trail.
7138
45741a9c
PA
71392014-05-22 Pedro Alves <palves@redhat.com>
7140
7141 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7142 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7143 (disable_randomization, enum exec_direction_kind)
7144 (execution_direction, stop_registers, start_remote)
7145 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7146 (wait_for_inferior, normal_stop, get_last_target_status)
7147 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7148 (insert_step_resume_breakpoint_at_sal)
7149 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7150 (set_step_info, print_stop_event, signal_stop_state)
7151 (signal_print_state, signal_pass_state, signal_stop_update)
7152 (signal_print_update, signal_pass_update)
7153 (update_signals_program_target, clear_exit_convenience_vars)
7154 (displaced_step_dump_bytes, update_observer_mode)
7155 (signal_catch_update, gdb_signal_from_command): Move
7156 declarations ...
7157 * infrun.h: ... to this new file.
7158 * amd64-tdep.c: Include infrun.h.
7159 * annotate.c: Include infrun.h.
7160 * arch-utils.c: Include infrun.h.
7161 * arm-linux-tdep.c: Include infrun.h.
7162 * arm-tdep.c: Include infrun.h.
7163 * break-catch-sig.c: Include infrun.h.
7164 * breakpoint.c: Include infrun.h.
7165 * common/agent.c: Include infrun.h instead of inferior.h.
7166 * corelow.c: Include infrun.h.
7167 * event-top.c: Include infrun.h.
7168 * go32-nat.c: Include infrun.h.
7169 * i386-tdep.c: Include infrun.h.
7170 * inf-loop.c: Include infrun.h.
7171 * infcall.c: Include infrun.h.
7172 * infcmd.c: Include infrun.h.
7173 * infrun.c: Include infrun.h.
7174 * linux-fork.c: Include infrun.h.
7175 * linux-nat.c: Include infrun.h.
7176 * linux-thread-db.c: Include infrun.h.
7177 * monitor.c: Include infrun.h.
7178 * nto-tdep.c: Include infrun.h.
7179 * procfs.c: Include infrun.h.
7180 * record-btrace.c: Include infrun.h.
7181 * record-full.c: Include infrun.h.
7182 * remote-m32r-sdi.c: Include infrun.h.
7183 * remote-mips.c: Include infrun.h.
7184 * remote-notif.c: Include infrun.h.
7185 * remote-sim.c: Include infrun.h.
7186 * remote.c: Include infrun.h.
7187 * reverse.c: Include infrun.h.
7188 * rs6000-tdep.c: Include infrun.h.
7189 * s390-linux-tdep.c: Include infrun.h.
7190 * solib-irix.c: Include infrun.h.
7191 * solib-osf.c: Include infrun.h.
7192 * solib-svr4.c: Include infrun.h.
7193 * target.c: Include infrun.h.
7194 * top.c: Include infrun.h.
7195 * windows-nat.c: Include infrun.h.
7196 * mi/mi-interp.c: Include infrun.h.
7197 * mi/mi-main.c: Include infrun.h.
7198 * python/py-threadevent.c: Include infrun.h.
7199
98eb56a4
PA
72002014-05-22 Pedro Alves <palves@redhat.com>
7201
7202 * infrun.c (handle_inferior_event): Store the exit code for
7203 --return-child-result here, instead of ...
7204 (print_exited_reason): ... here.
7205
17b2616c
PA
72062014-05-21 Pedro Alves <palves@redhat.com>
7207
7208 PR gdb/13860
7209 * gdbthread.h (struct thread_control_state): New field
7210 `command_interp'.
7211 * infrun.c (follow_fork): Copy the new thread control field to the
7212 child fork thread.
7213 (clear_proceed_status_thread): Clear the new thread control field.
7214 (proceed): Set the new thread control field.
7215 * interps.h (command_interp): Declare.
7216 * interps.c (command_interpreter): New global.
7217 (command_interp): New function.
7218 (interp_exec): Set `command_interpreter' while here.
7219 * cli-out.c (cli_uiout_dtor): New function.
7220 (cli_ui_out_impl): Install it.
7221 * mi/mi-interp.c: Include cli-out.h.
7222 (mi_cmd_interpreter_exec): Add comment.
7223 (restore_current_uiout_cleanup): New function.
7224 (ui_out_free_cleanup): New function.
7225 (mi_on_normal_stop): If finishing an execution command started by
7226 a CLI command, or any kind of breakpoint-like event triggered,
7227 print the stop event to the output (CLI) stream.
7228 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7229
5166082f
PA
72302014-05-21 Pedro Alves <palves@redhat.com>
7231
7232 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7233 current source line having changed.
7234 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7235 * infrun.c (normal_stop): Adjust call to
7236 set_current_sal_from_frame.
7237 * source.c (clear_lines_listed_range): New function.
7238 (set_current_source_symtab_and_line, identify_source_line): Clear
7239 the lines listed range.
7240 (line_info): Handle the first "info line" after the current source
7241 line having changed.
7242 * stack.c (print_stack_frame): Remove center handling.
7243 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7244 center sal.line.
7245
c1ee2fb3
PA
72462014-05-21 Pedro Alves <palves@redhat.com>
7247
7248 * inf-child.c (inf_child_mourn_inferior): New function.
7249 * inf-child.h (inf_child_mourn_inferior): New declaration.
7250 * darwin-nat.c (darwin_mourn_inferior): Use
7251 inf_child_mourn_inferior.
7252 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7253 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7254 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7255 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7256 * windows-nat.c (windows_mourn_inferior): Likewise.
7257
5c6d4fb2
DE
72582014-05-21 Doug Evans <xdje42@gmail.com>
7259
250748cb 7260 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7261
4a2722c5
DE
72622014-05-21 Doug Evans <xdje42@gmail.com>
7263
17292b30 7264 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7265 (gdbscm_out_of_range_error): Ditto.
7266 (gdbscm_memory_error): Ditto.
250748cb
DE
7267 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7268 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7269 (gdbscm_out_of_range_error): Update.
7270 (gdbscm_memory_error): Update.
7271 (gdbscm_scm_to_target_string_unsafe): Delete.
7272
6a3cb8e8
PA
72732014-05-21 Pedro Alves <palves@redhat.com>
7274
7275 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7276 globals.
7277 (inf_child_open_target): New function.
7278 (inf_child_open): Use inf_child_open_target to push the target
7279 instead of erroring out.
7280 (inf_child_disconnect, inf_child_close)
7281 (inf_child_maybe_unpush_target): New functions.
7282 (inf_child_target): Install inf_child_disconnect and
7283 inf_child_close. Store a pointer to the returned object.
7284 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7285 declarations.
7286 * target.c (auto_connect_native_target): New global.
7287 (show_default_run_target): New function.
7288 (find_default_run_target): Return NULL if automatically connecting
7289 to the native target is disabled.
7290 (_initialize_target): Install set/show auto-connect-native-target.
7291 * NEWS: Mention "set auto-connect-native-target", and "target
7292 native".
7293 * linux-nat.c (super_close): New global.
7294 (linux_nat_close): Call super_close.
7295 (linux_nat_add_target): Store a pointer to the base class's
7296 to_close method.
7297 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7298 inf_child_maybe_unpush.
7299 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7300 already pushed.
7301 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7302 the inferior. Use inf_child_maybe_unpush_target.
7303 (inf_ttrace_attach): Don't push the target if it is already
7304 pushed.
7305 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7306 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7307 after mourning the inferior. Use inf_child_maybe_unpush_target.
7308 (darwin_attach_pid): Don't push the target if it is already
7309 pushed.
7310 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7311 mourning the inferior. Use inf_child_maybe_unpush_target.
7312 (gnu_detach): Use inf_child_maybe_unpush_target.
7313 * go32-nat.c (go32_create_inferior): Don't push the target if it
7314 is already pushed.
7315 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7316 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7317 (procfs_open): Rename to ...
7318 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7319 comments. Can target_preopen before changing node. Call
7320 inf_child_open_target to push the target explicitly.
7321 (procfs_attach): Don't push the target if it is already pushed.
7322 (procfs_detach): Use inf_child_maybe_unpush_target.
7323 (procfs_create_inferior): Don't push the target if it is already
7324 pushed.
7325 (nto_native_ops): New global.
7326 (procfs_open): Reimplement.
7327 (procfs_native_open): New function.
7328 (init_procfs_targets): Install procfs_native_open as to_open of
7329 "target native". Store a pointer to the "native" target in
7330 nto_native_ops.
7331 * procfs.c (procfs_attach): Don't push the target if it is already
7332 pushed.
7333 (procfs_detach): Use inf_child_maybe_unpush_target.
7334 (procfs_mourn_inferior): Only unpush the target after mourning the
7335 inferior. Use inf_child_maybe_unpush_target.
7336 (procfs_init_inferior): Don't push the target if it is already
7337 pushed.
7338 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7339 if it is already pushed.
7340
930ee1b1
PA
73412014-05-21 Pedro Alves <palves@redhat.com>
7342
7343 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7344 and "procfs" targets are now called "native" instead.
7345
1f5d1b13
PA
73462014-05-21 Pedro Alves <palves@redhat.com>
7347
7348 * go32-nat.c (go32_open): Delete.
7349 (go32_target): Don't override the to_open method.
7350
132f8e03
PA
73512014-05-21 Pedro Alves <palves@redhat.com>
7352
7353 * nto-procfs.c (procfs_can_run): New function.
7354 (nto_procfs_ops): New global.
7355 (init_procfs_targets): New, based on procfs_target. Install
7356 "target native" in addition to "target procfs".
7357 (_initialize_procfs): Call init_procfs_targets instead of adding
7358 the target here.
7359
03c136c3
PA
73602014-05-21 Pedro Alves <palves@redhat.com>
7361
7362 * windows-nat.c (windows_target): Don't override to_shortname,
7363 to_longname or to_doc.
7364
a635d0f3
PA
73652014-05-21 Pedro Alves <palves@redhat.com>
7366
7367 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7368 to_doc.
7369
4f9b5133
PA
73702014-05-21 Pedro Alves <palves@redhat.com>
7371
7372 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7373 to_shortname, to_longname or to_doc.
7374
bc85afde
PA
73752014-05-21 Pedro Alves <palves@redhat.com>
7376
7377 * go32-nat.c (go32_target): Don't override to_shortname,
7378 to_longname or to_doc.
7379
4ebfc96e
PA
73802014-05-21 Pedro Alves <palves@redhat.com>
7381
7382 * inf-child.c (inf_child_open): Remove mention of "child".
7383 (inf_child_target): Rename target to "native" instead of "child".
7384
2648dfed
AA
73852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7386
7387 * Makefile.in (SFILES): Delete "regset.c".
7388 (COMMON_OBS): Delete "regset.o".
7389 * regset.c: Remove.
7390 * regset.h (regset_alloc): Delete prototype.
7391
b13feb94
AA
73922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7393
7394 * sparc-linux-tdep.c (sparc32_linux_gregset)
7395 (sparc32_linux_fpregset): New static regset structures.
7396 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7397 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7398 'fpregset' fields.
7399 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7400 (sparc64_linux_fpregset): New static regset structures.
7401 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7402 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7403 New static regset structures.
7404 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7405 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7406 New static regset structures.
7407 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7408 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7409 New static regset structures.
7410 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7411 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7412 New static regset structures.
7413 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7414
b4fd25c9
AA
74152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7416
7417 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7418 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7419 register maps ("regmaps") from "*regset" to "*regmap". Do this
7420 for all regmap types and variables.
7421 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7422 (sparc32_linux_supply_core_gregset)
7423 (sparc32_linux_collect_core_gregset)
7424 (sparc32_linux_supply_core_fpregset)
7425 (sparc32_linux_collect_core_fpregset): Likewise.
7426 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7427 (sparc_gregmap, sparc_fpregmap): ... these.
7428 (sparc_supply_gregset, sparc_collect_gregset)
7429 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7430 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7431 (_initialize_sparc_nat): Rename regmaps.
7432 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7433 (sparc_gregmap, sparc_fpregmap): ... these.
7434 (sparc_supply_gregset, sparc_collect_gregset)
7435 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7436 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7437 Rename macros to...
7438 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7439 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7440 Likewise.
7441 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7442 Rename to...
7443 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7444 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7445 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7446 regmaps.
7447 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7448 (sparc32_bsd_fpregset): Rename to...
7449 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7450 (sparc32_bsd_fpregmap): ... these.
7451 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7452 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7453 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7454 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7455 (struct sparc_gregmap, struct sparc_fpregmap)
7456 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7457 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7458 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7459 (sparc32_supply_regset, sparc32_collect_gregset)
7460 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7461 prototypes.
7462 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7463 (sparc64_linux_ptrace_gregmap): ... this.
7464 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7465 (_initialize_sparc64_linux_nat): Rename regmaps.
7466 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7467 (sparc64_linux_core_gregmap): ... this.
7468 (sparc64_linux_supply_core_gregset)
7469 (sparc64_linux_collect_core_gregset)
7470 (sparc64_linux_supply_core_fpregset)
7471 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7472 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7473 (sparc64_sol2_fpregset): Rename to...
7474 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7475 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7476 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7477 regmaps.
7478 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7479 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7480 (sparc64_bsd_fpregset): Rename to...
7481 (struct sparc_gregmap, sparc64_sol2_gregmap)
7482 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7483 (sparc64_bsd_fpregmap): ... these.
7484 (sparc64_supply_gregset, sparc64_collect_gregset)
7485 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7486 prototypes.
7487 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7488 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7489 (sparc64fbsd_gregmap): ... this.
7490 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7491 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7492 Rename regmaps.
7493 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7494 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7495 (sparc64nbsd_collect_fpregset): Likewise.
7496 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7497 (sparc64nbsd_gregmap): ... this.
7498 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7499 regmaps.
7500 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7501 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7502 (sparc64obsd_gregmap): ... this.
7503 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7504 regmaps.
7505 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7506 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7507 (sparc32nbsd_gregmap): ... this.
7508 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7509 regmaps.
7510
8fea3224
AA
75112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7512
7513 * score-tdep.c (score7_linux_gregset): New static regset
7514 structure.
7515 (score7_linux_regset_from_core_section): Remove dynamic regset
7516 allocation.
7517 (score_gdbarch_init): Drop allocation of tdep structure.
7518 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7519
24534243
AA
75202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7521
7522 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7523 regset structures.
7524 (am33_regset_from_core_section): Remove dynamic regset
7525 allocations.
7526
b7195f27
AA
75272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7528
7529 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7530 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7531 structures.
7532 (mips_linux_regset_from_core_section): Remove dynamic regset
7533 allocations.
7534 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7535 'gregset64', 'fpregset', and 'fpregset64'.
7536 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7537 deleted tdep fields.
7538
ecc37a5a
AA
75392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7540
7541 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7542 regset structures.
7543 (amd64_regset_from_core_section): Remove dynamic regset
7544 allocations.
7545 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7546 structure.
7547 (amd64obsd_regset_from_core_section): Remove dynamic regset
7548 allocation.
7549 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7550 Likewise.
7551 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7552 x86-common regset supply function.
7553 * i386-tdep.c (i386_collect_gregset): Make static.
7554 (i386_gregset): New global regset structure.
7555 (i386_fpregset, i386_xstateregset): New static regset structures.
7556 (i386_regset_from_core_section): Remove dynamic regset
7557 allocations.
7558 (i386_gdbarch_init): Remove initialization of tdep fields
7559 'gregset', 'fpregset', and 'xstateregset'.
7560 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7561 'fpregset', and 'xstateregset'.
7562 (i386_collect_gregset): Remove prototype.
7563 (i386_gregset): New declaration.
7564 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7565 structure.
7566 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7567 allocation.
7568
b7611c43
AA
75692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7570
7571 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7572 (arm_linux_vfpregset): New static regset structures.
7573 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7574 regset structures.
7575 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7576 and 'vfpregset' fields.
7577
a069a2bd
AA
75782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7579
7580 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7581 (aarch64_linux_fpregset): New static regset structures.
7582 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7583 of regset structures.
7584 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7585 'fpregset' fields.
7586
09424cff
AA
75872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7588
7589 * regset.h (struct regset): Remove gdbarch field.
7590 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7591 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7592 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7593 Likewise.
7594 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7595 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7596 (ppc32_linux_vsxregset): Likewise.
7597 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7598 via the regcache instead of the regset.
7599 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7600 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7601 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7602 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7603 Likewise.
7604
3ca7dae4
AA
76052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7606
7607 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7608 Constify structures.
7609 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7610 (alphanbsd_aout_gregset): Likewise.
7611 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7612 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7613 Likewise.
7614 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7615 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7616 Likewise.
7617 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7618 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7619 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7620 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7621 * m88k-tdep.c (m88k_gregset): Likewise.
7622 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7623 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7624 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7625 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7626 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7627 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7628 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7629 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7630 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7631 Likewise.
7632 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7633 * sh-tdep.h (sh_corefile_gregset): Likewise.
7634 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7635 * vax-tdep.c (vax_gregset): Likewise.
7636
5876f503
JK
76372014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7638
7639 Fix TLS access for -static -pthread.
7640 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7641 (try_thread_db_load_1): Initialize it.
7642 (thread_db_get_thread_local_address): Call it if LM is zero.
7643 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7644 * target.h (struct target_ops) (to_get_thread_local_address): Add
7645 load_module_addr comment.
7646
0256a6ac
PA
76472014-05-21 Pedro Alves <palves@redhat.com>
7648
7649 * dcache.c (dcache_read_memory_partial): If reading the cache line
7650 fails, fallback to reading just the memory the caller wanted.
7651
227533ac
DE
76522014-05-20 Doug Evans <dje@google.com>
7653
7654 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7655 instead of get_current_arch.
7656
936d2992
PA
76572014-05-20 Pedro Alves <palves@redhat.com>
7658
7659 * NEWS: Mention that compare-sections now works with all targets.
7660
7661 * remote.c (PACKET_qCRC): New enum value.
7662 (remote_verify_memory): Don't send qCRC if the target has no
7663 execution. Use packet_support/packet_ok. If the target doesn't
7664 support the qCRC packet, fallback to a deep memory copy.
7665 (compare_sections_command): Say "target image" instead of "remote
7666 executable".
7667 (_initialize_remote): Add PACKET_qCRC to the list of config
7668 packets that have no associated command. Extend comment.
7669 * target.c (simple_verify_memory, default_verify_memory): New
7670 function.
7671 * target.h (struct target_ops) <to_verify_memory>: Default to
7672 default_verify_memory.
7673 (simple_verify_memory): New declaration.
7674 * target-delegates.c: Regenerate.
7675
e59fa00f
MM
76762014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7677
7678 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7679
f2205de0
HZ
76802014-05-20 Hui Zhu <hui@codesourcery.com>
7681 Yao Qi <yao@codesourcery.com>
7682
7683 PR backtrace/16558
7684 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7685 and change address of sp and pc.
7686
c4e54771
TT
76872014-05-19 Tom Tromey <tromey@redhat.com>
7688
7689 * gdbtypes.c (rank_function): Use XNEWVEC.
7690 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7691
73051182
DE
76922014-05-19 Doug Evans <dje@google.com>
7693
7694 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7695 build_type_unit_groups and moved closer to only caller. Remove
7696 arguments. All references updated. Remove outdated .gdb_index
7697 comment.
7698 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7699 build_type_psymtabs_1.
7700
8832e7e3
DE
77012014-05-19 Doug Evans <dje@google.com>
7702
7703 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7704 n_type_unit_groups, all_type_unit_groups. All uses removed.
7705 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7706 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7707 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7708 (add_type_unit_group_to_table): Delete.
7709
cd8ae15e
DE
77102014-05-19 Doug Evans <dje@google.com>
7711
7712 * eval.c (evaluate_subexp_standard): Add some comments.
7713
08f4850b
DE
77142014-05-17 Doug Evans <xdje42@gmail.com>
7715
7716 * progspace.c (remove_program_space): Delete, unused.
7717 * progspace.h (remove_program_space): Ditto.
7718
bed8455c
DE
77192014-05-17 Doug Evans <xdje42@gmail.com>
7720
7721 * inferior.c (prune_inferiors): Fix comment.
7722 (remove_inferior_command): Call prune_program_spaces.
7723
8d551b02
DE
77242014-05-16 Doug Evans <dje@google.com>
7725
7726 New command line option -D.
7727 * NEWS: Mention it.
7728 * main.c (set_gdb_data_directory): New function.
7729 (captured_main): Recognize -D. Flag error for --data-directory "".
7730 Call set_gdb_data_directory.
7731 (print_gdb_help): Print --data-directory, -D.
7732 * main.h (set_gdb_data_directory): Declare.
7733 * top.c (staged_gdb_datadir): New static global.
7734 (set_gdb_datadir): Call set_gdb_data_directory
7735 (show_gdb_datadir): New function.
7736 (init_main): Update init of data-directory parameter.
7737
18848e28
GF
77382014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7739
7740 Import the "dirfd" gnulib module.
7741 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7742 * gnulib/aclocal.m4: Update.
7743 * gnulib/config.in: Update.
7744 * gnulib/configure: Update.
7745 * gnulib/import/Makefile.am: Update.
7746 * gnulib/import/Makefile.in: Update.
7747 * gnulib/import/dirfd.c: New.
7748 * gnulib/import/m4/dirfd.m4: New.
7749 * gnulib/import/m4/gnulib-cache.m4: Update.
7750 * gnulib/import/m4/gnulib-comp.m4: Update.
7751
95c64f92
YQ
77522014-05-16 Pierre Muller <muller@sourceware.org>
7753 Yao Qi <yao@codesourcery.com>
7754
7755 * valprint.c (print_wchar): Move the code on checking whether
7756 W is a printable wide char to the default branch of switch
7757 statement below. Call wchar_printable instead of gdb_iswprint.
7758
cac395ea
TM
77592014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7760
19679eca 7761 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7762 ldr.w and ldrd instructions.
7763
83655187
DE
77642014-05-15 Doug Evans <dje@google.com>
7765
7766 * dwarf2read.c (read_structure_type): Delete outdated comments.
7767
dd756689
TT
77682014-05-14 Tom Tromey <tromey@redhat.com>
7769
7770 * macrocmd.c (print_macro_definition): Reindent.
7771
75ddda77
DE
77722014-05-13 Doug Evans <xdje42@gmail.com>
7773
7774 * python/py-cmd.c (cmdpy_completer): Add comment.
7775 (completers): Make const.
7776
b0f16a3e
SM
77772014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7778
7779 * infrun.c (resume): Remove should_resume (unused). Move up
7780 declaration of resume_ptid.
7781
033c3379
TT
77822014-05-13 Tom Tromey <tromey@redhat.com>
7783
7784 * language.h (unop_type_check): Remove.
7785 (binop_type_check): Don't declare.
7786
9b44a3a5
AA
77872014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7788
7789 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7790 call to regcache_raw_collect.
7791
303a33fa
SM
77922014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7793
7794 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7795 mi_console->quote as the quoting character.
7796
196100a0
SM
77972014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7798
7799 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7800
f989a1c8
TT
78012014-04-29 Tom Tromey <tromey@redhat.com>
7802
7803 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7804 "show debug varobj".
7805
9404b58f
KM
78062014-05-07 Kyle McMartin <kyle@redhat.com>
7807
7808 Pushed by Joel Brobecker <brobecker@adacore.com>.
7809 * aarch64-tdep.c (aarch64_software_single_step): New function.
7810 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7811 with aarch64_software_single_step.
7812
5e49ba57
JB
78132014-05-05 Joel Brobecker <brobecker@adacore.com>
7814
7815 GDB 7.7.1 released.
7816
c888a17d
KS
78172014-05-05 Keith Seitz <keiths@redhat.com>
7818
7819 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7820 variable or history value is successfully parsed.
7821
290a839c
YQ
78222014-05-05 Yao Qi <yao@codesourcery.com>
7823 Pedro Alves <palves@redhat.com>
7824
7825 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7826 address of blocks that intersects the requested range. Trim
7827 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7828 sections.
7829 * ctf.c (ctf_xfer_partial): Likewise.
7830
91256dc2
YQ
78312014-05-05 Yao Qi <yao@codesourcery.com>
7832
7833 * printcmd.c (display_command): Remove the check to
7834 target_has_execution.
7835
07284463
MK
78362014-05-03 Mark Kettenis <kettenis@gnu.org>
7837
7838 * ppcobsd-nat.c: Include "obsd-nat.h".
7839 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7840 add_target.
7841 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7842
30a1e6cc
SDJ
78432014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7844
7845 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7846 and 16-bit signed and unsigned arguments. Update comment.
7847 (stap_parse_probe_arguments): Extend code to handle such
7848 arguments. Use warning instead of complaint to notify about
7849 unrecognized bitness.
7850
f33da99a
SDJ
78512014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7852
7853 PR breakpoints/16889
7854 * stap-probe.c (stap_parse_probe_arguments): Simplify
7855 check for non-prefixed probes (i.e., probes whose
7856 arguments do not start with "N@"). Always set the
7857 argument type to a sane value.
7858
95cf3b38
DT
78592014-05-01 David Taylor <dtaylor@emc.com>
7860
7861 * remote.c (compare_sections_command): Add -r option to compare
7862 all loadable read-only sections.
7863
1cfdf534
SC
78642014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7865
7866 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7867 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7868 Update all callers.
7869 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7870 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7871 Remove unused CORE_ADDR argument. Update all callers.
7872
ca4f7f8b
PA
78732014-04-29 Pedro Alves <palves@redhat.com>
7874
7875 * remote.c (struct packet_config) <detect>: Extend comment.
7876 (add_packet_config_cmd): Don't set the config's detect or support
7877 fields here.
7878 (init_all_packet_configs): Also initialize the config's 'detect'
7879 field.
7880 (reset_all_packet_configs_support): New function.
7881 (remote_open_1): Call reset_all_packet_configs_support instead of
7882 init_all_packet_configs.
7883 (_initialize_remote): Initialize all packet configs. Assert that
7884 all packets have an associated command, except a few known
7885 outliers.
7886
11c1ba78
JB
78872014-04-28 Joel Brobecker <brobecker@adacore.com>
7888
7889 * dwarf2read.c (read_subrange_type): Handle dynamic
7890 DW_AT_lower_bound attributes.
7891
8739bc53
JB
78922014-04-28 Joel Brobecker <brobecker@adacore.com>
7893
7894 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7895 dynamic bounds before computing its upper bound.
7896 (ada_discrete_type_low_bound): Same as above with the lower bound.
7897
6f8a3220
JB
78982014-04-28 Joel Brobecker <brobecker@adacore.com>
7899
7900 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7901 range types. Adjust the array handling implementation to
7902 take advantage of this change.
7903 (resolve_dynamic_range): New function, mostly extracted from
7904 resolve_dynamic_bounds.
7905 (resolve_dynamic_array): New function, mostly extracted from
7906 resolve_dynamic_bounds.
7907 (resolve_dynamic_bounds): Delete.
7908 (resolve_dynamic_type): Reimplement. Add handling of
7909 TYPE_CODE_RANGE types.
7910
4d072ce4
JB
79112014-04-28 Joel Brobecker <brobecker@adacore.com>
7912
7913 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7914 handling of parallel ___XA types.
7915
52865325
JB
79162014-04-28 Joel Brobecker <brobecker@adacore.com>
7917
7918 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7919 unnecessary second call to static_unwrap_type.
7920
433e77fa
HZ
79212014-04-27 Hui Zhu <hui@codesourcery.com>
7922
7923 * stack.c (print_frame_info): Call do_gdb_disassembly with
7924 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7925
b51a69ee
DE
79262014-04-26 Doug Evans <xdje42@gmail.com>
7927
7928 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7929
7ae1a6a6
PA
79302014-04-25 Pedro Alves <palves@redhat.com>
7931
7932 PR server/16255
7933 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7934 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7935 and newline from built string.
7936 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7937 (linux_ptrace_attach_fail_reason): ... this.
7938 * linux-nat.c (linux_nat_attach): Adjust to use
7939 linux_ptrace_attach_fail_reason.
7940
4082afcc
PA
79412014-04-25 Pedro Alves <palves@redhat.com>
7942
7943 * remote.c (struct remote_state): Remove multi_process_aware,
7944 non_stop_aware, cond_tracepoints, cond_breakpoints,
7945 breakpoint_commands, fast_tracepoints, static_tracepoints,
7946 install_in_trace, disconnected_tracing,
7947 enable_disable_tracepoints, string_tracing, and
7948 augmented_libraries_svr4_read fields.
7949 (remote_multi_process_p): Move further below in the file.
7950 (struct packet_config): Add comments.
7951 (update_packet_config): Delete function.
7952 (show_packet_config_cmd): Use packet_config_support.
7953 (add_packet_config_cmd): Use NULL as set callback.
7954 (packet_ok): "set remote foo-packet"-style commands no longer
7955 change config->supported -- adjust.
7956 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7957 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7958 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7959 (PACKET_QNonStop, PACKET_multiprocess_feature)
7960 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7961 (PACKET_DisconnectedTracing_feature)
7962 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7963 (set_remote_protocol_packet_cmd): Delete function.
7964 (packet_config_support, packet_support): New functions.
7965 (set_remote_protocol_Z_packet_cmd): Don't call
7966 update_packet_config.
7967 (remote_query_attached, remote_pass_signals)
7968 (remote_program_signals, remote_threads_info)
7969 (remote_threads_extra_info, remote_start_remote): Use
7970 packet_support.
7971 (remote_start_remote): Use packet_config_support and
7972 packet_support.
7973 (init_all_packet_configs): Set all packets to unknown support,
7974 instead of calling update_packet_config.
7975 (remote_check_symbols): Use packet_support.
7976 (remote_supported_packet): Unconditionally set the packet config's
7977 support status.
7978 (remote_multi_process_feature, remote_non_stop_feature)
7979 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7980 (remote_breakpoint_commands_feature)
7981 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7982 (remote_install_in_trace_feature)
7983 (remote_disconnected_tracing_feature)
7984 (remote_enable_disable_tracepoint_feature)
7985 (remote_string_tracing_feature)
7986 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7987 (remote_protocol_features): Adjust to use remote_supported_packet
7988 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7989 "ConditionalTracepoints", "ConditionalBreakpoints",
7990 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7991 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7992 "EnableDisableTracepoints", and "tracenz".
7993 (remote_query_supported): Use packet_support.
7994 (remote_open_1): Adjust.
7995 (extended_remote_attach_1): Use packet_support. Switch on the
7996 result of packet_ok instead of checking whether the packet ended
7997 up disabled.
7998 (remote_vcont_resume): Use packet_support.
7999 (remote_resume, remote_stop_ns, fetch_register_using_p)
8000 (remote_prepare_to_store, store_register_using_P)
8001 (check_binary_download, remote_write_bytes): Use packet_support.
8002 (remote_vkill): Use packet_support. Switch on the result of
8003 packet_ok instead of checking whether the packet ended up
8004 disabled.
8005 (extended_remote_supports_disable_randomization): Use
8006 packet_support.
8007 (extended_remote_run): Switch on the result of packet_ok instead
8008 of checking whether the packet ended up disabled.
8009 (remote_insert_breakpoint, remote_remove_breakpoint)
8010 (remote_insert_watchpoint, remote_remove_watchpoint)
8011 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8012 packet_support.
8013 (remote_search_memory): Use packet_config_support.
8014 (remote_get_thread_local_address, remote_get_tib_address)
8015 (remote_hostio_send_command, remote_can_execute_reverse): Use
8016 packet_support.
8017 (remote_supports_cond_tracepoints)
8018 (remote_supports_cond_breakpoints)
8019 (remote_supports_fast_tracepoints)
8020 (remote_supports_static_tracepoints)
8021 (remote_supports_install_in_trace)
8022 (remote_supports_enable_disable_tracepoint)
8023 (remote_supports_string_tracing)
8024 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8025 the packet config says the feature is enabled or disabled.
8026 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8027 (remote_get_trace_status): Use packet_support.
8028 (remote_set_disconnected_tracing): Adjust to check whether the
8029 feature is enabled with packet_support.
8030 (remote_set_trace_buffer_size, remote_use_agent)
8031 (remote_can_use_agent, remote_supports_btrace): Use
8032 packet_support.
8033 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8034 Use packet_config_support.
8035 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8036 the packet config says the feature is enabled or disabled.
8037 (set_range_stepping): Use packet_support.
8038
bdb52a22
TT
80392014-04-25 Tom Tromey <tromey@redhat.com>
8040
8041 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8042 argument.
8043
e9475ead
SA
80442014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8045
8046 * NEWS: Mention support for C99 variable length arrays.
8047
82eacd52
JB
80482014-04-24 Joel Brobecker <brobecker@adacore.com>
8049
8050 * ada-lang.c (standard_exc): Expand introductory comment.
8051
01f9f808
MS
80522014-04-24 Michael Sturm <michael.sturm@mintel.com>
8053 Walfred Tedeschi <walfred.tedeschi@intel.com>
8054
8055 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8056 AVX512 registers.
8057 (amd64_linux_read_description): Add code to handle AVX512 xstate
8058 mask and return respective tdesc.
8059 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8060 and features/i386/x32-avx512-linux.c.
8061 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8062 (amd64_linux_core_read_description): Add code to handle AVX512
8063 xstate mask and return respective tdesc.
8064 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8065 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8066 calculation.
8067 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8068 (tdesc_amd64_avx512_linux): New prototype.
8069 (tdesc_x32_avx512_linux): Likewise.
8070 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8071 features/i386/x32-avx512.c.
8072 (amd64_ymm_avx512_names): New register names for pseudo
8073 registers YMM16-31.
8074 (amd64_ymmh_avx512_names): New register names for raw registers
8075 YMMH16-31.
8076 (amd64_k_names): New register names for K registers.
8077 (amd64_zmmh_names): New register names for ZMM raw registers.
8078 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8079 (amd64_xmm_avx512_names): New register names for XMM16-31
8080 registers.
8081 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8082 registers.
8083 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8084 if feature is present.
8085 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8086 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8087 (AMD64_NUM_REGS): Adjust to new number of registers.
8088 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8089 registers supplied via XSTATE by AVX512 registers.
8090 (i386_linux_read_description): Add case for AVX512.
8091 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8092 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8093 (i386_linux_core_read_description): Add case for AVX512.
8094 (i386_linux_init_abi): Install supported register note section
8095 for AVX512.
8096 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8097 AVX512.
8098 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8099 registers to be number of zmm7h + 1.
8100 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8101 * i386-tdep.c: Include features/i386/i386-avx512.c.
8102 (i386_zmm_names): Add ZMM pseudo register names array.
8103 (i386_zmmh_names): Add ZMM raw register names array.
8104 (i386_k_names): Add K raw register names array.
8105 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8106 registers. AVX512 has 16 more ZMM registers than there are YMM
8107 registers.
8108 (i386_zmmh_regnum_p): Add function to look up register number of
8109 ZMM raw registers.
8110 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8111 (i386_k_regnum_p): Likewise for K raw registers.
8112 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8113 registers added by AVX512.
8114 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8115 registers added by AVX512.
8116 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8117 added by AVX512.
8118 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8119 (i386_pseudo_register_name): Add ZMM pseudo registers.
8120 (i386_zmm_type): Construct and return vector registers type for ZMM
8121 registers.
8122 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8123 ZMM0-31 pseudo registers and K registers.
8124 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8125 and YMM16-31 registers from register cache.
8126 (i386_pseudo_register_write): Add code to write K, ZMM and
8127 YMM16-31 registers.
8128 (i386_register_reggroup_p): Add code to include/exclude AVX512
8129 registers in/from respective register groups.
8130 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8131 registers if feature is present in xcr0.
8132 (i386_gdbarch_init): Add code to initialize AVX512 feature
8133 variables in tdep structure, wire in pseudo registers and call
8134 initialize_tdesc_i386_avx512.
8135 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8136 variables.
8137 (i386_regnum): Add AVX512 registers.
8138 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8139 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8140 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8141 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8142 512 bits wide.
8143 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8144 (i386_ymm_avx512_regnum_p): Likewise.
8145 (i386_k_regnum_p): Likewise.
8146 (i386_zmm_regnum_p): Likewise.
8147 (i386_zmmh_regnum_p): Likewise.
8148 * i387-tdep.c : Update year in copyright notice.
8149 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8150 XSAVE buffer.
8151 (XSAVE_YMM_AVX512_ADDR): New macro.
8152 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8153 XSAVE buffer.
8154 (XSAVE_XMM_AVX512_ADDR): New macro.
8155 (xsave_avx512_k_offset): New table for K register offsets in
8156 XSAVE buffer.
8157 (XSAVE_AVX512_K_ADDR): New macro.
8158 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8159 in XSAVE buffer.
8160 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8161 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8162 buffer.
8163 (i387_collect_xsave): Add code to collect AVX512 registers from
8164 XSAVE buffer.
8165 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8166 of XMM16-31 registers.
8167 (I387_NUM_K_REGS): New define for number of K registers.
8168 (I387_K0_REGNUM): New define for K0 register number.
8169 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8170 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8171 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8172 registers.
8173 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8174 (I387_XMM16_REGNUM): New define for XMM16 register number.
8175 (I387_YMM0_REGNUM): New define for YMM0 register number.
8176 (I387_KEND_REGNUM): New define for last K register number.
8177 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8178 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8179 number.
8180 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8181 number.
8182 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8183 size.
8184 * features/Makefile: Add AVX512 related files.
8185 * features/i386/32bit-avx512.xml: New file.
8186 * features/i386/64bit-avx512.xml: Likewise.
8187 * features/i386/amd64-avx512-linux.c: Likewise.
8188 * features/i386/amd64-avx512-linux.xml: Likewise.
8189 * features/i386/amd64-avx512.c: Likewise.
8190 * features/i386/amd64-avx512.xml: Likewise.
8191 * features/i386/i386-avx512-linux.c: Likewise.
8192 * features/i386/i386-avx512-linux.xml: Likewise.
8193 * features/i386/i386-avx512.c: Likewise.
8194 * features/i386/i386-avx512.xml: Likewise.
8195 * features/i386/x32-avx512-linux.c: Likewise.
8196 * features/i386/x32-avx512-linux.xml: Likewise.
8197 * features/i386/x32-avx512.c: Likewise.
8198 * features/i386/x32-avx512.xml: Likewise.
8199 * regformats/i386/amd64-avx512-linux.dat: New file.
8200 * regformats/i386/amd64-avx512.dat: Likewise.
8201 * regformats/i386/i386-avx512-linux.dat: Likewise.
8202 * regformats/i386/i386-avx512.dat: Likewise.
8203 * regformats/i386/x32-avx512-linux.dat: Likewise.
8204 * regformats/i386/x32-avx512.dat: Likewise.
8205 * NEWS: Add note about new support for AVX512.
8206
8207
08351840
PA
82082014-04-23 Pedro Alves <palves@redhat.com>
8209
8210 * breakpoint.c (insert_bp_location): Tolerate errors if the
8211 breakpoint is set in a user-loaded objfile.
8212 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8213 location is marked shlib_disabled. If the breakpoint is set in a
8214 user-loaded objfile is a GDB-side memory breakpoint, validate it
8215 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8216 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8217 flag.
8218 * mem-break.c (memory_validate_breakpoint): New function.
8219 * objfiles.c (userloaded_objfile_contains_address_p): New
8220 function.
8221 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8222 * target.h (memory_validate_breakpoint): New declaration.
8223
076855f9
PA
82242014-04-23 Pedro Alves <palves@redhat.com>
8225
8226 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8227 the breakpoint is set in a shared library, only suppress
8228 errors for software breakpoints, not hardware breakpoints.
8229
483805cf
PA
82302014-04-22 Pedro Alves <palves@redhat.com>
8231
8232 * infrun.c (schedlock_applies): New function, factored out from
8233 find_thread_needs_step_over.
8234 (find_thread_needs_step_over): Use it.
8235 (switch_back_to_stepped_thread): Always clear trap_expected if the
8236 step over is finished. Return early if scheduler locking applies.
8237 Look for the stepping thread and a potential step-over thread with
8238 a single loop.
8239 (currently_stepping_or_nexting_callback): Delete.
8240
a75fef0e
NC
82412014-04-22 Nick Clifton <nickc@redhat.com>
8242
8243 * NEWS: Mention that ARM sim now supports tracing.
8244
48b6e87e
YQ
82452014-04-22 Yao Qi <yao@codesourcery.com>
8246
8247 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8248 to ...
8249 * tracefile.c (tracefile_fetch_registers): ... it. New
8250 function.
8251 * tracefile.h (tracefile_fetch_registers): Declare.
8252 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8253 tracefile_fetch_registers.
8254
17617f2d
EZ
82552014-04-19 Eli Zaretskii <eliz@gnu.org>
8256
8257 PR gdb/14018
8258 * windows-nat.c (thread_rec): Don't display a warning when
8259 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8260 fails for any reason, set th->suspended to -1, so that we don't
8261 try to resume such a thread. Also, don't return NULL in these
8262 cases, to avoid completely ruin the session due to "PC register is
8263 not available" error.
8264 (do_windows_fetch_inferior_registers): Check errors in
8265 GetThreadContext call.
8266 (windows_continue): Accept an additional argument KILLED; if not
8267 zero, ignore errors in the SetThreadContext call, since the
8268 inferior was killed and is shutting down.
8269 (windows_resume, get_windows_debug_event)
8270 (windows_create_inferior, windows_mourn_inferior)
8271 (windows_kill_inferior): All callers of windows_continue changed
8272 to adjust to its new calling sequence.
8273
5723a6fd
YQ
82742014-04-19 Yao Qi <yao@codesourcery.com>
8275
8276 * ctf.c (ctf_open): Call post_create_inferior.
8277
614d5099
YQ
82782014-04-19 Yao Qi <yao@codesourcery.com>
8279
8280 * ctf.c (handle_id): New static variable.
8281 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8282 value. Get the declaration of event "register" and get length
8283 of field "contents".
8284
dac3e710
YQ
82852014-04-19 Yao Qi <yao@codesourcery.com>
8286
8287 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8288
2bca57ba
SC
82892014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8290
8291 * valops.c (oload_method_static): Remove unnecessary argument
8292 METHOD. Update all callers.
8293
51d48146
PA
82942014-04-18 Pedro alves <palves@redhat.com>
8295 Tom Tromey <tromey@redhat.com>
8296
8297 PR backtrace/15558
8298 * frame.c (get_prev_frame_1): Rename to ...
8299 (get_prev_frame_always): ... this, and make extern. Adjust.
8300 (skip_artificial_frames): Use get_prev_frame_always.
8301 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8302 (get_frame_unwind_stop_reason): Adjust to rename.
8303 * frame.h (get_prev_frame_always): Declare.
8304 * inline-frame.c: Include frame.h.
8305 (inline_frame_this_id): Use get_prev_frame_always.
8306
1bdad2e0
TG
83072014-04-18 Tristan Gingold <gingold@adacore.com>
8308
8309 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8310 code by using bfd_mach_o_get_base_address.
8311
7ce16bd4
UW
83122014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8313
8314 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8315 (spu_ax_pseudo_register_collect): New function.
8316 (spu_ax_pseudo_register_push_stack): Likewise.
8317 (spu_dwarf_reg_to_regnum): Likewise.
8318 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8319
2ed3c037
UW
83202014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8321
8322 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8323 Replace FRAME argument with FRAME_ID.
8324 * gdbarch.c, gdbarch.h: Regenerate.
8325 * findvar.c (default_value_from_register): Add GDBARCH argument;
8326 replace FRAME by FRAME_ID. No longer call get_frame_id.
8327 (value_from_register): Update call to gdbarch_value_from_register.
8328 * value.h (default_value_from_register): Update prototype.
8329 * s390-linux-tdep.c (s390_value_from_register): Update interface
8330 and call to default_value_from_register.
8331 * spu-tdep.c (spu_value_from_register): Likewise.
8332
8333 * findvar.c (address_from_register): Remove TYPE argument.
8334 Do not call value_from_register; use gdbarch_value_from_register
8335 with null_frame_id instead.
8336 * value.h (address_from_register): Update prototype.
8337 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8338 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8339 address_from_register interface change.
8340
71e50e83
YQ
83412014-04-17 Yao Qi <yao@codesourcery.com>
8342
8343 * gdbtypes.h: Update comments to link to types and macros'
8344 definitions.
8345
7a23c549
SC
83462014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8347
8348 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8349
22869d73
KS
83502014-04-16 Keith Seitz <keiths@redhat.com>
8351
8352 PR gdb/15827
8353 * dwarf2read.c (skip_one_die): Check that all relative-offset
8354 sibling DIEs fall within range of the current reader's buffer.
8355 (read_partial_die): Likewise.
8356
c4f87ca6
KS
83572014-04-16 Keith Seitz <keiths@redhat.com>
8358
8359 PR c++/16597
8360 * cp-namespace.c (lookup_symbol_file): If the type name of
8361 `this' is NULL, return immediately.
8362
b50c8614
KS
83632014-04-14 Keith Seitz <keiths@redhat.com>
8364
8365 PR c++/16253
8366 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8367 from symbol_matches_domain in symtab.c. All local callers
8368 of symbol_matches_domain updated.
8369 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8370 search STRUCT_DOMAIN.
8371 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8372 independently. standard_lookup will do that automatically.
8373 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8374 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8375 (cp_lookup_symbol_in_namespace): Likewise.
8376 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8377 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8378 may return a STRUCT_DOMAIN match.
8379 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8380 * cp-support.c: Include language.h.
8381 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8382 VAR_DOMAIN.
8383 * psymtab.c (match_partial_symbol): Compare the requested
8384 domain with the symbol's domain directly.
8385 (lookup_partial_symbol): Likewise.
8386 * symtab.c (lookup_symbol_in_language): Explain when/why
8387 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8388 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8389 appropriate languages.
8390 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8391 and moved to ada-lang.c
8392 (lookup_block_symbol): Explain that this function only returns
8393 symbol matching the requested DOMAIN.
8394 Compare the requested domain with the symbol's domain directly.
8395 (iterate_over_symbols): Compare the requested domain with the
8396 symbol's domain directly.
8397 * symtab.h (symbol_matches_domain): Remove.
8398
3d567982
TT
83992014-04-14 Tom Tromey <tromey@redhat.com>
8400
8401 PR c++/15246:
8402 * c-exp.y (type_aggregate_p): New function.
8403 (qualified_name, classify_inner_name): Use it.
8404 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8405 and TYPE_TARGET_TYPE of an enum type.
8406 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8407 an enum type.
8408 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8409 handle TYPE_DECLARED_CLASS.
8410 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8411 types.
8412 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8413 * valops.c (enum_constant_from_type): New function.
8414 (value_aggregate_elt): Use it.
8415 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8416 TYPE_CODE_ENUM.
8417
c848d642
TT
84182014-04-14 Tom Tromey <tromey@redhat.com>
8419
8420 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8421 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8422 const.
8423 * value.h (value_aggregate_elt): Update.
8424
0626fc76
TT
84252014-04-14 Tom Tromey <tromey@redhat.com>
8426
8427 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8428
5ecaaa66
SA
84292014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8430
8431 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8432 (evaluate_subexp_standard): Pass noside argument.
8433 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8434 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8435 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8436 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8437 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8438
1612e0c0
SA
84392014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8440
8441 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8442 points to a constant blob.
8443
c451ebe5
SA
84442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8445
8446 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8447 property and store it as the high bound and flag the range accordingly.
8448 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8449 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8450 * gdbtypes.h (enum range_flags): New enum.
8451 (struct range_bounds): Add flags member.
8452
1d42e4c4
SA
84532014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8454
8455 * c-typeprint.c (c_type_print_varspec_suffix): Added
8456 check for not yet resolved high bound. If unresolved, print
8457 "variable length" string to the console instead of random
8458 length.
8459
9f1f738a
SA
84602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8461
8462 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8463 value.
8464 (ada_template_to_fixed_record_type_1): Likewise.
8465 (ada_to_fixed_type_1): Likewise.
8466 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8467 (cp_print_value): Likewise.
8468 * d-valprint.c (dynamic_array_type): Likewise.
8469 * findvar.c (address_of_variable): Likewise.
8470 * jv-valprint.c (java_value_print): Likewise.
8471 * valops.c (value_ind): Likewise.
8472 * value.c (coerce_ref): Likewise.
8473
3c8452d4
SA
84742014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8475
8476 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8477 value and retrieve the dynamic type size.
8478
4ad88275
SA
84792014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8480
8481 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8482 passed to sizeof is dynamic evaluate the argument to compute the length.
8483
80180f79
SA
84842014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8485 Joel Brobecker <brobecker@adacore.com>
8486
8487 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8488 (dwarf2_evaluate_property): New function.
8489 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8490 * dwarf2read.c (attr_to_dynamic_prop): New function.
8491 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8492 attribute.
8493 * gdbtypes.c: Include dwarf2loc.h.
8494 (is_dynamic_type): New function.
8495 (resolve_dynamic_type): New function.
8496 (resolve_dynamic_bounds): New function.
8497 (get_type_length): New function.
8498 (check_typedef): Use get_type_length to compute type length.
8499 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8500 (TYPE_LOW_BOUND_KIND): New macro.
8501 (is_dynamic_type): New function prototype.
8502 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8503 to resolve dynamic properties of the type. Update comment.
8504 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8505
a1556843
RH
85062014-04-14 Richard Henderson <rth@redhat.com>
8507
8508 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8509
0be03e84
DE
85102014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8511 Doug Evans <xdje42@gmail.com>
8512
8513 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8514 dereference TYPE_CODE_REF values.
8515
6b662e19
JB
85162014-04-11 Joel Brobecker <brobecker@adacore.com>
8517
8518 Revert the following changes due to regressions:
8519
8520 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8521 (dwarf2_evaluate_property): New function.
8522 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8523 * dwarf2read.c (attr_to_dynamic_prop): New function.
8524 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8525 attribute.
8526 * gdbtypes.c: Include dwarf2loc.h.
8527 (is_dynamic_type): New function.
8528 (resolve_dynamic_type): New function.
8529 (resolve_dynamic_bounds): New function.
8530 (get_type_length): New function.
8531 (check_typedef): Use get_type_length to compute type length.
8532 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8533 (TYPE_LOW_BOUND_KIND): New macro.
8534 (is_dynamic_type): New function prototype.
8535 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8536 to resolve dynamic properties of the type. Update comment.
8537 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8538
8539 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8540 passed to sizeof is dynamic evaluate the argument to compute the length.
8541
8542 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8543 value and retrieve the dynamic type size.
8544
8545 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8546 (ada_template_to_fixed_record_type_1): Likewise.
8547 (ada_to_fixed_type_1): Likewise.
8548 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8549 (cp_print_value): Likewise.
8550 * d-valprint.c (dynamic_array_type): Likewise.
8551 * eval.c (evaluate_subexp_with_coercion): Likewise.
8552 * findvar.c (address_of_variable): Likewise.
8553 * jv-valprint.c (java_value_print): Likewise.
8554 * valops.c (value_ind): Likewise.
8555 * value.c (coerce_ref): Likewise.
8556
8557 * c-typeprint.c (c_type_print_varspec_suffix): Added
8558 check for not yet resolved high bound. If unresolved, print
8559 "variable length" string to the console instead of random
8560 length.
8561
8562 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8563 property and store it as the high bound and flag the range accordingly.
8564 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8565 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8566 * gdbtypes.h (enum range_flags): New enum.
8567 (struct range_bounds): Add flags member.
8568
8569 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8570 points to a constant blob.
8571
8572 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8573 (evaluate_subexp_standard): Pass noside argument.
8574 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8575 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8576 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8577 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8578 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8579
245a5f0b
KS
85802014-04-11 Keith Seitz <keiths@redhat.com>
8581
8582 PR c++/16675
8583 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8584 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8585 reference types.
8586
3bce8237
SA
85872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8588
8589 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8590 (evaluate_subexp_standard): Pass noside argument.
8591 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8592 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8593 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8594 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8595 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8596
92b09522
SA
85972014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8598
8599 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8600 points to a constant blob.
8601
e1969afb
SA
86022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8603
8604 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8605 property and store it as the high bound and flag the range accordingly.
8606 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8607 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8608 * gdbtypes.h (enum range_flags): New enum.
8609 (struct range_bounds): Add flags member.
8610
b86138fb
SA
86112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8612
8613 * c-typeprint.c (c_type_print_varspec_suffix): Added
8614 check for not yet resolved high bound. If unresolved, print
8615 "variable length" string to the console instead of random
8616 length.
8617
bcd629a4
SA
86182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8619
8620 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8621 (ada_template_to_fixed_record_type_1): Likewise.
8622 (ada_to_fixed_type_1): Likewise.
8623 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8624 (cp_print_value): Likewise.
8625 * d-valprint.c (dynamic_array_type): Likewise.
8626 * eval.c (evaluate_subexp_with_coercion): Likewise.
8627 * findvar.c (address_of_variable): Likewise.
8628 * jv-valprint.c (java_value_print): Likewise.
8629 * valops.c (value_ind): Likewise.
8630 * value.c (coerce_ref): Likewise.
8631
04b19544
SA
86322014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8633
8634 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8635 value and retrieve the dynamic type size.
8636
26cb189f
SA
86372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8638
8639 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8640 passed to sizeof is dynamic evaluate the argument to compute the length.
8641
37c1ab67
SA
86422014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8643
8644 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8645 (dwarf2_evaluate_property): New function.
8646 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8647 * dwarf2read.c (attr_to_dynamic_prop): New function.
8648 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8649 attribute.
8650 * gdbtypes.c: Include dwarf2loc.h.
8651 (is_dynamic_type): New function.
8652 (resolve_dynamic_type): New function.
8653 (resolve_dynamic_bounds): New function.
8654 (get_type_length): New function.
8655 (check_typedef): Use get_type_length to compute type length.
8656 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8657 (TYPE_LOW_BOUND_KIND): New macro.
8658 (is_dynamic_type): New function prototype.
8659 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8660 to resolve dynamic properties of the type. Update comment.
8661 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8662
729efb13
SA
86632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8664
8665 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8666 declaring high/low bounds and change uses accordingly. Call
8667 create_range_type instead of create_static_range_type.
8668 * gdbtypes.c (create_range_type): New function.
8669 (create_range_type): Convert bounds into struct bound_prop and pass
8670 them to create_range_type.
8671 * gdbtypes.h (struct bound_prop): New struct.
8672 (create_range_type): New function prototype.
8673 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8674 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8675 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8676 part of the bound.
8677 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8678
0c9c3474
SA
86792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8680
8681 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8682 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8683 * ada-lang.c: All uses of create_range_type updated.
8684 * coffread.c: All uses of create_range_type updated.
8685 * dwarf2read.c: All uses of create_range_type updated.
8686 * f-exp.y: All uses of create_range_type updated.
8687 * m2-valprint.c: All uses of create_range_type updated.
8688 * mdebugread.c: All uses of create_range_type updated.
8689 * stabsread.c: All uses of create_range_type updated.
8690 * valops.c: All uses of create_range_type updated.
8691 * valprint.c: All uses of create_range_type updated.
8692
9d497a19
PA
86932014-04-10 Pedro Alves <palves@redhat.com>
8694
8695 * breakpoint.c (single_step_breakpoints)
8696 (single_step_gdbarch): Move up in the file.
8697 (one_breakpoint_xfer_memory): New function, factored out from ...
8698 (breakpoint_xfer_memory): ... here. Also process single-step
8699 breakpoints.
8700
15a9128a
TG
87012014-04-09 Tristan Gingold <gingold@adacore.com>
8702
8703 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8704 comments.
8705 (darwin_decode_exception_message): Free port only after use.
8706
9c97a070
PL
87072014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8708
8709 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8710 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8711 when setting the size of call_length.
8712
7af389b8
SC
87132014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8714
8715 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8716 dereference TYPE_CODE_REF values.
8717
86ad98c3
JB
87182014-04-07 Joel Brobecker <brobecker@adacore.com>
8719
8720 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8721 end of warning message.
8722
b0aeadb3
DE
87232014-04-03 Doug Evans <dje@google.com>
8724
8725 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8726 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8727
5979d6b6
AM
87282014-04-02 Alan Modra <amodra@gmail.com>
8729
8730 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8731 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8732 (struct symbol_file_add_from_memory_args): Add size field.
8733 (find_vdso_size): New function.
8734 (add_vsyscall_page): Attempt to find vdso size.
8735
0d60c288
DE
87362014-04-01 Doug Evans <dje@google.com>
8737
8738 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8739
a41f2563
TG
87402014-04-01 Tristan Gingold <gingold@adacore.com>
8741
8742 * darwin-nat.c (darwin_encode_reply): Add prototype.
8743 (darwin_decode_exception_message): Reply to unknown inferiors.
8744 (darwin_decode_message): Handle message by id. Ignore message
8745 to unknown inferior.
8746 (darwin_wait): Discard unknown messages, add debug trace.
8747
11a865c8
DE
87482014-03-31 Doug Evans <dje@google.com>
8749
8750 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8751 comp_dir_string.
8752
770e7fc7
DE
87532014-03-31 Doug Evans <dje@google.com>
8754
8755 New option "set print symbol-loading".
8756 * NEWS: Mention it.
8757 * solib.c (solib_read_symbols): Only print symbol loading messages
8758 if requested.
8759 (solib_add): If symbol loading is in "brief" mode, notify user
8760 symbols are being loaded.
8761 (reload_shared_libraries_1): Ditto.
8762 * symfile.c (print_symbol_loading_off): New static global.
8763 (print_symbol_loading_brief): New static global.
8764 (print_symbol_loading_full): New static global.
8765 (print_symbol_loading_enums): New static global.
8766 (print_symbol_loading): New static global.
8767 (print_symbol_loading_p): New function.
8768 (symbol_file_add_with_addrs): Only print symbol loading messages
8769 if requested.
8770 (_initialize_symfile): Register "print symbol-loading" set/show
8771 command.
8772 * symfile.h (print_symbol_loading_p): Declare.
8773
c32c64b7
DE
87742014-03-30 Doug Evans <xdje42@gmail.com>
8775
8776 * infrun.c (set_last_target_status): New function.
8777 (handle_inferior_event): Call it.
8778
7c0bc051
DE
87792014-03-30 Doug Evans <xdje42@gmail.com>
8780
8781 * inferior.h (enum stop_kind): Improve comment.
8782
8776cfe9
JB
87832014-03-28 Joel Brobecker <brobecker@adacore.com>
8784
8785 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8786 a reference, strip the reference layer before calling
8787 the lang_ops value_has_mutated callback.
8788
410a0ff2
SDJ
87892014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8790
8791 Remove some globals from our parser.
8792 * language.c (unk_lang_parser): Add "struct parser_state"
8793 argument.
8794 * language.h (struct language_defn) <la_parser>: Likewise.
8795 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8796 (initialize_expout): Add "struct parser_state" argument.
8797 Rewrite function to use the parser state.
8798 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8799 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8800 write_exp_elt_longcst, write_exp_elt_dblcst,
8801 write_exp_elt_decfloatcst, write_exp_elt_type,
8802 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8803 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8804 write_dollar_variable): Likewise.
8805 (parse_exp_in_context_1): Use parser state.
8806 (insert_type_address_space): Add "struct parser_state" argument.
8807 Use parser state.
8808 (increase_expout_size): New function.
8809 * parser-defs.h: Forward declare "struct language_defn" and
8810 "struct parser_state".
8811 (expout, expout_size, expout_ptr): Remove extern declarations.
8812 (parse_gdbarch, parse_language): Rewrite macro declarations to
8813 accept the parser state.
8814 (struct parser_state): New struct.
8815 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8816 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8817 write_exp_elt_decfloatcst, write_exp_elt_type,
8818 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8819 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8820 write_exp_msymbol, write_dollar_variable,
8821 mark_struct_expression, insert_type_address_space): Add "struct
8822 parser_state" argument.
8823 (increase_expout_size): New function.
8824 * utils.c (do_clear_parser_state): New function.
8825 (make_cleanup_clear_parser_state): Likewise.
8826 * utils.h (make_cleanup_clear_parser_state): New function
8827 prototype.
8828 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8829 Update calls to write_exp* in order to pass the parser state.
8830 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8831 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8832 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8833 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8834 * stap-probe.c (stap_parse_register_operand): Likewise.
8835 (stap_parse_single_operand): Likewise.
8836 (stap_parse_argument_1): Likewise.
8837 (stap_parse_argument): Use parser state.
8838 * stap-probe.h: Include "parser-defs.h".
8839 (struct stap_parse_info) <pstate>: New field.
8840 * c-exp.y (parse_type): Rewrite to use parser state.
8841 (yyparse): Redefine to c_parse_internal.
8842 (pstate): New global variable.
8843 (parse_number): Add "struct parser_state" argument.
8844 (write_destructor_name): Likewise.
8845 (type_exp): Update calls to write_exp* and similars in order to
8846 use parser state.
8847 (exp1, exp, variable, qualified_name, space_identifier,
8848 typename, typebase): Likewise.
8849 (write_destructor_name, parse_number, lex_one_token,
8850 classify_name, classify_inner_name, c_parse): Add "struct
8851 parser_state" argument. Update function to use parser state.
8852 * c-lang.h: Forward declare "struct parser_state".
8853 (c_parse): Add "struct parser_state" argument.
8854 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8855 (yyparse): Redefine macro to ada_parse_internal.
8856 (pstate): New variable.
8857 (write_int, write_object_renaming, write_var_or_type,
8858 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8859 type_int, type_long, type_long_long, type_float, type_double,
8860 type_long_double, type_char, type_boolean, type_system_address):
8861 Add "struct parser_state" argument.
8862 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8863 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8864 var_or_type, aggregate, aggregate_component_list,
8865 positional_list, others, component_group,
8866 component_associations): Update calls to write_exp* and similar
8867 functions in order to use parser state.
8868 (ada_parse, write_var_from_sym, write_int,
8869 write_exp_op_with_string, write_object_renaming,
8870 find_primitive_type, write_selectors, write_ambiguous_var,
8871 write_var_or_type, write_name_assoc, type_int, type_long,
8872 type_long_long, type_float, type_double, type_long_double,
8873 type_char, type_boolean, type_system_address): Add "struct
8874 parser_state" argument. Adjust function to use parser state.
8875 * ada-lang.c (parse): Likewise.
8876 * ada-lang.h: Forward declare "struct parser_state".
8877 (ada_parse): Add "struct parser_state" argument.
8878 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8879 calls to both functions.
8880 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8881 parser state.
8882 (yyparse): Redefine macro to f_parse_internal.
8883 (pstate): New variable.
8884 (parse_number): Add "struct parser_state" argument.
8885 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8886 and similars in order to use parser state.
8887 (parse_number): Adjust code to use parser state.
8888 (yylex): Likewise.
8889 (f_parse): New function.
8890 * f-lang.h: Forward declare "struct parser_state".
8891 (f_parse): Add "struct parser_state" argument.
8892 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8893 parser state.
8894 (yyparse): Redefine macro for java_parse_internal.
8895 (pstate): New variable.
8896 (push_expression_name, push_expression_name, insert_exp): Add
8897 "struct parser_state" argument.
8898 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8899 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8900 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8901 PostIncrementExpression, PostDecrementExpression,
8902 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8903 UnaryExpressionNotPlusMinus, CastExpression,
8904 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8905 RelationalExpression, EqualityExpression, AndExpression,
8906 ExclusiveOrExpression, InclusiveOrExpression,
8907 ConditionalAndExpression, ConditionalOrExpression,
8908 ConditionalExpression, Assignment, LeftHandSide): Update
8909 calls to write_exp* and similars in order to use parser state.
8910 (parse_number): Ajust code to use parser state.
8911 (yylex): Likewise.
8912 (java_parse): New function.
8913 (push_variable): Add "struct parser_state" argument. Adjust
8914 code to user parser state.
8915 (push_fieldnames, push_qualified_expression_name,
8916 push_expression_name, insert_exp): Likewise.
8917 * jv-lang.h: Forward declare "struct parser_state".
8918 (java_parse): Add "struct parser_state" argument.
8919 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8920 parser state.
8921 (yyparse): Redefine macro to m2_parse_internal.
8922 (pstate): New variable.
8923 (type_exp, exp, fblock, variable, type): Update calls to
8924 write_exp* and similars to use parser state.
8925 (yylex): Likewise.
8926 (m2_parse): New function.
8927 * m2-lang.h: Forward declare "struct parser_state".
8928 (m2_parse): Add "struct parser_state" argument.
8929 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8930 * objc-lang.h: Forward declare "struct parser_state".
8931 (end_msglist): Add "struct parser_state" argument.
8932 * p-exp.y (parse_type): Rewrite macro to use parser state.
8933 (yyparse): Redefine macro to pascal_parse_internal.
8934 (pstate): New variable.
8935 (parse_number): Add "struct parser_state" argument.
8936 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8937 write_exp* and similars in order to use parser state.
8938 (parse_number, yylex): Adjust code to use parser state.
8939 (pascal_parse): New function.
8940 * p-lang.h: Forward declare "struct parser_state".
8941 (pascal_parse): Add "struct parser_state" argument.
8942 * go-exp.y (parse_type): Rewrite macro to use parser state.
8943 (yyparse): Redefine macro to go_parse_internal.
8944 (pstate): New variable.
8945 (parse_number): Add "struct parser_state" argument.
8946 (type_exp, exp1, exp, variable, type): Update calls to
8947 write_exp* and similars in order to use parser state.
8948 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8949 to use parser state.
8950 (go_parse): Likewise.
8951 * go-lang.h: Forward declare "struct parser_state".
8952 (go_parse): Add "struct parser_state" argument.
8953
342587c4
DE
89542014-03-27 Doug Evans <dje@google.com>
8955
8956 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8957
33e80786
DE
89582014-03-27 Doug Evans <dje@google.com>
8959
8960 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8961 Remove argument abbrev_section. All callers updated.
8962
1dbab08b
DE
89632014-03-27 Doug Evans <dje@google.com>
8964
8965 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8966 addr_base, ranges_base.
8967
318d3177
KS
89682014-03-26 Keith Seitz <keiths@redhat.com>
8969
8970 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8971 types, not VAR_DOMAIN.
8972
1e54db15
SL
89732014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8974
8975 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8976 "ra" registers.
8977 * features/nios2-linux.c: Regenerated.
8978 * features/nios2.c: Regenerated.
8979
d3839ede
PA
89802014-03-25 Pedro Alves <palves@redhat.com>
8981
8982 * cli/cli-script.c (script_from_file): Force the interpreter to
8983 sync mode.
8984
7588d2ec
PL
89852014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8986
8987 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8988 small stack allocation.
8989
a6290449
TG
89902014-03-24 Tristan Gingold <gingold@adacore.com>
8991
8992 * darwin-nat.c (exc_server): Remove unused prototype.
8993 (darwin_dump_message): Correctly display data on x86_64.
8994 (darwin_encode_reply): Fix style.
8995 Add comments and fix indentation.
8996
31ae9d24 89972014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8998
8999 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9000
6339bfc4
DE
90012014-03-22 Doug Evans <xdje42@gmail.com>
9002
9003 * infcmd.c: Whitespace fixes.
9004 (interrupt_command): Merge two function comments into one.
9005
0a07590b
DE
90062014-03-22 Doug Evans <xdje42@gmail.com>
9007
9008 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9009 All uses updated.
9010
b55fbac4
YQ
90112014-03-22 Yao Qi <yao@codesourcery.com>
9012
9013 * remote.c (target_read_live_memory): Remove.
9014 (memory_xfer_live_readonly_partial): Rename it to
9015 remote_xfer_live_readonly_partial. Remove argument 'object'.
9016 All callers updated. Call remote_read_bytes_1
9017 instead of target_read_live_memory.
9018 * tracepoint.c (set_traceframe_number): Remove.
9019 (make_cleanup_restore_traceframe_number): Likewise .
9020 * tracepoint.h (set_traceframe_number): Remove declaration.
9021 (make_cleanup_restore_traceframe_number): Likewise.
9022
9217e74e
YQ
90232014-03-22 Yao Qi <yao@codesourcery.com>
9024
9025 * remote.c (remote_read_bytes): Move code on reading from the
9026 remote stub to ...
9027 (remote_read_bytes_1): ... here. New function.
9028
8acf9577
YQ
90292014-03-22 Yao Qi <yao@codesourcery.com>
9030
9031 * ctf.c (ctf_xfer_partial): Check the return value of
9032 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9033 return TARGET_XFER_UNAVAILABLE.
9034 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9035 * target.c (target_read_live_memory): Move it to remote.c.
9036 (memory_xfer_live_readonly_partial): Likewise.
9037 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9038 * remote.c (target_read_live_memory): Moved from target.c.
9039 (memory_xfer_live_readonly_partial): Likewise.
9040 (remote_read_bytes): Factored out from
9041 memory_xfer_partial_1.
9042
feef67ab
DE
90432014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9044
9045 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9046 NULL pointer.
9047
b65dc60b
PA
90482014-03-21 Pedro Alves <palves@redhat.com>
9049
9050 * infrun.c (normal_stop): Extend comment.
9051
b4ab256d
HZ
90522014-03-21 Hui Zhu <hui@codesourcery.com>
9053 Pedro Alves <palves@redhat.com>
9054
9055 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9056 static buffer.
9057 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9058 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9059 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9060
deba7593
MR
90612014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9062
9063 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9064 `z' formatted output modifier.
9065
1bff71c3
SDJ
90662014-03-20 Tom Tromey <tromey@redhat.com>
9067 Sergio Durigan Junior <sergiodj@redhat.com>
9068
9069 * probe.c (parse_probes): Turn assert into an ordinary error.
9070 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9071 exceptions when parsing probes. Rearrange the code for clarity.
9072
90e28950
TT
90732014-03-20 Tom Tromey <tromey@redhat.com>
9074
9075 PR gdb/14135
9076 * top.c (execute_command): Only dispatch events if the command
9077 started the target.
9078
beb460e8
PA
90792014-03-20 Tom Tromey <tromey@redhat.com>
9080
9081 PR cli/15718
9082 * infcall.c: Include event-top.h.
9083 (run_inferior_call): Call async_disable_stdin if needed.
9084
99619bea
PA
90852014-03-20 Pedro Alves <palves@redhat.com>
9086
9087 * infrun.c (prepare_to_proceed): Delete.
9088 (thread_still_needs_step_over): New function.
9089 (find_thread_needs_step_over): New function.
9090 (proceed): If the current thread needs a step-over, set its
9091 steping_over_breakpoint flag. Adjust to use
9092 find_thread_needs_step_over instead of prepare_to_proceed.
9093 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9094 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9095 breakpoint.
9096 (switch_back_to_stepped_thread): Step over breakpoints of all
9097 threads not the stepping thread, before switching back to the
9098 stepping thread.
9099
2adfaa28
PA
91002014-03-20 Pedro Alves <palves@redhat.com>
9101
9102 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9103 extern.
9104 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9105 * infrun.c (saved_singlestep_ptid)
9106 (stepping_past_singlestep_breakpoint): Delete.
9107 (resume): Remove stepping_past_singlestep_breakpoint handling.
9108 (proceed): Store the prev_pc of the stepping thread too.
9109 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9110 singlestep_pc.
9111 (enum infwait_states): Delete infwait_thread_hop_state.
9112 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9113 field.
9114 (handle_inferior_event): Adjust.
9115 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9116 handling and the thread-hop code. Before removing single-step
9117 breakpoints, check whether the thread hit a single-step breakpoint
9118 of another thread. If it did, the trap is not a random signal.
9119 (switch_back_to_stepped_thread): If the event thread hit a
9120 single-step breakpoint, unblock it before switching to the
9121 stepping thread. Handle the case of the stepped thread having
9122 advanced already.
9123 (keep_going): Handle the case of the current thread moving past a
9124 single-step breakpoint.
9125
31e77af2
PA
91262014-03-20 Pedro Alves <palves@redhat.com>
9127
9128 PR breakpoints/7143
9129 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9130 are being stepped over.
9131 (breakpoint_address_match): Make extern.
9132 * breakpoint.h (breakpoint_address_match): New declaration.
9133 * inferior.h (stepping_past_instruction_at): New declaration.
9134 * infrun.c (struct step_over_info): New type.
9135 (step_over_info): New global.
9136 (set_step_over_info, clear_step_over_info)
9137 (stepping_past_instruction_at): New functions.
9138 (handle_inferior_event): Clear the step-over info when
9139 trap_expected is cleared.
9140 (resume): Remove now stale comment.
9141 (clear_proceed_status): Clear step-over info.
9142 (proceed): Adjust step-over handling to set or clear the step-over
9143 info instead of removing all breakpoints.
9144 (handle_signal_stop): When setting up a thread-hop, don't remove
9145 breakpoints here.
9146 (stop_stepping): Clear step-over info.
9147 (keep_going): Adjust step-over handling to set or clear step-over
9148 info and then always inserting breakpoints, instead of removing
9149 all breakpoints when stepping over one.
9150
b9f437de
PA
91512014-03-20 Pedro Alves <palves@redhat.com>
9152
9153 * infrun.c (previous_inferior_ptid): Adjust comment.
9154 (deferred_step_ptid): Delete.
9155 (infrun_thread_ptid_changed, prepare_to_proceed)
9156 (init_wait_for_inferior): Adjust.
9157 (handle_signal_stop): Delete deferred_step_ptid handling.
9158
06c868a8
JK
91592014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9160
9161 PR gdb/15358
9162 * defs.h (sync_quit_force_run): New declaration.
9163 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9164 * event-top.c (async_sigterm_handler): New declaration.
9165 (async_sigterm_token): New variable.
9166 (async_init_signals): Create also async_sigterm_token.
9167 (async_sigterm_handler): New function.
9168 (sync_quit_force_run): New variable.
9169 (handle_sigterm): Replace quit_force call by other calls.
9170 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9171
dea80df0
MR
91722014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9173
9174 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9175 offset into SPE pseudo registers.
9176
0c7e1a46
PA
91772014-03-18 Pedro Alves <palves@redhat.com>
9178
9179 PR gdb/13860
9180 * inferior.h (print_stop_event): Declare.
9181 * infrun.c (print_stop_event): New, factored out from ...
9182 (normal_stop): ... this.
9183 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9184 of bpstat_print/print_stack_frame.
9185
9c1fcd01
TT
91862014-03-17 Tom Tromey <tromey@redhat.com>
9187
9188 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9189
11aa919a
PMR
91902014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9191
9192 * ada-lang.c (decode_constrained_packed_array): Perform a
9193 minimal coercion for reference with coerce_ref instead of
9194 ada_coerce_ref.
9195
d4ccb5e0
TG
91962014-03-17 Tristan Gingold <gingold@adacore.com>
9197
9198 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9199 (darwin_solib_create_inferior_hook): Emit a warning if version
9200 is unhandled.
9201
49840f2a
UW
92022014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9203
9204 * python/py-value.c (get_field_flag): Cast flag_name argument to
9205 PyObject_GetAttrString to support Python 2.4.
9206
ed4123e5
JK
92072014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9208
9209 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9210 (Global Maintainers): Remove Jan Kratochvil.
9211
d6b64346
PA
92122014-03-14 Pedro Alves <palves@redhat.com>
9213
9214 * inferior.h (terminal_ours_for_output): Rename to ...
9215 (child_terminal_ours_for_output): ... this.
9216 (terminal_save_ours): Rename to ...
9217 (child_terminal_save_ours): ... this.
9218 (terminal_ours): Rename to ...
9219 (child_terminal_ours): ... this.
9220 (terminal_inferior): Rename to ...
9221 (child_terminal_inferior): ... this.
9222 (terminal_init_inferior): Rename to ...
9223 (child_terminal_init_inferior): ... this.
9224 (terminal_init_inferior_with_pgrp): Rename to ...
9225 (child_terminal_init_inferior_with_pgrp): ... this.
9226 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9227 (child_terminal_init_with_pgrp): ... this.
9228 (terminal_save_ours): Rename to ...
9229 (child_terminal_save_ours): ... this.
9230 (terminal_init_inferior): Rename to ...
9231 (child_terminal_init): ... this. Adjust.
9232 (terminal_inferior): Rename to ...
9233 (child_terminal_inferior): ... this.
9234 (terminal_ours_for_output): Rename to ...
9235 (child_terminal_ours_for_output): ... this. Adjust.
9236 (terminal_ours): Rename to ...
9237 (child_terminal_ours): ... this.
9238 (terminal_ours_1): Rename to ...
9239 (child_terminal_ours_1): ... this. Adjust.
9240 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9241 * windows-nat.c (do_initial_windows_stuff): Adjust.
9242 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9243 (gnu_terminal_init): ... this. Adjust.
9244 (gnu_target): Adjust.
9245 * inf-child.c (inf_child_target): Adjust.
9246
5a1e8c7a
DE
92472014-03-13 Doug Evans <xdje42@gmail.com>
9248
9249 PR guile/16612
9250 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9251 new eq?-hashtab.
9252
350e1a76
DE
92532014-03-13 Doug Evans <xdje42@gmail.com>
9254
9255 * value.c (record_latest_value): Call release_value_or_incref
9256 instead of release_value.
9257
a69900ae
PA
92582014-03-13 Pedro Alves <palves@redhat.com>
9259
9260 * procfs.c (procfs_target): Don't override to_shortname,
9261 to_longname or to_doc.
9262
5db9f0bd
PA
92632014-03-13 Pedro Alves <palves@redhat.com>
9264
9265 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9266 Unix in user visible strings.
9267
5e3a2c38
SS
92682014-03-12 Stan Shebs <stan@codesourcery.com>
9269
9270 * gdbtypes.h: Annotate comments for Doxygen, add a page
9271 block comment with some general info.
9272
8bc2fe48
PA
92732014-03-12 Pedro Alves <palves@redhat.com>
9274
9275 * infcmd.c (prepare_execution_command): New function, factored out
9276 from several execution commands.
9277 (run_command_1, continue_command, step_1, jump_command)
9278 (signal_command, until_command, advance_command, finish_command)
9279 (attach_command): Use prepare_execution_command.
9280
638c5f49
OJ
92812014-03-12 Omair Javaid <omair.javaid@linaro.org>
9282
9283 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9284 (MAX_BPTS): Define.
9285 (MAX_WPTS): Define.
9286 (struct arm_linux_thread_points): Removed.
9287 (struct arm_linux_process_info): New.
9288 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9289 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9290 (arm_linux_find_breakpoints_by_tid): Removed.
9291 (struct arch_lwp_info): New.
9292 (arm_linux_find_process_pid): New functions.
9293 (arm_linux_add_process): New functions.
9294 (arm_linux_process_info_get): New functions.
9295 (arm_linux_forget_process): New function.
9296 (arm_linux_get_debug_reg_state): New function.
9297 (struct update_registers_data): New.
9298 (update_registers_callback): New function.
9299 (arm_linux_insert_hw_breakpoint1): Updated.
9300 (arm_linux_remove_hw_breakpoint1): Updated.
9301 (arm_linux_insert_hw_breakpoint): Updated.
9302 (arm_linux_remove_hw_breakpoint): Updated.
9303 (arm_linux_insert_watchpoint): Updated.
9304 (arm_linux_remove_watchpoint): Updated.
9305 (arm_linux_new_thread): Updated.
9306 (arm_linux_prepare_to_resume): New function.
9307 (arm_linux_new_fork): New function.
9308 (_initialize_arm_linux_nat): Updated.
9309
6d03af93
PA
93102014-03-12 Pedro Alves <palves@redhat.com>
9311
9312 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9313
b3ccfe11
TT
93142014-03-12 Tom Tromey <tromey@redhat.com>
9315
9316 * inf-child.c (return_zero): New function.
9317 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9318 * aix-thread.c (aix_thread_inferior_created): New function.
9319 (aix_thread_attach): Remove.
9320 (init_aix_thread_ops): Don't set to_attach.
9321 (_initialize_aix_thread): Register inferior_created observer.
9322 * corelow.c (init_core_ops): Don't set to_attach or
9323 to_create_inferior.
9324 * exec.c (init_exec_ops): Don't set to_attach or
9325 to_create_inferior.
9326 * infcmd.c (run_command_1): Use find_run_target. Make direct
9327 target calls.
9328 (attach_command): Use find_attach_target. Make direct target
9329 calls.
9330 * record-btrace.c (init_record_btrace_ops): Don't set
9331 to_create_inferior.
9332 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9333 Remove.
9334 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9335 set to_create_inferior.
9336 * target.c (complete_target_initialization): Add assertion.
9337 (target_create_inferior): Remove.
9338 (find_default_attach, find_default_create_inferior): Remove.
9339 (find_attach_target, find_run_target): New functions.
9340 (find_default_is_async_p, find_default_can_async_p)
9341 (target_supports_non_stop, target_attach): Remove.
9342 (init_dummy_target): Don't set to_create_inferior or
9343 to_supports_non_stop.
9344 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9345 TARGET_DEFAULT_FUNC.
9346 <to_create_inferior>: Add comment.
9347 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9348 TARGET_DEFAULT_RETURN.
9349 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9350 (find_attach_target, find_run_target): Declare.
9351 (target_create_inferior): Remove.
9352 (target_has_execution_1): Update comment.
9353 (target_supports_non_stop): Remove.
9354 * target-delegates.c: Rebuild.
9355
91f83b02
PA
93562014-03-12 Pedro Alves <palves@redhat.com>
9357
9358 * inf-child.h: Update comment to not mention Unix.
9359
f1aea813
PA
93602014-03-12 Pedro Alves <palves@redhat.com>
9361
9362 * inf-child.c: Update top comment to not mention Unix. Add
9363 generic comment describing how this target is meant to be used.
9364 (inf_child_post_attach, inf_child_post_startup_inferior)
9365 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9366 Unix in comment.
9367
ee8e9165
PA
93682014-03-12 Pedro Alves <palves@redhat.com>
9369
9370 * nto-procfs.c: Include inf-child.h.
9371 (procfs_ops): Delete global.
9372 (procfs_can_run): Delete method.
9373 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9374 target pointer instead of referencing procfs_ops.
9375 (procfs_prepare_to_store): Delete.
9376 (init_procfs_ops): Delete function.
9377 (procfs_target): New function, based on init_procfs_ops, but
9378 inherit inf_child_target.
9379 (_initialize_procfs): Use procfs_target.
9380
51a9c8c5
PA
93812014-03-12 Pedro Alves <palves@redhat.com>
9382
9383 * windows-nat.c: Include inf-child.h.
9384 (windows_ops): Delete global.
9385 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9386 methods.
9387 (init_windows_ops): Delete function.
9388 (windows_target): New function, based on init_windows_ops, but
9389 inherit inf_child_target.
9390 (_initialize_windows_nat): Use windows_target. Install x86
9391 specific target methods here.
9392
c1966e26
DE
93932014-03-10 Doug Evans <xdje42@gmail.com>
9394
9395 * guile/guile.c (call_initialize_gdb_module): New function.
9396 (initialize_guile): Replace call to scm_init_guile with call to
9397 scm_with_guile.
9398
023db19c
JB
93992014-03-10 Joel Brobecker <brobecker@adacore.com>
9400
9401 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9402 in call to TYPE_CODE macro.
9403
5ec18f2b
JG
94042014-03-10 Jerome Guitton <guitton@adacore.com>
9405
8668be63
JB
9406 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9407 Resolve tagged types to full view.
5ec18f2b 9408
7d03f2eb
HZ
94092014-03-10 Hui Zhu <hui@codesourcery.com>
9410
9411 * target.h (target_insert_breakpoint): Remove "hardware" from its
9412 comments.
9413
c5164cbc
DE
94142014-03-07 Doug Evans <dje@google.com>
9415
9416 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9417
c4a3fee2
DE
94182014-03-07 Doug Evans <dje@google.com>
9419
9420 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9421 Remove unused local comp_dir_attr. Assert exactly one of
9422 stub_comp_unit_die, stub_comp_dir is non-NULL.
9423
3156469c
JB
94242014-03-07 Joel Brobecker <brobecker@adacore.com>
9425
9426 * target.h (complete_target_initialization, add_target):
9427 Add comment.
9428
c1a7b7c6
PA
94292014-03-07 Pedro Alves <palves@redhat.com>
9430
9431 * go32-nat.c: Include inf-child.h.
9432 (go32_ops): Delete global.
9433 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9434 Delete methods.
9435 (go32_create_inferior): Push the passed in target pointer instead
9436 of referencing go32_ops.
9437 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9438 (go32_target): New function, based on init_go32_ops, but inherit
9439 inf_child_target.
9440 (_initialize_go32_nat): Use go32_target. Move parts of
9441 init_go32_ops here.
9442
d3c1a85f
JB
94432014-03-06 Joel Brobecker <brobecker@adacore.com>
9444
9445 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9446 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9447 SYMBOL_VALUE_ADDRESS.
9448 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9449
5fa1d40e
YQ
94502014-03-06 Yao Qi <yao@codesourcery.com>
9451
9452 * breakpoint.c (get_tracepoint_by_number): Remove argument
9453 optional_p. All callers updated. Adjust comments. Update
9454 output message.
9455 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9456
0c13193f
YQ
94572014-03-06 Yao Qi <yao@codesourcery.com>
9458
9459 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9460 early if get_number returns zero. Use 'p' instead of 'args'.
9461
2217da06
YQ
94622014-03-06 Yao Qi <yao@codesourcery.com>
9463
9464 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9465 message.
9466
cc3da688
YQ
94672014-03-06 Yao Qi <yao@codesourcery.com>
9468
9469 PR breakpoints/16508
9470 * tracepoint.c (check_trace_running): New function.
9471 (trace_find_command): Move code to check_trace_running and
9472 call check_trace_running.
9473 (trace_find_pc_command): Likewise.
9474 (trace_find_tracepoint_command): Likewise.
9475 (trace_find_line_command): Likewise.
9476 (trace_find_range_command): Likewise.
9477 * tracepoint.h (check_trace_running): Likewise.
9478 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9479
6a5f844b
YQ
94802014-03-06 Yao Qi <yao@codesourcery.com>
9481
9482 * target.h (struct target_ops) <to_traceframe_info>: Use
9483 TARGET_DEFAULT_NORETURN (tcomplain ()).
9484 * target-delegates.c: Regenerated.
9485
0f26cec1
PA
94862014-03-05 Pedro Alves <palves@redhat.com>
9487
9488 PR gdb/16575
9489 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9490 void. Update comment.
9491 (dcache_xfer_memory): Delete.
9492 (dcache_read_memory_partial): New, based on the read bits of
9493 dcache_xfer_memory.
9494 (dcache_update): Add status parameter. Use ULONGEST for len, and
9495 adjust. Discard cache lines if the reason for the update was
9496 error.
9497 * dcache.h (dcache_xfer_memory): Delete declaration.
9498 (dcache_read_memory_partial): New declaration.
9499 (dcache_update): Update prototype.
9500 * target.c (raw_memory_xfer_partial): Update the dcache here.
9501 (memory_xfer_partial_1): Don't handle dcache writes here.
9502
b2b255bd
MF
95032014-03-05 Mike Frysinger <vapier@gentoo.org>
9504
9505 * remote-sim.c (gdbsim_load): Add const to prog.
9506
5d9cf8a4
TT
95072014-03-03 Tom Tromey <tromey@redhat.com>
9508
9509 * elfread.c (probe_key): Change to bfd_data.
9510 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9511 now per-BFD, not per-objfile.
9512 * stap-probe.c (stap_probe_destroy): Update comment.
9513 (handle_stap_probe): Allocate on the per-BFD obstack.
9514
729662a5
TT
95152014-03-03 Tom Tromey <tromey@redhat.com>
9516
9517 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9518 * breakpoint.c (create_longjmp_master_breakpoint): Use
9519 get_probe_address.
9520 (add_location_to_breakpoint, bkpt_probe_insert_location)
9521 (bkpt_probe_remove_location): Update.
9522 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9523 * elfread.c (elf_symfile_relocate_probe): Remove.
9524 (elf_probe_fns): Update.
9525 (insert_exception_resume_breakpoint): Change type of "probe"
9526 parameter to bound_probe.
9527 (check_exception_resume): Update.
9528 * objfiles.c (objfile_relocate1): Don't relocate probes.
9529 * probe.c (bound_probe_s): New typedef.
9530 (parse_probes): Use get_probe_address. Set sal's objfile.
9531 (find_probe_by_pc): Return a bound_probe.
9532 (collect_probes): Return a VEC(bound_probe_s).
9533 (compare_probes): Update.
9534 (gen_ui_out_table_header_info): Change type of "probes"
9535 parameter. Update.
9536 (info_probes_for_ops): Update.
9537 (get_probe_address): New function.
9538 (probe_safe_evaluate_at_pc): Update.
9539 * probe.h (struct probe_ops) <get_probe_address>: New field.
9540 <set_semaphore, clear_semaphore>: Add objfile parameter.
9541 (struct probe) <objfile>: Remove field.
9542 <arch>: New field.
9543 <address>: Update comment.
9544 (struct bound_probe): New.
9545 (find_probe_by_pc): Return a bound_probe.
9546 (get_probe_address): Declare.
9547 * solib-svr4.c (struct probe_and_action) <address>: New field.
9548 (hash_probe_and_action, equal_probe_and_action): Update.
9549 (register_solib_event_probe): Add address parameter.
9550 (solib_event_probe_at): Update.
9551 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9552 get_probe_address.
9553 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9554 (stap_get_probe_address): New function.
9555 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9556 (compile_probe_arg): Update.
9557 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9558 address.
9559 (handle_stap_probe): Don't relocate the probe.
9560 (stap_relocate): Remove.
9561 (stap_gen_info_probes_table_values): Update.
9562 (stap_probe_ops): Remove stap_relocate.
9563 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9564 (debug_sym_probe_fns): Update.
9565 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9566 * symtab.c (init_sal): Use memset.
9567 * symtab.h (struct symtab_and_line) <objfile>: New field.
9568 * tracepoint.c (start_tracing, stop_tracing): Update.
9569
ff887920
TT
95702014-03-03 Tom Tromey <tromey@redhat.com>
9571
9572 * probe.h (parse_probes, find_probe_by_pc)
9573 (find_probes_in_objfile): Fix comments.
9574
f0407826
DE
95752014-03-02 Doug Evans <xdje42@gmail.com>
9576
9577 * infrun.c (handle_signal_stop): Replace test for
9578 TARGET_WAITKIND_STOPPED with an assert.
9579
35e6a711
DE
95802014-03-02 Doug Evans <xdje42@gmail.com>
9581
9582 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9583
667f9d0b
DE
95842014-03-02 Doug Evans <xdje42@gmail.com>
9585
9586 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9587
dc92ace0
MK
95882014-03-01 Mark Kettenis <kettenis@gnu.org>
9589
9590 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9591
a900370f
MK
95922014-03-01 Mark Kettenis <kettenis@gnu.org>
9593
9594 * i386obsd-nat.c: Include "obsd-nat.h".
9595 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9596 add_target.
9597 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9598
b72a7981
MK
95992014-03-01 Mark Kettenis <kettenis@gnu.org>
9600
9601 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9602
96c70aba
MK
96032014-03-01 Mark Kettenis <kettenis@gnu.org>
9604
9605 * mips64obsd-nat.c: Include "obsd-nath".
9606 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9607 add_target
9608 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9609
874a80af
MK
96102014-03-01 Mark Kettenis <kettenis@gnu.org>
9611
8fd408f1
MK
9612 * amd64obsd-nat.c: Include "obsd-nat,h.
9613 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9614 add_target.
874a80af
MK
9615 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9616
9cf95373
SC
96172014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9618
9619 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9620 (find_overload_match): Update call to find_oload_champ.
9621 (find_oload_champ_namespace_loop): Likewise
9622
863e4da4
MK
96232014-02-28 Mark Kettenis <kettenis@gnu.org>
9624
025cac40
MK
9625 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9626
1ed586ce
MK
9627 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9628 * config/sparc/obsd64.mh: New file.
9629 * sparc64obsd-nat.c: New file.
9630
863e4da4
MK
9631 * obsd-nat.h: New file.
9632 * obsd-nat.c: New file.
9633 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9634 (ALLDEPFILES): Add obsd-nat.c.
9635
89de4da4
TT
96362014-02-28 Tom Tromey <tromey@redhat.com>
9637
9638 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9639 * cli-out.h (cli_ui_out_impl): Now const.
9640 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9641 * ui-out.c (struct ui_out) <impl>: Now const.
9642 (default_ui_out_impl): Now const.
9643 (ui_out_new): Make 'impl' parameter const.
9644 * ui-out.h (ui_out_new): Update.
9645
c725e7b6
MK
96462014-02-27 Mark Kettenis <kettenis@gnu.org>
9647
9648 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9649
670b46b3
MK
96502014-02-27 Mark Kettenis <kettenis@gnu.org>
9651
9652 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9653
c91550fc
JK
96542014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9655
9656 Additional PR 8882 fix.
9657 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9658
2fa0369e
PA
96592014-02-27 Pedro Alves <palves@redhat.com>
9660
9661 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9662 isn't set.
9663
d632a097
PA
96642014-02-27 Pedro Alves <palves@redhat.com>
9665
9666 PR 12702
9667 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9668 * nat/linux-waitpid.c: Include string.h.
9669 (status_to_str): Moved here and made extern.
9670 * nat/linux-waitpid.h (status_to_str): New declaration.
9671
2ebd5a35
HZ
96722014-02-27 Hui Zhu <hui@codesourcery.com>
9673
9674 PR 12702
9675 * infrun.c (ptid_match): Move ...
9676 * common/ptid.c (ptid_match): ... here.
9677 * inferior.h (ptid_match): Move ...
9678 * common/ptid.h (ptid_match): ... here.
9679
3cdd631f
MK
96802014-02-27 Mark Kettenis <kettenis@gnu.org>
9681
9682 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9683 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9684 gdb_target_obs.
9685
bee30a64
MK
96862014-02-27 Mark Kettenis <kettenis@gnu.org>
9687
9688 * obsd-tdep.c (obsd_auxv_parse): New function.
9689 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
9690
9691 * gdbarch.sh (auxv_parse): New.
9692 * gdbarch.h: Regenerated.
9693 * gdbarch.c: Regenerated.
9694 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9695
7a5a839f
LC
96962014-02-26 Ludovic Courtès <ludo@gnu.org>
9697
9698 * guile/scm-value.c (gdbscm_history_append_x): New function.
9699 (value_functions): Add it.
9700
31aa7e4e
JB
97012014-02-27 Joel Brobecker <brobecker@adacore.com>
9702
9703 * dwarf2read.c (attr_value_as_address): New function.
9704 (dwarf2_find_base_address, read_call_site_scope): Use
9705 attr_value_as_address in place of DW_ADDR.
9706 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9707 the low and high addresses. Slight rework of the handling
9708 of the high pc being a constant form, and limit it to
9709 DWARF verson 4 or higher.
9710 (dwarf2_record_block_ranges): Likewise.
9711 (read_partial_die): Likewise.
9712 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9713
9b333ba3
TT
97142014-02-26 Tom Tromey <tromey@redhat.com>
9715
9716 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9717
5f6cac40
TT
97182014-02-26 Tom Tromey <tromey@redhat.com>
9719
9720 * elfread.c (elf_read_minimal_symbols): Return early if
9721 minimal symbols have already been read. Add "ei" parameter.
9722 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9723 * minsyms.c (prim_record_minimal_symbol_full): Update.
9724 * objfiles.h (struct objstats) <n_minsyms>: Move...
9725 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9726 * symmisc.c (print_objfile_statistics): Update.
9727
2750ef27
TT
97282014-02-26 Tom Tromey <tromey@redhat.com>
9729
9730 * elfread.c (elf_read_minimal_symbols): New function, from
9731 elf_symfile_read.
9732 (elf_symfile_read): Call it.
9733
34643a32
TT
97342014-02-26 Tom Tromey <tromey@redhat.com>
9735
9736 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9737 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9738 (lookup_minimal_symbol_solib_trampoline)
9739 (lookup_minimal_symbol_by_pc_section_1)
9740 (lookup_minimal_symbol_and_objfile): Update.
9741 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9742 Don't allocate a minimal symbol if minsyms have already been read.
9743 (build_minimal_symbol_hash_tables): Update.
9744 (install_minimal_symbols): Do nothing if minsyms already read.
9745 Use the per-BFD obstack.
9746 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9747 * objfiles.c (allocate_objfile): Call
9748 terminate_minimal_symbol_table later.
9749 (have_minimal_symbols): Update.
9750 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9751 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9752 Move from struct objfile.
9753 <minsyms_read>: New field.
9754 (struct objfile) <msymbols, minimal_symbol_count,
9755 msymbol_hash, msymbol_demangled_hash>: Move.
9756 (ALL_OBJFILE_MSYMBOLS): Update.
9757 * symfile.c (read_symbols): Set minsyms_read.
9758 (reread_symbols): Update.
9759 * symmisc.c (dump_objfile, dump_msymbols): Update.
9760
2273f0ac
TT
97612014-02-26 Tom Tromey <tromey@redhat.com>
9762
9763 * minsyms.c (msymbols_sort): Remove.
9764 * minsyms.h (msymbols_sort): Remove.
9765 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9766 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9767 * elfread.c (elf_symtab_read): Don't add section offsets.
9768 * xcoffread.c (record_minimal_symbol): Don't add section offset
9769 to minimal symbol address.
9770 * somread.c (text_offset, data_offset): Remove.
9771 (som_symtab_read): Don't add section offsets to minimal symbol
9772 addresses.
9773 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9774 Don't add section offsets to minimal symbols.
9775 * coffread.c (coff_symtab_read): Don't add section offsets
9776 to minimal symbol addresses.
9777 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9778 to minimal symbol addresses.
9779 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9780 section offset to minimal symbol addresses.
9781 * mdebugread.c (parse_partial_symbols): Don't add section
9782 offset to minimal symbol addresses.
9783 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9784 offset to minimal symbol addresses.
9785
77e371c0
TT
97862014-02-26 Tom Tromey <tromey@redhat.com>
9787
9788 * ada-lang.c (ada_main_name): Update.
9789 (ada_add_standard_exceptions): Update.
9790 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9791 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9792 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9793 * auxv.c (ld_so_xfer_auxv): Update.
9794 * avr-tdep.c (avr_scan_prologue): Update.
9795 * ax-gdb.c (gen_var_ref): Update.
9796 * blockframe.c (get_pc_function_start)
9797 (find_pc_partial_function_gnu_ifunc): Update.
9798 * breakpoint.c (create_overlay_event_breakpoint)
9799 (create_longjmp_master_breakpoint)
9800 (create_std_terminate_master_breakpoint)
9801 (create_exception_master_breakpoint): Update.
9802 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9803 * c-valprint.c (c_val_print): Update.
9804 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9805 * common/agent.c (agent_look_up_symbols): Update.
9806 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9807 * dwarf2loc.c (call_site_to_target_addr): Update.
9808 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9809 * elfread.c (elf_gnu_ifunc_record_cache)
9810 (elf_gnu_ifunc_resolve_by_got): Update.
9811 * findvar.c (default_read_var_value): Update.
9812 * frame.c (inside_main_func): Update.
9813 * frv-tdep.c (frv_frame_this_id): Update.
9814 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9815 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9816 Update.
9817 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9818 (hppa_hpux_find_dummy_bpaddr): Update.
9819 * hppa-tdep.c (hppa_symbol_address): Update.
9820 * infcmd.c (until_next_command): Update.
9821 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9822 Update.
9823 * linespec.c (minsym_found, add_minsym): Update.
9824 * linux-nat.c (get_signo): Update.
9825 * linux-thread-db.c (inferior_has_bug): Update.
9826 * m32c-tdep.c (m32c_return_value)
9827 (m32c_m16c_address_to_pointer): Update.
9828 * m32r-tdep.c (m32r_frame_this_id): Update.
9829 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9830 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9831 * maint.c (maintenance_translate_address): Update.
9832 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9833 (frob_address): New function.
9834 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9835 frob_address. Rename parameter to "pc_in".
9836 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9837 addresses.
9838 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9839 Update.
9840 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9841 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9842 * objc-lang.c (find_objc_msgsend): Update.
9843 * objfiles.c (objfile_relocate1): Update.
9844 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9845 * p-valprint.c (pascal_val_print): Update.
9846 * parse.c (write_exp_msymbol): Update.
9847 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9848 (ppc_elfv2_skip_entrypoint): Update.
9849 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9850 * printcmd.c (build_address_symbolic, msym_info)
9851 (address_info): Update.
9852 * proc-service.c (ps_pglobal_lookup): Update.
9853 * psymtab.c (find_pc_sect_psymtab_closer)
9854 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9855 Change msymbol parameter to bound_minimal_symbol.
9856 * ravenscar-thread.c (get_running_thread_id): Update.
9857 * remote.c (remote_check_symbols): Update.
9858 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9859 address.
9860 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9861 * solib-dsbt.c (lm_base): Update.
9862 * solib-frv.c (lm_base, main_got): Update.
9863 * solib-irix.c (locate_base): Update.
9864 * solib-som.c (som_solib_create_inferior_hook)
9865 (link_map_start): Update.
9866 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9867 * solib-svr4.c (elf_locate_base, enable_break): Update.
9868 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9869 (flush_ea_cache): Update.
9870 * stabsread.c (define_symbol, scan_file_globals): Update.
9871 * stack.c (find_frame_funname): Update.
9872 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9873 (debug_qf_find_pc_sect_symtab): Update.
9874 * symfile.c (simple_read_overlay_table)
9875 (simple_overlay_update): Update.
9876 * symfile.h (struct quick_symbol_functions)
9877 <find_pc_sect_symtab>: Change type of msymbol to
9878 bound_minimal_symbol.
9879 * symmisc.c (dump_msymbols): Update.
9880 * symtab.c (find_pc_sect_symtab_via_partial)
9881 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9882 (search_symbols, print_msymbol_info): Update.
9883 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9884 (MSYMBOL_VALUE_ADDRESS): Redefine.
9885 (BMSYMBOL_VALUE_ADDRESS): New macro.
9886 * tracepoint.c (scope_info): Update.
9887 * tui/tui-disasm.c (tui_find_disassembly_address)
9888 (tui_get_begin_asm_address): Update.
9889 * valops.c (find_function_in_inferior): Update.
9890 * value.c (value_static_field, value_fn_field): Update.
9891
3b7344d5
TT
98922014-02-26 Tom Tromey <tromey@redhat.com>
9893
9894 * ada-lang.c (ada_update_initial_language): Update.
9895 (ada_main_name, ada_has_this_exception_support): Update.
9896 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9897 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9898 * arm-tdep.c (arm_skip_stub): Update.
9899 * auxv.c (ld_so_xfer_auxv): Update.
9900 * avr-tdep.c (avr_scan_prologue): Update.
9901 * ax-gdb.c (gen_var_ref): Update.
9902 * breakpoint.c (struct breakpoint_objfile_data)
9903 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9904 type to bound_minimal_symbol.
9905 (create_overlay_event_breakpoint)
9906 (create_longjmp_master_breakpoint)
9907 (create_std_terminate_master_breakpoint)
9908 (create_exception_master_breakpoint): Update.
9909 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9910 * c-exp.y (classify_name): Update.
9911 * coffread.c (coff_symfile_read): Update.
9912 * common/agent.c (agent_look_up_symbols): Update.
9913 * d-lang.c (d_main_name): Update.
9914 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9915 * dec-thread.c (enable_dec_thread): Update.
9916 * dwarf2loc.c (call_site_to_target_addr): Update.
9917 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9918 * eval.c (evaluate_subexp_standard): Update.
9919 * findvar.c (struct minsym_lookup_data) <result>: Change type
9920 to bound_minimal_symbol.
9921 <objfile>: Remove.
9922 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9923 * frame.c (inside_main_func): Update.
9924 * frv-tdep.c (frv_frame_this_id): Update.
9925 * gcore.c (call_target_sbrk): Update.
9926 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9927 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9928 Update.
9929 * go-lang.c (go_main_name): Update.
9930 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9931 (hppa_hpux_find_import_stub_for_addr): Update.
9932 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9933 Update. Change return type.
9934 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9935 type.
9936 * jit.c (jit_breakpoint_re_set_internal): Update.
9937 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9938 Update.
9939 * linux-nat.c (get_signo): Update.
9940 * linux-thread-db.c (inferior_has_bug): Update
9941 * m32c-tdep.c (m32c_return_value)
9942 (m32c_m16c_address_to_pointer): Update.
9943 * m32r-tdep.c (m32r_frame_this_id): Update.
9944 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9945 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9946 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9947 lookup_minimal_symbol. Change return type.
9948 (lookup_minimal_symbol): Remove.
9949 (lookup_bound_minimal_symbol): Update.
9950 (lookup_minimal_symbol_text): Change return type.
9951 (lookup_minimal_symbol_solib_trampoline): Change return type.
9952 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9953 (lookup_minimal_symbol_solib_trampoline): Change return type.
9954 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9955 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9956 (value_nsstring, find_imps): Update.
9957 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9958 * p-lang.c (pascal_main_name): Update.
9959 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9960 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9961 * proc-service.c (ps_pglobal_lookup): Update.
9962 * ravenscar-thread.c (get_running_thread_msymbol): Change
9963 return type.
9964 (has_ravenscar_runtime, get_running_thread_id): Update.
9965 * remote.c (remote_check_symbols): Update.
9966 * sol-thread.c (ps_pglobal_lookup): Update.
9967 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9968 * solib-dsbt.c (lm_base): Update.
9969 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9970 Update.
9971 * solib-irix.c (locate_base): Update.
9972 * solib-som.c (som_solib_create_inferior_hook)
9973 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9974 Update.
9975 * solib-spu.c (spu_enable_break): Update.
9976 * solib-svr4.c (elf_locate_base, enable_break): Update.
9977 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9978 (flush_ea_cache): Update.
9979 * stabsread.c (define_symbol): Update.
9980 * symfile.c (simple_read_overlay_table): Update.
9981 * symtab.c (find_pc_sect_line): Update.
9982 * tracepoint.c (scope_info): Update.
9983 * tui-disasm.c (tui_get_begin_asm_address): Update.
9984 * value.c (value_static_field): Update.
9985
40c1a007
TT
99862014-02-26 Tom Tromey <tromey@redhat.com>
9987
9988 * minsyms.c (prim_record_minimal_symbol_full): Use
9989 SET_MSYMBOL_VALUE_ADDRESS.
9990 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9991 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9992 SET_MSYMBOL_VALUE_ADDRESS.
9993 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9994 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9995
efd66ac6
TT
99962014-02-26 Tom Tromey <tromey@redhat.com>
9997
9998 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9999 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10000 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10001 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10002 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10003 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10004 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10005 * ada-lang.c (ada_main_name): Update.
10006 (ada_lookup_simple_minsym): Update.
10007 (ada_make_symbol_completion_list): Update.
10008 (ada_add_standard_exceptions): Update.
10009 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10010 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10011 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10012 * arm-tdep.c (skip_prologue_function): Update.
10013 (arm_skip_stack_protector, arm_skip_stub): Update.
10014 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10015 (arm_wince_skip_main_prologue): Update.
10016 * auxv.c (ld_so_xfer_auxv): Update.
10017 * avr-tdep.c (avr_scan_prologue): Update.
10018 * ax-gdb.c (gen_var_ref): Update.
10019 * block.c (call_site_for_pc): Update.
10020 * blockframe.c (get_pc_function_start): Update.
10021 (find_pc_partial_function_gnu_ifunc): Update.
10022 * breakpoint.c (create_overlay_event_breakpoint): Update.
10023 (create_longjmp_master_breakpoint): Update.
10024 (create_std_terminate_master_breakpoint): Update.
10025 (create_exception_master_breakpoint): Update.
10026 (resolve_sal_pc): Update.
10027 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10028 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10029 Update.
10030 * c-valprint.c (c_val_print): Update.
10031 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10032 * coffread.c (coff_symfile_read): Update.
10033 * common/agent.c (agent_look_up_symbols): Update.
10034 * dbxread.c (find_stab_function_addr): Update.
10035 (end_psymtab): Update.
10036 * dwarf2loc.c (call_site_to_target_addr): Update.
10037 (func_verify_no_selftailcall): Update.
10038 (tailcall_dump): Update.
10039 (call_site_find_chain_1): Update.
10040 (dwarf_expr_reg_to_entry_parameter): Update.
10041 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10042 (elf_gnu_ifunc_resolve_by_got): Update.
10043 * f-valprint.c (info_common_command): Update.
10044 * findvar.c (read_var_value): Update.
10045 * frame.c (get_prev_frame_1): Update.
10046 (inside_main_func): Update.
10047 * frv-tdep.c (frv_skip_main_prologue): Update.
10048 (frv_frame_this_id): Update.
10049 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10050 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10051 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10052 (gnuv3_skip_trampoline): Update.
10053 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10054 (hppa64_hpux_in_solib_call_trampoline): Update.
10055 (hppa_hpux_skip_trampoline_code): Update.
10056 (hppa64_hpux_search_dummy_call_sequence): Update.
10057 (hppa_hpux_find_import_stub_for_addr): Update.
10058 (hppa_hpux_find_dummy_bpaddr): Update.
10059 * hppa-tdep.c (hppa_symbol_address)
10060 (hppa_lookup_stub_minimal_symbol): Update.
10061 * i386-tdep.c (i386_skip_main_prologue): Update.
10062 (i386_pe_skip_trampoline_code): Update.
10063 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10064 * infcall.c (get_function_name): Update.
10065 * infcmd.c (until_next_command): Update.
10066 * jit.c (jit_breakpoint_re_set_internal): Update.
10067 (jit_inferior_init): Update.
10068 * linespec.c (minsym_found): Update.
10069 (add_minsym): Update.
10070 * linux-fork.c (info_checkpoints_command): Update.
10071 * linux-nat.c (get_signo): Update.
10072 * linux-thread-db.c (inferior_has_bug): Update.
10073 * m32c-tdep.c (m32c_return_value): Update.
10074 (m32c_m16c_address_to_pointer): Update.
10075 (m32c_m16c_pointer_to_address): Update.
10076 * m32r-tdep.c (m32r_frame_this_id): Update.
10077 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10078 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10079 * maint.c (maintenance_translate_address): Update.
10080 * minsyms.c (add_minsym_to_hash_table): Update.
10081 (add_minsym_to_demangled_hash_table): Update.
10082 (msymbol_objfile): Update.
10083 (lookup_minimal_symbol): Update.
10084 (iterate_over_minimal_symbols): Update.
10085 (lookup_minimal_symbol_text): Update.
10086 (lookup_minimal_symbol_by_pc_name): Update.
10087 (lookup_minimal_symbol_solib_trampoline): Update.
10088 (lookup_minimal_symbol_by_pc_section_1): Update.
10089 (lookup_minimal_symbol_and_objfile): Update.
10090 (prim_record_minimal_symbol_full): Update.
10091 (compare_minimal_symbols): Update.
10092 (compact_minimal_symbols): Update.
10093 (build_minimal_symbol_hash_tables): Update.
10094 (install_minimal_symbols): Update.
10095 (terminate_minimal_symbol_table): Update.
10096 (find_solib_trampoline_target): Update.
10097 (minimal_symbol_upper_bound): Update.
10098 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10099 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10100 (mips_skip_pic_trampoline_code): Update.
10101 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10102 * objc-lang.c (selectors_info): Update.
10103 (classes_info): Update.
10104 (find_methods): Update.
10105 (find_imps): Update.
10106 (find_objc_msgsend): Update.
10107 * objfiles.c (objfile_relocate1): Update.
10108 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10109 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10110 * p-valprint.c (pascal_val_print): Update.
10111 * parse.c (write_exp_msymbol): Update.
10112 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10113 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10114 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10115 * printcmd.c (build_address_symbolic): Update.
10116 (sym_info): Update.
10117 (address_info): Update.
10118 * proc-service.c (ps_pglobal_lookup): Update.
10119 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10120 (find_pc_sect_psymtab): Update.
10121 * python/py-framefilter.c (py_print_frame): Update.
10122 * ravenscar-thread.c (get_running_thread_id): Update.
10123 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10124 Update.
10125 * remote.c (remote_check_symbols): Update.
10126 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10127 (rs6000_skip_trampoline_code): Update.
10128 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10129 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10130 * solib-dsbt.c (lm_base): Update.
10131 * solib-frv.c (lm_base): Update.
10132 (main_got): Update.
10133 * solib-irix.c (locate_base): Update.
10134 * solib-som.c (som_solib_create_inferior_hook): Update.
10135 (som_solib_desire_dynamic_linker_symbols): Update.
10136 (link_map_start): Update.
10137 * solib-spu.c (spu_enable_break): Update.
10138 (ocl_enable_break): Update.
10139 * solib-svr4.c (elf_locate_base): Update.
10140 (enable_break): Update.
10141 * spu-tdep.c (spu_get_overlay_table): Update.
10142 (spu_catch_start): Update.
10143 (flush_ea_cache): Update.
10144 * stabsread.c (define_symbol): Update.
10145 (scan_file_globals): Update.
10146 * stack.c (find_frame_funname): Update.
10147 (frame_info): Update.
10148 * symfile.c (simple_read_overlay_table): Update.
10149 (simple_overlay_update): Update.
10150 * symmisc.c (dump_msymbols): Update.
10151 * symtab.c (fixup_section): Update.
10152 (find_pc_sect_line): Update.
10153 (skip_prologue_sal): Update.
10154 (search_symbols): Update.
10155 (print_msymbol_info): Update.
10156 (rbreak_command): Update.
10157 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10158 (completion_list_objc_symbol): Update.
10159 (default_make_symbol_completion_list_break_on): Update.
10160 * tracepoint.c (scope_info): Update.
10161 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10162 (tui_get_begin_asm_address): Update.
10163 * valops.c (find_function_in_inferior): Update.
10164 * value.c (value_static_field): Update.
10165 (value_fn_field): Update.
10166
50e65b17
TT
101672014-02-26 Tom Tromey <tromey@redhat.com>
10168
10169 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10170 bound minimal symbols. Move code that knows about minsym
10171 table layout...
10172 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10173 function.
10174 * minsyms.h (minimal_symbol_upper_bound): Declare.
10175 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10176 minimal_symbol_upper_bound.
10177
1b588015
JB
101782014-02-27 Joel Brobecker <brobecker@adacore.com>
10179
10180 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10181 Use the type's name if its basic type does not have a tag.
10182
dbb9c2b1
JB
101832014-02-27 Joel Brobecker <brobecker@adacore.com>
10184
10185 * dwarf2read.c (read_subrange_type): Add comment.
10186
55426c9d
JB
101872014-02-27 Joel Brobecker <brobecker@adacore.com>
10188
10189 * dwarf2read.c (update_enumeration_type_from_children): New
10190 function, mostly extracted from process_structure_scope.
10191 (read_enumeration_type): Call update_enumeration_type_from_children.
10192 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10193 and flag_flag_enum fields.
10194
f2fce0ca
PA
101952014-02-26 Pedro Alves <palves@redhat.com>
10196
10197 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10198 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10199 to_xfer_partial method.
10200
7a44e40e
PA
102012014-02-26 Pedro Alves <palves@redhat.com>
10202
10203 * target.c (complete_target_initialization): Don't install
10204 default_xfer_partial as to_xfer_partial hook.
10205 (nomemory): Delete.
10206 (update_current_target): Don't INHERIT nor de_fault
10207 deprecated_xfer_memory. Delete de_fault macro.
10208 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10209 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10210 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10211 field.
10212
bd265cd0
PA
102132014-02-26 Pedro Alves <palves@redhat.com>
10214
10215 * go32-nat.c (my_write_child): New function.
10216 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10217 (go32_xfer_partial): New function.
10218 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10219 Instead install a to_xfer_partial hook.
10220
9d46c4e5
PA
102212014-02-26 Pedro Alves <palves@redhat.com>
10222
10223 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10224 to_xfer_partial helper. Rewrite.
10225 (procfs_xfer_partial): New function.
10226 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10227 Install a to_xfer_partial hook.
10228
a1583b1f
PA
102292014-02-26 Pedro Alves <palves@redhat.com>
10230
10231 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10232 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10233 (m32r_xfer_partial): New function.
10234 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10235 Install a to_xfer_partial hook.
10236
6df1b29f
PA
102372014-02-26 Pedro Alves <palves@redhat.com>
10238
10239 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10240 helper.
10241 (mips_xfer_partial): New function.
10242 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10243 hook. Install a to_xfer_partial hook.
10244
dc53a7ad
JB
102452014-02-26 Joel Brobecker <brobecker@adacore.com>
10246
10247 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10248 * gdbtypes.c (create_array_type_with_stride): New function,
10249 renaming create_array_type, but with an added parameter
10250 called "bit_stride".
10251 (create_array_type): Re-implement using
10252 create_array_type_with_stride.
10253 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10254 and DW_AT_bit_stride attributes.
10255
12ab52e9
PA
102562014-02-26 Pedro Alves <palves@redhat.com>
10257
10258 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10259 task-specific breakpoints.
10260
d16461ae
PA
102612014-02-25 Pedro Alves <palves@redhat.com>
10262
10263 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10264 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10265
a8b16220
SS
102662014-02-25 Stan Shebs <stan@codesourcery.com>
10267
10268 * defs.h: Annotate comments for Doxygen.
10269
b9e795ee
TT
102702014-02-25 Tom Tromey <tromey@redhat.com>
10271
10272 * target.h (target_ignore): Don't declare.
10273 * target.c (target_ignore): Remove.
10274
849c862e
JK
102752014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10276
10277 PR gdb/16626
10278 * auto-load.c (auto_load_objfile_script_1): Change filename to
10279 debugfile.
10280
475109d8
JB
102812014-02-25 Joel Brobecker <brobecker@adacore.com>
10282
10283 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10284 documentation. Adjust prototype to match the target_ops
10285 to_xfer_partial method. Adjust implementation accordingly.
10286
e186c3bd
HZ
102872014-02-25 Hui Zhu <hui@codesourcery.com>
10288
10289 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10290 to_traceframe_info.
10291
6d451942
KB
102922014-02-25 Kevin Buettner <kevinb@redhat.com>
10293
041ab8b4 10294 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10295 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10296 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10297 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10298 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10299 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10300 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10301 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10302 New constants.
10303 (rl78_register_type): Use a data pointer type for SP and
10304 new pseudo registers mentioned above. Use a 16 bit integer
10305 type for all other register pairs.
10306 (rl78_register_name, rl78_g10_register_name): Update for
10307 new pseudo registers.
10308 (rl78_pseudo_register_read): Likewise.
10309 (rl78_pseudo_register_write): Likewise.
10310 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10311 to the newly added pseudo registers.
10312
eddf0bae
DE
103132014-02-24 Doug Evans <dje@google.com>
10314
10315 * value.c (record_latest_value): Fix comment.
10316 * printcmd.c (print_command_1): Remove code to handle -1 return from
10317 record_latest_value.
10318
e96027e0
PA
103192014-02-24 Pedro Alves <palves@redhat.com>
10320
10321 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10322 deprecated_xfer_memory hook.
10323 (procfs_xfer_partial): Call procfs_xfer_memory instead
10324 of the deprecated_xfer_memory target hook.
10325 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10326 helper.
10327
0837c976
YZ
103282014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10329
10330 * windows-nat.c (windows_xfer_shared_libraries): Return
10331 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10332 requested object is TARGET_OBJECT_LIBRARIES.
10333
bc113b4e
YQ
103342014-02-24 Yao Qi <yao@codesourcery.com>
10335
10336 * target.h (enum target_xfer_status)
10337 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10338 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10339 explicitly. New.
10340 * corefile.c (memory_error_message): User updated.
10341 * exec.c (section_table_read_available_memory): Likewise.
10342 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10343 * target.c (target_xfer_status_to_string): Likewise.
10344 (raw_memory_xfer_partial): Likewise.
10345 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10346 * valops.c (read_value_memory): Likewise.
10347 * exec.h: Update comments.
10348
01cb8804
YQ
103492014-02-24 Yao Qi <yao@codesourcery.com>
10350
10351 * target.c (target_xfer_status_to_string): Rename argument err
10352 to status.
10353 * target.h (target_xfer_status_to_string): Update declaration.
10354 Replace target_xfer_error_to_string with
10355 target_xfer_status_to_string in comment.
10356
93063aa6
YQ
103572014-02-24 Yao Qi <yao@codesourcery.com>
10358
10359 * mips-linux-nat.c (super_close): Update its type.
10360 (mips_linux_close): Pass 'self' to super_close.
10361
5c328c05
YQ
103622014-02-24 Yao Qi <yao@codesourcery.com>
10363
10364 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10365 * corefile.c (read_memory): Adjusted.
10366 * target.c (target_write_with_progress): Adjusted.
10367
f73023dd
YQ
103682014-02-23 Yao Qi <yao@codesourcery.com>
10369
10370 Revert two patches:
10371
10372 2013-10-25 Yao Qi <yao@codesourcery.com>
10373
10374 * remote.c (remote_traceframe_info): Return early if
10375 traceframe is not selected.
10376
10377 2013-07-19 Yao Qi <yao@codesourcery.com>
10378
10379 * target.c (update_current_target): Change the default action
10380 of 'to_traceframe_info' from tcomplain to return_zero.
10381 * target.h (struct target_ops) <to_traceframe_info>: Add more
10382 comments.
10383
5a2eb0ef
YQ
103842014-02-23 Yao Qi <yao@codesourcery.com>
10385
10386 * valops.c (read_value_memory): Rewrite it. Call
10387 target_xfer_partial in a loop.
10388 * exec.h (section_table_available_memory): Remove declaration.
10389 Move comments to ...
10390 * exec.c (section_table_available_memory): ... here. Make it
10391 static.
10392
1ee79381
YQ
103932014-02-23 Yao Qi <yao@codesourcery.com>
10394
10395 * exec.c (section_table_read_available_memory): New function.
10396 * exec.h (section_table_read_available_memory): Declare.
10397 * ctf.c (ctf_xfer_partial): Call
10398 section_table_read_available_memory.
10399 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10400
1ca49d37
YQ
104012014-02-23 Yao Qi <yao@codesourcery.com>
10402
10403 * ctf.c (ctf_xfer_partial): Move code to ...
10404 * exec.c (exec_read_partial_read_only): ... it. New function.
10405 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10406 * tracefile.c: Include "exec.h".
10407 * exec.h (exec_read_partial_read_only): Declare.
10408
a283690e
YQ
104092014-02-23 Yao Qi <yao@codesourcery.com>
10410
10411 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10412 (tfile_has_memory): Remove.
10413 (init_tfile_ops): Don't set fields to_has_all_memory and
10414 to_has_memory of tfile_ops.
10415 * tracefile.c (tracefile_has_all_memory): New function.
10416 (tracefile_has_memory): New function.
10417 (init_tracefile_ops): Initialize fields to_has_all_memory and
10418 to_has_memory of 'ops'.
10419
12e03cd0
YQ
104202014-02-23 Yao Qi <yao@codesourcery.com>
10421
10422 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10423 (ctf_thread_alive, ctf_get_trace_status): Remove.
10424 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10425 init_tracefile_ops.
10426 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10427 (tfile_has_stack, tfile_has_registers): Remove.
10428 (tfile_thread_alive): Remove.
10429 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10430 init_tracefile_ops.
10431 * tracefile.c (tracefile_has_stack): New function.
10432 (tracefile_has_registers): New function.
10433 (tracefile_thread_alive): New function.
10434 (tracefile_get_trace_status): New function.
10435 (init_tracefile_ops): New function.
10436 * tracefile.h (init_tracefile_ops): Declare.
10437
11395323
YQ
104382014-02-23 Yao Qi <yao@codesourcery.com>
10439
10440 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10441 (O_LARGEFILE): Likewise.
10442 (tfile_ops): Likewise.
10443 (TRACE_HEADER_SIZE): Likewise.
10444 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10445 (cur_data_size): Likewise.
10446 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10447 (tfile_close, tfile_files_info): Likewise.
10448 (tfile_get_trace_status): Likewise.
10449 (tfile_get_tracepoint_status): Likewise.
10450 (tfile_get_traceframe_address): Likewise.
10451 (tfile_trace_find, match_blocktype): Likewise.
10452 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10453 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10454 (tfile_get_trace_state_variable_value): Likewise.
10455 (tfile_has_all_memory, tfile_has_memory): Likewise.
10456 (tfile_has_stack, tfile_has_registers): Likewise.
10457 (tfile_thread_alive, build_traceframe_info): Likewise.
10458 (tfile_traceframe_info, init_tfile_ops): Likewise.
10459 (_initialize_tracepoint): Don't call init_tfile_ops
10460 and add_target_with_completer.
10461 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10462 exec.h, completer.h and filenames.h.
10463 (_initialize_tracefile_tfile): New function.
10464
7951c4eb
YQ
104652014-02-23 Yao Qi <yao@codesourcery.com>
10466
10467 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10468 tracefile-tfile.o.
10469 (HFILES_NO_SRCDIR): Add tracefile.h.
10470 * ctf.c: Include "tracefile.h".
10471 * tracefile.h: New file.
10472 * tracefile.c: New file
10473 * tracefile-tfile.c: New file.
10474 * tracepoint.c: Include "tracefile.h".
10475 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10476 (stop_reason_names): Add const.
10477 (trace_file_writer_xfree): Move it to tracefile.c.
10478 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10479 (trace_save_ctf): Likewise.
10480 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10481 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10482 (tfile_write_header, tfile_write_regblock_type): Likewise.
10483 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10484 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10485 (tfile_write_raw_data, tfile_end): Likewise.
10486 (tfile_trace_file_writer_new): Likewise.
10487 (free_uploaded_tp): Make it extern.
10488 (free_uploaded_tsv): Make it extern.
10489 (_initialize_tracepoint): Move code to register command 'tsave'
10490 to tracefile.c.
10491 * tracepoint.h (stop_reason_names): Declare.
10492 (struct trace_frame_write_ops): Move it to tracefile.h.
10493 (struct trace_file_write_ops): Likewise.
10494 (struct trace_file_writer): Likewise.
10495 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10496
184cd072
JK
104972014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10498
10499 PR gdb/16594
10500 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10501 process name.
10502 (get_cores_used_by_process): New parameter num_cores, use it.
10503 (linux_xfer_osdata_processes): Pass num_cores to it.
10504 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10505 process name.
10506
c63528fc
AK
105072014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10508
10509 * target.c (memory_xfer_partial): Fix length arg in call to
10510 breakpoint_xfer_memory.
10511
d7b30f67
SDJ
105122014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10513
10514 PR tdep/16397
10515 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10516 number comes after the + or - signs. Adjust length of register
10517 name to be extracted.
10518
8838afaf
TT
105192014-02-20 Tom Tromey <tromey@redhat.com>
10520
10521 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10522 (ada_varobj_ops): Mark "extern".
10523
05227d14
TT
105242014-02-20 Tom Tromey <tromey@redhat.com>
10525
10526 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10527
1254eefc
DE
105282014-02-20 Doug Evans <xdje42@gmail.com>
10529
10530 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10531 All callers updated.
10532 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10533 All callers updated.
10534 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10535 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10536
adde2bff
DE
105372014-02-20 lin zuojian <manjian2006@gmail.com>
10538 Joel Brobecker <brobecker@adacore.com>
10539 Doug Evans <xdje42@gmail.com>
10540
10541 PR symtab/16581
10542 * dwarf2read.c (struct die_info): New member in_process.
10543 (reset_die_in_process): New function.
10544 (process_die): Set it at the start, reset when returning.
10545 (inherit_abstract_dies): Only call process_die if origin_child_die
10546 not already being processed.
10547
3be75f87
JB
105482014-02-20 Joel Brobecker <brobecker@adacore.com>
10549
10550 * windows-nat.c (handle_unload_dll): Add function documentation.
10551 (do_initial_windows_stuff): Add comment explaining why we wait
10552 until after inferior initialization has finished before
10553 processing all DLLs.
10554
47f7ffdb
JB
105552014-02-20 Joel Brobecker <brobecker@adacore.com>
10556
10557 * windows-nat.c (get_module_name): Delete.
10558 (windows_get_exec_module_filename): New function, mostly
10559 inspired from get_module_name.
10560 (windows_pid_to_exec_file): Replace call to get_module_name
10561 by call to windows_get_exec_module_filename.
10562
1cd9feab
JB
105632014-02-20 Joel Brobecker <brobecker@adacore.com>
10564
10565 * windows-nat.c (handle_load_dll): Rewrite this function's
10566 introductory comment. Remove code using get_module_name
10567 to get the DLL's name.
10568
ea39ad35
JB
105692014-02-20 Joel Brobecker <brobecker@adacore.com>
10570
10571 * windows-nat.c (get_windows_debug_event): Ignore
10572 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10573 if windows_initialization_done == 0.
10574 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10575 Adjust implementation to always load all DLLs.
10576 (do_initial_windows_stuff): Replace call to
10577 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10578
95060284
JB
105792014-02-20 Joel Brobecker <brobecker@adacore.com>
10580
10581 * windows-nat.c (_initialize_windows_nat): Deprecate the
10582 "dll-symbols" command. Turn the "add-shared-symbol-files"
10583 and "assf" aliases into commands, and deprecate them as well.
10584 * NEWS: Add entry explaining that "dll-symbols" and its two
10585 aliases are now deprecated.
10586
8d4fdb12
JB
105872014-02-20 Joel Brobecker <brobecker@adacore.com>
10588
10589 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10590 new-line in debug string. Remove trailing spaces.
10591
1b281443
SS
105922014-02-19 Stan Shebs <stan@codesourcery.com>
10593
10594 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10595
f7bd0f78
SC
105962014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10597
10598 * NEWS: Add entry for the new feature
10599 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10600 and class values.
10601
399ebc3d
SS
106022014-02-19 Stan Shebs <stan@codesourcery.com>
10603
10604 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10605
c658158d
PA
106062014-02-19 Pedro Alves <palves@redhat.com>
10607
10608 * common/ptid.h (struct ptid): Mention that process_stratum
10609 targets should prefer ptid.lwp.
10610
ba348170
PA
106112014-02-19 Pedro Alves <palves@redhat.com>
10612
10613 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10614 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10615 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10616 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10617 store remote thread ids rather than ptid.tid.
10618 (_initialize_remote): Adjust.
10619
ac01945b
TT
106202014-02-19 Tom Tromey <tromey@redhat.com>
10621
10622 * target.c (target_get_unwinder): Rewrite.
10623 (target_get_tailcall_unwinder): Rewrite.
10624 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10625 (record_btrace_to_get_tailcall_unwinder): New function.
10626 (init_record_btrace_ops): Update.
10627 * target.h (struct target_ops) <to_get_unwinder,
10628 to_get_tailcall_unwinder>: Now function pointers. Use
10629 TARGET_DEFAULT_RETURN.
10630
8476dc92
TT
106312014-02-19 Tom Tromey <tromey@redhat.com>
10632
10633 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10634 argument.
10635 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10636
c0eca49f
TT
106372014-02-19 Tom Tromey <tromey@redhat.com>
10638
10639 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10640 directly.
10641 * target-delegates.c: Rebuild.
10642 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10643 TARGET_DEFAULT_FUNC.
10644 * target.c (default_target_decr_pc_after_break): Rename from
10645 forward_target_decr_pc_after_break. Simplify.
10646 (target_decr_pc_after_break): Rely on delegation.
10647
596b6b39
TT
106482014-02-19 Tom Tromey <tromey@redhat.com>
10649
10650 * target.c (update_current_target): Do not INHERIT to_doc or
10651 to_magic. Do not de_fault to_open or to_close.
10652
b427c1bc
TT
106532014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * gcore.h (objfile_find_memory_regions): Declare.
10656 * gcore.c (objfile_find_memory_regions): No longer static. Add
10657 "self" argument.
10658 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10659 * exec.c: Include gcore.h.
10660 (exec_set_find_memory_regions): Remove.
10661 (exec_find_memory_regions): Remove.
10662 (exec_do_find_memory_regions): Remove.
10663 (init_exec_ops): Update.
10664 * defs.h (exec_set_find_memory_regions): Remove.
10665
9b144037
TT
106662014-02-19 Tom Tromey <tromey@redhat.com>
10667
10668 * target-delegates.c: Rebuild.
10669 * target.h (struct target_ops) <to_extra_thread_info,
10670 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10671 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10672 not 0, in TARGET_DEFAULT_RETURN.
10673
555bbdeb
TT
106742014-02-19 Tom Tromey <tromey@redhat.com>
10675
10676 * target.c (complete_target_initialization): Remove casts. Use
10677 return_zero_has_execution.
10678 (return_zero): Add "ignore" argument.
10679 (return_zero_has_execution): New function.
10680 (init_dummy_target): Remove casts. Use
10681 return_zero_has_execution.
10682
be4ddd36
TT
106832014-02-19 Tom Tromey <tromey@redhat.com>
10684
10685 * target.c (update_current_target): Update comments. Do not
10686 INHERIT to_stratum.
10687
2117c711
TT
106882014-02-19 Tom Tromey <tromey@redhat.com>
10689
10690 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10691 needed.
10692 * corelow.c (core_read_description): Delegate when needed.
10693 * remote.c (remote_read_description): Delegate when needed.
10694 * target-delegates.c: Rebuild.
10695 * target.c (target_read_description): Rewrite.
10696 * target.h (struct target_ops) <to_read_description>: Update
10697 comment. Use TARGET_DEFAULT_RETURN.
10698
e88ef65c
TT
106992014-02-19 Tom Tromey <tromey@redhat.com>
10700
10701 * target-delegates.c: Rebuild.
10702 * target.c (update_current_target): Don't inherit or default
10703 to_can_run.
10704 (find_default_run_target): Check against delegate_can_run.
10705 * target.h (struct target_ops) <to_can_run>: Use
10706 TARGET_DEFAULT_RETURN.
10707
86a0854a
TT
107082014-02-19 Tom Tromey <tromey@redhat.com>
10709
10710 * target-delegates.c: Rebuild.
10711 * target.c (target_disconnect): Unconditionally delegate.
10712 * target.h (struct target_ops) <to_disconnect>: Use
10713 TARGET_DEFAULT_NORETURN.
10714
ee97f592
TT
107152014-02-19 Tom Tromey <tromey@redhat.com>
10716
10717 * record.c (record_stop): Unconditionally delegate.
10718 * target-delegates.c: Rebuild.
10719 * target.c (target_stop_recording): Unconditionally delegate.
10720 * target.h (struct target_ops) <to_stop_recording>: Use
10721 TARGET_DEFAULT_IGNORE.
10722
6dc7fcf4
TT
107232014-02-19 Tom Tromey <tromey@redhat.com>
10724
10725 * target-delegates.c: Rebuild.
10726 * target.c (target_enable_btrace): Unconditionally delegate.
10727 * target.h (struct target_ops) <to_enable_btrace>: Use
10728 TARGET_DEFAULT_NORETURN.
10729
eb5b20d4
TT
107302014-02-19 Tom Tromey <tromey@redhat.com>
10731
10732 * target-delegates.c: Rebuild.
10733 * target.c (target_read_btrace): Unconditionally delegate.
10734 * target.h (struct target_ops) <to_read_btrace>: Use
10735 TARGET_DEFAULT_NORETURN.
10736
9ace480d
TT
107372014-02-19 Tom Tromey <tromey@redhat.com>
10738
10739 * target-delegates.c: Rebuild.
10740 * target.c (target_teardown_btrace): Unconditionally delegate.
10741 * target.h (struct target_ops) <to_teardown_btrace>: Use
10742 TARGET_DEFAULT_NORETURN.
10743
8dc292d3
TT
107442014-02-19 Tom Tromey <tromey@redhat.com>
10745
10746 * target-delegates.c: Rebuild.
10747 * target.c (target_disable_btrace): Unconditionally delegate.
10748 * target.h (struct target_ops) <to_disable_btrace>: Use
10749 TARGET_DEFAULT_NORETURN.
10750
58a5184e
TT
107512014-02-19 Tom Tromey <tromey@redhat.com>
10752
10753 * target-delegates.c: Rebuild.
10754 * target.c (default_search_memory): New function.
10755 (simple_search_memory): Update comment.
10756 (target_search_memory): Unconditionally delegate.
10757 * target.h (struct target_ops) <to_search_memory>: Use
10758 TARGET_DEFAULT_FUNC.
10759
8de71aab
TT
107602014-02-19 Tom Tromey <tromey@redhat.com>
10761
10762 * auxv.c (default_auxv_parse): No longer static.
10763 (target_auxv_parse): Unconditionally delegate.
10764 * auxv.h (default_auxv_parse): Declare.
10765 * target-delegates.c: Rebuild.
10766 * target.c: Include auxv.h.
10767 * target.h (struct target_ops) <to_auxv_parse>: Use
10768 TARGET_DEFAULT_FUNC.
10769
6b2c5a57
TT
107702014-02-19 Tom Tromey <tromey@redhat.com>
10771
10772 * target-delegates.c: Rebuild.
10773 * target.c (target_memory_map): Unconditionally delegate.
10774 * target.h (struct target_ops) <to_memory_map>: Use
10775 TARGET_DEFAULT_RETURN.
10776
cbffc065
TT
107772014-02-19 Tom Tromey <tromey@redhat.com>
10778
10779 * target-delegates.c: Rebuild.
10780 * target.c (target_thread_alive): Unconditionally delegate.
10781 * target.h (struct target_ops) <to_thread_alive>: Use
10782 TARGET_DEFAULT_RETURN.
10783
f09e2107
TT
107842014-02-19 Tom Tromey <tromey@redhat.com>
10785
10786 * target-delegates.c: Rebuild.
10787 * target.c (target_save_record): Unconditionally delegate.
10788 * target.h (struct target_ops) <to_save_record>: Use
10789 TARGET_DEFAULT_NORETURN.
10790
07366925
TT
107912014-02-19 Tom Tromey <tromey@redhat.com>
10792
10793 * target-delegates.c: Rebuild.
10794 * target.c (target_delete_record): Unconditionally delegate.
10795 * target.h (struct target_ops) <to_delete_record>: Use
10796 TARGET_DEFAULT_NORETURN.
10797
dd2e9d25
TT
107982014-02-19 Tom Tromey <tromey@redhat.com>
10799
10800 * target-delegates.c: Rebuild.
10801 * target.c (target_record_is_replaying): Unconditionally
10802 delegate.
10803 * target.h (struct target_ops) <to_record_is_replaying>: Use
10804 TARGET_DEFAULT_RETURN.
10805
671e76cc
TT
108062014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * target-delegates.c: Rebuild.
10809 * target.c (target_goto_record_begin): Unconditionally delegate.
10810 * target.h (struct target_ops) <to_goto_record_begin>: Use
10811 TARGET_DEFAULT_NORETURN.
10812
e9179bb3
TT
108132014-02-19 Tom Tromey <tromey@redhat.com>
10814
10815 * target-delegates.c: Rebuild.
10816 * target.c (target_goto_record_end): Unconditionally delegate.
10817 * target.h (struct target_ops) <to_goto_record_end>: Use
10818 TARGET_DEFAULT_NORETURN.
10819
05969c84
TT
108202014-02-19 Tom Tromey <tromey@redhat.com>
10821
10822 * target-delegates.c: Rebuild.
10823 * target.c (target_goto_record): Unconditionally delegate.
10824 * target.h (struct target_ops) <to_goto_record>: Use
10825 TARGET_DEFAULT_NORETURN.
10826
3679abfa
TT
108272014-02-19 Tom Tromey <tromey@redhat.com>
10828
10829 * target-delegates.c: Rebuild.
10830 * target.c (target_insn_history): Unconditionally delegate.
10831 * target.h (struct target_ops) <to_insn_history>: Use
10832 TARGET_DEFAULT_NORETURN.
10833
8444ab58
TT
108342014-02-19 Tom Tromey <tromey@redhat.com>
10835
10836 * target-delegates.c: Rebuild.
10837 * target.c (target_insn_history_from): Unconditionally delegate.
10838 * target.h (struct target_ops) <to_insn_history_from>: Use
10839 TARGET_DEFAULT_NORETURN.
10840
c29302cc
TT
108412014-02-19 Tom Tromey <tromey@redhat.com>
10842
10843 * target-delegates.c: Rebuild.
10844 * target.c (target_insn_history_range): Unconditionally delegate.
10845 * target.h (struct target_ops) <to_insn_history_range>: Use
10846 TARGET_DEFAULT_NORETURN.
10847
170049d4
TT
108482014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * target-delegates.c: Rebuild.
10851 * target.c (target_call_history): Unconditionally delegate.
10852 * target.h (struct target_ops) <to_call_history>: Use
10853 TARGET_DEFAULT_NORETURN.
10854
16fc27d6
TT
108552014-02-19 Tom Tromey <tromey@redhat.com>
10856
10857 * target-delegates.c: Rebuild.
10858 * target.c (target_call_history_from): Unconditionally delegate.
10859 * target.h (struct target_ops) <to_call_history_from>: Use
10860 TARGET_DEFAULT_NORETURN.
10861
115d9817
TT
108622014-02-19 Tom Tromey <tromey@redhat.com>
10863
10864 * target-delegates.c: Rebuild.
10865 * target.c (target_call_history_range): Unconditionally delegate.
10866 * target.h (struct target_ops) <to_call_history_range>: Use
10867 TARGET_DEFAULT_NORETURN.
10868
eb276a6b
TT
108692014-02-19 Tom Tromey <tromey@redhat.com>
10870
10871 * target-delegates.c: Rebuild.
10872 * target.c (target_verify_memory): Unconditionally delegate.
10873 * target.h (struct target_ops) <to_verify_memory>: Use
10874 TARGET_DEFAULT_NORETURN.
10875
9e538d0d
TT
108762014-02-19 Tom Tromey <tromey@redhat.com>
10877
10878 * target-delegates.c: Rebuild.
10879 * target.c (target_core_of_thread): Unconditionally delegate.
10880 * target.h (struct target_ops) <to_core_of_thread>: Use
10881 TARGET_DEFAULT_RETURN.
10882
f6fb2925
TT
108832014-02-19 Tom Tromey <tromey@redhat.com>
10884
10885 * target-delegates.c: Rebuild.
10886 * target.c (target_flash_done): Unconditionally delegate.
10887 * target.h (struct target_ops) <to_flash_done>: Use
10888 TARGET_DEFAULT_NORETURN.
10889
e8a6c6ac
TT
108902014-02-19 Tom Tromey <tromey@redhat.com>
10891
10892 * target-delegates.c: Rebuild.
10893 * target.c (target_flash_erase): Unconditionally delegate.
10894 * target.h (struct target_ops) <to_flash_erase>: Use
10895 TARGET_DEFAULT_NORETURN.
10896
7e35c012
TT
108972014-02-19 Tom Tromey <tromey@redhat.com>
10898
10899 * target-delegates.c: Rebuild.
10900 * target.c (target_get_section_table): Unconditionally delegate.
10901 * target.h (struct target_ops) <to_get_section_table>: Use
10902 TARGET_DEFAULT_RETURN.
10903
770234d3
TT
109042014-02-19 Tom Tromey <tromey@redhat.com>
10905
10906 * target-delegates.c: Rebuild.
10907 * target.c (target_pid_to_str): Unconditionally delegate.
10908 (init_dummy_target): Don't initialize to_pid_to_str.
10909 (default_pid_to_str): Rename from dummy_pid_to_str.
10910 * target.h (struct target_ops) <to_pid_to_str>: Use
10911 TARGET_DEFAULT_FUNC.
10912
09b0dc2b
TT
109132014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * target-delegates.c: Rebuild.
10916 * target.c (target_find_new_threads): Unconditionally delegate.
10917 * target.h (struct target_ops) <to_find_new_threads>: Use
10918 TARGET_DEFAULT_RETURN.
10919
7d4f8efa
TT
109202014-02-19 Tom Tromey <tromey@redhat.com>
10921
10922 * target-delegates.c: Rebuild.
10923 * target.c (target_program_signals): Unconditionally delegate.
10924 * target.h (struct target_ops) <to_program_signals>: Use
10925 TARGET_DEFAULT_IGNORE.
10926
035cad7f
TT
109272014-02-19 Tom Tromey <tromey@redhat.com>
10928
10929 * target-delegates.c: Rebuild.
10930 * target.c (target_pass_signals): Unconditionally delegate.
10931 * target.h (struct target_ops) <to_pass_signals>: Use
10932 TARGET_DEFAULT_IGNORE.
10933
8d657035
TT
109342014-02-19 Tom Tromey <tromey@redhat.com>
10935
10936 * target-delegates.c: Rebuild.
10937 * target.c (default_mourn_inferior): New function.
10938 (target_mourn_inferior): Unconditionally delegate.
10939 * target.h (struct target_ops) <to_mourn_inferior>: Use
10940 TARGET_DEFAULT_FUNC.
10941
098dba18
TT
109422014-02-19 Tom Tromey <tromey@redhat.com>
10943
10944 * target-delegates.c: Rebuild.
10945 * target.c (default_follow_fork): New function.
10946 (target_follow_fork): Unconditionally delegate.
10947 * target.h (struct target_ops) <to_follow_fork>: Use
10948 TARGET_DEFAULT_FUNC.
10949
423a4807
TT
109502014-02-19 Tom Tromey <tromey@redhat.com>
10951
10952 * target-delegates.c: Rebuild.
10953 * target.c (target_kill): Unconditionally delegate.
10954 * target.h (struct target_ops) <to_kill>: Use
10955 TARGET_DEFAULT_NORETURN.
10956
6c7e5e5c
TT
109572014-02-19 Tom Tromey <tromey@redhat.com>
10958
10959 * target-delegates.c: Rebuild.
10960 * target.c (target_masked_watch_num_registers): Unconditionally
10961 delegate.
10962 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10963 Use TARGET_DEFAULT_RETURN.
10964
8b1c364c
TT
109652014-02-19 Tom Tromey <tromey@redhat.com>
10966
10967 * target-delegates.c: Rebuild.
10968 * target.c (target_remove_mask_watchpoint): Unconditionally
10969 delegate.
10970 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10971 TARGET_DEFAULT_RETURN.
10972
cd4ae029
TT
109732014-02-19 Tom Tromey <tromey@redhat.com>
10974
10975 * target-delegates.c: Rebuild.
10976 * target.c (target_insert_mask_watchpoint): Unconditionally
10977 delegate.
10978 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10979 TARGET_DEFAULT_RETURN.
10980
a134316b
TT
109812014-02-19 Tom Tromey <tromey@redhat.com>
10982
10983 * target-delegates.c: Rebuild.
10984 * target.c (target_ranged_break_num_registers): Unconditionally
10985 delegate.
10986 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10987 Use TARGET_DEFAULT_RETURN.
10988
ad5989bd
TT
109892014-02-19 Tom Tromey <tromey@redhat.com>
10990
10991 * target-delegates.c: Rebuild.
10992 * target.c (target_fetch_registers): Unconditionally delegate.
10993 * target.h (struct target_ops) <to_fetch_registers>: Use
10994 TARGET_DEFAULT_NORETURN.
10995
46ee7e8d
TT
109962014-02-19 Tom Tromey <tromey@redhat.com>
10997
10998 * target-delegates.c: Rebuild.
10999 * target.c (update_current_target): Don't inherit or default
11000 to_stop.
11001 * target.h (struct target_ops) <to_stop>: Use
11002 TARGET_DEFAULT_IGNORE.
11003
843f59ed
TT
110042014-02-19 Tom Tromey <tromey@redhat.com>
11005
11006 * target-delegates.c: Rebuild.
11007 * target.c (update_current_target): Don't inherit or default
11008 to_can_run_breakpoint_commands.
11009 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11010 Use TARGET_DEFAULT_RETURN.
11011
ccfde2a0
TT
110122014-02-19 Tom Tromey <tromey@redhat.com>
11013
11014 * target-delegates.c: Rebuild.
11015 * target.c (update_current_target): Don't inherit or default
11016 to_supports_evaluation_of_breakpoint_conditions.
11017 * target.h (struct target_ops)
11018 <to_supports_evaluation_of_breakpoint_conditions>: Use
11019 TARGET_DEFAULT_RETURN.
11020
0de91722
TT
110212014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target-delegates.c: Rebuild.
11024 * target.c (update_current_target): Don't inherit or default
11025 to_augmented_libraries_svr4_read.
11026 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11027 Use TARGET_DEFAULT_RETURN.
11028
9a7d8b48
TT
110292014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * target-delegates.c: Rebuild.
11032 * target.c (update_current_target): Don't inherit or default
11033 to_can_use_agent.
11034 * target.h (struct target_ops) <to_can_use_agent>: Use
11035 TARGET_DEFAULT_RETURN.
11036
d9db5b21
TT
110372014-02-19 Tom Tromey <tromey@redhat.com>
11038
11039 * target-delegates.c: Rebuild.
11040 * target.c (update_current_target): Don't inherit or default
11041 to_use_agent.
11042 * target.h (struct target_ops) <to_use_agent>: Use
11043 TARGET_DEFAULT_NORETURN.
11044
92155eeb
TT
110452014-02-19 Tom Tromey <tromey@redhat.com>
11046
11047 * target-delegates.c: Rebuild.
11048 * target.c (update_current_target): Don't inherit or default
11049 to_traceframe_info.
11050 (return_null): Remove.
11051 * target.h (struct target_ops) <to_traceframe_info>: Use
11052 TARGET_DEFAULT_RETURN.
11053
d6522a22
TT
110542014-02-19 Tom Tromey <tromey@redhat.com>
11055
11056 * target-delegates.c: Rebuild.
11057 * target.c (update_current_target): Don't inherit or default
11058 to_static_tracepoint_markers_by_strid.
11059 * target.h (struct target_ops)
11060 <to_static_tracepoint_markers_by_strid>: Use
11061 TARGET_DEFAULT_NORETURN.
11062
4c3e4425
TT
110632014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * target-delegates.c: Rebuild.
11066 * target.c (update_current_target): Don't inherit or default
11067 to_static_tracepoint_marker_at.
11068 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11069 Use TARGET_DEFAULT_RETURN.
11070
dcd6917f
TT
110712014-02-19 Tom Tromey <tromey@redhat.com>
11072
11073 * target-delegates.c: Rebuild.
11074 * target.c (update_current_target): Don't inherit or default
11075 to_set_permissions.
11076 * target.h (struct target_ops) <to_set_permissions>: Use
11077 TARGET_DEFAULT_IGNORE.
11078
22bcceee
TT
110792014-02-19 Tom Tromey <tromey@redhat.com>
11080
11081 * target-delegates.c: Rebuild.
11082 * target.c (update_current_target): Don't inherit or default
11083 to_get_tib_address.
11084 * target.h (struct target_ops) <to_get_tib_address>: Use
11085 TARGET_DEFAULT_NORETURN.
11086
8586ccaa
TT
110872014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * target-delegates.c: Rebuild.
11090 * target.c (update_current_target): Don't inherit or default
11091 to_set_trace_notes.
11092 * target.h (struct target_ops) <to_set_trace_notes>: Use
11093 TARGET_DEFAULT_RETURN.
11094
91df8d1d
TT
110952014-02-19 Tom Tromey <tromey@redhat.com>
11096
11097 * target-delegates.c: Rebuild.
11098 * target.c (update_current_target): Don't initialize
11099 to_set_trace_buffer_size.
11100 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11101 TARGET_DEFAULT_IGNORE.
11102
8d526939
TT
111032014-02-19 Tom Tromey <tromey@redhat.com>
11104
11105 * target-delegates.c: Rebuild.
11106 * target.c (update_current_target): Don't inherit or default
11107 to_set_circular_trace_buffer.
11108 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11109 TARGET_DEFAULT_IGNORE.
11110
0bcfeddf
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_set_disconnected_tracing.
11116 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11117 TARGET_DEFAULT_IGNORE.
11118
9249843f
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_get_min_fast_tracepoint_insn_len.
11124 (return_minus_one): Remove.
11125 * target.h (struct target_ops)
11126 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11127
ace92e7d
TT
111282014-02-19 Tom Tromey <tromey@redhat.com>
11129
11130 * target-delegates.c: Rebuild.
11131 * target.c (update_current_target): Don't inherit or default
11132 to_get_raw_trace_data.
11133 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11134 TARGET_DEFAULT_NORETURN.
11135
08120467
TT
111362014-02-19 Tom Tromey <tromey@redhat.com>
11137
11138 * target-delegates.c: Rebuild.
11139 * target.c (update_current_target): Don't inherit or default
11140 to_upload_trace_state_variables.
11141 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11142 Use TARGET_DEFAULT_RETURN.
11143
1e949b00
TT
111442014-02-19 Tom Tromey <tromey@redhat.com>
11145
11146 * target-delegates.c: Rebuild.
11147 * target.c (update_current_target): Don't inherit or default
11148 to_upload_tracepoints.
11149 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11150 TARGET_DEFAULT_RETURN.
11151
a2e6c147
TT
111522014-02-19 Tom Tromey <tromey@redhat.com>
11153
11154 * target-delegates.c: Rebuild.
11155 * target.c (update_current_target): Don't inherit or default
11156 to_save_trace_data.
11157 * target.h (struct target_ops) <to_save_trace_data>: Use
11158 TARGET_DEFAULT_NORETURN.
11159
959bcd0b
TT
111602014-02-19 Tom Tromey <tromey@redhat.com>
11161
11162 * target-delegates.c: Rebuild.
11163 * target.c (update_current_target): Don't inherit or default
11164 to_get_trace_state_variable_value.
11165 * target.h (struct target_ops)
11166 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11167
afc94e66
TT
111682014-02-19 Tom Tromey <tromey@redhat.com>
11169
11170 * target-delegates.c: Rebuild.
11171 * target.c (update_current_target): Don't inherit or default
11172 to_trace_find.
11173 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11174
e51c07ea
TT
111752014-02-19 Tom Tromey <tromey@redhat.com>
11176
11177 * target-delegates.c: Rebuild.
11178 * target.c (update_current_target): Don't inherit or default
11179 to_trace_stop.
11180 * target.h (struct target_ops) <to_trace_stop>: Use
11181 TARGET_DEFAULT_NORETURN.
11182
6fea14cd
TT
111832014-02-19 Tom Tromey <tromey@redhat.com>
11184
11185 * target-delegates.c: Rebuild.
11186 * target.c (update_current_target): Don't inherit or default
11187 to_get_tracepoint_status.
11188 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11189 TARGET_DEFAULT_NORETURN.
11190
4072d4ff
TT
111912014-02-19 Tom Tromey <tromey@redhat.com>
11192
11193 * target-delegates.c: Rebuild.
11194 * target.c (update_current_target): Don't inherit or default
11195 to_get_trace_status.
11196 * target.h (struct target_ops) <to_get_trace_status>: Use
11197 TARGET_DEFAULT_RETURN.
11198
25da2e80
TT
111992014-02-19 Tom Tromey <tromey@redhat.com>
11200
11201 * target-delegates.c: Rebuild.
11202 * target.c (update_current_target): Don't inherit or default
11203 to_trace_start.
11204 * target.h (struct target_ops) <to_trace_start>: Use
11205 TARGET_DEFAULT_NORETURN.
11206
86dd181d
TT
112072014-02-19 Tom Tromey <tromey@redhat.com>
11208
11209 * target-delegates.c: Rebuild.
11210 * target.c (update_current_target): Don't inherit or default
11211 to_trace_set_readonly_regions.
11212 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11213 Use TARGET_DEFAULT_NORETURN.
11214
05c41993
TT
112152014-02-19 Tom Tromey <tromey@redhat.com>
11216
11217 * target-delegates.c: Rebuild.
11218 * target.c (update_current_target): Don't inherit or default
11219 to_disable_tracepoint.
11220 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11221 TARGET_DEFAULT_NORETURN.
11222
151f70f1
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_enable_tracepoint.
11228 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11229 TARGET_DEFAULT_NORETURN.
11230
94eb98b9
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_download_trace_state_variable.
11236 * target.h (struct target_ops) <to_download_trace_state_variable>:
11237 Use TARGET_DEFAULT_NORETURN.
11238
719acc4a
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_can_download_tracepoint.
11244 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11245 TARGET_DEFAULT_RETURN.
11246
9a980a22
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_download_tracepoint.
11252 * target.h (struct target_ops) <to_download_tracepoint>: Use
11253 TARGET_DEFAULT_NORETURN.
11254
5536135b
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_init.
11260 * target.h (struct target_ops) <to_trace_init>: Use
11261 TARGET_DEFAULT_RETURN.
11262
9409d39e
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_supports_string_tracing.
11268 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11269 TARGET_DEFAULT_RETURN.
11270
aab1b22d
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_supports_enable_disable_tracepoint.
11276 * target.h (struct target_ops)
11277 <to_supports_enable_disable_tracepoint>: Use
11278 TARGET_DEFAULT_RETURN.
11279
a7304748
TT
112802014-02-19 Tom Tromey <tromey@redhat.com>
11281
11282 * target-delegates.c: Rebuild.
11283 * target.c (update_current_target): Don't inherit or default
11284 to_supports_multi_process.
11285 * target.h (struct target_ops) <to_supports_multi_process>: Use
11286 TARGET_DEFAULT_RETURN.
11287
4229b31d
TT
112882014-02-19 Tom Tromey <tromey@redhat.com>
11289
11290 * target-delegates.c: Rebuild.
11291 * target.c (update_current_target): Don't inherit or default
11292 to_get_ada_task_ptid.
11293 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11294 TARGET_DEFAULT_FUNC.
11295
43eba180
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target-delegates.c: Rebuild.
11299 * target.c (update_current_target): Don't inherit or default
11300 to_thread_architecture.
11301 * target.h (struct target_ops) <to_thread_architecture>: Use
11302 TARGET_DEFAULT_FUNC.
11303
fe31bf5b
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target-delegates.c: Rebuild.
11307 * target.c (update_current_target): Don't inherit or default
11308 to_execution_direction.
11309 * target.h (struct target_ops) <to_execution_direction>: Use
11310 TARGET_DEFAULT_FUNC.
11311
53e1cfc7
TT
113122014-02-19 Tom Tromey <tromey@redhat.com>
11313
11314 * target-delegates.c: Rebuild.
11315 * target.c (update_current_target): Don't inherit or default
11316 to_can_execute_reverse.
11317 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11318 TARGET_DEFAULT_RETURN.
11319 (target_can_execute_reverse): Unconditionally delegate.
11320
9bb9d61d
TT
113212014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target-delegates.c: Rebuild.
11324 * target.c (update_current_target): Don't inherit or default
11325 to_goto_bookmark.
11326 (dummy_goto_bookmark): Remove.
11327 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11328 * target.h (struct target_ops) <to_goto_bookmark>: Use
11329 TARGET_DEFAULT_NORETURN.
11330
3dbafbbb
TT
113312014-02-19 Tom Tromey <tromey@redhat.com>
11332
11333 * target-delegates.c: Rebuild.
11334 * target.c (update_current_target): Don't inherit or default
11335 to_get_bookmark.
11336 (dummy_get_bookmark): Remove.
11337 (init_dummy_target): Don't inherit or default to_get_bookmark.
11338 * target.h (struct target_ops) <to_get_bookmark>: Use
11339 TARGET_DEFAULT_NORETURN
11340
16f796b1
TT
113412014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target-delegates.c: Rebuild.
11344 * target.c (update_current_target): Don't inherit or default
11345 to_make_corefile_notes.
11346 (init_dummy_target): Don't initialize to_make_corefile_notes.
11347 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11348 TARGET_DEFAULT_FUNC.
11349
0b5a2719
TT
113502014-02-19 Tom Tromey <tromey@redhat.com>
11351
11352 * target-delegates.c: Rebuild.
11353 * target.c (update_current_target): Don't inherit or default
11354 to_find_memory_regions.
11355 (init_dummy_target): Don't initialize to_find_memory_regions.
11356 * target.h (struct target_ops) <to_find_memory_regions>: Use
11357 TARGET_DEFAULT_FUNC.
11358
d9cb0195
TT
113592014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * target-delegates.c: Rebuild.
11362 * target.c (update_current_target): Don't inherit or default
11363 to_log_command.
11364 * target.h (struct target_ops) <to_log_command>: Use
11365 TARGET_DEFAULT_IGNORE.
11366 (target_log_command): Unconditionally delegate.
11367
830ca330
TT
113682014-02-19 Tom Tromey <tromey@redhat.com>
11369
11370 * target-delegates.c: Rebuild.
11371 * target.c (update_current_target): Don't inherit or default
11372 to_pid_to_exec_file.
11373 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11374 TARGET_DEFAULT_RETURN.
11375
825828fc
TT
113762014-02-19 Tom Tromey <tromey@redhat.com>
11377
11378 * target-delegates.c: Rebuild.
11379 * target.c (update_current_target): Don't inherit or default
11380 to_thread_name.
11381 (target_thread_name): Unconditionally delegate.
11382 * target.h (struct target_ops) <to_thread_name>: Use
11383 TARGET_DEFAULT_RETURN.
11384
4a7e6dda
TT
113852014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target-delegates.c: Rebuild.
11388 * target.c (update_current_target): Don't inherit or default
11389 to_extra_thread_info.
11390 * target.h (struct target_ops) <to_extra_thread_info>: Use
11391 TARGET_DEFAULT_RETURN.
11392
0db88c1d
TT
113932014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target-delegates.c: Rebuild.
11396 * target.c (update_current_target): Don't inherit or default
11397 to_has_exited.
11398 * target.h (struct target_ops) <to_has_exited>: Use
11399 TARGET_DEFAULT_RETURN..
11400
6a9fa051
TT
114012014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * target-delegates.c: Rebuild.
11404 * target.c (update_current_target): Don't inherit or default
11405 to_set_syscall_catchpoint.
11406 (return_one): Remove.
11407 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11408 TARGET_DEFAULT_RETURN.
11409
62f64d7a
TT
114102014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target-delegates.c: Rebuild.
11413 * target.c (update_current_target): Don't inherit or default
11414 to_insert_exec_catchpoint.
11415 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11416 TARGET_DEFAULT_RETURN.
11417
cda0f38c
TT
114182014-01-08 Tom Tromey <tromey@redhat.com>
11419
11420 * target-delegates.c: Rebuild.
11421 * target.c (update_current_target): Don't inherit or default
11422 to_insert_exec_catchpoint.
11423 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11424 TARGET_DEFAULT_RETURN.
11425
95c3375e
TT
114262014-02-19 Tom Tromey <tromey@redhat.com>
11427
11428 * target-delegates.c: Rebuild.
11429 * target.c (update_current_target): Don't inherit or default
11430 to_remove_vfork_catchpoint.
11431 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11432 TARGET_DEFAULT_RETURN.
11433
7e18a8dc
TT
114342014-02-19 Tom Tromey <tromey@redhat.com>
11435
11436 * target-delegates.c: Rebuild.
11437 * target.c (update_current_target): Don't inherit or default
11438 to_insert_vfork_catchpoint.
11439 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11440 TARGET_DEFAULT_RETURN.
11441
e1a21fb7
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target-delegates.c: Rebuild.
11445 * target.c (update_current_target): Don't inherit or default
11446 to_remove_fork_catchpoint.
11447 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11448 TARGET_DEFAULT_RETURN.
11449
5958ebeb
TT
114502014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target-delegates.c: Rebuild.
11453 * target.c (update_current_target): Don't inherit or default
11454 to_insert_fork_catchpoint.
11455 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11456 TARGET_DEFAULT_RETURN.
11457
340ba4bf
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_post_startup_inferior.
11463 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11464 TARGET_DEFAULT_IGNORE.
11465
7634da87
TT
114662014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target-delegates.c: Rebuild.
11469 * target.c (update_current_target): Don't inherit or default
11470 to_load.
11471 * target.h (struct target_ops) <to_load>: Use
11472 TARGET_DEFAULT_NORETURN.
11473
e19e919f
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_terminal_info.
11479 * target.h (struct target_ops) <to_terminal_info>: Use
11480 TARGET_DEFAULT_FUNC.
11481
c6ea8f79
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_terminal_save_ours.
11487 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11488 TARGET_DEFAULT_IGNORE.
11489
e4a733f1
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_terminal_ours.
11495 * target.h (struct target_ops) <to_terminal_ours>: Use
11496 TARGET_DEFAULT_IGNORE.
11497
74fcbef9
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_terminal_ours_for_output.
11503 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11504 TARGET_DEFAULT_IGNORE.
11505
ddeaacc9
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_terminal_inferior.
11511 * target.h (struct target_ops) <to_terminal_inferior>: Use
11512 TARGET_DEFAULT_IGNORE.
11513
0343661d
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_terminal_init.
11519 * target.h (struct target_ops) <to_terminal_init>: Use
11520 TARGET_DEFAULT_IGNORE.
11521
77cdffe9
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_can_accel_watchpoint_condition.
11527 * target.h (struct target_ops)
11528 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11529
d03655e4
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_region_ok_for_hw_watchpoint.
11535 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11536 Use TARGET_DEFAULT_FUNC.
11537
65f160a9
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_watchpoint_addr_within_range.
11543 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11544 Use TARGET_DEFAULT_FUNC.
11545
61dd109f
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_remove_watchpoint.
11551 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11552 TARGET_DEFAULT_NORETURN.
11553
016facd4
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_insert_watchpoint.
11559 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11560 TARGET_DEFAULT_RETURN.
11561
418dabac
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_remove_hw_breakpoint.
11567 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11568 TARGET_DEFAULT_RETURN.
11569
61b371f9
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_insert_hw_breakpoint.
11575 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11576 TARGET_DEFAULT_RETURN.
11577
52b51d06
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_can_use_hw_breakpoint.
11583 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11584 TARGET_DEFAULT_RETURN.
11585
f86e59b2
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_files_info.
11591 * target.h (struct target_ops) <to_files_info>: Use
11592 TARGET_DEFAULT_IGNORE.
11593
6c628163
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_store.
11599 * target.h (struct target_ops) <to_store>: Use
11600 TARGET_DEFAULT_NORETURN.
11601
bebd3233
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_post_attach.
11607 * target.h (struct target_ops) <to_post_attach>: Use
11608 TARGET_DEFAULT_IGNORE.
11609
a53f3625
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_rcmd.
11615 (default_rcmd): New function.
11616 (do_monitor_command): Unconditionally delegate.
11617 * target.h (struct target_ops) <to_rmcd>: Use
11618 TARGET_DEFAULT_FUNC.
11619
e9a29200
TT
116202014-02-19 Tom Tromey <tromey@redhat.com>
11621
11622 * target-delegates.c: Rebuild.
11623 * target.c (init_dummy_target): Don't initialize to_attach.
11624 (target_attach): Unconditionally delegate.
11625 * target.h (struct target_ops) <to_attach>: Use
11626 TARGET_DEFAULT_FUNC.
11627
09da0d0a
TT
116282014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target-delegates.c: Rebuild.
11631 * target.c (target_detach): Unconditionally delegate.
11632 (init_dummy_target): Don't initialize to_detach.
11633 * target.h (struct target_ops) <to_detach>: Use
11634 TARGET_DEFAULT_IGNORE.
11635
5436ff03
TT
116362014-02-19 Tom Tromey <tromey@redhat.com>
11637
11638 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11639 Add argument.
11640 (target_augmented_libraries_svr4_read): Add argument.
11641 * target.c (update_current_target): Update.
11642 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11643 argument.
11644
f0d960ea
TT
116452014-02-19 Tom Tromey <tromey@redhat.com>
11646
11647 * target.h (struct target_ops) <to_call_history_range>: Add
11648 argument.
11649 * target.c (target_call_history_range): Add argument.
11650 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11651 argument.
11652 (record_btrace_call_history_from): Update.
11653
ec0aea04
TT
116542014-02-19 Tom Tromey <tromey@redhat.com>
11655
11656 * target.h (struct target_ops) <to_call_history_from>: Add
11657 argument.
11658 * target.c (target_call_history_from): Add argument.
11659 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11660 argument.
11661
5df2fcba
TT
116622014-02-19 Tom Tromey <tromey@redhat.com>
11663
11664 * target.h (struct target_ops) <to_call_history>: Add argument.
11665 * target.c (target_call_history): Add argument.
11666 * record-btrace.c (record_btrace_call_history): Add 'self'
11667 argument.
11668
4e99c6b7
TT
116692014-02-19 Tom Tromey <tromey@redhat.com>
11670
11671 * target.h (struct target_ops) <to_insn_history_range>: Add
11672 argument.
11673 * target.c (target_insn_history_range): Add argument.
11674 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11675 argument.
11676 (record_btrace_insn_history_from): Update.
11677
9abc3ff3
TT
116782014-02-19 Tom Tromey <tromey@redhat.com>
11679
11680 * target.h (struct target_ops) <to_insn_history_from>: Add
11681 argument.
11682 * target.c (target_insn_history_from): Add argument.
11683 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11684 argument.
11685
7a6c5609
TT
116862014-02-19 Tom Tromey <tromey@redhat.com>
11687
11688 * target.h (struct target_ops) <to_insn_history>: Add argument.
11689 * target.c (target_insn_history): Add argument.
11690 * record-btrace.c (record_btrace_insn_history): Add 'self'
11691 argument.
11692
606183ac
TT
116932014-02-19 Tom Tromey <tromey@redhat.com>
11694
11695 * target.h (struct target_ops) <to_goto_record>: Add argument.
11696 * target.c (target_goto_record): Add argument.
11697 * record-full.c (record_full_goto): Add 'self' argument.
11698 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11699
307a1b91
TT
117002014-02-19 Tom Tromey <tromey@redhat.com>
11701
11702 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11703 * target.c (target_goto_record_end): Add argument.
11704 * record-full.c (record_full_goto_end): Add 'self' argument.
11705 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11706
08475817
TT
117072014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target.h (struct target_ops) <to_goto_record_begin>: Add
11710 argument.
11711 * target.c (target_goto_record_begin): Add argument.
11712 * record-full.c (record_full_goto_begin): Add 'self' argument.
11713 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11714 argument.
11715
1c63c994
TT
117162014-02-19 Tom Tromey <tromey@redhat.com>
11717
11718 * target.h (struct target_ops) <to_record_is_replaying>: Add
11719 argument.
11720 * target.c (target_record_is_replaying): Add argument.
11721 * record-full.c (record_full_is_replaying): Add 'self' argument.
11722 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11723 argument.
11724 (record_btrace_xfer_partial, record_btrace_store_registers)
11725 (record_btrace_prepare_to_store, record_btrace_resume)
11726 (record_btrace_wait, record_btrace_decr_pc_after_break)
11727 (record_btrace_find_new_threads, record_btrace_thread_alive):
11728 Update.
11729
d1b55219
TT
117302014-02-19 Tom Tromey <tromey@redhat.com>
11731
11732 * target.h (struct target_ops) <to_delete_record>: Add argument.
11733 * target.c (target_delete_record): Add argument.
11734 * record-full.c (record_full_delete): Add 'self' argument.
11735
1390f529
TT
117362014-02-19 Tom Tromey <tromey@redhat.com>
11737
11738 * target.h (struct target_ops) <to_save_record>: Add argument.
11739 * target.c (target_save_record): Add argument.
11740 * record-full.c (record_full_save): Add 'self' argument.
11741 (record_full_save): Add 'self' argument.
11742
630d6a4a
TT
117432014-02-19 Tom Tromey <tromey@redhat.com>
11744
11745 * target.h (struct target_ops) <to_info_record>: Add argument.
11746 * target.c (target_info_record): Add argument.
11747 * record.c (info_record_command): Add argument.
11748 * record-full.c (record_full_info): Add 'self' argument.
11749 * record-btrace.c (record_btrace_info): Add 'self' argument.
11750
c6cd7c02
TT
117512014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11754 * target.c (target_stop_recording): Add argument.
11755 * record.c (record_stop): Add argument.
11756 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11757 argument.
11758
39c49f83
TT
117592014-02-19 Tom Tromey <tromey@redhat.com>
11760
11761 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11762 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11763 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11764 argument.
11765 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11766 (_initialize_amd64_linux_nat): Use it.
11767 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11768 (_initialize_i386_linux_nat): Use it.
11769
1777056d
TT
117702014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11773 * target.c (target_teardown_btrace): Add argument.
11774 * remote.c (remote_teardown_btrace): Add 'self' argument.
11775 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11776 argument.
11777 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11778 argument.
11779
25e95349
TT
117802014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11783 * target.c (target_disable_btrace): Add argument.
11784 * remote.c (remote_disable_btrace): Add 'self' argument.
11785 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11786 argument.
11787 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11788 argument.
11789
e3c49f88
TT
117902014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11793 * target.c (target_enable_btrace): Add argument.
11794 * remote.c (remote_enable_btrace): Add 'self' argument.
11795 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11796 argument.
11797 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11798 argument.
11799
fe38f897
TT
118002014-02-19 Tom Tromey <tromey@redhat.com>
11801
11802 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11803 (target_can_use_agent): Add argument.
11804 * target.c (update_current_target): Update.
11805 * remote.c (remote_can_use_agent): Add 'self' argument.
11806 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11807
2c152180
TT
118082014-02-19 Tom Tromey <tromey@redhat.com>
11809
11810 * target.h (struct target_ops) <to_use_agent>: Add argument.
11811 (target_use_agent): Add argument.
11812 * target.c (update_current_target): Update.
11813 * remote.c (remote_use_agent): Add 'self' argument.
11814 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11815
a893e81f
TT
118162014-02-19 Tom Tromey <tromey@redhat.com>
11817
11818 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11819 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11820 (target_traceframe_info): Add argument.
11821 * target.c (update_current_target): Update.
11822 * remote.c (remote_traceframe_info): Add 'self' argument.
11823 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11824
c686c57f
TT
118252014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target.h (target_static_tracepoint_markers_by_strid): Add
11828 argument.
11829 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11830 'self' argument.
11831 * target.c (update_current_target): Update.
11832 * remote.c (struct target_ops)
11833 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11834 * linux-nat.c (struct target_ops)
11835 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11836
61fc905d
TT
118372014-02-19 Tom Tromey <tromey@redhat.com>
11838
11839 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11840 Add argument.
11841 (target_static_tracepoint_marker_at): Add argument.
11842 * target.c (update_current_target): Update.
11843 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11844 argument.
11845
c378d69d
TT
118462014-02-19 Tom Tromey <tromey@redhat.com>
11847
11848 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11849 (target_set_permissions): Add argument.
11850 * target.c (update_current_target): Update.
11851 * remote.c (remote_set_permissions): Add 'self' argument.
11852 (remote_start_remote): Update.
11853
bd7ae0f5
TT
118542014-02-19 Tom Tromey <tromey@redhat.com>
11855
11856 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11857 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11858 (target_get_tib_address): Add argument.
11859 * target.c (update_current_target): Update.
11860 * remote.c (remote_get_tib_address): Add 'self' argument.
11861
d9e68a2c
TT
118622014-02-19 Tom Tromey <tromey@redhat.com>
11863
11864 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11865 (target_set_trace_notes): Add argument.
11866 * target.c (update_current_target): Update.
11867 * remote.c (remote_set_trace_notes): Add 'self' argument.
11868
4da384be
TT
118692014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11872 argument.
11873 (target_set_trace_buffer_size): Add argument.
11874 * target.c (update_current_target): Update.
11875 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11876
736d5b1f
TT
118772014-02-19 Tom Tromey <tromey@redhat.com>
11878
11879 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11880 argument.
11881 (target_set_circular_trace_buffer): Add argument.
11882 * target.c (update_current_target): Update.
11883 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11884 argument.
11885
37b25738
TT
118862014-02-19 Tom Tromey <tromey@redhat.com>
11887
11888 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11889 argument.
11890 (target_set_disconnected_tracing): Add argument.
11891 * target.c (update_current_target): Update.
11892 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11893
0e67620a
TT
118942014-02-19 Tom Tromey <tromey@redhat.com>
11895
11896 * target.h (struct target_ops)
11897 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11898 (target_get_min_fast_tracepoint_insn_len): Add argument.
11899 * target.c (update_current_target): Update.
11900 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11901 argument.
11902
88ee6f45
TT
119032014-02-19 Tom Tromey <tromey@redhat.com>
11904
11905 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11906 argument.
11907 (target_get_raw_trace_data): Add argument.
11908 * target.c (update_current_target): Update.
11909 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11910
181e3713
TT
119112014-02-19 Tom Tromey <tromey@redhat.com>
11912
11913 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11914 Add argument.
11915 (target_upload_trace_state_variables): Add argument.
11916 * target.c (update_current_target): Update.
11917 * remote.c (remote_upload_trace_state_variables): Add 'self'
11918 argument.
11919 (remote_start_remote): Update.
11920
ab6617cc
TT
119212014-02-19 Tom Tromey <tromey@redhat.com>
11922
11923 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11924 argument.
11925 (target_upload_tracepoints): Add argument.
11926 * target.c (update_current_target): Update.
11927 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11928 (remote_start_remote): Update.
11929
dc3decaf
TT
119302014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11933 (target_save_trace_data): Add argument.
11934 * target.c (update_current_target): Update.
11935 * remote.c (remote_save_trace_data): Add 'self' argument.
11936
4011015b
TT
119372014-02-19 Tom Tromey <tromey@redhat.com>
11938
11939 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11940 argument.
11941 * target.h (struct target_ops)
11942 <to_get_trace_state_variable_value>: Add argument.
11943 (target_get_trace_state_variable_value): Add argument.
11944 * target.c (update_current_target): Update.
11945 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11946 argument.
11947 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11948
bd4c6793
TT
119492014-02-19 Tom Tromey <tromey@redhat.com>
11950
11951 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11952 * target.h (struct target_ops) <to_trace_find>: Add argument.
11953 (target_trace_find): Add argument.
11954 * target.c (update_current_target): Update.
11955 * remote.c (remote_trace_find): Add 'self' argument.
11956 * ctf.c (ctf_trace_find): Add 'self' argument.
11957
74499f1b
TT
119582014-02-19 Tom Tromey <tromey@redhat.com>
11959
11960 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11961 (target_trace_stop): Add argument.
11962 * target.c (update_current_target): Update.
11963 * remote.c (remote_trace_stop): Add 'self' argument.
11964
db90e85c
TT
119652014-02-19 Tom Tromey <tromey@redhat.com>
11966
11967 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11968 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11969 argument.
11970 (target_get_tracepoint_status): Add argument.
11971 * target.c (update_current_target): Update.
11972 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11973
8bd200f1
TT
119742014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11977 * target.h (struct target_ops) <to_get_trace_status>: Add
11978 argument.
11979 (target_get_trace_status): Add argument.
11980 * target.c (update_current_target): Update.
11981 * remote.c (remote_get_trace_status): Add 'self' argument.
11982 (remote_start_remote, remote_can_download_tracepoint): Update.
11983 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11984
e2d1aae3
TT
119852014-02-19 Tom Tromey <tromey@redhat.com>
11986
11987 * target.h (struct target_ops) <to_trace_start>: Add argument.
11988 (target_trace_start): Add argument.
11989 * target.c (update_current_target): Update.
11990 * remote.c (remote_trace_start): Add 'self' argument.
11991
583f9a86
TT
119922014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11995 Add argument.
11996 (target_trace_set_readonly_regions): Add argument.
11997 * target.c (update_current_target): Update.
11998 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11999 argument.
12000
780b049c
TT
120012014-02-19 Tom Tromey <tromey@redhat.com>
12002
12003 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12004 argument.
12005 (target_disable_tracepoint): Add argument.
12006 * target.c (update_current_target): Update.
12007 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12008
46670d57
TT
120092014-02-19 Tom Tromey <tromey@redhat.com>
12010
12011 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12012 argument.
12013 (target_enable_tracepoint): Add argument.
12014 * target.c (update_current_target): Update.
12015 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12016
559d2b81
TT
120172014-02-19 Tom Tromey <tromey@redhat.com>
12018
12019 * target.h (struct target_ops) <to_download_trace_state_variable>:
12020 Add argument.
12021 (target_download_trace_state_variable): Add argument.
12022 * target.c (update_current_target): Update.
12023 * remote.c (remote_download_trace_state_variable): Add 'self'
12024 argument.
12025
a52a8357
TT
120262014-02-19 Tom Tromey <tromey@redhat.com>
12027
12028 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12029 argument.
12030 (target_can_download_tracepoint): Add argument.
12031 * target.c (update_current_target): Update.
12032 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12033
548f7808
TT
120342014-02-19 Tom Tromey <tromey@redhat.com>
12035
12036 * target.h (struct target_ops) <to_download_tracepoint>: Add
12037 argument.
12038 (target_download_tracepoint): Add argument.
12039 * target.c (update_current_target): Update.
12040 * remote.c (remote_download_tracepoint): Add 'self' argument.
12041
ecae04e1
TT
120422014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target.h (struct target_ops) <to_trace_init>: Add argument.
12045 (target_trace_init): Add argument.
12046 * target.c (update_current_target): Update.
12047 * remote.c (remote_trace_init): Add 'self' argument.
12048
fab5aa7c
TT
120492014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12052 * target.c (target_fileio_readlink): Add argument.
12053 * remote.c (remote_hostio_readlink): Add 'self' argument.
12054 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12055
dbbca37d
TT
120562014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12059 * target.c (target_fileio_unlink): Add argument.
12060 * remote.c (remote_hostio_unlink): Add 'self' argument.
12061 (remote_file_delete): Update.
12062 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12063
df39ea25
TT
120642014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12067 * target.c (target_fileio_close): Add argument.
12068 * remote.c (remote_hostio_close): Add 'self' argument.
12069 (remote_hostio_close_cleanup): Update.
12070 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12071 Update.
12072 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12073
a3be983c
TT
120742014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12077 * target.c (target_fileio_pread): Add argument.
12078 * remote.c (remote_hostio_pread): Add 'self' argument.
12079 (remote_bfd_iovec_pread, remote_file_get): Update.
12080 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12081
0d866f62
TT
120822014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12085 * target.c (target_fileio_pwrite): Add argument.
12086 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12087 (remote_file_put): Update.
12088 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12089
cd897586
TT
120902014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12093 * target.c (target_fileio_open): Add argument.
12094 * remote.c (remote_hostio_open): Add 'self' argument.
12095 (remote_bfd_iovec_open): Add 'self' argument.
12096 (remote_file_put): Add 'self' argument.
12097 (remote_file_get): Add 'self' argument.
12098 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12099
78eff0ec
TT
121002014-02-19 Tom Tromey <tromey@redhat.com>
12101
12102 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12103 Add argument.
12104 (target_can_run_breakpoint_commands): Add argument.
12105 * target.c (update_current_target): Update.
12106 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12107 argument.
12108 (remote_insert_breakpoint): Add 'self' argument.
12109 (remote_insert_hw_breakpoint): Add 'self' argument.
12110 (remote_can_run_breakpoint_commands): Add 'self' argument.
12111
efcc2da7
TT
121122014-02-19 Tom Tromey <tromey@redhat.com>
12113
12114 * target.h (struct target_ops)
12115 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12116 (target_supports_evaluation_of_breakpoint_conditions): Add
12117 argument.
12118 * target.c (update_current_target): Update.
12119 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12120 argument.
12121 (remote_insert_breakpoint): Add 'self' argument.
12122 (remote_insert_hw_breakpoint): Add 'self' argument.
12123 (remote_supports_cond_breakpoints): Add 'self' argument.
12124
6de37a3a
TT
121252014-02-19 Tom Tromey <tromey@redhat.com>
12126
12127 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12128 argument.
12129 (target_supports_string_tracing): Add argument.
12130 * target.c (update_current_target): Update.
12131 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12132
2bfc0540
TT
121332014-02-19 Tom Tromey <tromey@redhat.com>
12134
12135 * target.h (struct target_ops)
12136 <to_supports_disable_randomization>: Add argument.
12137 * target.c (find_default_supports_disable_randomization): Add
12138 argument.
12139 (target_supports_disable_randomization): Add argument.
12140 (find_default_supports_disable_randomization): Add 'self'
12141 argument.
12142 * remote.c (extended_remote_supports_disable_randomization): Add
12143 'self' argument.
12144 (remote_supports_disable_randomization): Add 'self' argument.
12145 (extended_remote_create_inferior): Update.
12146 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12147 'self' argument.
12148
7d178d6a
TT
121492014-02-19 Tom Tromey <tromey@redhat.com>
12150
12151 * target.h (struct target_ops)
12152 <to_supports_enable_disable_tracepoint>: Add argument.
12153 (target_supports_enable_disable_tracepoint): Add argument.
12154 * target.c (update_current_target): Update.
12155 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12156 argument.
12157
86ce2668
TT
121582014-02-19 Tom Tromey <tromey@redhat.com>
12159
12160 * target.h (struct target_ops) <to_supports_multi_process>: Add
12161 argument.
12162 (target_supports_multi_process): Add argument.
12163 * target.c (update_current_target): Update.
12164 * remote.c (remote_supports_multi_process): Add 'self' argument.
12165 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12166 argument.
12167 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12168 argument.
12169
4c612759
TT
121702014-02-19 Tom Tromey <tromey@redhat.com>
12171
12172 * target.h (struct target_ops) <to_execution_direction>: Add
12173 argument.
12174 (target_execution_direction): Add argument.
12175 * target.c (default_execution_direction): Add 'self' argument.
12176 * record-full.c (record_full_execution_direction): Add 'self'
12177 argument.
12178
19db3e69
TT
121792014-02-19 Tom Tromey <tromey@redhat.com>
12180
12181 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12182 argument.
12183 (target_can_execute_reverse): Add argument.
12184 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12185 * record-full.c (record_full_can_execute_reverse): Add 'self'
12186 argument.
12187 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12188 argument.
12189
1e6b91a4
TT
121902014-02-19 Tom Tromey <tromey@redhat.com>
12191
12192 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12193 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12194 argument.
12195 (target_get_ada_task_ptid): Add argument.
12196 * target.c (update_current_target): Update.
12197 (default_get_ada_task_ptid): Add 'self' argument.
12198 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12199 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12200 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12201 argument.
12202 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12203 argument.
12204 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12205 argument.
12206 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12207 argument.
12208 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12209 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12210 argument.
12211
3c80fb48
TT
122122014-02-19 Tom Tromey <tromey@redhat.com>
12213
12214 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12215 (target_goto_bookmark): Add argument.
12216 * target.c (dummy_goto_bookmark): Add 'self' argument.
12217 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12218
dd0e2830
TT
122192014-02-19 Tom Tromey <tromey@redhat.com>
12220
12221 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12222 (target_get_bookmark): Add argument.
12223 * target.c (dummy_get_bookmark): Add 'self' argument.
12224 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12225
fc6691b2
TT
122262014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12229 argument.
12230 (target_make_corefile_notes): Add argument.
12231 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12232 * procfs.c (procfs_make_note_section): Add 'self' argument.
12233 (procfs_make_note_section): Add 'self' argument.
12234 (procfs_make_note_section): Add 'self' argument.
12235 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12236 argument.
12237 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12238 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12239 * exec.c (exec_make_note_section): Add 'self' argument.
12240 (exec_make_note_section): Add 'self' argument.
12241
2e73927c
TT
122422014-02-19 Tom Tromey <tromey@redhat.com>
12243
12244 * target.h (struct target_ops) <to_find_memory_regions>: Add
12245 argument.
12246 (target_find_memory_regions): Add argument.
12247 * target.c (dummy_find_memory_regions): Add 'self' argument.
12248 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12249 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12250 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12251 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12252 * exec. (exec_do_find_memory_regions): New global.
12253 (exec_set_find_memory_regions): Rewrite.
12254 (exec_find_memory_regions): New function.
12255 (init_exec_ops): Use exec_find_memory_regions.
12256
2a9a2795
TT
122572014-02-19 Tom Tromey <tromey@redhat.com>
12258
12259 * target.h (struct target_ops) <to_supports_non_stop>: Add
12260 argument.
12261 * target.c (find_default_supports_non_stop): Add argument.
12262 (target_supports_non_stop): Add argument.
12263 (find_default_supports_non_stop): Add 'self' argument.
12264 * remote.c (remote_supports_non_stop): Add 'self' argument.
12265 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12266
4ab76ea3
TT
122672014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * target.h (struct target_ops) <to_log_command>: Add argument.
12270 (target_log_command): Add argument.
12271 * serial.h (serial_log_command): Add 'self' argument.
12272 * serial.c (serial_log_command): Add 'self' argument.
12273
8dd27370
TT
122742014-02-19 Tom Tromey <tromey@redhat.com>
12275
12276 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12277 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12278 argument.
12279 (target_pid_to_exec_file): Add argument.
12280 * target.c (debug_to_pid_to_exec_file): Add argument.
12281 (update_current_target): Update.
12282 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12283 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12284 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12285 (linux_handle_extended_wait): Update.
12286 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12287 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12288 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12289 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12290
1aac633b
TT
122912014-02-19 Tom Tromey <tromey@redhat.com>
12292
12293 * target.h (struct target_ops) <to_rcmd>: Add argument.
12294 (target_rcmd): Add argument.
12295 * target.c (debug_to_rcmd): Add argument.
12296 (update_current_target, do_monitor_command): Update.
12297 * remote.c (remote_rcmd): Add 'self' argument.
12298 * monitor.c (monitor_rcmd): Add 'self' argument.
12299
1eab8a48
TT
123002014-02-19 Tom Tromey <tromey@redhat.com>
12301
12302 * windows-nat.c (windows_stop): Add 'self' argument.
12303 * target.h (struct target_ops) <to_stop>: Add argument.
12304 * target.c (target_stop): Add argument.
12305 (debug_to_stop): Add argument.
12306 (update_current_target): Update.
12307 * remote.c (remote_stop): Add 'self' argument.
12308 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12309 (gdbsim_cntrl_c): Update.
12310 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12311 * procfs.c (procfs_stop): Add 'self' argument.
12312 * nto-procfs.c (procfs_stop): Add 'self' argument.
12313 * monitor.c (monitor_stop): Add 'self' argument.
12314 (monitor_open): Update.
12315 * linux-nat.c (linux_nat_stop): Add argument.
12316 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12317 * gnu-nat.c (gnu_stop): Add 'self' argument.
12318 * darwin-nat.c (darwin_stop): Add 'self' argument.
12319
503a628d
TT
123202014-02-19 Tom Tromey <tromey@redhat.com>
12321
12322 * target.h (struct target_ops) <to_thread_name>: Add argument.
12323 * target.c (target_thread_name): Add argument.
12324 (update_current_target): Update.
12325 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12326
c15906d8
TT
123272014-02-19 Tom Tromey <tromey@redhat.com>
12328
12329 * target.h (struct target_ops) <to_extra_thread_info>: Add
12330 argument.
12331 (target_extra_thread_info): Add argument.
12332 * target.c (update_current_target): Update.
12333 * remote.c (remote_threads_extra_info): Add 'self' argument.
12334 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12335 argument.
12336 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12337 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12338 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12339 argument.
12340 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12341 argument.
12342 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12343 argument.
12344 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12345 argument.
12346
daf5e9b6
TT
123472014-02-19 Tom Tromey <tromey@redhat.com>
12348
12349 * target.h (struct target_ops) <to_program_signals>: Add argument.
12350 * target.c (target_program_signals): Add argument.
12351 * remote.c (remote_program_signals): Add 'self' argument.
12352
94bedb42
TT
123532014-02-19 Tom Tromey <tromey@redhat.com>
12354
12355 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12356 * target.c (target_pass_signals): Add argument.
12357 * remote.c (remote_pass_signals): Add 'self' argument.
12358 (remote_start_remote): Update.
12359 * procfs.c (procfs_pass_signals): Add 'self' argument.
12360 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12361 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12362 (linux_nat_create_inferior, linux_nat_attach): Update.
12363
da82bd6b
TT
123642014-02-19 Tom Tromey <tromey@redhat.com>
12365
12366 * windows-nat.c (windows_can_run): Add 'self' argument.
12367 * target.h (struct target_ops) <to_can_run>: Add argument.
12368 (target_can_run): Add argument.
12369 * target.c (debug_to_can_run): Add argument.
12370 (update_current_target): Update.
12371 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12372 * inf-child.c (inf_child_can_run): Add 'self' argument.
12373 * go32-nat.c (go32_can_run): Add 'self' argument.
12374
d796e1d6
TT
123752014-02-19 Tom Tromey <tromey@redhat.com>
12376
12377 * target.h (struct target_ops) <to_has_exited>: Add argument.
12378 (target_has_exited): Add argument.
12379 * target.c (debug_to_has_exited): Add argument.
12380 (update_current_target): Update.
12381
ff214e67
TT
123822014-02-19 Tom Tromey <tromey@redhat.com>
12383
12384 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12385 argument.
12386 (target_set_syscall_catchpoint): Add argument.
12387 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12388 argument.
12389 * target.c (update_current_target): Update.
12390
758e29d2
TT
123912014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12394 argument.
12395 (target_remove_exec_catchpoint): Add argument.
12396 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12397 (update_current_target): Update.
12398 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12399 argument.
12400
ba025e51
TT
124012014-02-19 Tom Tromey <tromey@redhat.com>
12402
12403 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12404 argument.
12405 (target_insert_exec_catchpoint): Add argument.
12406 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12407 (update_current_target): Update.
12408 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12409 argument.
12410
e98cf0cd
TT
124112014-02-19 Tom Tromey <tromey@redhat.com>
12412
12413 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12414 argument.
12415 (target_remove_vfork_catchpoint): Add argument.
12416 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12417 (update_current_target): Update.
12418 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12419 argument.
12420
3ecc7da0
TT
124212014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12424 argument.
12425 (target_insert_vfork_catchpoint): Add argument.
12426 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12427 (update_current_target): Update.
12428 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12429 argument.
12430
973fc227
TT
124312014-02-19 Tom Tromey <tromey@redhat.com>
12432
12433 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12434 argument.
12435 (target_remove_fork_catchpoint): Add argument.
12436 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12437 (update_current_target): Update.
12438 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12439 argument.
12440
a863b201
TT
124412014-02-19 Tom Tromey <tromey@redhat.com>
12442
12443 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12444 argument.
12445 (target_insert_fork_catchpoint): Add argument.
12446 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12447 (update_current_target): Update.
12448 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12449 argument.
12450
2e97a79e
TT
124512014-02-19 Tom Tromey <tromey@redhat.com>
12452
12453 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12454 argument.
12455 (target_post_startup_inferior): Add argument.
12456 * target.c (debug_to_post_startup_inferior): Add argument.
12457 (update_current_target): Update.
12458 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12459 argument.
12460 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12461 argument.
12462 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12463 argument.
12464 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12465 argument.
12466 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12467 'self' argument.
12468 (super_post_startup_inferior): Likewise.
12469 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12470 'self' argument.
12471 (super_post_startup_inferior): Likewise.
12472 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12473 Add 'self' argument.
12474 (super_post_startup_inferior): Likewise.
12475
71a9f134
TT
124762014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * target.h (struct target_ops) <to_load>: Add argument.
12479 * target.c (target_load): Add argument.
12480 (debug_to_load): Add argument.
12481 (update_current_target): Update.
12482 * remote.c (remote_load): Add 'self' argument.
12483 * remote-sim.c (gdbsim_load): Add 'self' argument.
12484 * remote-mips.c (mips_load): Add 'self' argument.
12485 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12486 * monitor.c (monitor_load): Add 'self' argument.
12487 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12488
0a4f40a2
TT
124892014-02-19 Tom Tromey <tromey@redhat.com>
12490
12491 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12492 (target_terminal_info): Add argument.
12493 * target.c (debug_to_terminal_info): Add argument.
12494 (default_terminal_info): Likewise.
12495 * inflow.c (child_terminal_info): Add 'self' argument.
12496 * inferior.h (child_terminal_info): Add 'self' argument.
12497 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12498
ae3bd431
TT
124992014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12502 argument.
12503 (target_terminal_save_ours): Add argument.
12504 * target.c (debug_to_terminal_save_ours): Add argument.
12505 (update_current_target): Update.
12506 * inflow.c (terminal_save_ours): Add 'self' argument.
12507 * inferior.h (terminal_save_ours): Add 'self' argument.
12508
e3594fd1
TT
125092014-02-19 Tom Tromey <tromey@redhat.com>
12510
12511 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12512 (target_terminal_ours): Add argument.
12513 * target.c (debug_to_terminal_ours): Add argument.
12514 (update_current_target): Update.
12515 * remote.c (remote_terminal_ours): Add 'self' argument.
12516 (remote_close): Update.
12517 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12518 * inflow.c (terminal_ours): Add 'self' argument.
12519 * inferior.h (terminal_ours): Add 'self' argument.
12520 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12521
2e1e1a19
TT
125222014-02-19 Pedro Alves <palves@redhat.com>
12523 Tom Tromey <tromey@redhat.com>
12524
12525 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12526 argument.
12527 (target_terminal_ours_for_output): Add argument.
12528 * target.c (debug_to_terminal_ours_for_output): Add argument.
12529 (update_current_target): Update.
12530 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12531 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12532 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12533
d2f640d4
TT
125342014-02-19 Tom Tromey <tromey@redhat.com>
12535
12536 * target.h (struct target_ops) <to_terminal_inferior>: Add
12537 argument.
12538 * target.c (target_terminal_inferior): Add argument.
12539 (update_current_target): Update.
12540 * remote.c (remote_terminal_inferior): Add 'self' argument.
12541 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12542 * inflow.c (terminal_inferior): Add 'self' argument.
12543 * inferior.h (terminal_inferior): Add 'self' argument.
12544 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12545 (go32_terminal_inferior): Add 'self' argument.
12546
c42bf286
TT
125472014-02-19 Tom Tromey <tromey@redhat.com>
12548
12549 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12550 (target_terminal_init): Add argument.
12551 * target.c (debug_to_terminal_init): Add argument.
12552 (update_current_target): Update.
12553 * inflow.c (terminal_init_inferior): Add 'self' argument.
12554 * inferior.h (terminal_init_inferior): Add 'self' argument.
12555 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12556 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12557
c3a5ff89
TT
125582014-02-19 Tom Tromey <tromey@redhat.com>
12559
12560 * target.h (struct target_ops)
12561 <to_can_accel_watchpoint_condition>: Add argument.
12562 (target_can_accel_watchpoint_condition): Add argument.
12563 * target.c (debug_to_can_accel_watchpoint_condition): Add
12564 argument.
12565 (update_current_target): Update.
12566 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12567 'self' argument.
12568
31568a15
TT
125692014-02-19 Tom Tromey <tromey@redhat.com>
12570
12571 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12572 Add argument.
12573 (target_region_ok_for_hw_watchpoint): Add argument.
12574 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12575 (default_region_ok_for_hw_watchpoint): Add argument.
12576 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12577 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12578 argument.
12579 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12580 argument.
12581 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12582 argument.
12583 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12584 'self' argument.
12585 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12586 'self' argument.
12587 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12588 'self' argument.
12589 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12590 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12591 'self' argument.
12592 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12593 Add 'self' argument.
12594
7bb99c53
TT
125952014-02-19 Tom Tromey <tromey@redhat.com>
12596
12597 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12598 argument.
12599 (target_insert_watchpoint): Add argument.
12600 * target.c (debug_to_insert_watchpoint): Add argument.
12601 (update_current_target): Update.
12602 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12603 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12604 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12605 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12606 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12607 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12608 argument.
12609 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12610 (procfs_insert_hw_watchpoint): Add 'self' argument.
12611 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12612 argument.
12613 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12614 argument.
12615 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12616 argument.
12617 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12618 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12619 argument.
12620 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12621 'self' argument.
12622
11b5219a
TT
126232014-02-19 Tom Tromey <tromey@redhat.com>
12624
12625 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12626 argument.
12627 (target_remove_watchpoint): Add argument.
12628 * target.c (debug_to_remove_watchpoint): Add argument.
12629 (update_current_target): Update.
12630 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12631 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12632 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12633 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12634 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12635 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12636 argument.
12637 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12638 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12639 argument.
12640 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12641 argument.
12642 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12643 argument.
12644 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12645 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12646 argument.
12647 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12648 'self' argument.
12649
a64dc96c
TT
126502014-02-19 Tom Tromey <tromey@redhat.com>
12651
12652 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12653 argument.
12654 (target_remove_hw_breakpoint): Add argument.
12655 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12656 (update_current_target): Update.
12657 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12658 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12659 argument.
12660 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12661 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12662 argument.
12663 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12664 'self' argument.
12665
23a26771
TT
126662014-02-19 Tom Tromey <tromey@redhat.com>
12667
12668 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12669 argument.
12670 (target_insert_hw_breakpoint): Add argument.
12671 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12672 (update_current_target): Update.
12673 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12674 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12675 argument.
12676 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12677 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12678 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12679 argument.
12680 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12681 'self' argument.
12682
5461485a
TT
126832014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12686 argument.
12687 (target_can_use_hardware_watchpoint): Add argument.
12688 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12689 (update_current_target): Update.
12690 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12691 argument.
12692 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12693 argument.
12694 * remote.c (remote_check_watch_resources): Add 'self' argument.
12695 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12696 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12697 argument.
12698 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12699 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12700 argument.
12701 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12702 argument.
12703 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12704 argument.
12705 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12706 argument.
12707 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12708 argument.
12709 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12710 argument.
12711 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12712 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12713 argument.
12714 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12715 'self' argument.
12716
f045800c
TT
127172014-02-19 Tom Tromey <tromey@redhat.com>
12718
12719 * target.h (struct target_ops) <to_post_attach>: Add argument.
12720 (target_post_attach): Add argument.
12721 * target.c (debug_to_post_attach): Add argument.
12722 (update_current_target): Update.
12723 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12724 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12725 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12726 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12727 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12728
de90e03d
TT
127292014-02-19 Tom Tromey <tromey@redhat.com>
12730
12731 * windows-nat.c (windows_close): Add 'self' argument.
12732 * tracepoint.c (tfile_close): Add 'self' argument.
12733 * target.h (struct target_ops) <to_close>: Add argument.
12734 * target.c (target_close): Add argument.
12735 (update_current_target): Update.
12736 * remote.c (remote_close): Add 'self' argument.
12737 * remote-sim.c (gdbsim_close): Add 'self' argument.
12738 * remote-mips.c (mips_close): Add 'self' argument.
12739 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12740 * record-full.c (record_full_close): Add 'self' argument.
12741 * record-btrace.c (record_btrace_close): Add 'self' argument.
12742 * monitor.h (monitor_close): Add 'self' argument.
12743 * monitor.c (monitor_close): Add 'self' argument.
12744 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12745 * linux-nat.c (linux_nat_close): Add argument.
12746 * go32-nat.c (go32_close): Add 'self' argument.
12747 * exec.c (exec_close_1): Add 'self' argument.
12748 * ctf.c (ctf_close): Add 'self' argument.
12749 * corelow.c (core_close): Add 'self' argument.
12750 (core_close_cleanup): Update.
12751 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12752 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12753
9dd130a0
TT
127542014-02-19 Tom Tromey <tromey@redhat.com>
12755
12756 * remote.c (remote_load): New function.
12757 (init_remote_ops): Use it.
12758
46917d26
TT
127592014-02-19 Tom Tromey <tromey@redhat.com>
12760
12761 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12762 argument.
12763 * common/linux-btrace.h (linux_supports_btrace): Update.
12764 * remote.c (remote_supports_btrace): Add "self" argument.
12765 * target-delegates.c: Rebuild.
12766 * target.c (target_supports_btrace): Remove.
12767 * target.h (struct target_ops) <to_supports_btrace>: Add
12768 target_ops argument.
12769 (target_supports_btrace): New define.
12770
6b84065d
TT
127712014-02-19 Tom Tromey <tromey@redhat.com>
12772
12773 * record-full.c (record_full_beneath_to_resume_ops)
12774 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12775 (record_full_beneath_to_wait)
12776 (record_full_beneath_to_store_registers_ops)
12777 (record_full_beneath_to_store_registers)
12778 (record_full_beneath_to_xfer_partial_ops)
12779 (record_full_beneath_to_xfer_partial)
12780 (record_full_beneath_to_insert_breakpoint_ops)
12781 (record_full_beneath_to_insert_breakpoint)
12782 (record_full_beneath_to_remove_breakpoint_ops)
12783 (record_full_beneath_to_remove_breakpoint)
12784 (record_full_beneath_to_stopped_by_watchpoint)
12785 (record_full_beneath_to_stopped_data_address)
12786 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12787 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12788 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12789 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12790 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12791 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12792 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12793 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12794 (record_full_resume, record_full_wait_1)
12795 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12796 (record_full_store_registers, record_full_xfer_partial)
12797 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12798 (record_full_async, record_full_core_xfer_partial): Use target
12799 delegation.
12800 * target-delegates.c: Rebuild.
12801 * target.c (current_xfer_partial): Remove.
12802 (update_current_target): Do not INHERIT or de_fault
12803 to_insert_breakpoint, to_remove_breakpoint,
12804 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12805 to_is_async_p, to_async. Do not set to_xfer_partial field.
12806 (default_xfer_partial): Simplify.
12807 (current_xfer_partial): Remove.
12808 (target_wait, target_resume): Simplify.
12809 (find_default_can_async_p, find_default_is_async_p): Update.
12810 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12811 to_xfer_partial, to_stopped_by_watchpoint,
12812 to_stopped_data_address.
12813 (target_store_registers): Simplify.
12814 (forward_target_remove_breakpoint)
12815 (forward_target_insert_breakpoint): Remove.
12816 (target_remove_breakpoint, target_insert_breakpoint)
12817 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12818 * target.h (struct target_ops) <to_resume, to_wait,
12819 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12820 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12821 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12822 markup.
12823 (forward_target_remove_breakpoint)
12824 (forward_target_insert_breakpoint): Remove.
12825 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12826 directly.
12827 (record_btrace_insert_breakpoint): Delegate directly.
12828
1101cb7b
TT
128292014-02-19 Tom Tromey <tromey@redhat.com>
12830
12831 PR build/7701:
12832 * target-delegates.c: New file.
12833 * target.c: Include target-delegates.c.
12834 (init_dummy_target): Call install_dummy_methods.
12835 (complete_target_initialization): Call install_delegators.
12836 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12837 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12838 * make-target-delegates: New file.
12839
8b06beed
TT
128402014-02-19 Tom Tromey <tromey@redhat.com>
12841
12842 * record.c (find_record_target): Use find_target_at.
12843 * target.c (find_target_at): New function.
12844 * target.h (find_target_at): Declare.
12845
6a109b6b
TT
128462014-02-19 Tom Tromey <tromey@redhat.com>
12847
12848 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12849 Add 'ops' argument.
12850 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12851 'ops' argument.
12852 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12853 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12854 'ops' argument.
12855 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12856 argument.
12857 * linux-nat.c (save_sigtrap): Update.
12858 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12859 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12860 (linux_nat_close): Update.
12861 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12862 argument.
12863 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12864 argument.
12865 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12866 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12867 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12868 (tmp_to_async): Add 'ops' argument.
12869 (record_full_stopped_by_watchpoint, record_full_async)
12870 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12871 argument.
12872 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12873 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12874 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12875 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12876 (remote_is_async_p, remote_async): Add 'ops' argument.
12877 (remote_stopped_data_address): Update.
12878 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12879 * target.c (update_current_target)
12880 (find_default_can_async_p, find_default_is_async_p): Update.
12881 (init_dummy_target): Update.
12882 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12883 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12884 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12885 (target_can_async_p, target_is_async_p, target_async)
12886 (target_stopped_by_watchpoint): Update.
12887
e095146b
YQ
128882014-02-19 Yao Qi <yao@codesourcery.com>
12889
12890 PR gdb/16220
12891 * gdbarch.sh: Remove startup_gdbarch.
12892 * gdbarch.c: Regenerated.
12893 * gdbarch.h: Likewise.
12894
bc3c6b36
KB
128952014-02-17 Kevin Buettner <kevinb@redhat.com>
12896
12897 * rl78-tdep.c (rl78_g10_register_name): New function.
12898 (rl78_return_value): Add g10 support.
12899 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12900 g10.
12901
98dc0167 129022014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12903
12904 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12905 (SUBDIR_GUILE_SRCS): Ditto.
12906 (scm-gsmob.o): Ditto.
12907
842c05cd
YQ
129082014-02-17 Yao Qi <yao@codesourcery.com>
12909
12910 * gnu-nat.c (ILL_RPC): Declare defined function.
12911
25c0bd04
YQ
129122014-02-17 Yao Qi <yao@codesourcery.com>
12913
12914 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12915 mach_msg_type_number_t.
12916 (gnu_write_inferior): Likewise.
12917
a9a758e3
YQ
129182014-02-17 Yao Qi <yao@codesourcery.com>
12919
12920 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12921 in format string.
12922 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12923 (inf_validate_procs, inf_signal): Likewise.
12924 (S_exception_raise_request): Likewise.
12925 (do_mach_notify_dead_name): Likewise.
12926 (steal_exc_port): Likewise.
12927 (gnu_read_inferior): Change 'copy_count''s type to
12928 mach_msg_type_number_t.
12929 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12930 format string.
12931
bae8023e
TS
129322014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12933
c82f56d9
TS
12934 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12935 flag. Adjust all users; in particular...
12936 (gnu_wait): ..., don't decrement its value in here...
12937 (gnu_create_inferior): ..., and instead set the flag in here,
12938 around the startup_inferior call, and call that one with
12939 START_INFERIOR_TRAPS_EXPECTED.
12940
3398af6a
TS
12941 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12942 (ILL_RPC): ... new macro.
12943 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12944 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12945 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12946 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12947 functions with ILL_RPC macro.
12948 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12949 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12950 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12951 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12952 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12953 (S_proc_getlogin_reply, S_proc_getsid_reply)
12954 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12955 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12956 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12957 (S_proc_getnports_reply, S_proc_is_important_reply)
12958 (S_proc_get_code_reply): New stub functions, generated with
12959 ILL_RPC macro.
12960
d47642c9
TS
12961 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12962 collected the type check structures.
12963
bae8023e
TS
12964 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12965
8a55ffb0
DE
129662014-02-14 Doug Evans <dje@google.com>
12967
12968 * target.c (target_write_partial): Fix result type.
12969
c2853f3d
JM
129702014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12971
12972 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12973 the proper offsets to access fpregset_t.
12974
ac61d2db
SA
129752014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12976
12977 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12978 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12979 * h8300-tdep.c (setmachinelist): Remove global.
12980 * hppa-tdep.c (hppa_sigtramp): Remove global.
12981 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12982 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12983 * ravenscar-thread.c (update_target_observer): Remove global.
12984 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12985
9d2d0b8b
TT
129862014-02-12 Tom Tromey <tromey@redhat.com>
12987
12988 * common/rsp-low.c: Update comments.
12989 * common/rsp-low.h: Update comments.
12990
a7191e8b
TT
129912014-02-12 Tom Tromey <tromey@redhat.com>
12992
12993 * common/rsp-low.c (convert_ascii_to_int): Remove.
12994 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12995
ff0e980e
TT
129962014-02-12 Tom Tromey <tromey@redhat.com>
12997
12998 * common/rsp-low.h (unhexify): Don't declare.
12999 * common/rsp-low.c (unhexify): Remove.
13000
e9371aff
TT
130012014-02-12 Tom Tromey <tromey@redhat.com>
13002
13003 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13004 * common/rsp-low.c (convert_int_to_ascii): Remove.
13005
971dc0b8
TT
130062014-02-12 Tom Tromey <tromey@redhat.com>
13007
13008 * common/rsp-low.h (hexify): Don't declare.
13009 * common/rsp-low.c (hexify): Remove.
13010
0a822afb
TT
130112014-02-12 Tom Tromey <tromey@redhat.com>
13012
13013 * common/rsp-low.c (hexify): Never take strlen of argument.
13014
9f1b45b0
TT
130152014-02-12 Tom Tromey <tromey@redhat.com>
13016
13017 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13018 * remote.c (extended_remote_run, remote_rcmd)
13019 (remote_download_trace_state_variable, remote_save_trace_data)
13020 (remote_set_trace_notes): Update.
13021 * tracepoint.c (encode_source_string, tfile_write_status)
13022 (tfile_write_uploaded_tsv): Update.
13023
9c3d6531
TT
130242014-02-12 Tom Tromey <tromey@redhat.com>
13025
13026 * tracepoint.c: Include rsp-low.h.
13027 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13028 * remote.c: Include rsp-low.h.
13029 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13030 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13031 (remote_unescape_input): Move to common/rsp-low.c.
13032 * common/rsp-low.h: New file.
13033 * common/rsp-low.c: New file.
13034 * Makefile.in (SFILES): Add common/rsp-low.c.
13035 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13036 (COMMON_OBS): Add rsp-low.o.
13037 (rsp-low.o): New target.
13038
01fd3ea5
TT
130392014-02-12 Tom Tromey <tromey@redhat.com>
13040
13041 * utils.h: Include print-utils.h.
13042 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13043 (int_string, core_addr_to_string, core_addr_to_string_nz)
13044 (hex_string, hex_string_custom): Don't declare.
13045 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13046 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13047 (hex_string_custom, int_string, core_addr_to_string)
13048 (core_addr_to_string_nz, host_address_to_string): Move to
13049 common/print-utils.c.
13050 * common/print-utils.h: New file.
13051 * common/print-utils.c: New file
13052 * Makefile.in (SFILES): Add common/print-utils.c.
13053 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13054 (COMMON_OBS): Add print-utils.o.
13055 (print-utils.o): New target.
13056
9fb50108
TT
130572014-02-12 Tom Tromey <tromey@redhat.com>
13058
13059 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13060
0548b5db
MK
130612014-02-12 Mark Kettenis <kettenis@gnu.org>
13062
13063 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13064
493443a4
MK
130652014-02-12 Mark Kettenis <kettenis@gnu.org>
13066
13067 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13068 if a PT_IO ptrace request returns sucessfully but indicates that 0
13069 bytes were transferred.
13070
706d0883
PA
130712014-02-12 Pedro Alves <palves@redhat.com>
13072 Kevin Buettner <kevinb@redhat.com>
13073
13074 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13075 TYPE_INSTANCE_FLAG_CODE_SPACE.
13076
5caa2f0b
PA
130772014-02-12 Pedro Alves <palves@redhat.com>
13078
13079 * h8300-tdep.c (pseudo_from_raw_register)
13080 (raw_from_pseudo_register): New functions.
13081 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13082 them.
13083
76fd5f74
PA
130842014-02-12 Pedro Alves <palves@redhat.com>
13085
13086 * h8300-tdep.c (h8300_register_sim_regno): New function.
13087 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13088 gdbarch_register_sim_regno hook.
13089
8f008406
SA
130902014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13091
13092 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13093
195abc10
SA
130942014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13095
13096 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13097
93ffa5b9
MK
130982014-02-12 Mark Kettenis <kettenis@gnu.org>
13099
13100 * obsd-tdep.h (obsd_init_abi): New prototype.
13101 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13102 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13103 (obsd_init_abi): New functions.
13104 * i386obsd-tdep.c: Include "obsd-tdep.h".
13105 (i386obsd_init_abi): Call obsd_init_abi.
13106 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13107 (amd64obsd_init_abi): Call obsd_init_abi.
13108 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13109 obsd-tdep.c to gdb_target_obs.
13110
49caec94
JM
131112014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13112
13113 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13114 double float arguments to 16-byte in the argument slots.
13115
e1402065
DE
131162014-02-11 Doug Evans <xdje42@gmail.com>
13117
13118 * configure.ac: Don't crash if pkg-config is not found and guile
13119 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13120 in guile checks.
13121 * configure: Regenerate.
13122
edcc890f
YQ
131232014-02-11 Yao Qi <yao@codesourcery.com>
13124
13125 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13126 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13127 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13128 * gnu-nat.c (gnu_xfer_memory): Likewise.
13129 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13130 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13131 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13132 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13133
9b409511
YQ
131342014-02-11 Yao Qi <yao@codesourcery.com>
13135
13136 * target.h (enum target_xfer_error): Rename to ...
13137 (enum target_xfer_status): ... it. New. All users updated.
13138 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13139 New.
13140 (TARGET_XFER_STATUS_ERROR_P): New macro.
13141 (target_xfer_error_to_string): Remove declaration.
13142 (target_xfer_status_to_string): Declare.
13143 (target_xfer_partial_ftype): Adjust it.
13144 (struct target_ops) <to_xfer_partial>: Return
13145 target_xfer_status. Add argument xfered_len. Update
13146 comments.
13147 * target.c (target_xfer_error_to_string): Rename to ...
13148 (target_xfer_status_to_string): ... it. New. All callers
13149 updated.
13150 (target_read_live_memory): Likewise. Call target_xfer_partial
13151 instead of target_read.
13152 (memory_xfer_live_readonly_partial): Return
13153 target_xfer_status. Add argument xfered_len.
13154 (raw_memory_xfer_partial): Likewise.
13155 (memory_xfer_partial_1): Likewise.
13156 (memory_xfer_partial): Likewise.
13157 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13158 properly. Update debug message.
13159 (default_xfer_partial, current_xfer_partial): Likewise.
13160 (target_write_partial): Likewise.
13161 (target_read_partial): Likewise. All callers updated.
13162 (read_whatever_is_readable): Likewise.
13163 (target_write_with_progress): Likewise.
13164 (target_read_alloc_1): Likewise.
13165
13166 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13167 * auxv.c (procfs_xfer_auxv): Likewise.
13168 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13169 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13170 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13171 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13172 * corefile.c (read_memory): Adjust.
13173 * corelow.c (core_xfer_partial): Likewise.
13174 * ctf.c (ctf_xfer_partial): Likewise.
13175 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13176 updated.
13177 (darwin_xfer_partial): Likewise.
13178 * exec.c (section_table_xfer_memory_partial): Likewise. All
13179 callers updated.
13180 (exec_xfer_partial): Likewise.
13181 * exec.h (section_table_xfer_memory_partial): Update
13182 declaration.
13183 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13184 negative.
13185 (gnu_xfer_partial): Likewise.
13186 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13187 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13188 (ia64_hpux_xfer_solib_got): Likewise.
13189 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13190 type of 'partial_len' to ULONGEST.
13191 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13192 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13193 (linux_nat_xfer_partial): Likewise.
13194 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13195 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13196 * monitor.c (monitor_xfer_memory): Likewise.
13197 (monitor_xfer_partial): Likewise.
13198 * procfs.c (procfs_xfer_partial): Likewise.
13199 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13200 * record-full.c (record_full_xfer_partial): Likewise.
13201 (record_full_core_xfer_partial): Likewise.
13202 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13203 (gdbsim_xfer_partial): Likewise.
13204 * remote.c (remote_write_bytes_aux): Likewise. All callers
13205 updated.
13206 (remote_write_bytes, remote_read_bytes): Likewise. All
13207 callers updated.
13208 (remote_flash_erase): Likewise. All callers updated.
13209 (remote_write_qxfer): Likewise. All callers updated.
13210 (remote_read_qxfer): Likewise. All callers updated.
13211 (remote_xfer_partial): Likewise.
13212 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13213 (rs6000_xfer_shared_libraries): Likewise.
13214 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13215 (sol_thread_xfer_partial): Likewise.
13216 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13217 (sparc_xfer_partial): Likewise.
13218 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13219 updated.
13220 (spu_xfer_partial): Likewise.
13221 * spu-multiarch.c (spu_xfer_partial): Likewise.
13222 * tracepoint.c (tfile_xfer_partial): Likewise.
13223 * windows-nat.c (windows_xfer_memory): Likewise.
13224 (windows_xfer_shared_libraries): Likewise.
13225 (windows_xfer_partial): Likewise.
13226 * valprint.c: Replace 'target_xfer_error' with
13227 'target_xfer_status' in comments.
13228
a8e63083
JB
132292014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13230
13231 Checked in by Joel Brobecker <brobecker@adacore.com>.
13232 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13233
e86b67d3
JB
132342014-02-11 Joel Brobecker <brobecker@adacore.com>
13235
13236 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13237 function parameters.
13238
4b7d1f7f
WN
132392014-02-10 Will Newton <will.newton@linaro.org>
13240
13241 * elfread.c (elf_rel_plt_read): Look for a .got section if
13242 looking up .got.plt fails.
13243 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13244 on address passed to elf_gnu_ifunc_record_cache.
13245 (elf_gnu_ifunc_resolve_addr): Likewise.
13246 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13247
961842b2
JM
132482014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13249
13250 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13251 (X_RETTURN): New macro.
13252 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13253
13254 * sparc64-tdep.c (sparc64_init_abi): Hook
13255 sparc_in_function_epilogue_p.
13256
3f03e7b1
GB
132572014-02-10 Gary Benson <gbenson@redhat.com>
13258
13259 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13260 Rename name_matcher to symbol_matcher.
13261
96f861ef
GB
132622014-02-10 Gary Benson <gbenson@redhat.com>
13263
13264 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13265 Use expand_symtabs_file_matcher_ftype and
13266 expand_symtabs_symbol_matcher_ftype.
13267
ee01b665
JB
132682014-02-10 Joel Brobecker <brobecker@adacore.com>
13269
13270 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13271 (struct ada_symbol_cache): New.
13272 (ada_free_symbol_cache): Forward declare.
13273 (struct ada_pspace_data): New.
13274 (ada_pspace_data_handle): New static global.
13275 (get_ada_pspace_data, ada_pspace_data_cleanup)
13276 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13277 (cache_space, cache): Delete, now folded inside struct
13278 ada_pspace_data.
13279 (ada_get_symbol_cache): New function.
13280 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13281 implementation.
13282 (_initialize_ada_language): Remove initialization of cache_space.
13283 Move call to observer_attach_inferior_exit up, grouping it
13284 with the other observer registrations inside this function.
13285 Rename command to be more general. Add call to
13286 register_program_space_data_with_cleanup.
13287
143adbbf
JB
132882014-02-10 Joel Brobecker <brobecker@adacore.com>
13289
13290 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13291 ada_new_objfile_observer.
13292 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13293 (_initialize_tasks): Update uses of ada_new_objfile_observer
13294 and ada_tasks_normal_stop_observer.
13295
aa4fb036
JB
132962014-02-10 Joel Brobecker <brobecker@adacore.com>
13297
13298 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13299 returned by the 'Length attribute to integer.
13300
9dee8cc6
JB
133012014-02-10 Joel Brobecker <brobecker@adacore.com>
13302
13303 * ada-lang.c (_initialize_ada_language): Initialize
13304 cache_space obstack.
13305
3d9434b5
JB
133062014-02-10 Joel Brobecker <brobecker@adacore.com>
13307
13308 * ada-lang.c (HASH_SIZE): New macro.
13309 (struct cache_entry): New type.
13310 (cache_space, cache): New static globals.
13311 (ada_clear_symbol_cache, find_entry): New functions.
13312 (lookup_cached_symbol, cache_symbol): Implement.
13313 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13314 (_initialize_ada_language): Attach ada_new_objfile_observer
13315 and ada_free_objfile_observer.
13316
f0c5f9b2
JB
133172014-02-10 Joel Brobecker <brobecker@adacore.com>
13318
13319 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13320 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13321 struct block * parameter.
13322 (ada_lookup_symbol_list_worker): Constify local variable "block".
13323 Remove cast which is no longer necessary.
13324
ed3ef339
DE
133252014-02-10 Doug Evans <xdje42@gmail.com>
13326
13327 Add Guile as an extension language.
13328 * NEWS: Mention Guile scripting.
13329 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13330 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13331 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13332 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13333 (CLIBS): Add GUILE_LIBS.
13334 (install-guile): New rule.
13335 (guile.o): New rule.
13336 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13337 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13338 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13339 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13340 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13341 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13342 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13343 * configure.ac: New option --with-guile.
13344 * configure: Regenerate.
13345 * config.in: Regenerate.
13346 * auto-load.c: Remove #include "python/python.h". Add #include
13347 "gdb/section-scripts.h".
13348 (source_section_scripts): Handle Guile scripts.
13349 (_initialize_auto_load): Add name of Guile objfile script to
13350 scripts-directory help text.
13351 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13352 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13353 (struct breakpoint): New member scm_bp_object.
13354 * defs.h (enum command_control_type): New value guile_control.
13355 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13356 "extension.h".
13357 (show_user): Update comment.
13358 (_initialize_cli_cmds): Update help text for "show user". Update help
13359 text for max-user-call-depth.
13360 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13361 "extension.h".
13362 (multi_line_command_p): Add guile_control.
13363 (print_command_lines): Handle guile_control.
13364 (execute_control_command, recurse_read_control_structure): Ditto.
13365 (process_next_line): Recognize "guile" commands.
13366 * disasm.c (gdb_disassemble_info): Make non-static.
13367 * disasm.h: #include "dis-asm.h".
13368 (struct gdbarch): Add forward decl.
13369 (gdb_disassemble_info): Declare.
13370 * extension.c: #include "guile/guile.h".
13371 (extension_languages): Add guile.
13372 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13373 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13374 * gdbtypes.c (get_unsigned_type_max): New function.
13375 (get_signed_type_minmax): New function.
13376 * gdbtypes.h (get_unsigned_type_max): Declare.
13377 (get_signed_type_minmax): Declare.
13378 * guile/README: New file.
13379 * guile/guile-internal.h: New file.
13380 * guile/guile.c: New file.
13381 * guile/guile.h: New file.
13382 * guile/scm-arch.c: New file.
13383 * guile/scm-auto-load.c: New file.
13384 * guile/scm-block.c: New file.
13385 * guile/scm-breakpoint.c: New file.
13386 * guile/scm-disasm.c: New file.
13387 * guile/scm-exception.c: New file.
13388 * guile/scm-frame.c: New file.
13389 * guile/scm-gsmob.c: New file.
13390 * guile/scm-iterator.c: New file.
13391 * guile/scm-lazy-string.c: New file.
13392 * guile/scm-math.c: New file.
13393 * guile/scm-objfile.c: New file.
13394 * guile/scm-ports.c: New file.
13395 * guile/scm-pretty-print.c: New file.
13396 * guile/scm-safe-call.c: New file.
13397 * guile/scm-string.c: New file.
13398 * guile/scm-symbol.c: New file.
13399 * guile/scm-symtab.c: New file.
13400 * guile/scm-type.c: New file.
13401 * guile/scm-utils.c: New file.
13402 * guile/scm-value.c: New file.
13403 * guile/lib/gdb.scm: New file.
13404 * guile/lib/gdb/boot.scm: New file.
13405 * guile/lib/gdb/experimental.scm: New file.
13406 * guile/lib/gdb/init.scm: New file.
13407 * guile/lib/gdb/iterator.scm: New file.
13408 * guile/lib/gdb/printing.scm: New file.
13409 * guile/lib/gdb/types.scm: New file.
13410 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13411 (VPATH): Add $(GUILE_SRCDIR).
13412 (GUILE_DIR): New variable.
13413 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13414 (all): Add stamp-guile dependency.
13415 (stamp-guile): New rule.
13416 (clean-guile, install-guile, uninstall-guile): New rules.
13417 (install-only): Add install-guile dependency.
13418 (uninstall): Add uninstall-guile dependency.
13419 (clean): Add clean-guile dependency.
13420
ac020ec5
DE
134212014-02-09 Doug Evans <xdje42@gmail.com>
13422
13423 Revert this patch (which I approved, mea culpa).
13424
13425 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13426
13427 * Makefile.in (all-lib): Remove.
13428 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13429
2a081c59
JK
134302014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13431
13432 Fix Python stack corruption.
13433 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13434 gdb_py_longest.
13435
0a6bd22d
MK
134362014-02-08 Mark Kettenis <kettenis@gnu.org>
13437
13438 * Makefile.in (all-lib): Remove.
13439 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13440
1a860409
DE
134412014-02-07 Doug Evans <dje@google.com>
13442
13443 * extension-priv.h (extension_language_script_ops): Add comment.
13444 (extension_language_ops): Add comment.
caf5a491 13445 (active_ext_lang_state): Fix typo in comment.
1a860409 13446
d137e6dc
PA
134472014-02-07 Pedro Alves <palves@redhat.com>
13448
0dcb32c3 13449 PR breakpoints/16292
d137e6dc
PA
13450 * infrun.c (handle_signal_stop) <signal arrives while stepping
13451 over a breakpoint>: Switch back to the stepping thread.
13452
ce6d0892
YQ
134532014-02-07 Yao Qi <yao@codesourcery.com>
13454
13455 * target.c (target_xfer_partial): Return zero if LEN is zero.
13456
2ed4b548
YQ
134572014-02-07 Yao Qi <yao@codesourcery.com>
13458
13459 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13460 (ld_so_xfer_auxv): Likewise.
13461 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13462 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13463 * corelow.c (core_xfer_partial): Likewise.
13464 * ctf.c (ctf_xfer_partial): Likewise.
13465 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13466 (darwin_xfer_partial): Likewise.
13467 * exec.c (exec_xfer_partial): Likewise.
13468 * gnu-nat.c (gnu_xfer_partial): Likewise.
13469 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13470 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13471 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13472 * linux-nat.c (linux_xfer_siginfo): Likewise.
13473 (linux_proc_xfer_spu): Likewise.
13474 * procfs.c (procfs_xfer_partial): Likewise.
13475 * record-full.c (record_full_xfer_partial): Likewise.
13476 (record_full_core_xfer_partial): Likewise.
13477 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13478 * remote.c (remote_write_qxfer): Likewise.
13479 (remote_write_qxfer, remote_read_qxfer): Likewise.
13480 (remote_xfer_partial): Likewise.
13481 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13482 (rs6000_xfer_shared_libraries): Likewise.
13483 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13484 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13485 (spu_xfer_partial): Likewise.
13486 * target.c (memory_xfer_partial_1): Likewise.
13487 * tracepoint.c (tfile_xfer_partial): Likewise.
13488 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13489 (windows_xfer_partial): Likewise.
13490
c09f20e4
YQ
134912014-02-07 Yao Qi <yao@codesourcery.com>
13492
13493 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13494 comments.
13495 (core_xfer_shared_libraries_aix): Likewise.
13496 * gdbarch.c, gdbarch.h: Regenerated.
13497 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13498 ULONGEST. Change 'len_avail' type to ULONGEST.
13499 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13500 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13501 declaration.
13502 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13503
8635b3bf
YQ
135042014-02-07 Yao Qi <yao@codesourcery.com>
13505
13506 * corefile.c (memory_error): Get 'exception' from ERR and pass
13507 'exception' to throw_error.
13508
6dddc817
DE
135092014-02-06 Doug Evans <xdje42@gmail.com>
13510
13511 * configure.ac (libpython checking): Remove all but python.o from
13512 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13513 * configure: Regenerate.
13514
13515 * Makefile.in (SFILES): Add extension.c.
13516 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13517 (COMMON_OBS): Add extension.o.
13518 * extension.h: New file.
13519 * extension-priv.h: New file.
13520 * extension.c: New file.
13521
13522 * python/python-internal.h: #include "extension.h".
13523 (gdbpy_auto_load_enabled): Declare.
13524 (gdbpy_apply_val_pretty_printer): Declare.
13525 (gdbpy_apply_frame_filter): Declare.
13526 (gdbpy_preserve_values): Declare.
13527 (gdbpy_breakpoint_cond_says_stop): Declare.
13528 (gdbpy_breakpoint_has_cond): Declare.
13529 (void source_python_script_for_objfile): Delete.
13530 * python/python.c: #include "extension-priv.h".
13531 Delete inclusion of "observer.h".
13532 (extension_language_python): Moved here and renamed from
13533 script_language_python in py-auto-load.c.
13534 Redefined to be of type extension_language_defn.
13535 (python_extension_script_ops): New global.
13536 (python_extension_ops): New global.
13537 (struct python_env): New member previous_active.
13538 (restore_python_env): Call restore_active_ext_lang.
13539 (ensure_python_env): Call set_active_ext_lang.
13540 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13541 New arg extlang.
13542 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13543 New arg extlang.
13544 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13545 New arg extlang.
13546 (gdbpy_eval_from_control_command): Renamed from
13547 eval_python_from_control_command, made static. New arg extlang.
13548 (gdbpy_source_script) Renamed from source_python_script, made static.
13549 New arg extlang.
13550 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13551 result to int. New arg extlang.
13552 (gdbpy_source_objfile_script): Renamed from
13553 source_python_script_for_objfile, made static. New arg extlang.
13554 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13555 static. New args extlang, extlang_printers. Change result type to
13556 "void".
13557 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13558 static. New arg extlang. Rename arg printers to extlang_printers
13559 and change type to ext_lang_type_printers *.
13560 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13561 static. Replace argument arg with extlang, extlang_printers.
13562 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13563 (!HAVE_PYTHON, source_python_script): Delete.
13564 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13565 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13566 (!HAVE_PYTHON, start_type_printers): Delete.
13567 (!HAVE_PYTHON, apply_type_printers): Delete.
13568 (!HAVE_PYTHON, free_type_printers): Delete.
13569 (_initialize_python): Delete call to observer_attach_before_prompt.
13570 (finalize_python): Set/restore active extension language.
13571 (gdbpy_finish_initialization) Renamed from
13572 finish_python_initialization, made static. New arg extlang.
13573 (gdbpy_initialized): New function.
13574 * python/python.h: #include "extension.h". Delete #include
13575 "value.h", "mi/mi-cmds.h".
13576 (extension_language_python): Declare.
13577 (GDBPY_AUTO_FILE_NAME): Delete.
13578 (enum py_bt_status): Moved to extension.h and renamed to
13579 ext_lang_bt_status.
13580 (enum frame_filter_flags): Moved to extension.h.
13581 (enum py_frame_args): Moved to extension.h and renamed to
13582 ext_lang_frame_args.
13583 (finish_python_initialization): Delete.
13584 (eval_python_from_control_command): Delete.
13585 (source_python_script): Delete.
13586 (apply_val_pretty_printer): Delete.
13587 (apply_frame_filter): Delete.
13588 (preserve_python_values): Delete.
13589 (gdbpy_script_language_defn): Delete.
13590 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13591 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13592
13593 * auto-load.c: #include "extension.h".
13594 (GDB_AUTO_FILE_NAME): Delete.
13595 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13596 (script_language_gdb): Delete, moved to extension.c and renamed to
13597 extension_language_gdb.
13598 (source_gdb_script_for_objfile): Delete.
13599 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13600 (loaded_script): Change type of language member to
13601 struct extension_language_defn *.
13602 (init_loaded_scripts_info): Initialize
13603 unsupported_script_warning_printed.
13604 (maybe_add_script): Make static. Change type of language arg to
13605 struct extension_language_defn *.
13606 (clear_section_scripts): Reset unsupported_script_warning_printed.
13607 (auto_load_objfile_script_1): Rewrite to use extension language API.
13608 (auto_load_objfile_script): Make public. Remove support-compiled-in
13609 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13610 (source_section_scripts): Rewrite to use extension language API.
13611 (load_auto_scripts_for_objfile): Rewrite to use
13612 auto_load_scripts_for_objfile.
13613 (collect_matching_scripts_data): Change type of language member to
13614 struct extension_language_defn *.
13615 (auto_load_info_scripts): Change type of language arg to
13616 struct extension_language_defn *.
13617 (unsupported_script_warning_print): New function.
13618 (script_not_found_warning_print): Make static.
13619 (_initialize_auto_load): Rewrite construction of scripts-directory
13620 help.
13621 * auto-load.h (struct objfile): Add forward decl.
13622 (struct script_language): Delete.
13623 (struct auto_load_pspace_info): Add forward decl.
13624 (struct extension_language_defn): Add forward decl.
13625 (maybe_add_script): Delete.
13626 (auto_load_objfile_script): Declare.
13627 (script_not_found_warning_print): Delete.
13628 (auto_load_info_scripts): Update prototype.
13629 (auto_load_gdb_scripts_enabled): Declare.
13630 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13631 auto_load_python_scripts_enabled and made public.
13632 (script_language_python): Delete, moved to python.c.
13633 (gdbpy_script_language_defn): Delete.
13634 (info_auto_load_python_scripts): Update to use
13635 extension_language_python.
13636
13637 * breakpoint.c (condition_command): Replace call to
13638 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13639 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13640 with call to breakpoint_ext_lang_cond_says_stop.
13641 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13642 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13643 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13644 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13645 New arg slang.
13646 (local_setattro): Print name of extension language with existing
13647 stop condition.
13648
13649 * valprint.c (val_print, value_print): Update to call
13650 apply_ext_lang_val_pretty_printer.
13651 * cp-valprint.c (cp_print_value): Update call to
13652 apply_ext_lang_val_pretty_printer.
13653 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13654 (gdbpy_apply_val_pretty_printer): Renamed from
13655 apply_val_pretty_printer. New arg extlang.
13656 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13657
13658 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13659 extension language API.
13660 * cli/cli-script.c (execute_control_command): Update to call
13661 eval_ext_lang_from_control_command.
13662
13663 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13664 enum ext_lang_bt_status values. Update call to
13665 apply_ext_lang_frame_filter.
13666 (mi_cmd_stack_list_locals): Ditto.
13667 (mi_cmd_stack_list_args): Ditto.
13668 (mi_cmd_stack_list_variables): Ditto.
13669 * mi/mi-main.c: Delete #include "python/python-internal.h".
13670 Add #include "extension.h".
13671 (mi_cmd_list_features): Replace reference to python internal variable
13672 gdb_python_initialized with call to ext_lang_initialized_p.
13673
13674 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13675 Update to use enum ext_lang_frame_args. Update to call
13676 apply_ext_lang_frame_filter.
13677 * python/py-framefilter.c (extract_sym): Update to use enum
13678 ext_lang_bt_status.
13679 (extract_value, py_print_type, py_print_value): Ditto.
13680 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13681 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13682 (py_print_frame): Ditto.
13683 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13684 New arg extlang. Update to use enum ext_lang_bt_status.
13685
13686 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13687 finish_python_initialization. Replace with call to
13688 finish_ext_lang_initialization.
13689
13690 * typeprint.c (do_free_global_table): Update to call
13691 free_ext_lang_type_printers.
13692 (create_global_typedef_table): Update to call
13693 start_ext_lang_type_printers.
13694 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13695 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13696 (type_print_options): Change type of global_printers from "void *"
13697 to "struct ext_lang_type_printers *".
13698
13699 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13700 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13701 (gdbpy_preserve_values): Renamed from preserve_python_values.
13702 New arg extlang.
13703 (!HAVE_PYTHON, preserve_python_values): Delete.
13704
13705 * utils.c (quit_flag): Delete, moved to extension.c.
13706 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13707 extension.c.
13708
13709 * eval.c: Delete #include "python/python.h".
13710 * main.c: Delete #include "python/python.h".
13711
13712 * defs.h: Update comment.
13713
6af79985
JB
137142014-02-06 Joel Brobecker <brobecker@adacore.com>
13715
13716 GDB 7.7 released.
13717
12c5175d
MK
137182014-02-05 Mark Kettenis <kettenis@gnu.org>
13719
13720 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13721 defined.
13722
8dc5b319
YQ
137232014-02-05 Yao Qi <yao@codesourcery.com>
13724
13725 * remote.c (remote_pass_signals): Remove local 'buf' and use
13726 rs->buf.
13727 (remote_program_signals): Likewise.
13728
de7b2893
YQ
137292014-02-05 Yao Qi <yao@codesourcery.com>
13730
13731 * ctf.c: Include "inferior.h" and "gdbthread.h".
13732 (CTF_PID): A new macro.
13733 (ctf_open): Call inferior_appeared and add_thread_silent.
13734 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13735 (ctf_thread_alive): New function.
13736 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13737
66d032ac
YQ
137382014-02-05 Yao Qi <yao@codesourcery.com>
13739
13740 Revert this patch:
13741
13742 2013-05-24 Yao Qi <yao@codesourcery.com>
13743
13744 * tracepoint.c (TFILE_PID): Remove.
13745 (tfile_open): Don't add thread and inferior.
13746 (tfile_close): Don't set 'inferior_ptid'. Don't call
13747 exit_inferior_silent.
13748 (tfile_thread_alive): Remove.
13749 (init_tfile_ops): Don't set field 'to_thread_alive' of
13750 tfile_ops.
13751
f4ccffad
CE
137522014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13753
13754 * remote.c (remote_start_remote): Call remote_check_symbols even
13755 if only symbol-file (not file) has been given.
13756
591a12a1
UW
137572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13758
13759 * gdbarch.sh (skip_entrypoint): New callback.
13760 * gdbarch.c, gdbarch.h: Regenerate.
13761 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13762 * infrun.c (fill_in_stop_func): Likewise.
13763 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13764 (ppc_elfv2_elf_make_msymbol_special): New function.
13765 (ppc_elfv2_skip_entrypoint): Likewise.
13766 (ppc_linux_init_abi): Install them for ELFv2.
13767
cc0e89c5
UW
137682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13769
13770 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13771 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13772 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13773 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13774 structures returned in GPRs.
13775
52f548e4
UW
137762014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13777
13778 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13779 offset to the stack parameter list for the ELFv2 ABI.
13780
d4094b6a
UW
137812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13782
13783 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13784 set_gdbarch_convert_from_func_ptr_addr and
13785 set_gdbarch_elf_make_msymbol_special for ELFv1.
13786 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13787 function descriptors on ELFv1.
13788 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13789 set up r12 at function entry.
13790
cd453cd0
UW
137912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13792
13793 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13794 (struct gdbarch_tdep): New member elf_abi.
13795
13796 * rs6000-tdep.c: Include "elf/ppc64.h".
13797 (rs6000_gdbarch_init): Detect ELF ABI version.
13798
0ff3e01f
UW
137992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13800
13801 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13802 within a register pair holding a DFP 128-bit value on little-endian.
13803 (ppc64_sysv_abi_return_value_base): Likewise.
13804 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13805 (dfp_pseudo_register_write): Likewise.
13806
5b757e5d
UW
138072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13808
13809 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13810 offset on little-endian when passing _Decimal32.
13811 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13812
084ee545
UW
138132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13814
13815 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13816 of the overlapped FP register within the VSX register on little-
13817 endian platforms.
13818 (efpr_pseudo_register_write): Likewise.
13819
d63167af
UW
138202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13821
13822 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13823 offset on little-endian when passing small structures.
13824
e765b44c
UW
138252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13826
13827 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13828 (struct ppc64_sysv_argpos): New data structure.
13829 (ppc64_sysv_abi_push_float): Remove.
13830 (ppc64_sysv_abi_push_val): New function.
13831 (ppc64_sysv_abi_push_integer): Likewise.
13832 (ppc64_sysv_abi_push_freg): Likewise.
13833 (ppc64_sysv_abi_push_vreg): Likewise.
13834 (ppc64_sysv_abi_push_param): Likewise.
13835 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13836 (ppc64_sysv_abi_return_value_base): New function.
13837 (ppc64_sysv_abi_return_value): Refactor to use it.
13838
36c24d95
UW
138392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13840
13841 * NEWS: Document new target powerpc64le-*-linux*.
13842
26fd9228
MK
138432014-02-04 Mark Kettenis <kettenis@gnu.org>
13844
13845 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13846 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13847 core dumps.
13848 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13849 register set used in ELF core dumps. Add floating-point register set.
13850
c5bb7362
KB
138512014-02-03 Kevin Buettner <kevinb@redhat.com>
13852
74228e77 13853 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13854 dwarf2_to_gdb[] table using symbolic constants. Adjust
13855 penultimate entry from number representing the PC register
13856 to symbolic constant representing the MDR register. Add
13857 constant for the PC register to the end of the table.
13858
af09351e
MK
138592014-02-03 Mark Kettenis <kettenis@gnu.org>
13860
13861 * bsd-kvm.c: Include <sys/param.h>
13862
8507e05d
MK
138632014-02-03 Mark Kettenis <kettenis@gnu.org>
13864
13865 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13866
ae56bfb8
JB
138672014-01-31 Joel Brobecker <brobecker@adacore.com>
13868
13869 * ada-lang.h (clear_ada_sym_cache): Delete.
13870
718ee4dc
UW
138712014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13872
13873 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13874
401e27fd
JM
138752014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13876
13877 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13878 the sigreturn register save area only if the syscall is
13879 sigreturn.
13880
a7c88acd
JB
138812014-01-29 Joel Brobecker <brobecker@adacore.com>
13882
13883 * valops.c (value_slice): Minor reformatting.
13884
fa0079ea
UW
138852014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13886
13887 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13888
c6044dd1
JB
138892014-01-28 Joel Brobecker <brobecker@adacore.com>
13890
13891 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13892 New static globals.
13893 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13894 (ada_ignore_descriptive_types_p): New static global.
13895 (find_parallel_type_by_descriptive_type): Return immediately
13896 if ada_ignore_descriptive_types_p is set.
13897 (_initialize_ada_language): Register new commands "maintenance
13898 set ada", "maintenance show ada", "maintenance set ada
13899 ignore-descriptive-types" and "maintenance show ada
13900 ignore-descriptive-types".
13901 * NEWS: Add entry for new "maint ada set/show
13902 ignore-descriptive-types" commands.
13903
568e808b
MM
139042014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13905
13906 * record-btrace.c (record_btrace_close): Call btrace_teardown
13907 for all threads.
13908
467d141b
JB
139092014-01-27 Joel Brobecker <brobecker@adacore.com>
13910
13911 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13912 "ui-out.h".
13913
fb151210
JB
139142014-01-27 Joel Brobecker <brobecker@adacore.com>
13915
13916 * ada-typeprint (type_is_full_subrange_of_target_type):
13917 New function.
13918 (print_range): Add parameter bounds_prefered_p. If not set,
13919 try printing range types using the name of their base type.
13920 (print_range_type): Add parameter bounds_prefered_p.
13921 Use it in call to print_range.
13922 (print_array_type, ada_print_type): Update calls to print_range
13923 and print_range_type.
13924
aba02109
JB
139252014-01-27 Joel Brobecker <brobecker@adacore.com>
13926
13927 * ada-typeprint.c (print_array_type, print_choices, print_range)
13928 (print_range_bound, print_dynamic_range_bound, print_range_type):
13929 Remove declaration.
13930
e62e21fd
JB
139312014-01-27 Joel Brobecker <brobecker@adacore.com>
13932
13933 * ada-typeprint.c (print_range): Add missing empty line
13934 after local declaration.
13935
859cf5d1
JB
139362014-01-27 Joel Brobecker <brobecker@adacore.com>
13937
13938 * ada-valprint.c (print_optional_low_bound): Get index_type's
13939 target type for as long as it is a TYPE_CODE_RANGE.
13940
25790f6f
JB
139412014-01-27 Joel Brobecker <brobecker@adacore.com>
13942
13943 * procfs.c (procfs_make_note_section): Remove assertion and
13944 associated comment.
13945
6b6aa828
YQ
139462014-01-24 Yao Qi <yao@codesourcery.com>
13947
13948 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13949 * corelow.c (get_core_siginfo): Likewise.
13950
5d6df423
YQ
139512014-01-24 Yao Qi <yao@codesourcery.com>
13952
13953 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13954 ULONGEST. Don't check 'len' is negative.
13955 (remote_write_bytes): Change type of 'len' to ULONGEST.
13956
83b645b8
TT
139572014-01-23 Tom Tromey <tromey@redhat.com>
13958
13959 PR python/16485:
13960 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13961 Handle exception from frame.block.
13962 (FrameVars.fetch_frame_locals): Likewise.
13963
0740f8d8
TT
139642014-01-23 Tom Tromey <tromey@redhat.com>
13965
13966 PR python/16487:
13967 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13968 on a NULL pointer. Move "goto error" to correct place.
13969
21909fa1
TT
139702014-01-23 Tom Tromey <tromey@redhat.com>
13971
13972 PR python/16491:
13973 * python/py-framefilter.c (apply_frame_filter): Call
13974 ensure_python_env after computing gdbarch.
13975
17fde6d0
YQ
139762014-01-23 Yao Qi <yao@codesourcery.com>
13977
13978 * target.c (raw_memory_xfer_partial): Change argument type
13979 from void * to gdb_byte *.
13980 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13981
87ce2a04
DE
139822014-01-22 Doug Evans <dje@google.com>
13983
13984 New gdbserver option --debug-format=timestamp.
13985 * NEWS: Mention it.
13986
237b092b
AA
139872014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13988
13989 * syscalls/s390x-linux.xml: New file.
13990 * syscalls/s390-linux.xml: New file.
13991 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13992 (XML_SYSCALL_FILENAME_S390X): Likewise.
13993 (op_svc): New enum value for SVC opcode.
13994 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13995 (s390_linux_get_syscall_number): New function.
13996 (s390_gdbarch_init): Register '*get_syscall_number' and the
13997 syscall xml file name.
13998 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13999 "s390-linux.xml" and "s390x-linux.xml".
14000 * NEWS: Announce new feature.
14001
54bff650
BS
140022014-01-22 Baruch Siach <baruch@tkos.co.il>
14003
14004 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14005
14e361d7
PA
140062014-01-22 Pedro Alves <palves@redhat.com>
14007
14008 * xtensa-config.c: Include defs.h.
14009
46bbb3ed
JB
140102014-01-22 Joel Brobecker <brobecker@adacore.com>
14011
14012 * common/common-utils.h: Add "ARI:" comment beside __func__
14013 reference.
14014
3a80edfc
JB
140152014-01-22 Joel Brobecker <brobecker@adacore.com>
14016
14017 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14018 documentation a bit.
14019
4869db5e
RM
140202014-01-21 Roland McGrath <mcgrathr@google.com>
14021
14022 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14023 * configure: Regenerate.
14024 * aclocal.m4: Regenerate.
14025 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14026 New substituted variables.
14027 (install-strip): New target.
14028 (INSTALL_SCRIPT): New substituted variable.
14029 (FLAGS_TO_PASS): Add it.
14030 (install-only): Use $(INSTALL_SCRIPT) rather than
14031 $(INSTALL_PROGRAM) for gcore.
14032
9ea4267d
TT
140332014-01-20 Tom Tromey <tromey@redhat.com>
14034
14035 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14036 together.
14037
1f2bdf09
TT
140382014-01-20 Tom Tromey <tromey@redhat.com>
14039
14040 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14041 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14042 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14043 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14044 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14045 (struct cmd_list_element) <flags>: Remove.
14046 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14047 doc_allocated>: New fields.
14048 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14049 bitfields.
14050 * maint.c (maintenance_do_deprecate): Update.
14051 * top.c (execute_command): Update.
14052
e671835b
BS
140532014-01-20 Baruch Siach <baruch@tkos.co.il>
14054
14055 * xtensa-linux-nat.c: Include asm/ptrace.h.
14056
50367cd2
IB
140572014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14058
14059 * Makefile.in (SFILES): Add d-support.c.
14060 (COMMON_OBS): Add d-support.o.
14061 * d-lang.h (d_parse_symbol): Add comment, now defined in
14062 d-support.c.
14063 * d-lang.c (parse_call_convention)
14064 (parse_attributes, parse_function_types)
14065 (parse_function_args, parse_type, parse_identifier)
14066 (call_convention_p, d_parse_symbol): Move functions to ...
14067 * d-support.c: ... New file.
14068
ec9f644a
IB
140692014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14070
14071 * d-lang.h (d_parse_symbol): Add declaration.
14072 * d-lang.c (extract_identifiers)
14073 (extract_type_info): Remove functions.
14074 (parse_call_convention, parse_attributes)
14075 (parse_function_types, parse_function_args)
14076 (parse_type, parse_identifier, call_convention_p)
14077 (d_parse_symbol): New functions.
14078 (d_demangle): Use d_parse_symbol to demangle D symbols.
14079
94b1b47e
IB
140802014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14081
14082 * d-lang.h (struct builtin_d_type): New data type.
14083 (builtin_d_type): Add declaration.
14084 * d-lang.c (d_language_arch_info, build_d_types)
14085 (builtin_d_type): New functions.
14086 (enum d_primitive_types): New data type.
14087 (d_language_defn): Change c_language_arch_info to
14088 d_language_arch_info.
14089 (d_type_data): New static variable.
14090 (_initialize_d_language): Initialize d_type_data.
14091
63778547
IB
140922014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14093
14094 * d-lang.h (d_main_name): Add declaration.
14095 * d-lang.c (d_main_name): New function.
14096 * symtab.c (find_main_name): Add call to d_main_name.
14097
3271ba66
IB
140982014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14099
14100 * d-lang.c (d_language_defn): Change macro_expansion_c to
14101 macro_expansion_no.
14102
d36b3012
IB
141032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14104
14105 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14106
c90a6fb7
SDJ
141072014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14108
14109 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14110 gdb_exception" declaration.
14111 * remote.c (getpkt_or_notif_sane): Likewise.
14112
749234e5
DE
141132014-01-17 Doug Evans <dje@google.com>
14114
14115 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14116 function, contents of dirnames_to_char_ptr_vec_append moved here.
14117 (delim_string_to_char_ptr_vec): New function.
14118 (dirnames_to_char_ptr_vec_append): Rewrite.
14119 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14120
df049a58
DE
141212014-01-17 Doug Evans <dje@google.com>
14122
14123 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14124 and moved here ...
14125 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14126 #include "common-utils.h".
14127 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14128 * common/vec.h (VEC_ASSERT_PASS): Update.
14129 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14130 (MACH_CHECK_ERROR): Update.
14131
69f97648
SM
141322014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14133
14134 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14135 comments.
14136 * gdbarch.h: Regenerate.
14137
98b1cfdc
TT
141382014-01-16 Tom Tromey <tromey@redhat.com>
14139
14140 * value.c (struct value) <regnum>: Move earlier.
14141
77a19445
TT
141422014-01-16 Tom Tromey <tromey@redhat.com>
14143
14144 * remote.c (extended_remote_create_inferior): Rename from
14145 extended_remote_create_inferior_1. Add "ops" argument. Remove
14146 old implementation.
14147
62261490
PA
141482014-01-16 Pedro Alves <palves@redhat.com>
14149
14150 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14151 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14152 the backchain.
14153
4d65956b
DE
141542014-01-16 Doug Evans <dje@google.com>
14155
14156 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14157
52834460
MM
141582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14159
14160 * btrace.h (btrace_thread_flag): New.
14161 (struct btrace_thread_info) <flags>: New.
14162 * record-btrace.c (record_btrace_resume_thread)
14163 (record_btrace_find_thread_to_move, btrace_step_no_history)
14164 (btrace_step_stopped, record_btrace_start_replaying)
14165 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14166 (record_btrace_find_resume_thread): New.
14167 (record_btrace_resume, record_btrace_wait): Extend.
14168 (record_btrace_can_execute_reverse): New.
14169 (record_btrace_open): Fail in non-stop mode.
14170 (record_btrace_set_replay): Split into this, ...
14171 (record_btrace_stop_replaying): ... this, ...
14172 (record_btrace_clear_histories): ... and this.
14173 (init_record_btrace_ops): Init to_can_execute_reverse.
14174 * NEWS: Announce it.
14175
118e6252
MM
141762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14177
14178 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14179 (forward_target_decr_pc_after_break)
14180 (target_decr_pc_after_break): New.
14181 * target.c (forward_target_decr_pc_after_break)
14182 (target_decr_pc_after_break): New.
14183 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14184 instead of gdbarch_decr_pc_after_break.
14185 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14186 instead of gdbarch_decr_pc_after_break.
14187 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14188 instead of gdbarch_decr_pc_after_break.
14189 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14190 instead of gdbarch_decr_pc_after_break.
14191 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14192 instead of gdbarch_decr_pc_after_break.
14193 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14194 instead of gdbarch_decr_pc_after_break.
14195
6e07b1d2
MM
141962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14197
14198 * btrace.c: Include regcache.h.
14199 (btrace_add_pc): New.
14200 (btrace_enable): Call btrace_add_pc.
14201 (btrace_is_empty): New.
14202 * btrace.h (btrace_is_empty): New.
14203 * record-btrace.c (require_btrace, record_btrace_info): Call
14204 btrace_is_empty.
14205
969c39fb
MM
142062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14207
14208 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14209 Support delta reads.
14210 (linux_disable_btrace): Change return type.
14211 * common/linux-btrace.h (linux_read_btrace): Change parameters
14212 and return type to allow error reporting. Update users.
14213 (linux_disable_btrace): Change return type. Update users.
14214 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14215 New.
14216 (btrace_error): New.
14217 (btrace_block) <begin>: Comment on BEGIN == 0.
14218 * btrace.c (btrace_compute_ftrace): Start from the end of
14219 the current trace.
14220 (btrace_stitch_trace, btrace_clear_history): New.
14221 (btrace_fetch): Read delta trace, return if replaying.
14222 (btrace_clear): Move clear history code to btrace_clear_history.
14223 (parse_xml_btrace): Throw an error if parsing failed.
14224 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14225 and return type to allow error reporting.
14226 (target_read_btrace): Change parameters and return type to allow
14227 error reporting.
14228 * target.c (target_read_btrace): Update.
14229 * remote.c (remote_read_btrace): Support delta reads. Pass
14230 errors on.
14231 * NEWS: Announce it.
14232
0b722aec
MM
142332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14234
14235 * record.h (record_btrace_frame_unwind)
14236 (record_btrace_tailcall_frame_unwind): New declarations.
14237 * dwarf2-frame: Include record.h
14238 (dwarf2_frame_cfa): Throw an error for btrace frames.
14239 * record-btrace.c: Include hashtab.h.
14240 (btrace_get_bfun_name): New.
14241 (btrace_call_history): Call btrace_get_bfun_name.
14242 (struct btrace_frame_cache): New.
14243 (bfcache): New.
14244 (bfcache_hash, bfcache_eq, bfcache_new): New.
14245 (btrace_get_frame_function): New.
14246 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14247 (record_btrace_frame_this_id): Compute own id.
14248 (record_btrace_frame_prev_register): Provide PC, throw_error
14249 for all other registers.
14250 (record_btrace_frame_sniffer): Detect btrace frames.
14251 (record_btrace_tailcall_frame_sniffer): New.
14252 (record_btrace_frame_dealloc_cache): New.
14253 (record_btrace_frame_unwind): Add new functions.
14254 (record_btrace_tailcall_frame_unwind): New.
14255 (_initialize_record_btrace): Allocate cache.
14256 * btrace.c (btrace_clear): Call reinit_frame_cache.
14257 * NEWS: Announce it.
14258
066ce621
MM
142592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14260
14261 * record-btrace.c (record_btrace_set_replay)
14262 (record_btrace_goto_begin, record_btrace_goto_end)
14263 (record_btrace_goto): New.
14264 (init_record_btrace_ops): Initialize them.
14265 * NEWS: Announce it.
14266
e2887aa3
MM
142672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14268
14269 * record-btrace.c (record_btrace_find_new_threads)
14270 (record_btrace_thread_alive): New.
14271 (init_record_btrace_ops): Initialize to_find_new_threads and
14272 to_thread_alive.
14273
b2f4cfde
MM
142742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14275
14276 * record-btrace.c (record_btrace_resume): New.
14277 (record_btrace_wait): New.
14278 (init_record_btrace_ops): Initialize to_wait and to_resume.
14279
633785ff
MM
142802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14281
14282 * record-btrace.c (record_btrace_xfer_partial)
14283 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14284 (record_btrace_allow_memory_access): New.
14285 (init_record_btrace_ops): Initialize new methods.
14286 * target.c (raw_memory_xfer_partial): Bail out if target reports
14287 that this memory is not available.
14288
3db08215
MM
142892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14290
14291 * target.h (target_ops) <to_insert_breakpoint>
14292 <to_remove_breakpoint>: Add target_ops parameter.
14293 (forward_target_insert_breakpoint): New.
14294 (forward_target_remove_breakpoint): New.
14295 (memory_remove_breakpoint, memory_insert_breakpoint):
14296 Add target_ops parameter.
14297 * target.c (target_insert_breakpoint): Split into this and ...
14298 (forward_target_insert_breakpoint): ... this.
14299 (target_remove_breakpoint): Split into this and ...
14300 (forward_target_remove_breakpoint): ... this.
14301 (debug_to_insert_breakpoint): Add target_ops parameter.
14302 Call forward_target_insert_breakpoint.
14303 (debug_to_remove_breakpoint): Add target_ops parameter.
14304 Call forward_target_remove_breakpoint.
14305 (update_current_target): Do not inherit or default to_insert_breakpoint
14306 and to_remove_breakpoint.
14307 * corelow.c (ignore): Add target_ops parameter.
14308 * exec.c (ignore): Add target_ops parameter.
14309 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14310 Add target_ops parameter.
14311 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14312 Add target_ops parameter.
14313 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14314 Add target_ops parameter.
14315 * record-full.c (record_full_beneath_to_insert_breakpoint)
14316 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14317 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14318 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14319 (record_full_core_remove_breakpoint): Add target_ops parameter.
14320 Update users.
14321 (record_full_beneath_to_insert_breakpoint_ops)
14322 (record_full_beneath_to_remove_breakpoint_ops)
14323 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14324 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14325 tmp_to_remove_breakpoint_ops,
14326 record_full_beneath_to_insert_breakpoint_ops, and
14327 record_full_beneath_to_remove_breakpoint_ops.
14328 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14329 (m32r_remove_breakpoint): Add target_ops parameter.
14330 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14331 Add target_ops parameter.
14332 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14333 Add target_ops parameter.
14334
cecac1ab
MM
143352014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14336 Markus Metzger <markus.t.metzger@intel.com>
14337
14338 * record-btrace.c: Include frame-unwind.h.
14339 (record_btrace_frame_unwind_stop_reason)
14340 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14341 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14342 New.
14343 (init_record_btrace_ops): Install it.
14344
824344ca
MM
143452014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14346
14347 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14348 get_prev_frame_1.
14349
32261e52
MM
143502014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14351
14352 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14353 earlier.
14354
ea001bdc
MM
143552014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14356
14357 * frame-unwind.c: Include target.h.
14358 (frame_unwind_try_unwinder): New function with code from ...
14359 (frame_unwind_find_by_frame): ... here. New variable
14360 unwinder_from_target, call also target_get_unwinder)
14361 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14362 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14363 * target.h (struct target_ops): New fields to_get_unwinder and
14364 to_get_tailcall_unwinder.
14365 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14366
1f3ef581
MM
143672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14368
14369 * record-btrace.c (record_btrace_fetch_registers)
14370 (record_btrace_store_registers)
14371 (record_btrace_to_prepare_to_store): New.
14372 (init_record_btrace_ops): Add the above.
14373
f32dbf8c
MM
143742014-01-16 Tom Tromey <tromey@redhat.com>
14375
14376 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14377 * target.h (struct target_ops) <to_prepare_to_store>: Add
14378 argument.
14379 (target_prepare_to_store): Add argument.
14380 * target.c (debug_to_prepare_to_store): Add argument.
14381 (update_current_target): Update.
14382 * remote.c (remote_prepare_to_store): Add 'self' argument.
14383 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14384 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14385 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14386 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14387 argument.
14388 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14389 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14390 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14391 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14392 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14393
07bbe694
MM
143942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14395
14396 * btrace.h (replay) <replay>: New.
14397 (btrace_is_replaying): New.
14398 * btrace.c (btrace_clear): Free replay iterator.
14399 (btrace_is_replaying): New.
14400 * record-btrace.c (record_btrace_is_replaying): New.
14401 (record_btrace_info): Print insn number if replaying.
14402 (record_btrace_insn_history): Start at replay position.
14403 (record_btrace_call_history): Start at replay position.
14404 (init_record_btrace_ops): Init to_record_is_replaying.
14405
0688d04e
MM
144062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14407
14408 * record-btrace.c (record_btrace_insn_history_range): Include
14409 end.
14410 (record_btrace_insn_history_from): Adjust range.
14411 (record_btrace_call_history_range): Include
14412 end.
14413 (record_btrace_call_history_from): Adjust range.
14414 * NEWS: Announce changes.
14415
8710b709
MM
144162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14417
14418 * record.h (enum record_print_flag)
14419 <record_print_indent_calls>: New.
14420 * record.c (get_call_history_modifiers): Recognize /c modifier.
14421 (_initialize_record): Document /c modifier.
14422 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14423 Reorder fields. Optionally indent the function name. Update
14424 all users.
14425 * NEWS: Announce changes.
14426
d0fa7535
MM
144272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14428
14429 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14430
5de9129b
MM
144312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14432
14433 * btrace.c (ftrace_new_function): Start counting at one.
14434 * record-btrace.c (record_btrace_info): Adjust number of calls
14435 and insns.
14436 * NEWS: Announce it.
14437
7acbe133
MM
144382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14439
14440 * record-btrace.c (btrace_call_history_insn_range): Print
14441 insn range as [begin, end].
14442
23a7fe75
MM
144432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14444
14445 * btrace.h (struct btrace_func_link): New.
14446 (enum btrace_function_flag): New.
14447 (struct btrace_inst): Rename to ...
14448 (struct btrace_insn): ...this. Update all users.
14449 (struct btrace_func) <ibegin, iend>: Remove.
14450 (struct btrace_func_link): New.
14451 (struct btrace_func): Rename to ...
14452 (struct btrace_function): ...this. Update all users.
14453 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14454 (number, level, flags>: New.
14455 (struct btrace_insn_iterator): Rename to ...
14456 (struct btrace_insn_history): ...this.
14457 Update all users.
14458 (struct btrace_insn_iterator, btrace_call_iterator): New.
14459 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14460 (struct btrace_target_info) <begin, end, level>
14461 <insn_history, call_history>: New.
14462 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14463 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14464 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14465 (btrace_call_number, btrace_call_begin, btrace_call_end)
14466 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14467 (btrace_find_function_by_number, btrace_set_insn_history)
14468 (btrace_set_call_history): New.
14469 * btrace.c (btrace_init_insn_iterator)
14470 (btrace_init_func_iterator, compute_itrace): Remove.
14471 (ftrace_print_function_name, ftrace_print_filename)
14472 (ftrace_skip_file): Change
14473 parameter to const.
14474 (ftrace_init_func): Remove.
14475 (ftrace_debug): Use new btrace_function fields.
14476 (ftrace_function_switched): Also consider gaining and
14477 losing symbol information).
14478 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14479 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14480 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14481 New.
14482 (ftrace_new_function): Move. Remove debug print.
14483 (ftrace_update_lines, ftrace_update_insns): New.
14484 (ftrace_update_function): Check for call, ret, and jump.
14485 (compute_ftrace): Renamed to ...
14486 (btrace_compute_ftrace): ...this. Rewritten to compute call
14487 stack.
14488 (btrace_fetch, btrace_clear): Updated.
14489 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14490 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14491 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14492 (btrace_call_number, btrace_call_begin, btrace_call_end)
14493 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14494 (btrace_find_function_by_number, btrace_set_insn_history)
14495 (btrace_set_call_history): New.
14496 * record-btrace.c (require_btrace): Use new btrace thread
14497 info fields.
14498 (record_btrace_info, btrace_insn_history)
14499 (record_btrace_insn_history, record_btrace_insn_history_range):
14500 Use new btrace thread info fields and new iterator.
14501 (btrace_func_history_src_line): Rename to ...
14502 (btrace_call_history_src_line): ...this. Use new btrace
14503 thread info fields.
14504 (btrace_func_history): Rename to ...
14505 (btrace_call_history): ...this. Use new btrace thread info
14506 fields and new iterator.
14507 (record_btrace_call_history, record_btrace_call_history_range):
14508 Use new btrace thread info fields and new iterator.
14509
8372a7cb
MM
145102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14511
14512 * frame.h (frame_id_build_unavailable_stack_special): New.
14513 * frame.c (frame_id_build_unavailable_stack_special): New.
14514
c2170eef
MM
145152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14516
14517 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14518 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14519 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14520 to gdbarch.
14521 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14522 (i386_insn_is_jump, i386_jmp_p): New.
14523 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14524 insn_is_jump to gdbarch.
14525 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14526 * gdbarch.h: Regenerated.
14527 * gdbarch.c: Regenerated.
14528 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14529 (default_insn_is_jump): New.
14530 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14531 (default_insn_is_jump): New.
14532
864089d2
MM
145332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14534
14535 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14536 Change to ...
14537 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14538 (btrace_read_type) <btrace_read_new>: Change to ...
14539 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14540
ed9edfb5
MM
145412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14542
14543 * common/linux-btrace.c (linux_read_btrace): Free trace from
14544 previous iteration.
14545
fbcbc3fd
DE
145462014-01-15 Doug Evans <dje@google.com>
14547
14548 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14549 uint32_t.
14550
3d548a53
TT
145512014-01-15 Tom Tromey <tromey@redhat.com>
14552
14553 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14554 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14555 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14556 (set_objfile_main_name): New function.
14557 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14558 language_of_main>: New fields.
14559 (set_objfile_main_name): Declare.
14560 * symtab.c (find_main_name): Loop over objfiles to find the main
14561 name and language.
14562 (set_main_name): Now static.
14563 (get_main_info): Add comment.
14564 * symtab.h (set_main_name): Don't declare.
14565
32ac0d11
TT
145662014-01-15 Tom Tromey <tromey@redhat.com>
14567
14568 * symtab.c (main_progspace_key): New global.
14569 (struct main_info): New.
14570 (name_of_main, language_of_main): Remove.
14571 (get_main_info, main_info_cleanup): New function.
14572 (set_main_name, main_name, main_language): Use get_main_info.
14573 (_initialize_symtab): Initialize main_progspace_key.
14574
9e6c82ad
TT
145752014-01-15 Tom Tromey <tromey@redhat.com>
14576
14577 * dbxread.c (process_one_symbol): Update.
14578 * dwarf2read.c (read_partial_die): Update.
14579 * symfile.c (set_initial_language): Call main_language.
14580 * symtab.c (language_of_main): Now static.
14581 (set_main_name): Add 'lang' parameter.
14582 (find_main_name): Update.
14583 (main_language): New function.
14584 (symtab_observer_executable_changed): Update.
14585 * symtab.h (set_main_name): Update.
14586 (language_of_main): Remove.
14587 (main_language): Declare.
14588
6ef55de7
TT
145892014-01-15 Tom Tromey <tromey@redhat.com>
14590
14591 * symfile.c (init_entry_point_info): Use new "initialized" field.
14592 Update.
14593 * objfiles.h (struct entry_point) <initialized>: New field.
14594 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14595 (struct objfile) <ei>: ...here. Remove.
14596 * objfiles.c (entry_point_address_query): Update.
14597
53eddfa6
TT
145982014-01-15 Tom Tromey <tromey@redhat.com>
14599
14600 * objfiles.c (entry_point_address_query): Relocate entry point
14601 address.
14602 (objfile_relocate1): Do not relocate entry point address.
14603 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14604 <the_bfd_section_index>: New field.
14605 * symfile.c (init_entry_point_info): Find the entry point's
14606 section.
14607
d56e56aa
TT
146082014-01-15 Tom Tromey <tromey@redhat.com>
14609
14610 * solib-frv.c (enable_break): Use entry_point_address_query.
14611
33a97bbe
OJ
146122014-01-15 Omair Javaid <omair.javaid@linaro.org>
14613
14614 * NEWS: Add note on improved process record-replay on
14615 arm*-linux* targets.
14616
c6ec2b30
OJ
146172014-01-15 Omair Javaid <omair.javaid@linaro.org>
14618
14619 * arm-tdep.c (enum arm_record_result): New enum.
14620 (arm_record_unsupported_insn): New function.
14621 (arm_record_coproc_data_proc): Removed.
14622 (thumb2_record_ld_st_multiple): New function.
14623 (thumb2_record_ld_st_dual_ex_tbb): New function.
14624 (thumb2_record_data_proc_sreg_mimm): New function.
14625 (thumb2_record_ps_dest_generic): New function.
14626 (thumb2_record_branch_misc_cntrl): New function.
14627 (thumb2_record_str_single_data): New function.
14628 (thumb2_record_ld_mem_hints): New function.
14629 (thumb2_record_ld_word): New function.
14630 (thumb2_record_lmul_lmla_div): New function.
14631 (thumb2_record_decode_insn_handler): New function.
14632 (decode_insn): Add thumb32 instruction handlers.
14633
97dfe206
OJ
146342014-01-15 Omair Javaid <omair.javaid@linaro.org>
14635
14636 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14637 (struct arm_linux_record_tdep): Declare.
14638 (arm_canonicalize_syscall): New function.
14639 (arm_all_but_pc_registers_record): New function.
14640 (arm_linux_syscall_record): New function.
14641 (arm_linux_init_abi): Add syscall recording constructs.
14642 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14643 decoding. (arm_record_coproc_data_proc): Update arm syscall
14644 decoding.
14645 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14646 <arm_syscall_record>: New field.
14647 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14648 gdb_target_obs.
14649
9904a494
OJ
146502014-01-15 Omair Javaid <omair.javaid@linaro.org>
14651
14652 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14653 register for push instruction recording.
14654
f969241e
OJ
146552014-01-15 Omair Javaid <omair.javaid@linaro.org>
14656
14657 * arm-tdep.c (thumb_record_misc): Update to correct logical
14658 error while recording ldm, ldmia and pop instructions.
14659
bfbbec00
OJ
146602014-01-15 Omair Javaid <omair.javaid@linaro.org>
14661
14662 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14663
e40adcc9
PA
146642014-01-15 Pedro Alves <palves@redhat.com>
14665
14666 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14667 (go32_resume, go32_fetch_registers, store_register)
14668 (go32_store_registers, go32_prepare_to_store)
14669 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14670 (go32_create_inferior, go32_can_run, go32_terminal_init)
14671 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14672 declarations.
14673
b0a16e66
TT
146742014-01-15 Tom Tromey <tromey@redhat.com>
14675
14676 * target.h (async_callback_ftype): New typedef.
14677 (struct target_ops) <to_async>: Use it.
14678
bf7105a4
JB
146792014-01-15 Joel Brobecker <brobecker@adacore.com>
14680
14681 * python/py-value.c (get_field_type): Remove unnecessary curly
14682 braces for single-statement if block.
14683
a8f35c2e
JB
146842014-01-15 Joel Brobecker <brobecker@adacore.com>
14685
14686 * python/py-type.c (convert_field): Add missing empty line
14687 after declarations.
14688
bb4142cf
DE
146892014-01-14 Doug Evans <dje@google.com>
14690
14691 * symfile.h (expand_symtabs_matching): Renamed from
14692 expand_partial_symbol_names. Update prototype.
14693 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14694 * symfile.c (expand_symtabs_matching): Renamed from
14695 expand_partial_symbol_names. New args file_matcher, kind.
14696 Rename arg fun to symbol_matcher.
14697 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14698 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14699 ada_expand_partial_symbol_name.
14700 (ada_make_symbol_completion_list): Update to call
14701 expand_symtabs_matching.
14702 (ada_add_global_exceptions): Call expand_symtabs_matching.
14703 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14704 call map_symbol_filenames.
14705 * symtab.c (sources_info): Update to call map_symbol_filenames.
14706 (search_symbols): Call expand_symtabs_matching.
14707 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14708 (default_make_symbol_completion_list_break_on): Update to call
14709 expand_symtabs_matching.
14710 (make_source_files_completion_list): Update to call
14711 map_symbol_filenames.
14712
206f2a57
DE
147132014-01-14 Doug Evans <dje@google.com>
14714
14715 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14716 (expand_symtabs_symbol_matcher_ftype): New typedef.
14717 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14718 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14719 * symfile.c (expand_partial_symbol_names): Update to use
14720 expand_symtabs_symbol_matcher_ftype.
14721 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14722 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14723 Arg name_matcher renamed to symbol_matcher.
14724 * psymtab.c (recursively_search_psymtabs): Update to use
14725 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14726 sym_matcher.
14727 (expand_symtabs_matching_via_partial): Update to use
14728 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14729 Arg name_matcher renamed to symbol_matcher.
14730
540c2971
DE
147312014-01-14 Doug Evans <dje@google.com>
14732
14733 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14734 (map_partial_symbol_filenames): Ditto.
14735 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14736 (map_partial_symbol_filenames): Ditto.
14737 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14738 (map_partial_symbol_filenames): Ditto.
14739 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14740 (map_partial_symbol_filenames): Ditto.
14741 * symtab.c: Delete #include "psymtab.h".
14742
8213266a
PA
147432014-01-14 Pedro Alves <palves@redhat.com>
14744 Tom Tromey <tromey@redhat.com>
14745
14746 * infrun.c (use_displaced_stepping): Use find_record_target
14747 instead of RECORD_IS_USED.
14748 (adjust_pc_after_break): Use record_full_is_used instead of
14749 RECORD_IS_USED.
14750 * record-btrace.c (record_btrace_open): Call record_preopen
14751 instead of checking RECORD_IS_USED.
14752 * record-full.c (record_full_shortname)
14753 (record_full_core_shortname): New globals.
14754 (record_full_is_used): New function.
14755 (find_full_open): Call record_preopen instead of checking
14756 RECORD_IS_USED.
14757 (init_record_full_ops): Set the target's shortname to
14758 record_full_shortname.
14759 (init_record_full_core_ops): Set the target's shortname to
14760 record_full_core_shortname.
14761 * record-full.h (record_full_is_used): Declare.
14762 * record.c (find_record_target): Make extern.
14763 (record_preopen): New function.
14764 * record.h (RECORD_IS_USED): Delete macro.
14765 (find_record_target, record_preopen): Declare functions.
14766
7ec1862d
YQ
147672014-01-14 Yao Qi <yao@codesourcery.com>
14768
14769 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14770 'len''s type to ULONGEST.
14771 (core_xfer_shared_libraries_aix): Likewise.
14772 * gdbarch.c, gdbarch.h: Regenerated.
14773 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14774 Change type of 'len' to ULONGEST.
14775 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14776 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14777
dea80a27
YQ
147782014-01-14 Yao Qi <yao@codesourcery.com>
14779
14780 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14781 type of 'len' to ULONGEST.
14782 (linux_xfer_osdata_processgroups): Likewise.
14783 (linux_xfer_osdata_threads): Likewise.
14784 (linux_xfer_osdata_fds): Likewise.
14785 (linux_xfer_osdata_isockets): Likewise.
14786 (linux_xfer_osdata_shm): Likewise.
14787 (linux_xfer_osdata_sem): Likewise.
14788 (linux_xfer_osdata_msg): Likewise.
14789 (linux_common_xfer_osdata): Likewise.
14790 (struct osdata_type) <getter>: Likewise.
14791 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14792 the declaration.
14793
b55e14c7
YQ
147942014-01-14 Yao Qi <yao@codesourcery.com>
14795
14796 * target.h (target_xfer_partial_ftype): Update.
14797 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14798 ULONGEST.
14799 * aix-thread.c (aix_thread_xfer_partial): Change type of
14800 argument 'len' to ULONGEST.
14801 * auxv.c (procfs_xfer_auxv): Likewise.
14802 (ld_so_xfer_auxv): Likewise.
14803 (memory_xfer_auxv): Likewise.
14804 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14805 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14806 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14807 * corelow.c (core_xfer_partial): Likewise.
14808 * ctf.c (ctf_xfer_partial): Likewise.
14809 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14810 '%u'.
14811 (darwin_read_dyld_info): Likewise.
14812 (darwin_xfer_partial): Likewise.
14813 * exec.c (section_table_xfer_memory_partial): Likewise.
14814 (exec_xfer_partial): Likewise.
14815 * exec.h (section_table_xfer_memory_partial): Update
14816 declaration.
14817 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14818 instead of plongest.
14819 (gnu_xfer_partial): Likewise.
14820 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14821 (ia64_hpux_xfer_solib_got): Likewise.
14822 (ia64_hpux_xfer_partial): Likewise.
14823 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14824 * inf-ptrace.c (inf_ptrace_xfer_partial):
14825 * inf-ttrace.c (inf_ttrace_xfer_partial):
14826 * linux-nat.c (linux_xfer_siginfo): Likewise.
14827 (linux_nat_xfer_partial): Likewise.
14828 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14829 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14830 * monitor.c (monitor_xfer_memory): Likewise.
14831 (monitor_xfer_partial): Likewise.
14832 * procfs.c (procfs_xfer_partial): Likewise.
14833 * record-full.c (record_full_xfer_partial): Likewise.
14834 (record_full_core_xfer_partial): Likewise.
14835 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14836 instead of plongest.
14837 (gdbsim_xfer_partial): Likewise.
14838 * remote.c (remote_xfer_partial): Likewise.
14839 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14840 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14841 declaration.
14842 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14843 (rs6000_xfer_shared_libraries): Likewise.
14844 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14845 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14846 (sparc_xfer_partial): Likewise.
14847 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14848 (spu_xfer_partial): Likewise.
14849 * spu-multiarch.c (spu_xfer_partial): Likewise.
14850 * target.c (target_read_live_memory): Likewise.
14851 (memory_xfer_live_readonly_partial): Likewise.
14852 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14853 (target_xfer_partial, default_xfer_partial): Likewise.
14854 (current_xfer_partial): Likewise.
14855 * tracepoint.c (tfile_xfer_partial): Likewise.
14856 * windows-nat.c (windows_xfer_memory): Likewise. Call
14857 pulongest instead of plongest.
14858 (windows_xfer_partial): Likewise.
14859 (windows_xfer_shared_libraries): Likewise.
14860
05804640
YQ
148612014-01-14 Yao Qi <yao@codesourcery.com>
14862
14863 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14864 target_xfer_partial_ftype.
14865
b5b08fb4
SC
148662014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14867
14868 PR python/15464
14869 PR python/16113
14870 * valops.c (value_struct_elt_bitpos): New function
14871 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14872 object to 'None' if the field name is an empty string ("").
14873 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14874 attribute to look for a field when 'name' is 'None'.
14875 (get_field_type): New function
14876
13aaf454
DE
148772014-01-13 Doug Evans <dje@google.com>
14878
14879 PR symtab/16426
14880 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14881 (try_open_dwop_file): Ditto.
14882 * gdb_bfd.c: #include "vec.h".
14883 (bfdp): New typedef.
14884 (struct gdb_bfd_data): New member included_bfds.
14885 (gdb_bfd_unref): Unref all included bfds.
14886 (gdb_bfd_record_inclusion): New function.
14887 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14888
c2cec97c
TT
148892014-01-13 Tom Tromey <tromey@redhat.com>
14890
14891 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14892
78e5999d
TT
148932014-01-13 Tom Tromey <tromey@redhat.com>
14894
14895 * defs.h (use_windows): Remove.
14896 * gdb.c (main): Update.
14897 * main.c (captured_main, gdb_main): Update.
14898 * main.h (struct captured_main_args) <use_windows>: Remove.
14899 * top.c (use_windows): Remove.
14900
f2052bbe
TT
149012014-01-13 Tom Tromey <tromey@redhat.com>
14902
14903 * defs.h (deprecated_flush_hook): Remove.
14904
fde4f8ed
JK
149052014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14906
14907 PR threads/16216
14908 * linux-thread-db.c (try_thread_db_load): Add parameter
14909 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14910 (try_thread_db_load_from_pdir_1): Move it there from here.
14911 (try_thread_db_load_from_sdir): Update caller.
14912 (try_thread_db_load_from_dir): Move it there from here.
14913
bdf61915
PP
149142014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14915
14916 * regformats/regdat.sh: Always rewrite the register file.
14917
f71e1a8d
PA
149182014-01-13 Pedro Alves <palves@redhat.com>
14919
14920 * Makefile.in (CHECK_HEADERS): New variable.
14921 (check-headers:): New rule.
14922
42c85435
TT
149232014-01-13 Tom Tromey <tromey@redhat.com>
14924
14925 * cli/cli-setshow.c (do_set_command): Update.
14926 * defs.h (deprecated_set_hook): Remove.
14927 * top.c (deprecated_set_hook): Remove.
14928
f8de5129
PA
149292014-01-13 Pedro Alves <palves@redhat.com>
14930
14931 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14932 the tracepoint if the PC is a pseudo-register.
14933
fc270c35
TT
149342014-01-13 Tom Tromey <tromey@redhat.com>
14935
14936 * defs.h (XCALLOC): Remove.
14937 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14938 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14939 * dwarf2loc.c (allocate_piece_closure): Likewise.
14940 * elfread.c (elf_symfile_segments): Likewise.
14941 (elf_symfile_segments): Likewise.
14942 * gdbtypes.c (copy_type_recursive): Likewise.
14943 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14944 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14945 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14946 XCALLOC.
14947 * mt-tdep.c (mt_gdbarch_init): Likewise.
14948 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14949 XCALLOC.
14950 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14951 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14952 * registry.c (registry_alloc_data): Likewise.
14953 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14954 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14955 * serial.c (serial_fdopen_ops): Likewise.
14956 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14957 XCALLOC.
14958 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14959 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14960 not XCALLOC.
14961
70ba0933
TT
149622014-01-13 Tom Tromey <tromey@redhat.com>
14963
14964 * defs.h (XMALLOC): Remove.
14965 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14966 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14967 * cli-out.c (struct ui_out *): Likewise.
14968 * cli/cli-dump.c (add_dump_command): Likewise.
14969 (add_dump_command): Likewise.
14970 * complaints.c (get_complaints): Likewise.
14971 (find_complaint): Likewise.
14972 * dwarf2-frame.c (execute_cfa_program): Likewise.
14973 * dwarf2read.c (abbrev_table_read_table): Likewise.
14974 * gdbarch.sh: Likewise.
14975 * gdbarch.c: Rebuild.
14976 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14977 * interps.c (interp_new): Likewise.
14978 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14979 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14980 * mi/mi-console.c (mi_console_file_new): Likewise.
14981 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14982 * mi/mi-out.c (mi_out_new): Likewise.
14983 * mi/mi-parse.c (mi_parse): Likewise.
14984 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14985 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14986 * observer.c (xalloc_observer_list_node): Likewise.
14987 * regcache.c (regcache_xmalloc_1): Likewise.
14988 * reggroups.c (reggroup_new): Likewise.
14989 (_initialize_reggroup): Likewise.
14990 * registry.c (register_data_with_cleanup): Likewise.
14991 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14992 * ser-base.c (serial_ttystate): Likewise.
14993 * ser-mingw.c (make_pipe_state): Likewise.
14994 * ser-pipe.c (pipe_open): Likewise.
14995 * serial.c (serial_open): Likewise.
14996 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14997 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14998 (tui_alloc_win_info): Likewise.
14999 (tui_add_content_elements): Likewise.
15000 * tui/tui-file.c (tui_file_new): Likewise.
15001 * tui/tui-out.c (tui_out_new): Likewise.
15002 * ui-file.c (mem_file_new): Likewise.
15003 * ui-out.c (push_level): Likewise.
15004 (make_cleanup_ui_out_end): Likewise.
15005 (append_header_to_list): Likewise.
15006 (ui_out_new): Likewise.
15007 * user-regs.c (user_reg_add_builtin): Likewise.
15008
41bf6aca
TT
150092014-01-13 Tom Tromey <tromey@redhat.com>
15010
15011 * defs.h (XZALLOC): Remove.
15012 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15013 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15014 (get_ada_tasks_inferior_data): Likewise.
15015 * auto-load.c (get_auto_load_pspace_data): Likewise.
15016 * auxv.c (get_auxv_inferior_data): Likewise.
15017 * bfd-target.c (target_bfd_reopen): Likewise.
15018 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15019 (deprecated_insert_raw_breakpoint): Likewise.
15020 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15021 * corelow.c (core_open): Likewise.
15022 * darwin-nat.c (darwin_check_new_threads): Likewise.
15023 (darwin_attach_pid): Likewise.
15024 * dummy-frame.c (dummy_frame_push): Likewise.
15025 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15026 * dwarf2loc.c (allocate_piece_closure): Likewise.
15027 * elfread.c (elf_symfile_segments): Likewise.
15028 * eval.c (ptrmath_type_p): Likewise.
15029 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15030 * gdbtypes.c (alloc_type_arch): Likewise.
15031 (alloc_type_instance): Likewise.
15032 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15033 * inf-child.c (inf_child_can_use_agent): Likewise.
15034 * inflow.c (get_inflow_inferior_data): Likewise.
15035 * infrun.c (save_infcall_suspend_state): Likewise.
15036 * jit.c (jit_reader_load): Likewise.
15037 (get_jit_objfile_data): Likewise.
15038 (get_jit_program_space_data): Likewise.
15039 (jit_object_open_impl): Likewise.
15040 (jit_symtab_open_impl): Likewise.
15041 (jit_block_open_impl): Likewise.
15042 (jit_frame_sniffer): Likewise.
15043 * linux-fork.c (add_fork): Likewise.
15044 * maint.c (make_command_stats_cleanup): Likewise.
15045 * objfiles.c (get_objfile_pspace_data): Likewise.
15046 * opencl-lang.c (struct lval_closure): Likewise.
15047 * osdata.c (osdata_start_osdata): Likewise.
15048 * progspace.c (new_address_space): Likewise.
15049 (add_program_space): Likewise.
15050 * remote-sim.c (get_sim_inferior_data): Likewise.
15051 * sh-tdep.c (sh_gdbarch_init): Likewise.
15052 * skip.c (Ignore): Likewise.
15053 (skip_delete_command): Likewise.
15054 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15055 (library_list_start_library): Likewise.
15056 (solib_aix_current_sos): Likewise.
15057 * solib-darwin.c (get_darwin_info): Likewise.
15058 (darwin_current_sos): Likewise.
15059 * solib-dsbt.c (get_dsbt_info): Likewise.
15060 * solib-ia64-hpux.c (new_so_list): Likewise.
15061 (ia64_hpux_get_solib_linkage_addr): Likewise.
15062 * solib-spu.c (append_ocl_sos): Likewise.
15063 (spu_current_sos): Likewise.
15064 * solib-svr4.c (get_svr4_info): Likewise.
15065 (svr4_keep_data_in_core): Likewise.
15066 (library_list_start_library): Likewise.
15067 (svr4_default_sos): Likewise.
15068 (svr4_read_so_list): Likewise.
15069 * solib-target.c (library_list_start_library): Likewise.
15070 (solib_target_current_sos): Likewise.
15071 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15072 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15073 * symfile.c (default_symfile_segments): Likewise.
15074 * target-descriptions.c (tdesc_data_init): Likewise.
15075 (tdesc_create_reg): Likewise.
15076 (struct tdesc_type *): Likewise.
15077 (tdesc_create_vector): Likewise.
15078 (tdesc_set_struct_size): Likewise.
15079 (struct tdesc_type *): Likewise.
15080 (tdesc_free_feature): Likewise.
15081 (tdesc_create_feature): Likewise.
15082 * windows-nat.c (windows_add_thread): Likewise.
15083 (windows_make_so): Likewise.
15084 * xml-support.c (gdb_xml_body_text): Likewise.
15085 (gdb_xml_create_parser_and_cleanup): Likewise.
15086 (xml_process_xincludes): Likewise.
15087 * xml-syscall.c (allocate_syscalls_info): Likewise.
15088 (syscall_create_syscall_desc): Likewise.
15089
5acfdbae
SDJ
150902014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15091
15092 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15093 function, with code from i386_stap_parse_special_token.
15094 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15095 (i386_stap_parse_special_token): Move code to the two functions
15096 above; simplify it.
15097
0000e5cc
PA
150982014-01-09 Pedro Alves <palves@redhat.com>
15099 Hui Zhu <hui@codesourcery.com>
15100
15101 PR gdb/16101
15102 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15103 bp_err_string. Don't mark the location shlib_disabled if the
15104 error thrown wasn't a generic or memory error. Catch errors
15105 thrown while inserting breakpoints in overlayed code. Output
15106 error message of software breakpoints.
15107 * remote.c (remote_insert_breakpoint): If this breakpoint has
15108 target-side commands but this stub doesn't support Z0 packets,
15109 throw NOT_SUPPORTED_ERROR error.
15110 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15111 * target.h (target_insert_breakpoint): Extend comment.
15112 (target_insert_hw_breakpoint): Add comment.
15113
b7ea362b
PA
151142014-01-08 Pedro Alves <palves@redhat.com>
15115
15116 * remote.c (remote_add_thread): Add threads silently if starting
15117 up.
15118 (remote_notice_new_inferior): If in all-stop, and starting up,
15119 don't call notice_new_inferior.
15120 (get_current_thread): New function, factored out from ...
15121 (add_current_inferior_and_thread): ... this. Adjust.
15122 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15123 found any thread, then select the remote's current thread as GDB's
15124 current thread too.
15125
b7bba001
JB
151262014-01-08 Joel Brobecker <brobecker@adacore.com>
15127
15128 * NEWS: Create a new section for the next release branch.
15129 Rename the section of the current branch, now that it has
15130 been cut.
15131
16dfbded
JB
151322014-01-08 Joel Brobecker <brobecker@adacore.com>
15133
15134 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15135 * version.in: Bump version to 7.7.50.DATE-cvs.
15136
22c90ac1
YQ
151372014-01-08 Yao Qi <yao@codesourcery.com>
15138
15139 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15140 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15141 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15142
d64ad97c
YQ
151432014-01-08 Yao Qi <yao@codesourcery.com>
15144
15145 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15146 return value of bfd_get_filename to symbol_file_add_from_bfd.
15147
f93ba80c
PM
151482014-01-08 Pierre Muller <muller@sourceware.org>
15149
15150 Fix PR16201.
15151 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15152 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15153 to prim_record_mininal_symbol_and_info.
15154 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15155 in call to prim_record_minimal_symbol_and_info.
15156 (read_pe_exported_syms): Set index field of section_data.
15157
a4d9ba85
AP
151582014-01-07 Andrew Pinski <apinski@cavium.com>
15159
15160 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15161 * features/aarch64.c: Regenerate.
15162
1b67eb02
AS
151632014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15164
15165 * target.c (return_null): Define.
15166 (update_current_target): Use it instead of return_zero for
15167 functions that return a pointer.
15168
5e3f4fab
EBM
151692014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15170
15171 * source.c (add_path): Fix check for duplicated paths in the previously
15172 included paths.
15173
e2616788
HK
151742014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15175
15176 * ada-lang.c: Remove duplicated include statements.
15177 * alphabsd-nat.c: Ditto.
15178 * amd64-darwin-tdep.c: Ditto.
15179 * amd64fbsd-nat.c: Ditto.
15180 * auto-load.c: Ditto.
15181 * ax-gdb.c: Ditto.
15182 * breakpoint.c: Ditto.
15183 * dbxread.c: Ditto.
15184 * fork-child.c: Ditto.
15185 * gdb_usleep.c: Ditto.
15186 * i386-darwin-tdep.c: Ditto.
15187 * i386fbsd-nat.c: Ditto.
15188 * infcmd.c: Ditto.
15189 * inferior.c: Ditto.
15190 * jv-lang.c: Ditto.
15191 * linux-nat.c: Ditto.
15192 * linux-tdep.c: Ditto.
15193 * m68kbsd-nat.c: Ditto.
15194 * m68klinux-nat.c: Ditto.
15195 * microblaze-tdep.c: Ditto.
15196 * mips-linux-tdep.c: Ditto.
15197 * mn10300-tdep.c: Ditto.
15198 * nto-tdep.c: Ditto.
15199 * opencl-lang.c: Ditto.
15200 * osdata.c: Ditto.
15201 * printcmd.c: Ditto.
15202 * regcache.c: Ditto.
15203 * remote-m32r-sdi.c: Ditto.
15204 * remote.c: Ditto.
15205 * symfile.c: Ditto.
15206 * symtab.c: Ditto.
15207 * tilegx-linux-nat.c: Ditto.
15208 * tilegx-tdep.c: Ditto.
15209 * tracepoint.c: Ditto.
15210 * valops.c: Ditto.
15211 * vaxbsd-nat.c: Ditto.
15212 * windows-nat.c: Ditto.
15213 * xtensa-tdep.c: Ditto.
15214
bd1f7788
YQ
152152014-01-07 Yao Qi <yao@codesourcery.com>
15216
15217 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15218
79301218
JB
152192014-01-07 Yao Qi <yao@codesourcery.com>
15220 Joel Brobecker <brobecker@adacore.com>
15221
15222 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15223 (pdc_write_regs): Likewise.
15224 (fetch_regs_kernel_thread): Likewise.
15225 (store_regs_kernel_thread): Likewise.
15226
152272014-01-07 Joel Brobecker <brobecker@adacore.com>
15228
15229 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15230 tagged type objects to their actual type.
15231
8e355c5d
JB
152322014-01-07 Joel Brobecker <brobecker@adacore.com>
15233
15234 * ada-valprint.c (print_field_values): Add "language" parameter.
15235 Update calls to print_field_values and print_variant_part.
15236 Pass new parameter "language" in call to val_print instead
15237 of "current_language". Replace call to ada_val_print by call
15238 to val_print.
15239 (print_variant_part): Add "language" parameter.
15240 (ada_val_print_struct_union): Update call to print_field_values.
15241
4fbf5aa5
JB
152422014-01-07 Joel Brobecker <brobecker@adacore.com>
15243
15244 * ada-valprint.c (ui_memcpy): Delete.
15245 (ada_print_floating): Update documentation. Add empty line
15246 between between function documentation and implementation.
15247 Delete variable "buffer". Use ui_file_xstrdup in place of
15248 ui_file_put. Minor adjustments following this change.
15249
71855601
JB
152502014-01-07 Joel Brobecker <brobecker@adacore.com>
15251
15252 * ada-valprint.c (ada_val_print_string): New function,
15253 extracted from ada_val_print_array.
15254 (ada_val_print_array): Replace extracted code by call
15255 to ada_val_print_string followed by a return. Move
15256 "else" branch to the function's top block.
15257
4eb27a30
JB
152582014-01-07 Joel Brobecker <brobecker@adacore.com>
15259
15260 * ada-valprint.c (ada_val_print_array): Move implementation
15261 down. Rename parameter "offset" and "val" into "offset_aligned"
15262 and "original_value" respectively. Add parameter "offset".
15263
34b27950
JB
152642014-01-07 Joel Brobecker <brobecker@adacore.com>
15265
15266 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15267 re-organizing the code. Change the "???" message printed
15268 when target type is a TYPE_CODE_UNDEF into
15269 "<ref to undefined type>".
15270
079e4591
JB
152712014-01-07 Joel Brobecker <brobecker@adacore.com>
15272
15273 * ada-valprint.c (print_record): Delete, implementation inlined...
15274 (ada_val_print_struct_union): ... here. Remove call to
15275 ada_check_typedef in inlined implementation.
15276
8004dfd1
JB
152772014-01-07 Joel Brobecker <brobecker@adacore.com>
15278
15279 * ada-valprint.c (ada_val_print_gnat_array): New function,
15280 extracted from ada_val_print_1;
15281 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15282 (ada_val_print_flt, ada_val_print_struct_union)
15283 (ada_val_print_ref): Likewise.
15284 (ada_val_print_1): Delete variables i and elttype.
15285 Replace extracted-out code by call to corresponding
15286 new functions.
15287
760a2db0
JB
152882014-01-07 Joel Brobecker <brobecker@adacore.com>
15289
15290 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15291
3a92c861
JB
152922014-01-07 Joel Brobecker <brobecker@adacore.com>
15293
15294 * ada-valprint.c (ada_val_print_1): Replace calls to
15295 ada_val_print_1 by calls to val_print.
15296
cd1630f9
JB
152972014-01-07 Joel Brobecker <brobecker@adacore.com>
15298
15299 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15300 Update calls to self accordingly. Replace calls to c_val_print
15301 by calls to val_print.
15302
bdf779a0
JB
153032014-01-07 Joel Brobecker <brobecker@adacore.com>
15304
15305 * ada-valprint.c (print_record): Delete declaration.
15306 (adjust_type_signedness, ada_val_print_1): Likewise.
15307 (ada_val_print): Move function implementation down.
15308 (print_variant_part, print_field_values, print_record):
15309 Move function implementation up.
15310
c0d48811
JB
153112014-01-07 Joel Brobecker <brobecker@adacore.com>
15312
15313 * python/py-type.c (typy_get_name): New function.
15314 (type_object_getset): Add entry for attribute "name".
15315 * NEWS: Add entry mentioning this new attribute.
15316
c26e9cbb
YQ
153172014-01-07 Yao Qi <yao@codesourcery.com>
15318
15319 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15320 statement.
15321
0cc6f43d
YQ
153222014-01-07 Yao Qi <yao@codesourcery.com>
15323
15324 * gnu-nat.c (info_port_rights): Add qualifier const to
15325 argument args.
15326
eec03155
YQ
153272014-01-07 Yao Qi <yao@codesourcery.com>
15328
15329 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15330
f04a82ef
YQ
153312014-01-07 Yao Qi <yao@codesourcery.com>
15332
15333 * gnu-nat.c (make_inf) Update declaration.
15334 (make_inf): Make it static.
15335 (inf_set_traced): Likewise.
15336 (inf_port_to_thread, inf_task_died_status): Likewise.
15337
d57dda0a
YQ
153382014-01-07 Yao Qi <yao@codesourcery.com>
15339
15340 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15341
3aa8c969
YQ
153422014-01-07 Yao Qi <yao@codesourcery.com>
15343
15344 * gnu-nat.c (_initialize_gnu_nat): Declare.
15345
94123b4f
YQ
153462014-01-07 Yao Qi <yao@codesourcery.com>
15347
15348 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15349 'enum bfd_endian'.
15350 (struct gdbarch_info) <byte_order>: Change type to
15351 'enum bfd_endian'.
15352 <byte_order_for_code>: Likewise.
15353 * gdbarch.c, gdbarch.h: Regenerated.
15354
dc81d70a
TT
153552014-01-06 Sasha Smundak <asmundak@google.com>
15356
15357 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15358
cc2f3c35
TT
153592014-01-06 Tom Tromey <tromey@redhat.com>
15360
15361 * doublest.c (convert_doublest_to_floatformat): Use const, not
15362 CONST.
15363 * somread.c (som_symtab_read): Likewise.
15364
adcf2eed
HZ
153652014-01-07 Hui Zhu <hui@codesourcery.com>
15366
15367 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15368 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15369 (gdb_bfd_fopen): Ditto.
15370 (gdb_bfd_openr): Ditto.
15371 (gdb_bfd_openw): Ditto.
15372 (gdb_bfd_openr_iovec): Ditto.
15373 (gdb_bfd_fdopenr): Ditto.
15374 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15375 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15376 with xstrdup.
15377 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15378 with xstrdup.
15379 * symfile-mem.c (symbol_file_add_from_memory): Removed
15380 gdb_bfd_stash_filename.
15381
50722198
DE
153822014-01-03 Doug Evans <dje@google.com>
15383
15384 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15385 output.
15386
2fa4b862
JB
153872014-01-01 Joel Brobecker <brobecker@adacore.com>
15388
15389 Update year range in copyright notice of all files.
15390
28498c42
JB
153912014-01-01 Joel Brobecker <brobecker@adacore.com>
15392
15393 * top.c (print_gdb_version): Set copyright year to 2014.
15394
7b6e1046
JB
153952014-01-01 Joel Brobecker <brobecker@adacore.com>
15396
15397 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15398
df96af55 15399For older changes see ChangeLog-2013.
c906108c
SS
15400\f
15401Local Variables:
15402mode: change-log
15403left-margin: 8
15404fill-column: 74
15405version-control: never
57da7796 15406coding: utf-8
c906108c 15407End:
This page took 3.016129 seconds and 4 git commands to generate.